npx skills add https://github.com/ai-native-camp/camp-2 --skill session-wrap全面的会话总结工作流,支持多智能体分析。
┌─────────────────────────────────────────────────────┐
│ 1. 检查 Git 状态 │
├─────────────────────────────────────────────────────┤
│ 2. 阶段 1: 4 个分析智能体(并行) │
│ ┌─────────────────┬─────────────────┐ │
│ │ doc-updater │ automation- │ │
│ │ (文档更新) │ scout │ │
│ ├─────────────────┼─────────────────┤ │
│ │ learning- │ followup- │ │
│ │ extractor │ suggester │ │
│ └─────────────────┴─────────────────┘ │
├─────────────────────────────────────────────────────┤
│ 3. 阶段 2: 验证智能体(顺序执行) │
│ ┌───────────────────────────────────┐ │
│ │ duplicate-checker │ │
│ │ (验证阶段 1 的提案) │ │
│ └───────────────────────────────────┘ │
├─────────────────────────────────────────────────────┤
│ 4. 整合结果并询问用户问题 │
├─────────────────────────────────────────────────────┤
│ 5. 执行选定的操作 │
└─────────────────────────────────────────────────────┘
git status --short
git diff --stat HEAD~3 2>/dev/null || git diff --stat
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
并行执行 4 个智能体(单条消息包含 4 个 Task 调用)。
会话摘要:
- 工作内容:[会话中执行的主要任务]
- 文件:[创建/修改的文件]
- 决策:[做出的关键决策]
Task(
subagent_type="doc-updater",
description="文档更新分析",
prompt="[会话摘要]\n\n分析 CLAUDE.md、context.md 是否需要更新。"
)
Task(
subagent_type="automation-scout",
description="自动化模式分析",
prompt="[会话摘要]\n\n分析重复模式或自动化机会。"
)
Task(
subagent_type="learning-extractor",
description="学习要点提取",
prompt="[会话摘要]\n\n提取学习内容、错误和新发现。"
)
Task(
subagent_type="followup-suggester",
description="后续任务建议",
prompt="[会话摘要]\n\n建议未完成的任务和下次会话的优先级。"
)
| 智能体 | 角色 | 输出 |
|---|---|---|
| doc-updater | 分析 CLAUDE.md/context.md 更新 | 要添加的具体内容 |
| automation-scout | 检测自动化模式 | skill/command/agent 建议 |
| learning-extractor | 提取学习要点 | TIL 格式摘要 |
| followup-suggester | 建议后续任务 | 优先级任务列表 |
在阶段 1 完成后运行(依赖于阶段 1 的结果)。
Task(
subagent_type="duplicate-checker",
description="阶段 1 提案验证",
prompt="""
验证阶段 1 的分析结果。
## doc-updater 提案:
[doc-updater 结果]
## automation-scout 提案:
[automation-scout 结果]
检查提案是否与现有文档/自动化重复:
1. 完全重复:建议跳过
2. 部分重复:建议合并方法
3. 无重复:批准添加
"""
)
## 总结分析结果
### 文档更新
[doc-updater 摘要]
- 重复检查:[duplicate-checker 反馈]
### 自动化建议
[automation-scout 摘要]
- 重复检查:[duplicate-checker 反馈]
### 学习要点
[learning-extractor 摘要]
### 后续任务
[followup-suggester 摘要]
AskUserQuestion(
questions=[{
"question": "您希望执行哪些操作?",
"header": "总结选项",
"multiSelect": true,
"options": [
{"label": "创建提交(推荐)", "description": "提交更改"},
{"label": "更新 CLAUDE.md", "description": "记录新知识/工作流"},
{"label": "创建自动化", "description": "生成 skill/command/agent"},
{"label": "跳过", "description": "不执行任何操作结束"}
]
}]
)
仅执行用户选定的操作。
有关详细编排模式,请参阅 references/multi-agent-patterns.md。
每周安装数
128
代码仓库
GitHub 星标数
9
首次出现
6 天前
安全审计
安装于
claude-code125
opencode8
codex8
gemini-cli7
github-copilot7
amp7
Comprehensive session wrap-up workflow with multi-agent analysis.
┌─────────────────────────────────────────────────────┐
│ 1. Check Git Status │
├─────────────────────────────────────────────────────┤
│ 2. Phase 1: 4 Analysis Agents (Parallel) │
│ ┌─────────────────┬─────────────────┐ │
│ │ doc-updater │ automation- │ │
│ │ (docs update) │ scout │ │
│ ├─────────────────┼─────────────────┤ │
│ │ learning- │ followup- │ │
│ │ extractor │ suggester │ │
│ └─────────────────┴─────────────────┘ │
├─────────────────────────────────────────────────────┤
│ 3. Phase 2: Validation Agent (Sequential) │
│ ┌───────────────────────────────────┐ │
│ │ duplicate-checker │ │
│ │ (Validate Phase 1 proposals) │ │
│ └───────────────────────────────────┘ │
├─────────────────────────────────────────────────────┤
│ 4. Integrate Results & AskUserQuestion │
├─────────────────────────────────────────────────────┤
│ 5. Execute Selected Actions │
└─────────────────────────────────────────────────────┘
git status --short
git diff --stat HEAD~3 2>/dev/null || git diff --stat
Execute 4 agents in parallel (single message with 4 Task calls).
Session Summary:
- Work: [Main tasks performed in session]
- Files: [Created/modified files]
- Decisions: [Key decisions made]
Task(
subagent_type="doc-updater",
description="Document update analysis",
prompt="[Session Summary]\n\nAnalyze if CLAUDE.md, context.md need updates."
)
Task(
subagent_type="automation-scout",
description="Automation pattern analysis",
prompt="[Session Summary]\n\nAnalyze repetitive patterns or automation opportunities."
)
Task(
subagent_type="learning-extractor",
description="Learning points extraction",
prompt="[Session Summary]\n\nExtract learnings, mistakes, and new discoveries."
)
Task(
subagent_type="followup-suggester",
description="Follow-up task suggestions",
prompt="[Session Summary]\n\nSuggest incomplete tasks and next session priorities."
)
| Agent | Role | Output |
|---|---|---|
| doc-updater | Analyze CLAUDE.md/context.md updates | Specific content to add |
| automation-scout | Detect automation patterns | skill/command/agent suggestions |
| learning-extractor | Extract learning points | TIL format summary |
| followup-suggester | Suggest follow-up tasks | Prioritized task list |
Run after Phase 1 completes (dependency on Phase 1 results).
Task(
subagent_type="duplicate-checker",
description="Phase 1 proposal validation",
prompt="""
Validate Phase 1 analysis results.
## doc-updater proposals:
[doc-updater results]
## automation-scout proposals:
[automation-scout results]
Check if proposals duplicate existing docs/automation:
1. Complete duplicate: Recommend skip
2. Partial duplicate: Suggest merge approach
3. No duplicate: Approve for addition
"""
)
## Wrap Analysis Results
### Documentation Updates
[doc-updater summary]
- Duplicate check: [duplicate-checker feedback]
### Automation Suggestions
[automation-scout summary]
- Duplicate check: [duplicate-checker feedback]
### Learning Points
[learning-extractor summary]
### Follow-up Tasks
[followup-suggester summary]
AskUserQuestion(
questions=[{
"question": "Which actions would you like to perform?",
"header": "Wrap Options",
"multiSelect": true,
"options": [
{"label": "Create commit (Recommended)", "description": "Commit changes"},
{"label": "Update CLAUDE.md", "description": "Document new knowledge/workflows"},
{"label": "Create automation", "description": "Generate skill/command/agent"},
{"label": "Skip", "description": "End without action"}
]
}]
)
Execute only the actions selected by user.
See references/multi-agent-patterns.md for detailed orchestration patterns.
Weekly Installs
128
Repository
GitHub Stars
9
First Seen
6 days ago
Security Audits
Gen Agent Trust HubWarnSocketPassSnykPass
Installed on
claude-code125
opencode8
codex8
gemini-cli7
github-copilot7
amp7
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
54,900 周安装
Cloudflare Vectorize 完整指南:全球分布式向量数据库,实现语义搜索与RAG应用
326 周安装
写作技能卓越版:AI技能开发模板与SEO优化指南
326 周安装
Claude Code 技能开发指南:创建、管理和优化技能的最佳实践
326 周安装
Swift iOS 通讯录框架开发指南:使用CNContactStore进行联系人增删改查
327 周安装
书籍翻译指南:AI提示工程书籍《The Interactive Book of Prompting》本地化翻译技能
327 周安装
AWS SDK Java v2 RDS 管理教程 - 数据库实例、快照、参数组操作指南
327 周安装