How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-agents:doneThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
按以下步骤依次执行,将本次会话的知识结构化保存,不要跳过任何步骤。
按以下步骤依次执行,将本次会话的知识结构化保存,不要跳过任何步骤。
执行 Bash 命令收集当前环境信息:
date +%Y-%m-%d
date +%H:%M:%S
pwd
git remote get-url origin 2>/dev/null || echo "非Git仓库"
git branch --show-current 2>/dev/null || echo "无"
git log -1 --format="%h %s" 2>/dev/null || echo "无提交记录"
git status --short 2>/dev/null | head -10 || echo "无变更"
回顾整个会话历史,提取以下内容:
MCP配置整合、认证模块重构讨论、性能瓶颈排查先执行 Bash 创建目录:
mkdir -p ~/docs/$(date +%Y-%m-%d)
然后使用 Write 工具,将文件写入 ~/docs/[DATE]/[标题].md,内容格式如下:
---
会话ID: claude-code-[DATE]-[TIME]
日期: [DATE]
时间: [TIME]
工具: Claude Code
工作目录: [PWD]
Git仓库: [GIT_REMOTE]
Git分支: [GIT_BRANCH]
Git最近提交: [GIT_COMMIT]
Git变更文件: [GIT_STATUS]
标签: [[tag1], [tag2], [tag3]]
备注: $ARGUMENTS
文件路径: ~/docs/[DATE]/[标题].md
---
# [标题]
## 会话概要
[2 到 3 句话总结本次会话目标与结论]
## 关键讨论
- [讨论要点 1]
- [讨论要点 2]
- [讨论要点 3]
## 决策记录
| 决策问题 | 选择方案 | 决策原因 |
|---------|---------|---------|
| [问题描述] | [所选方案] | [原因说明] |
## 问题与解决
### [问题名称]
- **现象**:[描述]
- **根因**:[分析]
- **解决**:[方案]
- **状态**:已解决 / 待跟进
## 后续行动
- [ ] [任务 1]
- [ ] [任务 2]
## 关键代码 / 配置
[重要代码或配置片段,无则删除此节]
完成后在会话中输出:
文档已生成:~/docs/[DATE]/[标题].md
标签:[标签列表]
npx claudepluginhub stringke/ai-agents --plugin ai-agentsWrites a short distilled summary of a working session to docs/sessions/YYYY-MM-DD-<topic>.md after substantial work. Useful for maintaining continuity across sessions without dumping raw chat transcripts.
Ends a work session by writing a concise HANDOFF.md snapshot summarizing progress, decisions, and next steps for the next session.
Saves session context and work summaries to an Obsidian vault with structured markdown, auto-categorization, and related document discovery.