[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E5DN4AWZ29GJZJB0EE2HGG":3,"skill-same:01M7E5DN4AWZ29GJZJB0EE2HGG":49},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":34,"install":35,"resources":48},"01M7E5DN4AWZ29GJZJB0EE2HGG","speckit-ext-finalize",null,"Spec-kit workflow command: speckit-ext-finalize","stefanwalther\u002Fghn","stefanwalther","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F669728?v=4","01M7E59BWN972ZZWN6SJ3RBZS8","Stefan Walther","01M7E59BX6XCFE72NWR5BN5M78",1,"MIT","https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-finalize\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: speckit-ext-finalize\ndescription: 'Spec-kit workflow command: speckit-ext-finalize'\ncompatibility: Requires spec-kit project structure with .specify\u002F directory\nmetadata:\n  author: github-spec-kit\n  source: ext:commands\u002Fspeckit.ext.finalize.md\n---\n\n## When to Use This Extension\n\n**Use `\u002Fspeckit.ext.finalize` (this command) for routine features.** This is the lightweight, fast option (~2-5 min) that cleans up transient files and updates workspace docs. Use it for most PRs.\n\n**Use `\u002Fspeckit.ext.closeout` for complex features.** That's the heavyweight option (15-20 min) that creates COMPLETION.md and HANDOVER.md for knowledge transfer. Use it when someone else will maintain the code or you need to document lessons learned.\n\n**Quick decision**: If you're not sure, use this command. You can always run closeout later via the handoff if you decide you need more documentation.\n\n---\n\n## User Input\n\n```text\n$ARGUMENTS\n```\n\nYou **MUST** consider the user input before proceeding (if not empty).\n\n## Outline\n\nThis extension finalizes a feature before PR creation by cleaning up transient files and updating workspace documentation. It combines cleanup and update-workspace into a single streamlined command.\n\n**Core Principle**: One command to polish the deliverable before PR.\n\n### Execution Steps\n\n1. **Parse Arguments and Detect Feature**\n\na. **Parse Arguments**:\n   - Extract spec directory if provided\n   - `--dry-run`: Preview changes without applying\n   - `--skip-docs`: Skip workspace documentation updates\n   - If `--help`: Display usage and exit\n\nb. **Auto-detect Feature** (if no directory provided):\n   - Get current branch: `git rev-parse --abbrev-ref HEAD`\n   - Extract feature number from branch name\n   - Find matching spec directory: `specs\u002F{number}-*`\n\nc. **Validate Feature Directory**:\n   - Check directory exists\n   - Check spec.md exists (minimum requirement)\n\n**Display**:\n```\n=== Feature Finalization ===\n\nFeature: #{number} - {title}\nBranch: {branch-name}\nSpec: specs\u002F{number}-{name}\u002F\n\nThis will:\n1. Remove transient files (SESSION*.md, PR_*.md, etc.)\n2. Update workspace docs (README, roadmap)\n\nContinue? [Y\u002Fn]\n```\n\n2. **Cleanup: Remove Transient Files**\n\nRemove files that are noise in the final PR.\n\na. **Identify Transient Files**:\n   Use Glob to find in spec directory:\n   - `SESSION*.md` - Session handovers\n   - `*-NEXT-SESSION*.md` - Session prompts\n   - `STATUS-*.md` - Status snapshots\n   - `PR_*.md`, `PR-*.md` - PR descriptions (will be in GitHub)\n   - `*-draft-*.md` - Draft versions\n   - `COMPLETION-PHASE*.md` - Interim completions\n   - `GREEN-STATUS.md`, `REBASE-COMPLETE.md` - One-time markers\n\nb. **Content Review** (for safety):\n   For each file found:\n   - Read content briefly\n   - Check for red flags: \"IMPORTANT\", \"CRITICAL\", \"DECISION\", \"ARCHITECTURE\"\n   - If red flags found: Mark as KEEP with warning\n\nc. **Preserve Core Files**:\n   Never delete:\n   - `spec.md`, `plan.md`, `tasks.md`\n   - `COMPLETION.md`, `HANDOVER.md`\n   - `research.md`, `data-model.md`\n   - `checklists\u002F`, `decisions\u002F`, `contracts\u002F`\n\nd. **Execute Cleanup** (unless --dry-run):\n   - Delete identified transient files\n   - Report what was removed\n\n**Output**:\n```\nCleanup:\n✓ Removed 5 transient files:\n  - SESSION1.md\n  - SESSION2.md\n  - STATUS-2026-01-14.md\n  - PR_DESCRIPTION.md\n  - draft-api-design.md\n✓ Preserved 4 core files\n```\n\n3. **Update Workspace Documentation**\n\nUpdate README.md and roadmap with the completed feature.\n\na. **Extract Feature Information**:\n   From spec.md:\n   - Feature title\n   - Description\u002Fsummary\n   - Status\n\n   From git:\n   - Completion date: `git log -1 --format=%cs`\n   - Files changed: `git diff --stat main...HEAD`\n\nb. **Discover Documentation Files**:\n   Use Glob to find:\n   - `README.md` (repository root)\n   - `docs\u002F*.md`, `doc\u002F*.md`\n   - `CHANGELOG.md`, `ROADMAP.md`\n\nc. **Prompt for Feature Description**:\n   Use AskUserQuestion:\n   ```\n   Brief description of this feature for README\u002Froadmap (1-2 sentences):\n   ```\n\nd. **Update Files** (unless --skip-docs or --dry-run):\n\n   For README.md with milestone section:\n   - Find \"## Completed\" or similar section\n   - Add row: `| **{title}** | Done | {date} | {description} |`\n\n   For CHANGELOG.md:\n   - Add entry under `## [Unreleased]` or create section\n   - Format: `### Added\\n- {feature title}: {description}`\n\ne. **Create Backups**:\n   Before editing: `cp {file} {file}.backup`\n\n**Output**:\n```\nDocumentation:\n✓ Updated README.md (added milestone)\n✓ Updated CHANGELOG.md (added entry)\n  Backups created: README.md.backup, CHANGELOG.md.backup\n```\n\n4. **Present Summary**\n\n```\n=== Finalization Complete ===\n\nFeature: #{number} - {title}\n\nCleanup:\n✓ Removed {N} transient files\n✓ Preserved {M} core files\n\nDocumentation:\n✓ README.md updated\n✓ CHANGELOG.md updated\n\nNext Steps:\n1. Review changes: git diff\n2. Create PR: \u002Fspeckit.ext.pr\n\nNeed documentation artifacts? Run \u002Fspeckit.ext.closeout first (creates COMPLETION.md + HANDOVER.md)\n```\n\n## Usage Examples\n\n```bash\n# Finalize current feature (auto-detect)\n\u002Fspeckit.ext.finalize\n\n# Finalize specific feature\n\u002Fspeckit.ext.finalize specs\u002F004-validate\u002F\n\n# Preview without changes\n\u002Fspeckit.ext.finalize --dry-run\n\n# Skip documentation updates (cleanup only)\n\u002Fspeckit.ext.finalize --skip-docs\n```\n\n## Notes\n\n- **Combines**: cleanup + update-workspace into one command\n- **Standalone components**: `\u002Fspeckit.ext.cleanup` and `\u002Fspeckit.ext.update-workspace` remain available for granular control\n- **Context preservation**: For full COMPLETION.md and HANDOVER.md, use `\u002Fspeckit.ext.closeout`\n- **Idempotent**: Safe to run multiple times\n- **Backups**: Always creates .backup files before editing","## When to Use This Extension\n\n**Use `\u002Fspeckit.ext.finalize` (this command) for routine features.** This is the lightweight, fast option (~2-5 min) that cleans up transient files and updates workspace docs. Use it for most PRs.\n\n**Use `\u002Fspeckit.ext.closeout` for complex features.** That's the heavyweight option (15-20 min) that creates COMPLETION.md and HANDOVER.md for knowledge transfer. Use it when someone else will maintain the code or you need to document lessons learned.\n\n**Quick decision**: If you're not sure, use this command. You can always run closeout later via the handoff if you decide you need more documentation.\n\n---\n\n## User Input\n\n```text\n$ARGUMENTS\n```\n\nYou **MUST** consider the user input before proceeding (if not empty).\n\n## Outline\n\nThis extension finalizes a feature before PR creation by cleaning up transient files and updating workspace documentation. It combines cleanup and update-workspace into a single streamlined command.\n\n**Core Principle**: One command to polish the deliverable before PR.\n\n### Execution Steps\n\n1. **Parse Arguments and Detect Feature**\n\na. **Parse Arguments**:\n   - Extract spec directory if provided\n   - `--dry-run`: Preview changes without applying\n   - `--skip-docs`: Skip workspace documentation updates\n   - If `--help`: Display usage and exit\n\nb. **Auto-detect Feature** (if no directory provided):\n   - Get current branch: `git rev-parse --abbrev-ref HEAD`\n   - Extract feature number from branch name\n   - Find matching spec directory: `specs\u002F{number}-*`\n\nc. **Validate Feature Directory**:\n   - Check directory exists\n   - Check spec.md exists (minimum requirement)\n\n**Display**:\n```\n=== Feature Finalization ===\n\nFeature: #{number} - {title}\nBranch: {branch-name}\nSpec: specs\u002F{number}-{name}\u002F\n\nThis will:\n1. Remove transient files (SESSION*.md, PR_*.md, etc.)\n2. Update workspace docs (README, roadmap)\n\nContinue? [Y\u002Fn]\n```\n\n2. **Cleanup: Remove Transient Files**\n\nRemove files that are noise in the final PR.\n\na. **Identify Transient Files**:\n   Use Glob to find in spec directory:\n   - `SESSION*.md` - Session handovers\n   - `*-NEXT-SESSION*.md` - Session prompts\n   - `STATUS-*.md` - Status snapshots\n   - `PR_*.md`, `PR-*.md` - PR descriptions (will be in GitHub)\n   - `*-draft-*.md` - Draft versions\n   - `COMPLETION-PHASE*.md` - Interim completions\n   - `GREEN-STATUS.md`, `REBASE-COMPLETE.md` - One-time markers\n\nb. **Content Review** (for safety):\n   For each file found:\n   - Read content briefly\n   - Check for red flags: \"IMPORTANT\", \"CRITICAL\", \"DECISION\", \"ARCHITECTURE\"\n   - If red flags found: Mark as KEEP with warning\n\nc. **Preserve Core Files**:\n   Never delete:\n   - `spec.md`, `plan.md`, `tasks.md`\n   - `COMPLETION.md`, `HANDOVER.md`\n   - `research.md`, `data-model.md`\n   - `checklists\u002F`, `decisions\u002F`, `contracts\u002F`\n\nd. **Execute Cleanup** (unless --dry-run):\n   - Delete identified transient files\n   - Report what was removed\n\n**Output**:\n```\nCleanup:\n✓ Removed 5 transient files:\n  - SESSION1.md\n  - SESSION2.md\n  - STATUS-2026-01-14.md\n  - PR_DESCRIPTION.md\n  - draft-api-design.md\n✓ Preserved 4 core files\n```\n\n3. **Update Workspace Documentation**\n\nUpdate README.md and roadmap with the completed feature.\n\na. **Extract Feature Information**:\n   From spec.md:\n   - Feature title\n   - Description\u002Fsummary\n   - Status\n\n   From git:\n   - Completion date: `git log -1 --format=%cs`\n   - Files changed: `git diff --stat main...HEAD`\n\nb. **Discover Documentation Files**:\n   Use Glob to find:\n   - `README.md` (repository root)\n   - `docs\u002F*.md`, `doc\u002F*.md`\n   - `CHANGELOG.md`, `ROADMAP.md`\n\nc. **Prompt for Feature Description**:\n   Use AskUserQuestion:\n   ```\n   Brief description of this feature for README\u002Froadmap (1-2 sentences):\n   ```\n\nd. **Update Files** (unless --skip-docs or --dry-run):\n\n   For README.md with milestone section:\n   - Find \"## Completed\" or similar section\n   - Add row: `| **{title}** | Done | {date} | {description} |`\n\n   For CHANGELOG.md:\n   - Add entry under `## [Unreleased]` or create section\n   - Format: `### Added\\n- {feature title}: {description}`\n\ne. **Create Backups**:\n   Before editing: `cp {file} {file}.backup`\n\n**Output**:\n```\nDocumentation:\n✓ Updated README.md (added milestone)\n✓ Updated CHANGELOG.md (added entry)\n  Backups created: README.md.backup, CHANGELOG.md.backup\n```\n\n4. **Present Summary**\n\n```\n=== Finalization Complete ===\n\nFeature: #{number} - {title}\n\nCleanup:\n✓ Removed {N} transient files\n✓ Preserved {M} core files\n\nDocumentation:\n✓ README.md updated\n✓ CHANGELOG.md updated\n\nNext Steps:\n1. Review changes: git diff\n2. Create PR: \u002Fspeckit.ext.pr\n\nNeed documentation artifacts? Run \u002Fspeckit.ext.closeout first (creates COMPLETION.md + HANDOVER.md)\n```\n\n## Usage Examples\n\n```bash\n# Finalize current feature (auto-detect)\n\u002Fspeckit.ext.finalize\n\n# Finalize specific feature\n\u002Fspeckit.ext.finalize specs\u002F004-validate\u002F\n\n# Preview without changes\n\u002Fspeckit.ext.finalize --dry-run\n\n# Skip documentation updates (cleanup only)\n\u002Fspeckit.ext.finalize --skip-docs\n```\n\n## Notes\n\n- **Combines**: cleanup + update-workspace into one command\n- **Standalone components**: `\u002Fspeckit.ext.cleanup` and `\u002Fspeckit.ext.update-workspace` remain available for granular control\n- **Context preservation**: For full COMPLETION.md and HANDOVER.md, use `\u002Fspeckit.ext.closeout`\n- **Idempotent**: Safe to run multiple times\n- **Backups**: Always creates .backup files before editing",{"name":5,"metadata":24,"description":7,"compatibility":27},{"author":25,"source":26},"github-spec-kit","ext:commands\u002Fspeckit.ext.finalize.md","Requires spec-kit project structure with .specify\u002F directory","main","2045797696f3923d9e47519e2302e944260b2266",".specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-finalize",0,"https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn","https:\u002F\u002Fgithub.com\u002Fstefanwalther","2026-11-15 06:19:35",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add stefanwalther\u002Fghn --skill speckit-ext-finalize",{"tool":41,"command":42},"bunx","bunx skills add stefanwalther\u002Fghn --skill speckit-ext-finalize",{"tool":44,"command":45},"pnpm","pnpm dlx skills add stefanwalther\u002Fghn --skill speckit-ext-finalize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-finalize\u002FSKILL.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M7E5EJAJD6R57EE4YSMDJWMP","speckit-ext-validate","Pre-merge validation and quality gate for feature completion","https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-validate\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7E5EFW37C0QJ0VZZG7SAWHD","speckit-ext-update-workspace","Update workspace documentation after feature completion","https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-update-workspace\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M7E5EBDFYZPMJ1HM484EH8K8","speckit-ext-session-handover","Mid-implementation context handover with proactive monitoring and continuation prompts","https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-session-handover\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7E5E92Y08ME10QRAW8T0ES9","speckit-ext-scope-change","Document scope changes and ad-hoc additions during feature implementation","https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-scope-change\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7E5E3DJ0B3B0FHF0YQAE2JV","speckit-ext-pr","Create a pull request for spec-kit features with agent-based workflow and spec-kit context awareness","https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-pr\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7E5E1B26HH69228R8MD54H5","speckit-ext-post-merge","Spec-kit workflow command: speckit-ext-post-merge","https:\u002F\u002Fgithub.com\u002Fstefanwalther\u002Fghn\u002Fblob\u002Fmain\u002F.specify\u002Fextensions\u002Fext\u002F.specify-dev\u002Fagent-commands\u002Fclaude\u002Fspeckit-ext-post-merge\u002FSKILL.md",[],[]]