[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F4XG1N489CJZ9PASK1GTTY":3,"skill-same:01M7F4XG1N489CJZ9PASK1GTTY":52},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":45},"01M7F4XG1N489CJZ9PASK1GTTY","skill-finish-branch",null,"Wrap up a branch — run tests, create PR, merge or discard — use when implementation is done","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-finish-branch\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: skill-finish-branch\ndescription: \"Wrap up a branch — run tests, create PR, merge or discard — use when implementation is done\"\ndisable-model-invocation: true\n---\n\n> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.\n> Cross-reference commands use installed skill names in Codex rather than `\u002Focto:*` slash commands.\n> Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it.\n> For host tool equivalents, see `skills\u002Fblocks\u002Fcodex-host-adapter.md`.\n\n\n## Execution Contract (MANDATORY - CANNOT SKIP)\n\nThis generated Codex skill preserves an enforced workflow contract from the source skill.\n\n**PROHIBITED:**\n- Do not summarize, simulate, or skip the referenced workflow command when this skill requires execution.\n- Do not claim provider output or validation artifacts exist without checking the actual files or command output.\n- Do not continue silently when a required provider, command, or host capability is unavailable; report the unavailable dependency and use a supported fallback.\n\n\n# Finishing a Development Branch\n\n**Your first output line MUST be:** `🐙 **CLAUDE OCTOPUS ACTIVATED** - Branch Completion`\n\n## Overview\n\nFull ship pipeline: tests → multi-provider review → version bump → changelog → commit → push → PR.\n\n**Core principle:** Verify tests → Review diff → Bump version → Update changelog → Present options → Execute choice → Clean up.\n\n\n## The Process\n\n### Step 1: Verify Tests Pass\n\n**Before anything else, verify tests pass:**\n\n```bash\n# Detect and run project's test suite\nif [[ -f \"package.json\" ]]; then npm test\nelif [[ -f \"pytest.ini\" ]] || [[ -f \"pyproject.toml\" ]]; then pytest\nelif [[ -f \"Cargo.toml\" ]]; then cargo test\nelif [[ -f \"go.mod\" ]]; then go test .\u002F...\nelif [[ -f \"Makefile\" ]] && grep -q '^test:' Makefile; then make test\nfi\n```\n\n**If tests fail:** STOP. Show failures. Do not proceed.\n\n**If tests pass:** Continue to Step 2.\n\n\n### Step 2: Multi-Provider Diff Review\n\n**Run a quick multi-provider review of the changes before shipping.** This catches issues before they reach PR reviewers.\n\n```bash\n# Get the diff summary\nDIFF_STAT=$(git diff --stat $(git merge-base HEAD main)..HEAD)\nDIFF_FILES=$(git diff --name-only $(git merge-base HEAD main)..HEAD)\n```\n\n**Always run a quick review — this is automatic, not optional:**\n\n```bash\n# Quick review via orchestrate.sh (uses available providers)\n${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh spawn reviewer \"Review this diff for bugs, security issues, and code quality problems. Be concise — only flag real issues, not style preferences.\n\n$(git diff $(git merge-base HEAD main)..HEAD | head -500)\"\n```\n\n**If critical issues found:** Present them and ask whether to fix or ship anyway.\n**If clean:** Continue to Step 3. Show a brief `✓ Review clean — no issues found`.\n\n\n### Step 3: Determine Base Branch & Version\n\n```bash\n# Identify the base branch\nBASE_BRANCH=$(git remote show origin 2>\u002Fdev\u002Fnull | grep 'HEAD branch' | awk '{print $NF}')\n[[ -z \"$BASE_BRANCH\" ]] && BASE_BRANCH=\"main\"\n\n# Check for VERSION file\nVERSION_FILE=\"\"\nfor f in VERSION version.txt package.json; do\n  [[ -f \"$f\" ]] && VERSION_FILE=\"$f\" && break\ndone\n```\n\n\n### Step 4: Version Bump & Changelog (Optional)\n\n**If a VERSION file or package.json exists**, offer to bump:\n\n```javascript\nAskUserQuestion({\n  questions: [{\n    question: \"Version bump?\",\n    header: \"Version\",\n    multiSelect: false,\n    options: [\n      {label: \"Patch (Recommended)\", description: \"Bug fixes, minor changes (1.2.3 → 1.2.4)\"},\n      {label: \"Minor\", description: \"New features, backward compatible (1.2.3 → 1.3.0)\"},\n      {label: \"Major\", description: \"Breaking changes (1.2.3 → 2.0.0)\"},\n      {label: \"Skip\", description: \"Don't bump version\"}\n    ]\n  }]\n})\n```\n\n**If bumping:** Update the version file and prepend a changelog entry summarizing the diff:\n\n```bash\n# Generate changelog entry from commits\nCOMMITS=$(git log --oneline $(git merge-base HEAD $BASE_BRANCH)..HEAD)\n# Prepend to CHANGELOG.md if it exists\n```\n\n\n### Step 5: Present Options\n\nPresent exactly these 4 options:\n\n```markdown\n✅ Ship ready. Tests passing. Review clean. What would you like to do?\n\n1. **Create PR** (Recommended) - Push and create a Pull Request for review\n2. **Merge locally** - Merge back to \u003Cbase-branch> on this machine\n3. **Keep as-is** - Leave the branch, I'll handle it later\n4. **Discard** - Delete this work permanently\n\nWhich option? (1-4)\n```\n\n**Keep options concise.** Don't add explanations unless asked.\n\n\n### Step 4: Execute Choice\n\n#### Option 1: Merge Locally\n\n```bash\n# Get current branch name\nFEATURE_BRANCH=$(git branch --show-current)\nBASE_BRANCH=\"main\"  # or detected base\n\n# Switch to base branch\ngit checkout $BASE_BRANCH\n\n# Pull latest\ngit pull origin $BASE_BRANCH\n\n# Merge feature branch\ngit merge $FEATURE_BRANCH\n\n# Verify tests on merged result\nnpm test  # or appropriate test command\n\n# If tests pass, delete feature branch\ngit branch -d $FEATURE_BRANCH\n```\n\n**Report:**\n```\n✅ Merged $FEATURE_BRANCH into $BASE_BRANCH\n✅ Tests pass on merged result\n✅ Feature branch deleted\n\nReady to push when you want: git push origin $BASE_BRANCH\n```\n\n\n#### Option 2: Create PR\n\n```bash\n# Get branch info\nFEATURE_BRANCH=$(git branch --show-current)\n\n# Push branch\ngit push -u origin $FEATURE_BRANCH\n\n# Create PR with a validated description file\nREPO_SLUG=$(gh repo view --json nameWithOwner --jq .nameWithOwner)\nPR_TITLE=${PR_TITLE:?Complete PR_TITLE before creating the pull request}\nCHANGE_SUMMARY=${CHANGE_SUMMARY:?Complete CHANGE_SUMMARY before creating the pull request}\nCHANGE_REASON=${CHANGE_REASON:?Complete CHANGE_REASON before creating the pull request}\nPR_BODY=$(cat \u003C\u003CEOF\n## Summary\n- ${CHANGE_SUMMARY}\n- ${CHANGE_REASON}\n\n## Test Plan\n- [x] Unit tests pass\n- [x] Manual verification done\n- [ ] Code review needed\nEOF\n)\nif ! \"${CLAUDE_PLUGIN_ROOT:-${HOME}\u002F.claude-octopus\u002Fplugin}\u002Fscripts\u002Fsafe-gh-comment.sh\" \\\n    --repo \"$REPO_SLUG\" pr-create \"$PR_TITLE\" \"$FEATURE_BRANCH\" - \u003C\u003C\u003C \"$PR_BODY\"; then\n  echo \"GitHub write state is unknown; check for an existing pull request before retrying:\" >&2\n  gh pr list --repo \"$REPO_SLUG\" --head \"$FEATURE_BRANCH\" --state all --json number,state,url || true\n  return 1 2>\u002Fdev\u002Fnull || exit 1\nfi\n```\n\n**Report:**\n```\n✅ Branch pushed to origin\u002F$FEATURE_BRANCH\n✅ PR created: https:\u002F\u002Fgithub.com\u002Fowner\u002Frepo\u002Fpull\u002F123\n\nBranch preserved for review process.\n```\n\n\n#### Option 3: Keep As-Is\n\n```\n✅ Keeping branch $FEATURE_BRANCH as-is.\n\nCurrent state:\n- Branch: $FEATURE_BRANCH\n- Commits ahead of $BASE_BRANCH: N\n- Tests: Passing\n\nWhen ready, you can:\n- Merge: git checkout main && git merge $FEATURE_BRANCH\n- PR: git push -u origin $FEATURE_BRANCH && gh pr create\n- Discard: git branch -D $FEATURE_BRANCH\n```\n\n**Do NOT clean up anything.**\n\n\n#### Option 4: Discard\n\n**Confirm first (REQUIRED):**\n\n```\n⚠️ This will PERMANENTLY delete:\n- Branch: $FEATURE_BRANCH\n- All commits:\n  - abc1234 feat: add user validation\n  - def5678 fix: handle edge case\n  - ghi9012 test: add integration tests\n\nType 'discard' to confirm, or anything else to cancel.\n```\n\n**Wait for exact confirmation: `discard`**\n\nIf confirmed:\n```bash\n# Switch to base branch first\ngit checkout $BASE_BRANCH\n\n# Force delete the feature branch\ngit branch -D $FEATURE_BRANCH\n\n# If remote exists, delete it too (with confirmation)\ngit push origin --delete $FEATURE_BRANCH 2>\u002Fdev\u002Fnull || true\n```\n\n**Report:**\n```\n✅ Branch $FEATURE_BRANCH deleted locally\n✅ Remote branch deleted (if existed)\n\nWork has been permanently discarded.\n```\n\n\n### Step 5: Cleanup (If Using Worktrees)\n\n**For Options 1, 2, 4:** Check if in a worktree and clean up:\n\n```bash\n# Check if current directory is a worktree\nif git worktree list | grep -q \"$(pwd)\"; then\n  # Get worktree path\n  WORKTREE_PATH=$(pwd)\n  \n  # Switch to main worktree\n  cd $(git worktree list | head -1 | awk '{print $1}')\n  \n  # Remove the worktree\n  git worktree remove \"$WORKTREE_PATH\"\n  \n  echo \"✅ Worktree cleaned up\"\nfi\n```\n\n**For Option 3:** Keep worktree intact.\n\n\n## Quick Reference\n\n| Option | Merge | Push | Keep Branch | Cleanup |\n|--------|-------|------|-------------|---------|\n| 1. Merge locally | ✓ | - | Delete | ✓ |\n| 2. Create PR | - | ✓ | Keep | - |\n| 3. Keep as-is | - | - | Keep | - |\n| 4. Discard | - | - | Delete | ✓ |\n\n\n## Integration with Claude Octopus\n\nAfter completing octopus workflows, use this skill:\n\n```bash\n# After tangle (develop) phase completes successfully\n# After ink (deliver) phase validates the work\n\n# User says: \"I'm done, create a PR\"\n# → Invoke finishing-branch skill\n# → Verify tests\n# → Present options\n# → Execute Option 2 (Create PR)\n```\n\n### With Octopus Validation\n\n```bash\n# Run octopus validation before finishing\n${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh ink \"Validate before merge\"\n\n# If validation passes, proceed with finishing-branch\n```\n\n\n## Red Flags - Never Do\n\n| Action | Why It's Dangerous |\n|--------|-------------------|\n| Merge without testing | Ships broken code |\n| Skip confirmation for discard | Loses work permanently |\n| Force-push without asking | Destroys history |\n| Delete remote branch silently | Affects collaborators |\n| Proceed when tests fail | Corrupts main branch |\n\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Offering options before testing | Always verify tests FIRST |\n| Auto-merging without asking | Present 4 options, let user choose |\n| Deleting without confirmation | Require typed \"discard\" |\n| Cleaning up worktree on \"keep\" | Only cleanup for options 1, 2, 4 |\n\n\n## The Bottom Line\n\n```\nFinishing branch → Tests verified AND user chose option\nOtherwise → Not complete\n```\n\n**Verify tests. Present options. Execute safely. Clean up appropriately.**\n","> **Host: Codex CLI** — This skill was designed for Claude Code and adapted for Codex.\n> Cross-reference commands use installed skill names in Codex rather than `\u002Focto:*` slash commands.\n> Use the active Codex shell and subagent tools. Do not claim a provider, model, or host subagent is available until the current session exposes it.\n> For host tool equivalents, see `skills\u002Fblocks\u002Fcodex-host-adapter.md`.\n\n\n## Execution Contract (MANDATORY - CANNOT SKIP)\n\nThis generated Codex skill preserves an enforced workflow contract from the source skill.\n\n**PROHIBITED:**\n- Do not summarize, simulate, or skip the referenced workflow command when this skill requires execution.\n- Do not claim provider output or validation artifacts exist without checking the actual files or command output.\n- Do not continue silently when a required provider, command, or host capability is unavailable; report the unavailable dependency and use a supported fallback.\n\n\n# Finishing a Development Branch\n\n**Your first output line MUST be:** `🐙 **CLAUDE OCTOPUS ACTIVATED** - Branch Completion`\n\n## Overview\n\nFull ship pipeline: tests → multi-provider review → version bump → changelog → commit → push → PR.\n\n**Core principle:** Verify tests → Review diff → Bump version → Update changelog → Present options → Execute choice → Clean up.\n\n\n## The Process\n\n### Step 1: Verify Tests Pass\n\n**Before anything else, verify tests pass:**\n\n```bash\n# Detect and run project's test suite\nif [[ -f \"package.json\" ]]; then npm test\nelif [[ -f \"pytest.ini\" ]] || [[ -f \"pyproject.toml\" ]]; then pytest\nelif [[ -f \"Cargo.toml\" ]]; then cargo test\nelif [[ -f \"go.mod\" ]]; then go test .\u002F...\nelif [[ -f \"Makefile\" ]] && grep -q '^test:' Makefile; then make test\nfi\n```\n\n**If tests fail:** STOP. Show failures. Do not proceed.\n\n**If tests pass:** Continue to Step 2.\n\n\n### Step 2: Multi-Provider Diff Review\n\n**Run a quick multi-provider review of the changes before shipping.** This catches issues before they reach PR reviewers.\n\n```bash\n# Get the diff summary\nDIFF_STAT=$(git diff --stat $(git merge-base HEAD main)..HEAD)\nDIFF_FILES=$(git diff --name-only $(git merge-base HEAD main)..HEAD)\n```\n\n**Always run a quick review — this is automatic, not optional:**\n\n```bash\n# Quick review via orchestrate.sh (uses available providers)\n${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh spawn reviewer \"Review this diff for bugs, security issues, and code quality problems. Be concise — only flag real issues, not style preferences.\n\n$(git diff $(git merge-base HEAD main)..HEAD | head -500)\"\n```\n\n**If critical issues found:** Present them and ask whether to fix or ship anyway.\n**If clean:** Continue to Step 3. Show a brief `✓ Review clean — no issues found`.\n\n\n### Step 3: Determine Base Branch & Version\n\n```bash\n# Identify the base branch\nBASE_BRANCH=$(git remote show origin 2>\u002Fdev\u002Fnull | grep 'HEAD branch' | awk '{print $NF}')\n[[ -z \"$BASE_BRANCH\" ]] && BASE_BRANCH=\"main\"\n\n# Check for VERSION file\nVERSION_FILE=\"\"\nfor f in VERSION version.txt package.json; do\n  [[ -f \"$f\" ]] && VERSION_FILE=\"$f\" && break\ndone\n```\n\n\n### Step 4: Version Bump & Changelog (Optional)\n\n**If a VERSION file or package.json exists**, offer to bump:\n\n```javascript\nAskUserQuestion({\n  questions: [{\n    question: \"Version bump?\",\n    header: \"Version\",\n    multiSelect: false,\n    options: [\n      {label: \"Patch (Recommended)\", description: \"Bug fixes, minor changes (1.2.3 → 1.2.4)\"},\n      {label: \"Minor\", description: \"New features, backward compatible (1.2.3 → 1.3.0)\"},\n      {label: \"Major\", description: \"Breaking changes (1.2.3 → 2.0.0)\"},\n      {label: \"Skip\", description: \"Don't bump version\"}\n    ]\n  }]\n})\n```\n\n**If bumping:** Update the version file and prepend a changelog entry summarizing the diff:\n\n```bash\n# Generate changelog entry from commits\nCOMMITS=$(git log --oneline $(git merge-base HEAD $BASE_BRANCH)..HEAD)\n# Prepend to CHANGELOG.md if it exists\n```\n\n\n### Step 5: Present Options\n\nPresent exactly these 4 options:\n\n```markdown\n✅ Ship ready. Tests passing. Review clean. What would you like to do?\n\n1. **Create PR** (Recommended) - Push and create a Pull Request for review\n2. **Merge locally** - Merge back to \u003Cbase-branch> on this machine\n3. **Keep as-is** - Leave the branch, I'll handle it later\n4. **Discard** - Delete this work permanently\n\nWhich option? (1-4)\n```\n\n**Keep options concise.** Don't add explanations unless asked.\n\n\n### Step 4: Execute Choice\n\n#### Option 1: Merge Locally\n\n```bash\n# Get current branch name\nFEATURE_BRANCH=$(git branch --show-current)\nBASE_BRANCH=\"main\"  # or detected base\n\n# Switch to base branch\ngit checkout $BASE_BRANCH\n\n# Pull latest\ngit pull origin $BASE_BRANCH\n\n# Merge feature branch\ngit merge $FEATURE_BRANCH\n\n# Verify tests on merged result\nnpm test  # or appropriate test command\n\n# If tests pass, delete feature branch\ngit branch -d $FEATURE_BRANCH\n```\n\n**Report:**\n```\n✅ Merged $FEATURE_BRANCH into $BASE_BRANCH\n✅ Tests pass on merged result\n✅ Feature branch deleted\n\nReady to push when you want: git push origin $BASE_BRANCH\n```\n\n\n#### Option 2: Create PR\n\n```bash\n# Get branch info\nFEATURE_BRANCH=$(git branch --show-current)\n\n# Push branch\ngit push -u origin $FEATURE_BRANCH\n\n# Create PR with a validated description file\nREPO_SLUG=$(gh repo view --json nameWithOwner --jq .nameWithOwner)\nPR_TITLE=${PR_TITLE:?Complete PR_TITLE before creating the pull request}\nCHANGE_SUMMARY=${CHANGE_SUMMARY:?Complete CHANGE_SUMMARY before creating the pull request}\nCHANGE_REASON=${CHANGE_REASON:?Complete CHANGE_REASON before creating the pull request}\nPR_BODY=$(cat \u003C\u003CEOF\n## Summary\n- ${CHANGE_SUMMARY}\n- ${CHANGE_REASON}\n\n## Test Plan\n- [x] Unit tests pass\n- [x] Manual verification done\n- [ ] Code review needed\nEOF\n)\nif ! \"${CLAUDE_PLUGIN_ROOT:-${HOME}\u002F.claude-octopus\u002Fplugin}\u002Fscripts\u002Fsafe-gh-comment.sh\" \\\n    --repo \"$REPO_SLUG\" pr-create \"$PR_TITLE\" \"$FEATURE_BRANCH\" - \u003C\u003C\u003C \"$PR_BODY\"; then\n  echo \"GitHub write state is unknown; check for an existing pull request before retrying:\" >&2\n  gh pr list --repo \"$REPO_SLUG\" --head \"$FEATURE_BRANCH\" --state all --json number,state,url || true\n  return 1 2>\u002Fdev\u002Fnull || exit 1\nfi\n```\n\n**Report:**\n```\n✅ Branch pushed to origin\u002F$FEATURE_BRANCH\n✅ PR created: https:\u002F\u002Fgithub.com\u002Fowner\u002Frepo\u002Fpull\u002F123\n\nBranch preserved for review process.\n```\n\n\n#### Option 3: Keep As-Is\n\n```\n✅ Keeping branch $FEATURE_BRANCH as-is.\n\nCurrent state:\n- Branch: $FEATURE_BRANCH\n- Commits ahead of $BASE_BRANCH: N\n- Tests: Passing\n\nWhen ready, you can:\n- Merge: git checkout main && git merge $FEATURE_BRANCH\n- PR: git push -u origin $FEATURE_BRANCH && gh pr create\n- Discard: git branch -D $FEATURE_BRANCH\n```\n\n**Do NOT clean up anything.**\n\n\n#### Option 4: Discard\n\n**Confirm first (REQUIRED):**\n\n```\n⚠️ This will PERMANENTLY delete:\n- Branch: $FEATURE_BRANCH\n- All commits:\n  - abc1234 feat: add user validation\n  - def5678 fix: handle edge case\n  - ghi9012 test: add integration tests\n\nType 'discard' to confirm, or anything else to cancel.\n```\n\n**Wait for exact confirmation: `discard`**\n\nIf confirmed:\n```bash\n# Switch to base branch first\ngit checkout $BASE_BRANCH\n\n# Force delete the feature branch\ngit branch -D $FEATURE_BRANCH\n\n# If remote exists, delete it too (with confirmation)\ngit push origin --delete $FEATURE_BRANCH 2>\u002Fdev\u002Fnull || true\n```\n\n**Report:**\n```\n✅ Branch $FEATURE_BRANCH deleted locally\n✅ Remote branch deleted (if existed)\n\nWork has been permanently discarded.\n```\n\n\n### Step 5: Cleanup (If Using Worktrees)\n\n**For Options 1, 2, 4:** Check if in a worktree and clean up:\n\n```bash\n# Check if current directory is a worktree\nif git worktree list | grep -q \"$(pwd)\"; then\n  # Get worktree path\n  WORKTREE_PATH=$(pwd)\n  \n  # Switch to main worktree\n  cd $(git worktree list | head -1 | awk '{print $1}')\n  \n  # Remove the worktree\n  git worktree remove \"$WORKTREE_PATH\"\n  \n  echo \"✅ Worktree cleaned up\"\nfi\n```\n\n**For Option 3:** Keep worktree intact.\n\n\n## Quick Reference\n\n| Option | Merge | Push | Keep Branch | Cleanup |\n|--------|-------|------|-------------|---------|\n| 1. Merge locally | ✓ | - | Delete | ✓ |\n| 2. Create PR | - | ✓ | Keep | - |\n| 3. Keep as-is | - | - | Keep | - |\n| 4. Discard | - | - | Delete | ✓ |\n\n\n## Integration with Claude Octopus\n\nAfter completing octopus workflows, use this skill:\n\n```bash\n# After tangle (develop) phase completes successfully\n# After ink (deliver) phase validates the work\n\n# User says: \"I'm done, create a PR\"\n# → Invoke finishing-branch skill\n# → Verify tests\n# → Present options\n# → Execute Option 2 (Create PR)\n```\n\n### With Octopus Validation\n\n```bash\n# Run octopus validation before finishing\n${HOME}\u002F.claude-octopus\u002Fplugin\u002Fscripts\u002Forchestrate.sh ink \"Validate before merge\"\n\n# If validation passes, proceed with finishing-branch\n```\n\n\n## Red Flags - Never Do\n\n| Action | Why It's Dangerous |\n|--------|-------------------|\n| Merge without testing | Ships broken code |\n| Skip confirmation for discard | Loses work permanently |\n| Force-push without asking | Destroys history |\n| Delete remote branch silently | Affects collaborators |\n| Proceed when tests fail | Corrupts main branch |\n\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Offering options before testing | Always verify tests FIRST |\n| Auto-merging without asking | Present 4 options, let user choose |\n| Deleting without confirmation | Require typed \"discard\" |\n| Cleaning up worktree on \"keep\" | Only cleanup for options 1, 2, 4 |\n\n\n## The Bottom Line\n\n```\nFinishing branch → Tests verified AND user chose option\nOtherwise → Not complete\n```\n\n**Verify tests. Present options. Execute safely. Clean up appropriately.**\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fskill-finish-branch",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":24},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-finish-branch",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-finish-branch",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill skill-finish-branch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-finish-branch\u002FSKILL.md",[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"agents\u002Fopenai.yaml","REFERENCE","参考文档",172,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fskill-finish-branch\u002Fagents\u002Fopenai.yaml",[53,60,65,72,79,86],{"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},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":61,"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":62,"categories":63,"keywords":64,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"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},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\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},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\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},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\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},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]