会话收尾检查
wrapup
会话结束时的检查清单,用于检测遗漏事项——未提交的变更、未合并的分支、需记录的经验教训、需完成的交接——并路由到相应的技能。用于会话收尾、结束工作、一天结束,或“还有其他要记录的吗”。
- License 许可
- MIT
- 所属仓库
- drn/dots
- 最近更新
- 2026-11-12
- Stars
- ★ 23
- Forks
- 4
01 前言 Front Matter
- name
- wrapup
- description
- End-of-session checklist that detects loose ends — uncommitted changes, unmerged branches, learnings to capture, handoffs needed — and routes to the right skills. Use for session closeout, wrapping up, end of day, or "anything else to capture".
03 SKILL.md 正文
Session Wrapup
End-of-session sweep that detects loose ends and routes to the right follow-up actions before you close the conversation.
Context
- Current branch: !
git branch --show-current - Base ref: !
git branch -r 2>/dev/null | grep -oE 'origin/(main|master)' | head -1 - Uncommitted changes: !
git status --short 2>/dev/null | head -20 - Unpushed commits vs main: !
git log origin/main..HEAD --oneline 2>/dev/null | head -20 - Unpushed commits vs master: !
git log origin/master..HEAD --oneline 2>/dev/null | head -20 - Open PRs (mine): !
gh pr list --author @me --state open 2>/dev/null | head -10 - Stash list: !
git stash list 2>/dev/null | head -5 - Knowledge base exists: !
command ls context/knowledge/index.md 2>/dev/null | head -1 - Context directory exists: !
command ls context/ 2>/dev/null | head -5
Instructions
Do NOT automatically run any of the suggested skills. Present the full report first, then let the user pick which actions to take.
Run through each check below. For each one that fires, report the finding and suggest the action. At the end, present a summary with recommended next steps.
Check 1: Uncommitted Changes
If git status shows modified, added, or untracked files:
- List the changed files
- Suggest: Commit the changes, or stash if the work is incomplete
- If the changes look ready: offer to run
/commit
Check 2: Unpushed Commits
If the branch has commits ahead of the remote base branch:
- Show the commit count and titles
- Suggest: Push to remote, or open a PR via
/pr
Check 3: Unmerged Branch
If the current branch is not the main branch and has commits:
- Note the branch name and commit count
- Check if a PR already exists for this branch (from the Open PRs context)
- If PR exists: report its status (open, draft, checks passing/failing)
- If no PR exists: suggest opening one via
/pr - If the work is incomplete: suggest generating a
/handofffor the next session
Check 4: Open PRs Needing Attention
If there are open PRs from the current user:
- List them with status
- Suggest: review, merge via
/merge, or close stale ones
Check 5: Session Learnings
Scan the conversation for signals that /improve would be valuable:
- Skills that required manual workarounds or corrections
- Patterns discovered that could improve skills or agent guidance
- Errors or friction that could be prevented next time
- New knowledge about tools, APIs, or workflows
If any signals found: summarize them and suggest running /improve
Check 6: Incomplete Work
Scan the conversation for work that was started but not finished:
- Tasks discussed but not implemented
- TODOs mentioned but not addressed
- Known issues deferred for later
If found: suggest generating a /handoff prompt to preserve context for the next session
Check 7: Knowledge Capture
If the session involved significant context that is not in the codebase:
- Architectural decisions made
- External system behaviors discovered
- People, processes, or policies discussed
- Debugging insights worth preserving
If the project has a context/ directory or knowledge base: suggest running /improve (which handles knowledge capture)
If not: note that context will be lost unless captured
Summary
Present findings as a checklist. Only list items that need attention — omit clean items entirely.
## Session Wrapup
### Loose Ends
- [ ] **Uncommitted changes** — N files modified (list key ones)
- [ ] **Unpushed commits** — N commits on `branch-name`
- [ ] **No PR open** — branch has work ready for review
### Capture Opportunities
- [ ] **Learnings detected** — skill friction worth capturing via `/improve`
- [ ] **Incomplete work** — generate `/handoff` for next session
- [ ] **Knowledge** — decisions/context worth preserving
### Suggested Actions (pick any)
Only list actions whose corresponding check fired above.
1. `/commit` — commit uncommitted changes
2. `/pr` — open a PR for this branch
3. `/improve` — capture learnings and improve skills
4. `/handoff` — generate context for next session
5. Push to remote — `git push -u origin <branch-name>`
Omit any section where all items are clean. If everything is clean, say:
All clear — no loose ends detected. Session is clean to close.
After presenting the summary, ask:
Want me to run any of these? (e.g., "1 and 3", "all", or "none")
Then execute the user's chosen actions in order.
04 同仓库更多 Skills
batch-pr-review
Review a batch of pull requests together, describe every change in plain language, and build a private Claude artifact that eases human review, with a severity-tagged and verified findings list. Use when asked to review several PRs, a stack of PRs, PRs listed in a Slack thread or message, or to summarize a batch of PRs for a reviewer.
Codex 目标设置包生成
plannotator-setup-goal
为长时间运行的 /goal 工作创建经过审查的 Codex 目标设置包。当用户想把想法、待办清单、项目使命或模糊目标,转化为项目 goals slug 文件夹下的持久化目标文件时使用;包含 Plannotator 审查关卡,覆盖简报、带验收标准的叙述性计划、验证方案、阻碍项,以及最终的 /goal 提示词。
plannotator-annotate
Open Plannotator's annotation UI for a markdown file, converted HTML file, URL, or folder and then respond to the returned annotations.
Claude 技能编写
write-skill
创建或改进 Claude Code 技能/斜杠命令,遵循结构、动态上下文和安全性方面的最佳实践。用于创建新技能、改进现有技能,或学习技能编写。
文本转语音朗读
tts
使用文本转语音(text-to-speech)大声朗读文本。当用户说“读给我听”“念给我听”“大声朗读这个”“说出这个”“朗读摘要”,或要求听到某内容被朗读时使用。
智能测试运行
test
智能测试运行器,针对变更的代码进行测试并识别覆盖率缺口。用于运行测试、查找覆盖率缺口或测试变更的代码。