Amplifier会话故障诊断
session-debug
诊断当前 Amplifier 会话中的问题——工具配置错误、操作失败、意外行为。当某事运行不正常时使用。
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 12
- Forks
- 11
01 前言 Front Matter
- name
- session-debug
- context
- fork
- model_role
- general
- description
- Diagnose issues in the current Amplifier session — misconfigured tools, failing operations, unexpected behavior. Use when something isn't working right.
- user-invocable
- true
- disable-model-invocation
- true
03 SKILL.md 正文
Debug: Session Diagnostics
Help the user diagnose an issue they're encountering in their current Amplifier session.
Issue Description
$ARGUMENTS
If no issue was described, read the session logs and summarize any errors, warnings, or notable issues.
Instructions
-
Delegate to the session-analyst agent to investigate the current session. The session-analyst has specialized knowledge for safely analyzing large event logs (events.jsonl files can contain lines with 100k+ tokens that will crash other tools). Use the delegate tool to dispatch it with the issue description and any relevant context.
-
Check session configuration. Review the current session's configuration for common issues:
- Bundle composition problems (missing modules, failed loads)
- Provider configuration (missing API keys, wrong endpoints)
- Tool availability (tools expected but not mounted)
- Hook failures (hooks that errored during lifecycle events)
Session and project settings are typically at:
- Project:
.amplifier/settings.yaml - User:
~/.amplifier/settings.yaml - Keys:
~/.amplifier/keys.env
-
Check for common patterns:
- Tool calls returning errors repeatedly
- Provider rejections (rate limits, auth failures, model not found)
- Module mount failures at startup
- Context overflow or compaction issues
-
Explain what you found in plain language. Avoid jargon. Tell the user:
- What went wrong
- Why it likely happened
- Concrete steps to fix it
-
If the issue can't be diagnosed from logs alone, suggest the user:
- Run
amplifier doctorfor a system health check - Check
amplifier module listto verify module availability - Try
amplifier --verboseto see detailed startup output
- Run
04 同仓库更多 Skills
工作成果验证规范
verification-discipline
当验证已完成的工作是否真正可用时使用。在 /verify 模式、实现后评审,或声称任务完成之前自动浮现。讲解测试结果与实现的区别、单元/集成/冒烟测试的梯度,以及“完成”的真正含义。
用户需求代言审查
user-advocate
用户需求审查者,为“不在场的人”——即真正要使用所构建成果的人——发声。它以缺席用户那种耐心而急切的声音,追查“我们能做这个”与“他们真正想要这个”之间的差距。可在任何节点使用——头脑风暴、设计、规划、实现、调试、评审——当某个功能因为“能做”而非“被需要”才被构建、缺乏恢复路径,或没人能说清它服务于谁时:“他们真的想要这个吗?他们能接受它吗?”
对抗性代码审查
tester-breaker
一种对抗性破坏者,通过设法让代码失败而非确认其可用来审查代码。它像一位兴高采烈的对手,搜寻那些非正常路径——格式错误的输入、空字符串、颠倒的区间、竞态条件——并假设一切都是坏的,直到具体的破坏尝试落空为止。可在任意检查点使用——头脑风暴、设计、规划、实现、调试、评审——当人们只庆祝正常路径而边缘情况无人检视,用“看起来没问题”代替“我试着破坏它但没成功”,或没人指出究竟是什么输入会让它崩溃时:“它会怎样失败,边界在哪里?”
技能开发咨询顾问
skills-assist
面向所有技能相关问题的权威顾问。在创建或修改技能、理解 Agent Skills 规范、排查技能加载或调用问题、利用增强格式特性(context fork、model_role、user-invocable)、编写跨 harness(运行环境)可移植技能、确保 Claude Code Skills 2.0 兼容性,或在技能与智能体(skills vs agents)之间做出选择时使用。
会话流程转技能文件
skillify
将当前会话中的可重复流程提取为可复用的 Amplifier SKILL.md 技能文件。当用户想要创建技能、将工作流保存为技能、把某个流程转化为可复用技能,或提到“skillify”“create skill”“make a skill”“save as skill”“capture workflow”“turn this into a skill”“new skill”,或是想要将刚执行过的可重复流程自动化时使用。
独立复核与第二意见
second-opinion
对当前工作或过往会话进行独立审查。当用户想要第二意见时使用。不用于普通代码审查——请使用 code-review。