From market-research
Adaptive market demand analysis skill for Claude Code. Dynamically generates API call strategies based on user-configured data sources, combines structured data collection with deep analysis frameworks, and outputs actionable market insight reports. Use this skill whenever the user mentions market analysis, market research, demand analysis, competitor analysis, product research, or asks questions like 'is there a market for X', 'is it worth building', 'market size', or wants to understand user needs, pain points, or competitive landscape for any product, category, or market direction — even if they don't explicitly say 'market research'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/market-research:market-researchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
根据用户已配置的 API 动态生成最优数据采集策略,结合结构化数据采集与深度分析框架,输出可落地的市场洞察报告。
config/config.example.yamlconfig/dimensions.yamlexamples/example_saas_tool.mdexamples/example_smartwatch.mdreferences/analysis_framework.mdreferences/api_setup_guide.mdreferences/data_source_specs.mdtemplates/data_source_status.mdtemplates/full_report.mdtemplates/quick_summary.mdtemplates/report_template.htmltools/__init__.pytools/analyzers/__init__.pytools/analyzers/competitor_analyzer.pytools/analyzers/demand_deep_analyzer.pytools/analyzers/innovation_tracker.pytools/analyzers/market_sizer.pytools/analyzers/pricing_analyzer.pytools/analyzers/sentiment_analyzer.pytools/analyzers/trend_analyzer.py根据用户已配置的 API 动态生成最优数据采集策略,结合结构化数据采集与深度分析框架,输出可落地的市场洞察报告。
数据是手段,洞察是目的。本 Skill 聚焦于:
Skill 分为 7 个阶段运行:
阶段 1:环境准备 → 阶段 2:需求澄清 → 阶段 3:策略生成 → 阶段 4:数据采集与基础分析 → 阶段 4.5:深度分析 → 阶段 5:报告生成(MD) → 阶段 6:格式转换(HTML/PDF)
config/config.yaml 是否存在
references/api_setup_guide.md 中对应章节,逐步引导配置,将用户提供的密钥写入 config/config.yamlconfig/config.example.yaml 复制为 config/config.yaml(保留免费数据源为 enabled,其余保持 disabled)
e. 配置完成后,告知用户:已生成配置文件 config/config.yaml,后续可随时编辑该文件添加更多 API 密钥tools/config_loader.py 检测可用数据源
references/api_setup_guide.md 中对应章节pip install pytrends praw google-play-scraper pyyaml requests numpy
app-store-scraper(如需要)与用户确认以下内容(如未明确指定则使用默认值,不逐一追问):
默认值:全部维度 + config 中的国家 + 完整报告 + 中文
config/dimensions.yaml 获取维度与数据源的映射tools/strategy_engine.py 生成调用计划按调用计划依次执行数据采集
show_raw_data=true,保存原始数据为 JSON数据清洗
Reddit 用户数据采集(当 reddit_public 已启用且 reddit API 未配置时):
tools/sources/reddit_public.py --keyword {keyword} 获取推荐的 subreddits 和搜索查询site:reddit.com "{keyword}" pain points complaints 等查询读取 references/analysis_framework.md,按方法论逐维度分析:
tools/analyzers/trend_analyzer.pytools/analyzers/competitor_analyzer.py + tools/analyzers/pricing_analyzer.pytools/analyzers/sentiment_analyzer.py交叉验证:对每个初步结论检查是否有多数据源支撑,标注置信度
当用户选择了深度维度,或选择完整报告模式时执行。读取 references/analysis_framework.md 中的"深度分析方法论"章节。
市场规模估算 → tools/analyzers/market_sizer.py
竞争力学分析 → tools/analyzers/innovation_tracker.py
用户深度洞察 → tools/analyzers/demand_deep_analyzer.py
先行信号扫描(通过 Web Search 采集)
tools/analyzers/innovation_tracker.py按"五个关键问题"框架 + "综合深度分析输出框架"生成最终洞察
templates/full_report.md 或 templates/quick_summary.md 作为模板在阶段 5 生成 Markdown 报告后,自动将其转换为美观的 HTML 网页报告,并引导用户获取 PDF。
pip install markdown
运行 tools/report_exporter.py,一条命令同时生成 HTML 和 PDF:
python tools/report_exporter.py <报告.md>
脚本会自动完成以下全部步骤(无需用户干预):
markdown 库转换为 HTML 片段(含表格预处理修复)templates/report_template.html 模板中.html 文件.pdf 文件可选参数:
--output <目录> / -o <目录>:指定输出目录--no-pdf:仅生成 HTML,跳过 PDF如果系统无可用浏览器(极少见),脚本会输出警告并提示用户手动打印。
HTML 和 PDF 生成后,尝试自动在浏览器中打开 HTML 文件供用户预览:
start "" "<html文件路径>"open "<html文件路径>"xdg-open "<html文件路径>"向用户展示最终输出文件列表:
{keyword}市场调研报告.md — Markdown 原始报告(可编辑){keyword}市场调研报告.html — HTML 网页报告(浏览器打开查看){keyword}市场调研报告.pdf — PDF 报告(自动生成,可直接分享)config_loader.py| 资源文件 | 何时读取 | 用途 |
|---|---|---|
config/config.example.yaml | 阶段 1,config 缺失时 | API 配置模板 |
config/dimensions.yaml | 阶段 3 | 分析维度与数据源映射(含深度维度) |
references/analysis_framework.md | 阶段 4 & 4.5 | 核心方法论 + 深度分析框架(TAM/Porter/JTBD/蓝海等) |
references/api_setup_guide.md | 阶段 1,引导 API 配置时 | 各平台 API 配置指南 |
references/data_source_specs.md | 阶段 4,调用 API 时 | 各数据源能力、限制、输出格式 |
tools/analyzers/market_sizer.py | 阶段 4.5 | 市场规模估算(TAM/SAM/SOM + 生命周期定位) |
tools/analyzers/innovation_tracker.py | 阶段 4.5 | Porter 五力、蓝海画布、技术采纳定位、评论速度分析 |
tools/analyzers/demand_deep_analyzer.py | 阶段 4.5 | JTBD 提取、主题聚类、迁移路径、价格敏感度 |
templates/full_report.md | 阶段 5 | 完整报告模板(含深度分析章节) |
templates/quick_summary.md | 阶段 5 | 快速摘要模板 |
templates/report_template.html | 阶段 6 | HTML 报告模板(含内嵌 CSS 样式) |
tools/sources/reddit_public.py | 阶段 4 | Reddit 数据辅助采集:生成 site:reddit.com 搜索查询 + subreddit 推荐(无需 API) |
tools/report_exporter.py | 阶段 6 | MD→HTML 格式转换脚本 |
examples/ | 用户想看示例输出时 | 示例报告 |
Searches MemPalace before answering questions about past work, people, projects, or prior decisions. Returns verbatim stored content instead of guessing from model memory.
Guides Payload CMS config (payload.config.ts), collections, fields, hooks, access control, APIs. Debugs validation errors, security, relationships, queries, transactions, hook behavior.
Implements vector databases with Pinecone, Weaviate, Qdrant, Milvus, pgvector for semantic search, RAG, recommendations, and similarity systems. Optimizes embeddings, indexing, and hybrid search.
npx claudepluginhub daizhouchen/market-research-skill --plugin market-research