[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M754MDNMQCCZDQDJD91SR8CQ":3,"skill-same:01M754MDNMQCCZDQDJD91SR8CQ":64},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M754MDNMQCCZDQDJD91SR8CQ","session-closeout",null,"Preserve durable lessons and produce an archive-safety receipt before ending, clearing, or archiving an agent task. Use without being asked when a task reaches its finish line (its PR merged and its worktree removed, or the deliverable handed over), and when the operator says close out, wrap up, end the session, prepare the task for archive, make it archive-ready, or invokes $session-closeout after substantive work.","nino-chavez\u002Fagentic-ways-of-working","nino-chavez","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12718755?v=4","01M754JW20GYYZXXN5MCEDN4ZF","Nino Chavez","01M754JW30HW4WBYC09HN1HCEX",2,"MIT","https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fsession-closeout\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: session-closeout\ndescription: Preserve durable lessons and produce an archive-safety receipt before ending, clearing, or archiving an agent task. Use without being asked when a task reaches its finish line (its PR merged and its worktree removed, or the deliverable handed over), and when the operator says close out, wrap up, end the session, prepare the task for archive, make it archive-ready, or invokes $session-closeout after substantive work.\n---\n\n# Session Closeout\n\nKeep what should survive the task without treating the full transcript as permanent memory.\n\n## Workflow\n\n1. Reconstruct the outcome from the workspace and external receipts. Inspect the relevant status, diff, tests, artifacts, and deployment evidence. Treat prior summaries as leads, not proof.\n2. Sort the residue:\n   - stable project truth that belongs in an existing canonical document;\n   - a reusable method that belongs in the configured memory or recipe store;\n   - chronology that can disappear with the transcript;\n   - unresolved work, secrets, private material, or unverified claims that block safe archival.\n3. Decide the fate of the workspace this task created. List each linked worktree, branch, file written outside git, and running dev server, database stack, or browser tab the task started (`git worktree list`, `git branch`, `git status --porcelain` in each checkout it wrote to, the session scratchpad, the commands it ran). Give each exactly one disposition and record it:\n   - merged into the base branch, or landed by squash or cherry-pick (confirm with `git cherry \u003Cbase> \u003Cbranch>` or a content check): remove the worktree with `git worktree remove` (no `--force`) and delete the local branch. If git refuses because the worktree contains submodules, `git worktree remove --force` is correct once `git status --porcelain` in it prints nothing. Never run `git submodule deinit` in a linked worktree: it unregisters the main checkout's submodules too;\n   - commits not in the base branch: push the branch so the work is not only on this machine, and name the open PR or the reason it stays open;\n   - uncommitted changes: commit them to the task's branch, or state why they are discarded. Never leave them undecided;\n   - evidence in an ignored folder that is still needed (`.artifacts\u002F`, receipts, a backup app): move it to the repository-level `.artifacts\u002F` or a canonical document before removing the worktree, and name what was kept;\n   - a process the task started: stop it.\n   - a file the task wrote outside git (the session scratchpad, `\u002Ftmp`, a notes or handoff folder, an untracked file in a shared checkout, an external drive): delete it, or first move it to a durable home (the repository, a tools folder, or beside the thing it records) and name where. A receipt that memory or a document points to must live somewhere that outlives the session; a scratchpad or an app-managed notes folder does not.\n   - a worktree or ignored folder that a build or release depends on: lock it with `git worktree lock --reason \"\u003Cwhat depends on it>\"`, or move the dependency to the repository-level `.artifacts\u002F`. A note in memory protects nothing; the reaper and fleet sweeps skip locked worktrees.\n   Touch only what this task created. Leave a worktree held by a live session, a locked one, and the worktree this session is running in (its host removes that one). Report anything you could not decide. Reclaiming build output in idle worktrees is the reaper's job, not this step's.\n4. Scan this session's transcript for credentials. Run it after step 3, so it also covers the commands the closeout ran. In Claude Code:\n\n   ```bash\n   python3 \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fsecret-scan.py\" --session-id \"${CLAUDE_SESSION_ID}\"\n   ```\n\n   Codex fills in neither variable, so that command fails there. In Codex, run `scripts\u002Fsecret-scan.py` from this skill's directory with `--session-id \"$CODEX_THREAD_ID\"`; Codex names each rollout file after that thread id. In any other harness, pass `--transcript \u003Cthis session's file>`. With no arguments the script takes the newest session for the current folder. In every case, check that the `Scanned:` line names this session. The scan prints names and line numbers, never values. Do not print or quote a value to judge a finding.\n   - Exit 0 is clean. Exit 2 means the scan did not run, which is not clean.\n   - `live` means a credential that is current in this environment was printed into the transcript. You cannot rotate it. Make rotating it the receipt's next step.\n   - Any other finding: it was rotated, or it is not a credential (a test fixture, a public client key, documentation). Say which. Otherwise treat it like `live`.\n5. Prefer an existing source of truth over a new recap file. Update it only when the task already authorized the underlying change. Never manufacture human approval, readiness, or evidence.\n6. Save a reusable recipe only when another task is likely to benefit. Use the project's documented memory command or knowledge store. If `~\u002F.config\u002Fsession-closeout\u002Frecipe-store.md` exists, it names this machine's store for each harness; follow it. Keep the entry short, sourced, and free of raw private text. If no durable recipe exists, save none.\n7. Confirm the transcript has been queued or ingested by the configured lifecycle hook. Do not perform mining inside the hook; the hook should enqueue identity and return quickly.\n8. Do not archive or delete the task. Give the operator the receipt and let them take the irreversible action.\n\n## Required receipt\n\nThe receipt is your closing message, written as Markdown that the reader takes in at a glance. Never wrap it in a code block: a fence renders as one monospace run with no links and no bold. Do not put a recap above it that repeats it. Keep every label, and write \"none\" or \"nothing\" instead of dropping one, so the reader can tell an empty answer from a forgotten one.\n\n```markdown\n### Archive-safe: \u003Cyes|no>. \u003CFor yes, a short reason, such as \"Ready to archive.\" For no, the blocker.>\n\n**Your next step:** \u003Cone concrete action, or none>.\n\n**What landed**\n- [\u003Crepo>#\u003Cnumber>](\u003Cfull PR URL>): \u003Cwhat it changed, in plain words>\n\n**Still open:** \u003Ceach claim not yet proven, or item waiting on someone; or nothing>\n\n**Saved for later:** \u003Ceach canonical document, memory, or recall recipe updated, and what it holds; or nothing new>\n\n**Checks**\n- Secret scan: \u003Cclean; or each finding (kind and name) with its disposition; or error>\n- Evidence: \u003Chow you verified what landed>\n- Cleanup: \u003Ceach worktree, branch, process, and file outside git this task created, with its disposition; or none>\n```\n\nWhen the answer is `no`, the first line names the blocker, and the next step clears it. Example: `### Archive-safe: no. A live token was printed into this transcript.` then `**Your next step:** rotate the Cloudflare token.`\n\nWrite it to be read, not parsed:\n\n- One item per bullet, about 15 words or fewer after the link. A label with one short answer keeps it on the label's line; two or more become bullets.\n- Link every PR with short text, `[repo#number](full URL)`, then say what it changed. In the desktop app, link text of the form `owner\u002Frepo#number` turns into a wide chip with a truncated commit title and a cached state that can be stale (a merged PR showed as open). Short link text stays a plain link, and the plain clause carries the meaning.\n- When more than about six items landed, list the ones that change behavior and fold the rest into one bullet, such as \"Follow-ups, all merged:\" and their links.\n- Group cleanup by disposition when several items share one (\"4 task branches merged; their worktrees and branches removed\").\n- Use backticks only for a path, SHA, or command the reader would copy.\n- The verdict is the only heading: bold barely shows in the app's dark theme, and the heading also marks where the receipt starts. No other headings, no tables (long cells wrap badly in a chat column), no nested lists. Fit the receipt on one screen.\n\nSet `Archive-safe: yes` only when the durable lesson is stored, the secret scan exited 0 or every finding is rotated or shown not to be a credential, evidence is named, every worktree, branch, process, and file outside git the task created has a recorded disposition, no commit exists only on this machine, nothing still needed lives only in a scratch location, and nothing requires the raw transcript to resume safely.\n","# Session Closeout\n\nKeep what should survive the task without treating the full transcript as permanent memory.\n\n## Workflow\n\n1. Reconstruct the outcome from the workspace and external receipts. Inspect the relevant status, diff, tests, artifacts, and deployment evidence. Treat prior summaries as leads, not proof.\n2. Sort the residue:\n   - stable project truth that belongs in an existing canonical document;\n   - a reusable method that belongs in the configured memory or recipe store;\n   - chronology that can disappear with the transcript;\n   - unresolved work, secrets, private material, or unverified claims that block safe archival.\n3. Decide the fate of the workspace this task created. List each linked worktree, branch, file written outside git, and running dev server, database stack, or browser tab the task started (`git worktree list`, `git branch`, `git status --porcelain` in each checkout it wrote to, the session scratchpad, the commands it ran). Give each exactly one disposition and record it:\n   - merged into the base branch, or landed by squash or cherry-pick (confirm with `git cherry \u003Cbase> \u003Cbranch>` or a content check): remove the worktree with `git worktree remove` (no `--force`) and delete the local branch. If git refuses because the worktree contains submodules, `git worktree remove --force` is correct once `git status --porcelain` in it prints nothing. Never run `git submodule deinit` in a linked worktree: it unregisters the main checkout's submodules too;\n   - commits not in the base branch: push the branch so the work is not only on this machine, and name the open PR or the reason it stays open;\n   - uncommitted changes: commit them to the task's branch, or state why they are discarded. Never leave them undecided;\n   - evidence in an ignored folder that is still needed (`.artifacts\u002F`, receipts, a backup app): move it to the repository-level `.artifacts\u002F` or a canonical document before removing the worktree, and name what was kept;\n   - a process the task started: stop it.\n   - a file the task wrote outside git (the session scratchpad, `\u002Ftmp`, a notes or handoff folder, an untracked file in a shared checkout, an external drive): delete it, or first move it to a durable home (the repository, a tools folder, or beside the thing it records) and name where. A receipt that memory or a document points to must live somewhere that outlives the session; a scratchpad or an app-managed notes folder does not.\n   - a worktree or ignored folder that a build or release depends on: lock it with `git worktree lock --reason \"\u003Cwhat depends on it>\"`, or move the dependency to the repository-level `.artifacts\u002F`. A note in memory protects nothing; the reaper and fleet sweeps skip locked worktrees.\n   Touch only what this task created. Leave a worktree held by a live session, a locked one, and the worktree this session is running in (its host removes that one). Report anything you could not decide. Reclaiming build output in idle worktrees is the reaper's job, not this step's.\n4. Scan this session's transcript for credentials. Run it after step 3, so it also covers the commands the closeout ran. In Claude Code:\n\n   ```bash\n   python3 \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fsecret-scan.py\" --session-id \"${CLAUDE_SESSION_ID}\"\n   ```\n\n   Codex fills in neither variable, so that command fails there. In Codex, run `scripts\u002Fsecret-scan.py` from this skill's directory with `--session-id \"$CODEX_THREAD_ID\"`; Codex names each rollout file after that thread id. In any other harness, pass `--transcript \u003Cthis session's file>`. With no arguments the script takes the newest session for the current folder. In every case, check that the `Scanned:` line names this session. The scan prints names and line numbers, never values. Do not print or quote a value to judge a finding.\n   - Exit 0 is clean. Exit 2 means the scan did not run, which is not clean.\n   - `live` means a credential that is current in this environment was printed into the transcript. You cannot rotate it. Make rotating it the receipt's next step.\n   - Any other finding: it was rotated, or it is not a credential (a test fixture, a public client key, documentation). Say which. Otherwise treat it like `live`.\n5. Prefer an existing source of truth over a new recap file. Update it only when the task already authorized the underlying change. Never manufacture human approval, readiness, or evidence.\n6. Save a reusable recipe only when another task is likely to benefit. Use the project's documented memory command or knowledge store. If `~\u002F.config\u002Fsession-closeout\u002Frecipe-store.md` exists, it names this machine's store for each harness; follow it. Keep the entry short, sourced, and free of raw private text. If no durable recipe exists, save none.\n7. Confirm the transcript has been queued or ingested by the configured lifecycle hook. Do not perform mining inside the hook; the hook should enqueue identity and return quickly.\n8. Do not archive or delete the task. Give the operator the receipt and let them take the irreversible action.\n\n## Required receipt\n\nThe receipt is your closing message, written as Markdown that the reader takes in at a glance. Never wrap it in a code block: a fence renders as one monospace run with no links and no bold. Do not put a recap above it that repeats it. Keep every label, and write \"none\" or \"nothing\" instead of dropping one, so the reader can tell an empty answer from a forgotten one.\n\n```markdown\n### Archive-safe: \u003Cyes|no>. \u003CFor yes, a short reason, such as \"Ready to archive.\" For no, the blocker.>\n\n**Your next step:** \u003Cone concrete action, or none>.\n\n**What landed**\n- [\u003Crepo>#\u003Cnumber>](\u003Cfull PR URL>): \u003Cwhat it changed, in plain words>\n\n**Still open:** \u003Ceach claim not yet proven, or item waiting on someone; or nothing>\n\n**Saved for later:** \u003Ceach canonical document, memory, or recall recipe updated, and what it holds; or nothing new>\n\n**Checks**\n- Secret scan: \u003Cclean; or each finding (kind and name) with its disposition; or error>\n- Evidence: \u003Chow you verified what landed>\n- Cleanup: \u003Ceach worktree, branch, process, and file outside git this task created, with its disposition; or none>\n```\n\nWhen the answer is `no`, the first line names the blocker, and the next step clears it. Example: `### Archive-safe: no. A live token was printed into this transcript.` then `**Your next step:** rotate the Cloudflare token.`\n\nWrite it to be read, not parsed:\n\n- One item per bullet, about 15 words or fewer after the link. A label with one short answer keeps it on the label's line; two or more become bullets.\n- Link every PR with short text, `[repo#number](full URL)`, then say what it changed. In the desktop app, link text of the form `owner\u002Frepo#number` turns into a wide chip with a truncated commit title and a cached state that can be stale (a merged PR showed as open). Short link text stays a plain link, and the plain clause carries the meaning.\n- When more than about six items landed, list the ones that change behavior and fold the rest into one bullet, such as \"Follow-ups, all merged:\" and their links.\n- Group cleanup by disposition when several items share one (\"4 task branches merged; their worktrees and branches removed\").\n- Use backticks only for a path, SHA, or command the reader would copy.\n- The verdict is the only heading: bold barely shows in the app's dark theme, and the heading also marks where the receipt starts. No other headings, no tables (long cells wrap badly in a chat column), no nested lists. Fit the receipt on one screen.\n\nSet `Archive-safe: yes` only when the durable lesson is stored, the secret scan exited 0 or every finding is rotated or shown not to be a credential, evidence is named, every worktree, branch, process, and file outside git the task created has a recorded disposition, no commit exists only on this machine, nothing still needed lives only in a scratch location, and nothing requires the raw transcript to resume safely.\n",{"name":5,"description":7},"main","6ccdd47a6d908bb540b44198221fabf7a71f7bba","skills\u002Fsession-closeout",0,"https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working","https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working#readme","https:\u002F\u002Fgithub.com\u002Fnino-chavez","https:\u002F\u002Fninochavez.co","Enterprise Architect & AI Systems Designer | Action Sports Photographer. Building human-AI systems that scale.","2026-11-14 02:34:16",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add nino-chavez\u002Fagentic-ways-of-working --skill session-closeout",{"tool":40,"command":41},"bunx","bunx skills add nino-chavez\u002Fagentic-ways-of-working --skill session-closeout",{"tool":43,"command":44},"pnpm","pnpm dlx skills add nino-chavez\u002Fagentic-ways-of-working --skill session-closeout","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fsession-closeout\u002FSKILL.md",true,[48,54,60],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"agents\u002Fopenai.yaml","REFERENCE","参考文档",237,"https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fsession-closeout\u002Fagents\u002Fopenai.yaml",{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"scripts\u002Fsecret-scan.py","SCRIPT","脚本",11962,"https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fsession-closeout\u002Fscripts\u002Fsecret-scan.py",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"scripts\u002Ftest_secret_scan.py",13016,"https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fsession-closeout\u002Fscripts\u002Ftest_secret_scan.py",[65,72,79,86,93,100],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M754N3A73KPE25NE31Z2XP3M","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M754N16FXP38FVD365N0MFT4","write-a-skill","Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.","https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-a-skill\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M754MXZNPAN5VY4VGQT37APS","triage","Triage issues through a state machine driven by triage roles. Use when user wants to create an issue, triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.","https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M754MT24EMZEFB3M6VKZ0KZ1","tdd","Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions \"red-green-refactor\", wants integration tests, or asks for test-first development.","https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M754MMX5RP4494W44ZEN6YDX","symbol-surgery","Symbol-first refactoring discipline using the native LSP tool — locate by symbol, check blast radius before changing, edit at symbol boundaries, verify references after. Use when renaming, changing a signature, moving\u002Fextracting\u002Finlining, or deleting code that other code depends on; or whenever the question is \"where is this used and what breaks if I change it?\" Mechanical-execution complement to `deepen` (which decides what to refactor) and `simplify` (which decides what's clean).","https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fsymbol-surgery\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M754MGZR49W94V1SW4GTG20G","ship","Deploy, release, or run migrations against production for a project. Use when user says \"deploy\", \"ship\", \"push to prod\", \"release\", \"run the migration\", \"apply migrations\", or asks how a project gets deployed \u002F where it lives. Reads per-project DEPLOY.md as source of truth; falls back to inference + offer to scaffold one.","https:\u002F\u002Fgithub.com\u002Fnino-chavez\u002Fagentic-ways-of-working\u002Fblob\u002Fmain\u002Fskills\u002Fship\u002FSKILL.md",[],[]]