session-wrap-up
End-of-session ritual that audits git status informationally, captures learnings, and produces a session summary with next-session context. Use when the user says "wrap up", "done for the day", "finish coding", or wants to end a coding session with a clean summary. For creating a persisted handoff document a fresh agent can load later, use session-handoff instead -- this skill suggests it as a follow-up, not a replacement.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- session-wrap-up
- description
- End-of-session ritual that audits git status informationally, captures learnings, and produces a session summary with next-session context. Use when the user says "wrap up", "done for the day", "finish coding", or wants to end a coding session with a clean summary. For creating a persisted handoff document a fresh agent can load later, use session-handoff instead -- this skill suggests it as a follow-up, not a replacement.
- allowed-tools
- Bash(git status:*) Bash(git diff:*)
02 资源文件 1
- 脚本scripts/smoke_test.py7.8 KB
03 SKILL.md 正文
Session Wrap-Up
End your coding session with intention.
When to Use
- Ending a session, saying "wrap up", "done for now", "finish coding"
- Wants a consistent close-out: what changed, what was learned, what's next
When NOT to Use
- Creating a persisted handoff document for a fresh agent to load later — use
session-handoffinstead; this skill suggests it as a follow-up rather than duplicating it - Running quality gates (lint/typecheck/test) before committing — use
git-kit'scommitskill instead. This skill only reads git state informationally; it never re-runs project checks, and never assumes a specific toolchain (npm, uv, or otherwise)
Workflow
Step 1: Changes Audit (informational only)
git status
git diff --stat
Note uncommitted changes and any TODOs left in code touched this session. If uncommitted changes
exist, mention that git-kit's commit skill is how to actually commit them and run its quality
gates — don't offer to run lint/typecheck/test here.
Step 2: Learning Capture
What mistakes were made? What patterns worked well? Format each as [LEARN] Category: Rule.
Categories: Navigation, Editing, Testing, Git, Quality, Context, Architecture, Performance.
Step 3: Next Session Context
What's the next logical task? Any blockers? What context needs to be preserved?
Step 4: Summary
One paragraph: what was accomplished, current state, what's next.
Step 5: Suggest a Handoff
If this session did substantial work (5+ file edits, complex debugging, an architecture decision),
suggest: "Consider creating a handoff document to preserve this context — say 'create handoff' when
ready." (points at the session-handoff skill; do not create the handoff yourself here)
Guardrails
- Do not skip any workflow step.
- If uncommitted changes exist, use
AskUserQuestionto ask whether to commit (viagit-kit) or leave them — never a printed "(yes/no)" prompt, and don't decide silently.
Output
- Modified file list with uncommitted changes highlighted (informational)
- Captured learnings, if any
- One-paragraph session summary
- Next-session resume context
- Handoff suggestion, if warranted
After completing the ritual, use AskUserQuestion to ask: "Ready to end session?" — never a printed
"(yes/no)" prompt.
Testing & Validation
Eval suite: evals/session-wrap-up/ — 3 scenarios, skill-tester Quick Workflow blind comparison.
Eval 1 (informational audit, 4/4 assertions) passed fully. Eval 2 (declining a lint/commit request,
3/4 assertions) recorded one assertion failure that the run's own grading.json documents as a
test-harness sandboxing gap, not a skill defect — the test agent's tool access let a dispatched
git-kit:commit call actually execute rather than being intercepted by the eval harness; the skill's
own documented behavior (audit informationally, route lint/commit requests to git-kit, never run them
itself) was followed correctly. Eval 3 (declining a bundled test-run request while still completing the
ritual, 3/3 assertions) passed fully. This is a fixed, non-branching prose ritual with no scripts and no
conditional logic beyond "uncommitted changes exist or not", so the eval scope is correspondingly
narrow.
Last dated run record: evals/session-wrap-up/workspace/iteration-1/eval-{1,2,3}/with_skill/grading.json,
2026-09-03. scripts/smoke_test.py structural self-check also passing as of the same date.
Verify this skill activates on:
- "wrap up"
- "done for the day"
- "finish coding"
Verify it does NOT activate on:
- "create a handoff" / "save state" (no ritual, just the document) →
session-handoff - "run lint and commit this" →
git-kit'scommitskill
Quality gates:
- [ ] Never runs or suggests project-specific quality-gate commands (lint/typecheck/test) — that stays
git-kit's job - [ ] git status/diff output is treated as informational context for the summary, never re-run as a gate
04 同仓库更多 Skills
demo
Fixture skill used by scripts.marketplace_ci sync tests.
export-demo
Fixture skill used by scripts.marketplace_ci export tests.
work-to-development
Validate an accepted Linear Issue's readiness for implementation (criteria, dependencies, duplicate/existing artifacts) and request governed branch/worktree creation through git-kit:starting-work — recording work-started Git/GitHub evidence and a deliberate Linear Started transition only after Git identity is read back and verified. Use when asked to start work on a Linear issue, begin development for an accepted issue, or prepare an accepted issue for implementation. Never creates a branch directly — always delegates to git-kit.
work-linking
Create and maintain stable cross-system links and authority labels between Notion and Linear records, and detect/repair drift between them. Use when asked to link a Notion record to a Linear record, check for drift between Notion and Linear, or repair a broken/stale link. Repairs only the bounded non-authoritative copy or link — never chooses by newest timestamp, and never creates a reverse-write loop against either system's own authority.
status-and-learning
Produce a dated, explicitly non-live Linear-to-Notion progress summary, or capture an outcome/learning after work completes. Use when asked to summarize progress to Notion, report portfolio status, or capture what was learned from a completed piece of work — not to disposition open follow-up items (see open-item-management for that). Never runs automatically or continuously — every summary is a deliberate, approved snapshot, not a live sync.
repository-gates
Discover, delegate, record, and invalidate this repository's actual Git/GitHub lifecycle gates (pre-commit, pre-push, PR required checks, Codex delta review, review requirements, merge rights) and the repository-policy provider profile that maps governed operations to git-kit. Use when asked what gates apply to this repository, to discover repository policy before starting Wave 2 work, or to check whether prior gate evidence is still valid after new commits. Discovery and delegation only — never executes a gate's own internal logic, and never invents a gate the repository doesn't actually define (in particular, never assumes a "Review Changes" gate exists).