使用方法
- 复制安装命令,在自己的智能体环境安装前先检查源码包。
- 从原始文档核对所需工具、凭据和支持的宿主。
- 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/yahav10/claude-insights --skill analyze-insights开始前需了解
- 安装不包含模型订阅、API 额度或访问文件的权限。
- 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。
When to Use This Skill
- When you have a Claude Code /insight report HTML file to analyze
- After running
/insightin Claude Code and saving the HTML report - When you want to generate skills, CLAUDE.md rules, hooks, and todos from your usage patterns
Steps
- Locate the report: Find the /insight HTML report file. Common locations:
~/.claude/usage-data/report.html- A saved file from the browser after running
/insight
- Run the analysis: Execute claude-insights (auto-detects the report, or pass a path):
npx claude-insights analyze -o ./insights
npx claude-insights analyze <report-file> -o ./insights- Review the output: Check the generated files in the output directory:
insights-todo.md— Prioritized task listCLAUDE.md-additions.md— Rules to add to your CLAUDE.md.claude/settings-insights.json— Hook configurations.claude/skills/*/SKILL.md— Generated skillsinsights-README.md— Placement guide
- Apply directly (alternative): Use
--applyto merge directly into your project:
npx claude-insights analyze --apply- Verify: Check that the generated rules and skills make sense for your project.
Rules
- Always review generated output before applying to your project
- The
--applymode deduplicates rules — safe to run multiple times - Generated skills are based on YOUR friction patterns and are project-specific
Examples
# Auto-detect report and apply (simplest)
npx claude-insights analyze --apply
# Wait for report to appear, then apply
npx claude-insights analyze --wait --apply
# Standard analysis with explicit file
npx claude-insights analyze ~/report.html -o ./my-project
# With facet data enrichment
npx claude-insights analyze --apply --facets
# Watch for report changes
npx claude-insights watch ~/report.html -o ./my-project
# Team aggregation
npx claude-insights team report1.html report2.html -o ./team-output

