← 返回 Skills 市场
lijinhongucl-pixel

输入关键词,自动扫描全网用户痛点,生成PRD并输出OpenClaw标准任务JSON。

作者 Socialite UCL LJH · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
146
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install auto-prd-hunter
功能描述
Search web for user pain points and output a PRD JSON.
使用说明 (SKILL.md)

auto-prd-hunter

Scan platforms for user complaints, extract pain points, and produce a structured PRD + OpenClaw task JSON.

Important Notice

⚠️ No Fabrication Policy: This skill ONLY returns results from real API searches. If no API results are found, it returns an error instead of generating mock/fabricated data.

Commands

All operations use the packaged CLI script:

python3 {baseDir}/scripts/search.py search-pain-points --keyword "\x3Ckeyword>" --max-results 8

Workflow

  1. Receive a keyword.
  2. Run the search command to fetch real complaints from APIs.
  3. Parse JSON from stdout.
  4. Extract up to 5 pain points (id, title, severity, context, sources).
  5. Invent product name and summary.
  6. Write user stories and MVP features.
  7. Derive openclaw_tasks.
  8. Output ONLY the final JSON (no markdown fences, no greetings).

Constraints

  • MUST run the CLI script. Do NOT fabricate results.
  • If APIs return no results, return error JSON: {"status":"no_results","error":"No API results found"}
  • Final reply MUST be ONLY valid JSON.
  • No markdown fences (no ```json), no greetings, no explanations.
  • If search fails, return: {"status":"error","error":"reason"}

Network Requests

This skill makes outbound network requests to:

  • Brave Search API (api.search.brave.com) - For web search results
  • Hacker News Algolia API (hn.algolia.com) - For tech community discussions

⚠️ Privacy Notice: Your search keywords will be sent to these external services. Do not include sensitive or confidential information in keywords.

Environment Variables

The script optionally reads these environment variables:

Variable Required Purpose
BRAVE_API_KEY No Brave Search API key for enhanced search results
BAIDU_API_KEY No Baidu Search API key for Chinese content

If no API keys are provided, the skill will attempt to use Hacker News API (no key required).

Output JSON Schema

{
  "status": "success",
  "keyword": "searched keyword",
  "project_name": "product name",
  "summary": "one-line value",
  "pain_points": [
    {
      "id": "PP-001",
      "title": "pain title",
      "severity": "high",
      "context": "description",
      "sources": [
        {
          "platform": "Hacker News",
          "url": "https://news.ycombinator.com/item?id=...",
          "quote": "actual user words from the post"
        }
      ]
    }
  ],
  "user_stories": [
    {
      "id": "US-001",
      "as_a": "role",
      "i_want_to": "desire",
      "so_that": "goal",
      "acceptance_criteria": ["criterion 1"],
      "priority": "P0",
      "pain_point_ids": ["PP-001"]
    }
  ],
  "mvp_features": [
    {
      "id": "F-001",
      "title": "feature name",
      "description": "what it does",
      "priority": "P0",
      "user_story_ids": ["US-001"],
      "pain_point_ids": ["PP-001"]
    }
  ],
  "openclaw_tasks": [
    {
      "task_id": "TASK-001",
      "title": "task name",
      "description": "dev instructions",
      "priority": "P0",
      "acceptance_criteria": ["standard 1"],
      "feature_id": "F-001"
    }
  ],
  "generated_at": "2026-04-07T12:00:00",
  "data_source": "API"
}

Error Handling

Script Not Found

If the CLI script is not found or Python is missing:

{
  "status": "error",
  "error": "Search script not available. Ensure python3 is installed and the script exists at {baseDir}/scripts/search.py"
}

No API Results

If all APIs return no results:

{
  "status": "no_results",
  "keyword": "\x3Ckeyword>",
  "error": "No API results found. Try providing API keys (BRAVE_API_KEY) or using a different keyword.",
  "suggestions": [
    "Set BRAVE_API_KEY environment variable",
    "Try a broader keyword",
    "Check network connectivity"
  ]
}

API Error

If API calls fail:

{
  "status": "error",
  "error": "API request failed: \x3Cerror details>"
}

Data Sources

The script fetches user complaints from these platforms:

Platform Type Auth Required URL
Brave Search Web Search Optional (API key) api.search.brave.com
Hacker News Tech Forum No hn.algolia.com

Note: Without API keys, only Hacker News results will be available, which may limit results for non-tech topics.

Usage Examples

Basic Usage

python3 scripts/search.py search-pain-points --keyword "remote work" --max-results 10

With API Key

export BRAVE_API_KEY="your_api_key"
python3 scripts/search.py search-pain-points --keyword "AI tools" --max-results 8

Chinese Content

export BAIDU_API_KEY="your_api_key"
python3 scripts/search.py search-pain-points --keyword "远程办公" --max-results 8

Integration with Cron

This skill works with OpenClaw's cron system for automated daily PRD generation:

{
  "name": "每日痛点挖掘与PRD生成",
  "schedule": {
    "kind": "cron",
    "expr": "0 8 * * *",
    "tz": "Asia/Singapore"
  },
  "payload": {
    "kind": "agentTurn",
    "message": "运行 auto-prd-hunter 调研热门领域痛点并生成PRD"
  },
  "sessionTarget": "isolated"
}

Transparency Commitment

This skill adheres to the following principles:

  1. No Fabrication: Never generates fake pain points or sources
  2. Transparency: All network requests are declared in metadata
  3. Privacy: Keyword inputs are sent to external APIs (as declared)
  4. Authenticity: All sources contain real URLs and quotes
  5. Error Handling: Returns clear errors when APIs fail or return no results

Troubleshooting

"No API results found"

  • Cause: No API keys configured and Hacker News has no relevant results
  • Solution: Set BRAVE_API_KEY or try a different keyword

"API request failed"

  • Cause: Network issue or invalid API key
  • Solution: Check network connectivity and verify API keys

Limited results

  • Cause: Only using Hacker News (tech-focused)
  • Solution: Configure BRAVE_API_KEY for broader web search

Getting API Keys

Brave Search API

  1. Visit: https://api.search.brave.com/
  2. Sign up for free tier
  3. Get your API key
  4. Set environment variable: export BRAVE_API_KEY="your_key"

Baidu Search API

  1. Visit: https://cloud.baidu.com/
  2. Enable Baidu Search API
  3. Get your API key
  4. Set environment variable: export BAIDU_API_KEY="your_key"
安全使用建议
This skill appears coherent and implements what it claims, but take the following precautions before enabling it: 1) Do not enter sensitive or confidential keywords — the skill sends keywords to external search APIs (Brave, Hacker News, and possibly Baidu). 2) Store any API keys (BRAVE_API_KEY/BAIDU_API_KEY) in a secure secrets store, not in plain environment variables where possible. 3) Review the full scripts/search.py file to confirm Baidu support (SKILL.md declares BAIDU_API_KEY but the visible snippet only shows Brave and Hacker News usage). 4) If you enable the cron integration, audit scheduled payloads so you do not accidentally leak repeated keywords. 5) Run the script in an isolated environment or sandbox first to observe outbound network targets and returned sources, and verify the sources/quotes included in outputs before trusting them in production.
功能分析
Type: OpenClaw Skill Name: auto-prd-hunter Version: 1.0.3 The skill is a legitimate tool for searching web platforms (Brave Search and Hacker News) to identify user pain points and generate product documentation. It demonstrates high transparency by explicitly declaring its network dependencies and environment variable usage in both SKILL.md and the accompanying FIXES.md. The Python script (scripts/search.py) uses standard libraries for API interaction and contains no evidence of malicious intent, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
The skill's name/description (search web for pain points and produce PRD JSON) matches what the script and SKILL.md require: python3 and outbound requests to Brave Search and Hacker News (Algolia). Optional environment variables (BRAVE_API_KEY, BAIDU_API_KEY) are appropriate for search integrations. Minor note: BAIDU_API_KEY is declared in metadata/SKILL.md, but the visible portion of scripts/search.py implements Brave and Hacker News searches; if Baidu support is important, verify the full script includes it.
Instruction Scope
SKILL.md instructs the agent to run the included CLI script and return only the final JSON; the script's behavior (query external search APIs, extract snippets, synthesize product name/user stories/features/tasks) stays within that scope. It does not instruct reading unrelated system files or harvesting other credentials. Note: the skill will send the user's keywords to external services (declared in the doc) and the SKILL.md supports scheduling via cron — scheduled runs will repeatedly send whatever keywords are in the payload, so treat keywords as potentially exfiltrated data.
Install Mechanism
No install spec; this is an instruction-only skill with a bundled Python script. Nothing is downloaded during install and no archives are extracted. The only runtime requirement is python3, which is appropriate for a Python script.
Credentials
No required credentials are declared. The only optional environment variables are BRAVE_API_KEY and BAIDU_API_KEY, which are proportional and relevant to the stated purpose. The skill does not request unrelated secrets or system config paths.
Persistence & Privilege
The skill is not configured always:true and does not request elevated or cross-skill configuration changes. disable-model-invocation is false (normal). Cron integration is documented (for scheduled runs) — this is expected functionality but means keywords may be sent automatically when scheduled.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install auto-prd-hunter
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /auto-prd-hunter 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Major update adds explicit support and documentation for API-based web search (Brave Search and Baidu), with dedicated environment variables. - Detailed network access and privacy notices now included in SKILL.md. - Error handling and output schema improved for clarity, including new suggestions and troubleshooting sections. - Command-line script moved to scripts/search.py; legacy scripts removed. - Stronger "no fabrication" policy: only real, API-derived pain points are returned. - Metadata now lists required binaries, possible API keys, and network hosts.
v1.0.2
- Added new script: auto-prd-hunter-scripts.py. - No other changes to functionality or documentation.
v1.0.1
- Replaced skill.md with a capitalized Skill.md for improved naming consistency. - No functional or workflow changes; documentation content remains the same.
v1.0.0
Initial release of auto-prd-hunter. - Scans the web for user complaints based on a given keyword. - Extracts and structures up to 5 pain points from real user sources. - Generates a JSON-formatted PRD including project details, pain points, user stories, MVP features, and OpenClaw tasks. - Runs a packaged CLI script; does not fabricate pain points or results. - Strictly outputs valid JSON—no markdown, explanations, or greetings. - Handles errors and missing dependencies with clear JSON responses.
元数据
Slug auto-prd-hunter
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

输入关键词,自动扫描全网用户痛点,生成PRD并输出OpenClaw标准任务JSON。 是什么?

Search web for user pain points and output a PRD JSON. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 146 次。

如何安装 输入关键词,自动扫描全网用户痛点,生成PRD并输出OpenClaw标准任务JSON。?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-prd-hunter」即可一键安装,无需额外配置。

输入关键词,自动扫描全网用户痛点,生成PRD并输出OpenClaw标准任务JSON。 是免费的吗?

是的,输入关键词,自动扫描全网用户痛点,生成PRD并输出OpenClaw标准任务JSON。 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

输入关键词,自动扫描全网用户痛点,生成PRD并输出OpenClaw标准任务JSON。 支持哪些平台?

输入关键词,自动扫描全网用户痛点,生成PRD并输出OpenClaw标准任务JSON。 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 输入关键词,自动扫描全网用户痛点,生成PRD并输出OpenClaw标准任务JSON。?

由 Socialite UCL LJH(@lijinhongucl-pixel)开发并维护,当前版本 v1.0.3。

💬 留言讨论