with one click
bug-fix-recorder
记录 bug 修复到知识库。触发词:"记录这个 bug"、"保存修复"、"添加到 bug-fix 库"、"总结这个修复"。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
记录 bug 修复到知识库。触发词:"记录这个 bug"、"保存修复"、"添加到 bug-fix 库"、"总结这个修复"。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
垂直领域搜索和批量并行搜索。当通用搜索(tavily)无法满足时使用。 触发场景: 1. 金融数据——股票代码、汇率、行情(finance.us_stock / cn_stock / forex) 2. 学术检索——论文、DOI(academic.search / academic.biomedical) 3. 安全漏洞——CVE、文件哈希、IP/域名扫描(security.scan / security.cve) 4. 法律、专利、教育、健康等其他垂直领域 5. 批量并行搜索——同时查 2-5 个独立问题 6. 中国国内信息——A 股、国内资讯(需 zone=cn) 触发词:"股票"、"行情"、"汇率"、"CVE"、"漏洞"、"论文"、"DOI"、 "学术"、"专利"、"批量搜索"、"A股"、"anysearch"。 不触发场景:通用 web 搜索、新闻浏览、代码搜索、网页内容提取、网站爬取—— 这些由 tavily skill 处理。
Use when starting a new Remotion video project, adding scenes to an existing video, or converting a script into a video. Handles creative direction, script review, scene planning, pronunciation pre-check, segment-based voiceover generation, subtitle-based timeline calculation, and produces a complete design spec. Required before remotion-video-development. Also handles voiceover generation and timeline alignment via remotion-tools scripts.
Use when implementing Remotion video scenes from an approved design spec. Executes scene-by-scene with flex-first layout, subtitle-based timing, multi-segment audio playback, and per-scene verification. Requires completed design from remotion-video-design. Also use when regenerating voiceover segments, fixing pronunciation, or re-aligning timeline.
思维框架,帮助跳出局部修补的循环。两种触发模式。 模式一(用户主动):当用户说"rethink"、"重新思考"、 "跳出来看"、"全局视角"、"这个问题我们是不是想错了"时加载, 直接进入完整分析。 模式二(AI 提议):当你检测到以下信号时, 在回复末尾加一句提议 "我觉得我们可能在局部修补,要不要退一步重新看?": 你对同一个文件做了 3 次以上修改仍未解决, 或用户连续 2 次否定你的方案, 或你发现方案里 workaround 和 edge case 越来越多。 用户同意后再执行完整分析。用户说不用则继续正常工作。
本地语义代码搜索。当需要按意图定位代码、查找实现、理解代码结构时使用,优先于 grep/read 用于探索性搜索。触发词:"搜代码"、"code search"、"find implementation"、"理解代码实现"、"semble"、"语义搜索"、"search code"。
通用 Web 搜索、URL 内容提取、网站爬取。这是默认的搜索工具。 当用户需要:快速查事实、搜索新闻、fact-checking、提取网页内容、 爬取网站、深度研究(advanced 模式)时使用。 触发词:"搜索"、"查一下"、"搜一下"、"lookup"、"search"、"research"、 "fact-check"、"联网搜索"、"查资料"、"提取网页"、"爬取网站"、 "tavily"、"网页内容"。 不触发场景:股票/金融数据查询、学术论文检索、CVE/安全漏洞查询、 批量并行搜索——这些场景由 anysearch skill 处理。
| name | bug-fix-recorder |
| description | 记录 bug 修复到知识库。触发词:"记录这个 bug"、"保存修复"、"添加到 bug-fix 库"、"总结这个修复"。 |
| user-invocable | true |
将 bug 修复结构化记录到全局知识库,便于未来快速定位类似问题。
用户说以下任一短语时触发:
从对话上下文中提取以下信息:
| 字段 | 必填 | 示例 |
|---|---|---|
| language | ✅ | Python, TypeScript |
| frameworks | ✅ | SQLAlchemy, Vue 3 |
| title | ✅ | 简洁的问题标题 |
| description | ✅ | 问题描述 |
| error_message | ✅ | 完整错误信息 |
| root_cause | ✅ | 根本原因分析 |
| fix_method | ✅ | 修复方法 |
| severity | 默认 major | critical/major/minor |
| tags | 推荐 | database, async |
| before_code | 可选 | 修复前代码 |
| after_code | 可选 | 修复后代码 |
| related_files | 可选 | 相关文件路径 |
使用 Task tool 调用 bug-fixer agent:
Task tool:
subagent_type: bug-fixer
prompt: [包含收集的所有信息]
Agent 返回后,执行验证:
# 验证记录可被检索
python3 ~/.claude/agents/bug-fixer/bug_fixer.py search --language <language> --keyword "<title关键词>"
展示创建结果:
# 记录问题
python3 ~/.claude/agents/bug-fixer/bug_fixer.py record \
--language "Python" \
--frameworks "SQLAlchemy" \
--title "问题标题" \
--description "问题描述" \
--error-message "错误信息" \
--root-cause "根本原因" \
--fix-method "修复方法" \
--tags "tag1,tag2" \
--severity major
# 搜索问题
python3 ~/.claude/agents/bug-fixer/bug_fixer.py search --language python --tags database
# 查看统计
python3 ~/.claude/agents/bug-fixer/bug_fixer.py stats
~/.claude/bug-fix-library/
├── python/
│ ├── database/
│ │ ├── 001-xxx.md
│ │ └── index.json
│ └── global_index.json
├── typescript/
│ └── ...
└── stats.json
推荐使用以下标准化标签:
database - 数据库相关async - 异步/并发问题type-hint - 类型注解问题dependency - 依赖问题api - API 相关frontend - 前端问题tooling - 工具配置