[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ACHRJQJDC0620ZSJMW8F0J":3,"skill-same:01M7ACHRJQJDC0620ZSJMW8F0J":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7ACHRJQJDC0620ZSJMW8F0J","end-of-session",null,"Wrap up a work session — reconcile the git tree, commit what this session authored, review drafts, and capture durable signal. Use when the user signals the session is ending.","hollis-labs\u002Fcairn","hollis-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F209122427?v=4","01M6KSB2TDHAKZP6JEBD24X8ZQ","Hollis Labs","01M7ACFMRM18NWGAYG1D4PN262",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn\u002Fblob\u002Fmain\u002Ftestdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Fend-of-session\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: end-of-session\ndescription: Wrap up a work session — reconcile the git tree, commit what this session authored, review drafts, and capture durable signal. Use when the user signals the session is ending.\n---\n\nA fixed checklist so wrap-up doesn't depend on remembering. Run the steps in order; skip a step only when it plainly doesn't apply, and say so.\n\n**Invoker precedence.** If the user's instruction contradicts a default here (\"just commit, skip the rest\"), they win.\n\n---\n\n## 1. Snapshot the tree\n\n```bash\ngit status --porcelain -u    # -u is load-bearing: untracked files are where stray work hides\ngit log --oneline -1\ngit branch --show-current\n```\n\nNot a git repo → skip steps 1–3, note it, continue.\n\n## 2. Classify every changed file\n\n- **SESSION** — this session touched it via Write\u002FEdit\u002FBash. Your tool history is the source of truth.\n- **USER** — changed, but you never touched it.\n- **AMBIGUOUS** — a broad command (`go fmt .\u002F...`, a codegen script) may have touched it.\n\nWhen unsure, mark AMBIGUOUS. Erring toward the user is cheap; auto-committing something they were mid-edit on is not.\n\n## 3. Commit SESSION files only\n\n- Stage **by explicit name**. Never `git add -A`, `.`, or `-u`.\n- Match the repo's commit style — check `git log -5 --oneline`.\n- Multiple logical changes → multiple commits.\n- **Never push.** Never amend or squash.\n\nUSER and AMBIGUOUS files are **never** auto-committed. Surface them (§6) instead.\n\n## 4. Review this session's drafts\n\n```bash\nls ~\u002Fdev\u002Fagent-os\u002Fworkspaces\u002Fdrafts\u002F\u003Cproject>\u002F\u003Csession>\u002F\n```\n\nFor each draft, present one line and ask where it goes:\n\n> `boot-arch.md` — promote to Tesseract \u002F promote to repo docs \u002F keep drafting \u002F discard?\n\nOn promote: write it to its real home (`knowledge_write` for inward, repo + PR for outward), then move the draft to `~\u002Fdev\u002Fagent-os\u002Farchive\u002Fdrafts\u002F\u003Cproject>\u002F\u003CYYYY-MM-DD>\u002F`.\n\n**Never self-promote.** No drafts → skip silently.\n\n## 5. Capture durable signal\n\nScan this session's tracking files and your own history for content matching these headings, and route each:\n\n| Found | Skill |\n|---|---|\n| `## Decisions` \u002F `## Decisions locked` | `\u002Fcapture-decision` |\n| `## Follow-ups` \u002F `## Follow-up candidates` | `\u002Fcapture-followup` |\n| `## Known limitations` \u002F `## Preserved tech debt` \u002F `## Out of scope` (with rationale) | `\u002Fcapture-limitation` |\n\nThe capture skills dedup themselves. Skip entirely on a trivial session — no commits, no decisions, nothing deferred.\n\n**Capture signal, not narration.** If a future session wouldn't search for it, don't write it.\n\n## 6. Surface anything needing a decision\n\nFor each USER\u002FAMBIGUOUS file, and anything else unresolved, use exactly this:\n\n> Hey, noticed **{thing}** — {1–3 lines, facts only}. Want me to:\n> - **A) Go into detail**\n> - **B) Capture for later** (`\u002Fcapture-followup`)\n> - **C) Add a follow-up task** (Torque)\n\nState the discovery as fact. No opinion, no recommended pick, no yes\u002Fno substitute. Pose one at a time and **wait**.\n\nBatch tightly-related files into one surface. If a directory holds many pre-existing files this session didn't touch, that's baseline — give a one-line count, don't enumerate.\n\n## 7. Reconcile Torque\n\nIf the session advanced tracked work:\n\n```\ntorque_task_list  project_id=\u003Cid>  status=todo,doing,review\n```\n\nThe shape to look for is a task carrying a comment newer than its own last\nstatus change — work was logged and the status did not follow. The Stop hook\nsurfaces these too; this step is the deliberate pass over the same set.\n\nMatch against what actually happened. Stale status → surface via §6 (option A\ntransitions it). Never auto-transition.\n\nTorque refuses `todo → done` directly, so a task that skipped the middle walks\n`todo → doing → review → done`.\n\nTorque is the tracker — `mcp__mux__torque_*`.\n\n## 8. Write the session-close record\n\n**This is what the next session reads.** `\u002Fboot-prompt` pulls the most recent record for this project when orienting — if nothing writes them, there's nothing current to pull.\n\nWrite only what no tool can regenerate. Commits come from git, task state from Torque, decisions and limitations from the captures in §5. Three things don't:\n\n```\nknowledge_write\n  namespace       = user\u002Fchrispian\u002Fknowledge\u002Fsession-close\u002F\u003Cproject>\n  key             = \u003Csession_id>\n  kind            = session_close\n  source          = agent\n  pointer_scheme  = nil\n  pointer_locator = \u003Cproject>\n  summary         = one line: what shipped, what's still open\n  tags            = [\"session-close\", \"\u003Cproject>\", \"\u003Crole-if-any>\"]\n  session_id      = \u003Csession_id>\n  body            = the three sections below\n```\n\n**Tag it with the project**, so a scoped lookup finds it. If the session ran under a named role, tag that too.\n\n```markdown\n## Next\n- \u003Cwhat you'd pick up first, and why it's first>\n\n## Narrative\n\u003C3–5 sentences, written while context is hot. What a cold agent needs to feel\n oriented: the shape of the session, where the risk sits, what surprised you.\n This goes into the next boot close to verbatim.>\n\n## Ruled out\n- \u003Chypothesis, and what disproved it>\n```\n\n**`## Next` is a suggestion, not a dispatch.** It says what you'd do next and why — it is not a prompt for another agent. If this session feeds a *specific* next session in a workflow chain, compose that agent's prompt instead: `agent-setup\u002Fbin\u002Fprompt.sh \u003Crole> --vars`. The two are different artifacts and both can be right.\n\n**`## Ruled out` is the section that pays.** Anyone can re-find the root cause given time; what's expensive is re-eliminating the six things it wasn't.\n\n**Skip on a trivial session** — no commits, no decisions, nothing deferred. A record saying \"read some files\" is noise in the next boot.\n\n## 9. Report\n\n```\nEnd of session — {branch} @ {sha}\n\nCommitted:  {sha} {subject}\nDrafts:     {n promoted, n still in flight | none}\nCaptured:   {n decisions, n follow-ups | none}\nOpen:       {n items awaiting your decision | nothing}\n```\n\nOmit empty lines. Fully clean session → `All clean. Nothing to commit, nothing to surface.`\n\n---\n\n## Do not\n\n- **Do not write a boot-prompt file.** Boot context is materialized — see `\u002Fboot-prompt`. The session-close *record* (§8) is different: it's append-only and timestamped, so boot pulls the newest and a stale one is visibly stale. A boot-prompt *file* has exactly one copy that is silently either current or wrong.\n- **Do not invoke `\u002Fboot-prompt`** unless the user asks.\n- **Do not run mid-task** to check status. This is wrap-up, not a progress report.\n- **Do not push, open PRs, run tests, or clean worktrees.** All separate, explicit actions.\n\n## Worktree note\n\nIf asked to clean worktrees: remove only those **merged AND clean**. Anything with unmerged commits or uncommitted changes gets surfaced, never silently deleted. Measured on one repo, only half of \"finished\" worktrees were actually safe.\n","A fixed checklist so wrap-up doesn't depend on remembering. Run the steps in order; skip a step only when it plainly doesn't apply, and say so.\n\n**Invoker precedence.** If the user's instruction contradicts a default here (\"just commit, skip the rest\"), they win.\n\n---\n\n## 1. Snapshot the tree\n\n```bash\ngit status --porcelain -u    # -u is load-bearing: untracked files are where stray work hides\ngit log --oneline -1\ngit branch --show-current\n```\n\nNot a git repo → skip steps 1–3, note it, continue.\n\n## 2. Classify every changed file\n\n- **SESSION** — this session touched it via Write\u002FEdit\u002FBash. Your tool history is the source of truth.\n- **USER** — changed, but you never touched it.\n- **AMBIGUOUS** — a broad command (`go fmt .\u002F...`, a codegen script) may have touched it.\n\nWhen unsure, mark AMBIGUOUS. Erring toward the user is cheap; auto-committing something they were mid-edit on is not.\n\n## 3. Commit SESSION files only\n\n- Stage **by explicit name**. Never `git add -A`, `.`, or `-u`.\n- Match the repo's commit style — check `git log -5 --oneline`.\n- Multiple logical changes → multiple commits.\n- **Never push.** Never amend or squash.\n\nUSER and AMBIGUOUS files are **never** auto-committed. Surface them (§6) instead.\n\n## 4. Review this session's drafts\n\n```bash\nls ~\u002Fdev\u002Fagent-os\u002Fworkspaces\u002Fdrafts\u002F\u003Cproject>\u002F\u003Csession>\u002F\n```\n\nFor each draft, present one line and ask where it goes:\n\n> `boot-arch.md` — promote to Tesseract \u002F promote to repo docs \u002F keep drafting \u002F discard?\n\nOn promote: write it to its real home (`knowledge_write` for inward, repo + PR for outward), then move the draft to `~\u002Fdev\u002Fagent-os\u002Farchive\u002Fdrafts\u002F\u003Cproject>\u002F\u003CYYYY-MM-DD>\u002F`.\n\n**Never self-promote.** No drafts → skip silently.\n\n## 5. Capture durable signal\n\nScan this session's tracking files and your own history for content matching these headings, and route each:\n\n| Found | Skill |\n|---|---|\n| `## Decisions` \u002F `## Decisions locked` | `\u002Fcapture-decision` |\n| `## Follow-ups` \u002F `## Follow-up candidates` | `\u002Fcapture-followup` |\n| `## Known limitations` \u002F `## Preserved tech debt` \u002F `## Out of scope` (with rationale) | `\u002Fcapture-limitation` |\n\nThe capture skills dedup themselves. Skip entirely on a trivial session — no commits, no decisions, nothing deferred.\n\n**Capture signal, not narration.** If a future session wouldn't search for it, don't write it.\n\n## 6. Surface anything needing a decision\n\nFor each USER\u002FAMBIGUOUS file, and anything else unresolved, use exactly this:\n\n> Hey, noticed **{thing}** — {1–3 lines, facts only}. Want me to:\n> - **A) Go into detail**\n> - **B) Capture for later** (`\u002Fcapture-followup`)\n> - **C) Add a follow-up task** (Torque)\n\nState the discovery as fact. No opinion, no recommended pick, no yes\u002Fno substitute. Pose one at a time and **wait**.\n\nBatch tightly-related files into one surface. If a directory holds many pre-existing files this session didn't touch, that's baseline — give a one-line count, don't enumerate.\n\n## 7. Reconcile Torque\n\nIf the session advanced tracked work:\n\n```\ntorque_task_list  project_id=\u003Cid>  status=todo,doing,review\n```\n\nThe shape to look for is a task carrying a comment newer than its own last\nstatus change — work was logged and the status did not follow. The Stop hook\nsurfaces these too; this step is the deliberate pass over the same set.\n\nMatch against what actually happened. Stale status → surface via §6 (option A\ntransitions it). Never auto-transition.\n\nTorque refuses `todo → done` directly, so a task that skipped the middle walks\n`todo → doing → review → done`.\n\nTorque is the tracker — `mcp__mux__torque_*`.\n\n## 8. Write the session-close record\n\n**This is what the next session reads.** `\u002Fboot-prompt` pulls the most recent record for this project when orienting — if nothing writes them, there's nothing current to pull.\n\nWrite only what no tool can regenerate. Commits come from git, task state from Torque, decisions and limitations from the captures in §5. Three things don't:\n\n```\nknowledge_write\n  namespace       = user\u002Fchrispian\u002Fknowledge\u002Fsession-close\u002F\u003Cproject>\n  key             = \u003Csession_id>\n  kind            = session_close\n  source          = agent\n  pointer_scheme  = nil\n  pointer_locator = \u003Cproject>\n  summary         = one line: what shipped, what's still open\n  tags            = [\"session-close\", \"\u003Cproject>\", \"\u003Crole-if-any>\"]\n  session_id      = \u003Csession_id>\n  body            = the three sections below\n```\n\n**Tag it with the project**, so a scoped lookup finds it. If the session ran under a named role, tag that too.\n\n```markdown\n## Next\n- \u003Cwhat you'd pick up first, and why it's first>\n\n## Narrative\n\u003C3–5 sentences, written while context is hot. What a cold agent needs to feel\n oriented: the shape of the session, where the risk sits, what surprised you.\n This goes into the next boot close to verbatim.>\n\n## Ruled out\n- \u003Chypothesis, and what disproved it>\n```\n\n**`## Next` is a suggestion, not a dispatch.** It says what you'd do next and why — it is not a prompt for another agent. If this session feeds a *specific* next session in a workflow chain, compose that agent's prompt instead: `agent-setup\u002Fbin\u002Fprompt.sh \u003Crole> --vars`. The two are different artifacts and both can be right.\n\n**`## Ruled out` is the section that pays.** Anyone can re-find the root cause given time; what's expensive is re-eliminating the six things it wasn't.\n\n**Skip on a trivial session** — no commits, no decisions, nothing deferred. A record saying \"read some files\" is noise in the next boot.\n\n## 9. Report\n\n```\nEnd of session — {branch} @ {sha}\n\nCommitted:  {sha} {subject}\nDrafts:     {n promoted, n still in flight | none}\nCaptured:   {n decisions, n follow-ups | none}\nOpen:       {n items awaiting your decision | nothing}\n```\n\nOmit empty lines. Fully clean session → `All clean. Nothing to commit, nothing to surface.`\n\n---\n\n## Do not\n\n- **Do not write a boot-prompt file.** Boot context is materialized — see `\u002Fboot-prompt`. The session-close *record* (§8) is different: it's append-only and timestamped, so boot pulls the newest and a stale one is visibly stale. A boot-prompt *file* has exactly one copy that is silently either current or wrong.\n- **Do not invoke `\u002Fboot-prompt`** unless the user asks.\n- **Do not run mid-task** to check status. This is wrap-up, not a progress report.\n- **Do not push, open PRs, run tests, or clean worktrees.** All separate, explicit actions.\n\n## Worktree note\n\nIf asked to clean worktrees: remove only those **merged AND clean**. Anything with unmerged commits or uncommitted changes gets surfaced, never silently deleted. Measured on one repo, only half of \"finished\" worktrees were actually safe.\n",{"name":5,"description":7},"main","4d3ddf194110203bd376288a9f00b929adde0941","testdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Fend-of-session","https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn","https:\u002F\u002Fgithub.com\u002Fhollis-labs","https:\u002F\u002Fhollislabs.com","2026-10-21 10:01:20",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add hollis-labs\u002Fcairn --skill end-of-session",{"tool":37,"command":38},"bunx","bunx skills add hollis-labs\u002Fcairn --skill end-of-session",{"tool":40,"command":41},"pnpm","pnpm dlx skills add hollis-labs\u002Fcairn --skill end-of-session","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn\u002Fblob\u002Fmain\u002Ftestdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Fend-of-session\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7ACJ1YWNE6ZCA132MJKP2HW","tangent","Open a browser workflow when chat is the wrong shape for structured input — triaging many items with one decision, multi-question feedback, or design review. Requires the Tangent MCP server.","https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn\u002Fblob\u002Fmain\u002Ftestdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Ftangent\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7ACJ0NBAZZJGXSK34867QDF","release","Cut a release. Use before git tag or gh release create.","https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn\u002Fblob\u002Fmain\u002Ftestdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Frelease\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7ACHYYDW52TJX9QYTDA6FVP","push","Push work off this machine. Use before any git push.","https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn\u002Fblob\u002Fmain\u002Ftestdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Fpush\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7ACHVTQKTQSVQ32FWJWVFMW","pull-request","Open a pull request. Use before gh pr create.","https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn\u002Fblob\u002Fmain\u002Ftestdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Fpull-request\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7ACHNSHWYHVT7B04TS6JB32","commit","Commit work in a tree another session may be using. Use before any git commit.","https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn\u002Fblob\u002Fmain\u002Ftestdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Fcommit\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7ACHH4XPDVQ1AEZHAFC4R0C","capture-limitation","Record a known limitation, preserved tech debt, or a scope fence with its rationale to Tesseract. Use when a change deliberately does not fix something, or a \"## Known limitations\" \u002F \"## Out of scope\" section lands in a tracking file.","https:\u002F\u002Fgithub.com\u002Fhollis-labs\u002Fcairn\u002Fblob\u002Fmain\u002Ftestdata\u002Fgoldens\u002Ftrees\u002Finstall\u002Fbase\u002F.claude\u002Fskills\u002Fcapture-limitation\u002FSKILL.md",[],[]]