[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6MKA9XFHEHRSV9AB44NZX7H":3,"skill-same:01M6MKA9XFHEHRSV9AB44NZX7H":73},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":66},"01M6MKA9XFHEHRSV9AB44NZX7H","skill-finish-branch",null,"Wrap up a branch — run tests, create PR, merge or discard — use when implementation is done","hashgraph-online\u002Fawesome-codex-plugins","hashgraph-online","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160371962?v=4","01M6CNB6NRJVNNGN14TR01Q6D3","HOL (Hashgraph Online)","01M6JT1HSKKG9V68KQAQGBA7XP",1575,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fnyldn\u002Fclaude-octopus\u002Fskills\u002Fskill-finish-branch\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"skill finish branch","finish branch","branch","finish","up","when","true","tests","done","wrap","implementation","create pr","use","wrap up","run","create","pr","run tests","merge","2026-11-10 10:12:30",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\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${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:-${CODEX_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\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${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\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${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:-${CODEX_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\"${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${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":43},true,"main","f620abaff09061f8c8b1f1559dca3fdd031a32e5","plugins\u002Fnyldn\u002Fclaude-octopus\u002Fskills\u002Fskill-finish-branch",491,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins","https:\u002F\u002Fhol.org\u002Fplugins\u002Fbest-codex-plugins","https:\u002F\u002Fgithub.com\u002Fhashgraph-online","https:\u002F\u002Fhol.org","Open-source standards and developer tools for interoperable AI agents: discovery, identity, communication, payments, privacy and security.","2026-11-14 14:06:13",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":43},[56,59,62],{"tool":57,"command":58},"npx","npx skills add hashgraph-online\u002Fawesome-codex-plugins --skill skill-finish-branch",{"tool":60,"command":61},"bunx","bunx skills add hashgraph-online\u002Fawesome-codex-plugins --skill skill-finish-branch",{"tool":63,"command":64},"pnpm","pnpm dlx skills add hashgraph-online\u002Fawesome-codex-plugins --skill skill-finish-branch","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fnyldn\u002Fclaude-octopus\u002Fskills\u002Fskill-finish-branch\u002FSKILL.md",[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"agents\u002Fopenai.yaml","REFERENCE","参考文档",172,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fnyldn\u002Fclaude-octopus\u002Fskills\u002Fskill-finish-branch\u002Fagents\u002Fopenai.yaml",[74,84,92,100,108,116],{"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":78,"licenseFileUrl":79,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":83},"01M7DV332YQMGD8WTRJ9DZQXTB","worktable-review-with-annotations","Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.","MIT","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-review-with-annotations\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":83},"01M7DV2YGHCZVBEB1AHYB6CGHE","worktable-find-and-synthesize-context","Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-find-and-synthesize-context\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":83},"01M7DV2TQN1H11ME2SAF9MXN7V","worktable-create-or-update-docs","Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-update-docs\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":78,"licenseFileUrl":104,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":83},"01M7DV2NE452NEA8TXATKSNAJH","worktable-create-or-manage-records","Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-records\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":112,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":83},"01M7DV2HENRBR2KSCVM064WH0Y","worktable-create-or-manage-interactive-html","Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-create-or-manage-interactive-html\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":78,"licenseFileUrl":120,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":83},"01M7DV2CADR5R7RQFFYPNAGR9Y","worktable-collaborate-threads","Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fworktable\u002Fworktable-plugin\u002Fskills\u002Fworktable-collaborate-threads\u002FSKILL.md",[],[]]