[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M732DCEG1R9S45A68T5WR2T7":3,"skill-same:01M732DCEG1R9S45A68T5WR2T7":47},{"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":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M732DCEG1R9S45A68T5WR2T7","worktree-retry-cleanup",null,"Protocol for cleaning parallel-coder worktree lanes before retry. Triggered before re-dispatching any task that already has a lane (completed, denied, cancelled, or failed).","djimit\u002Fdjimitflo","djimit","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F19958832?v=4","01M7327CH792DZPFZPYAEFPRXT","Dutch Dim","01M7327CHWPSXT9AWE4MPWCX9Q",2,"MIT","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fworktree-retry-cleanup\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"﻿---\nname: worktree-retry-cleanup\ndescription: Protocol for cleaning parallel-coder worktree lanes before retry. Triggered before re-dispatching any task that already has a lane (completed, denied, cancelled, or failed).\n---\n\n# Worktree Retry Cleanup\n\n## Trigger\nBefore re-dispatching a coder for a task that already has a lane (any prior dispatch status).\n\n## Protocol\n1. **Ownership check — do this FIRST, before any deletion.** Confirm the lane is not owned by another ACTIVE session: read `.swarm\u002Fsession\u002Fstate.json` and verify no other session's `delegationChains` reference `\u003Csession>\u002F\u003Ctask>`. If another active session owns it, STOP — surface the conflict and do not delete.\n2. **Check for existing lane branch:** `git branch --list \"swarm\u002Flane\u002F\u003Csession>\u002F\u003Ctask>\"`\n3. **If branch exists:**\n   - Verify 0-commits-ahead: `git log --oneline HEAD..swarm\u002Flane\u002F\u003Csession>\u002F\u003Ctask>` — empty = safe\n   - Delete: `git branch -d swarm\u002Flane\u002F\u003Csession>\u002F\u003Ctask>` (use `-D` only if `-d` fails AND the commits are confirmed unneeded)\n   - Under full-auto, `-D` is deny-pattern-blocked — use `-d`\n4. **Remove the per-lane worktree directory.** Target the SPECIFIC lane `.swarm-worktrees\u002F\u003Csession>\u002F\u003Ctask>`, NOT the session parent (the parent holds sibling lanes). Prefer `git worktree remove .swarm-worktrees\u002F\u003Csession>\u002F\u003Ctask>` — this is permitted because the path is under the `.swarm-worktrees\u002F` base. A bare `rm -rf` \u002F `Remove-Item -Recurse -Force` on `.swarm-worktrees\u002F` is deny-pattern-blocked by the guardrail, so do not use it here.\n5. **Prune:** `git worktree prune`\n6. **Verify:** `git branch --list \"swarm\u002Flane\u002F\u003Csession>\u002F\u003Ctask>\"` returns empty\n7. Only after cleanup, proceed to `declare_scope` + coder dispatch\n\n## Root cause\nThe provisioning code should auto-clean after coder completion\u002Fdenial\u002Fcancellation (tracked in issue #1746 item 1). This playbook is the temporary protocol.\n","# Worktree Retry Cleanup\n\n## Trigger\nBefore re-dispatching a coder for a task that already has a lane (any prior dispatch status).\n\n## Protocol\n1. **Ownership check — do this FIRST, before any deletion.** Confirm the lane is not owned by another ACTIVE session: read `.swarm\u002Fsession\u002Fstate.json` and verify no other session's `delegationChains` reference `\u003Csession>\u002F\u003Ctask>`. If another active session owns it, STOP — surface the conflict and do not delete.\n2. **Check for existing lane branch:** `git branch --list \"swarm\u002Flane\u002F\u003Csession>\u002F\u003Ctask>\"`\n3. **If branch exists:**\n   - Verify 0-commits-ahead: `git log --oneline HEAD..swarm\u002Flane\u002F\u003Csession>\u002F\u003Ctask>` — empty = safe\n   - Delete: `git branch -d swarm\u002Flane\u002F\u003Csession>\u002F\u003Ctask>` (use `-D` only if `-d` fails AND the commits are confirmed unneeded)\n   - Under full-auto, `-D` is deny-pattern-blocked — use `-d`\n4. **Remove the per-lane worktree directory.** Target the SPECIFIC lane `.swarm-worktrees\u002F\u003Csession>\u002F\u003Ctask>`, NOT the session parent (the parent holds sibling lanes). Prefer `git worktree remove .swarm-worktrees\u002F\u003Csession>\u002F\u003Ctask>` — this is permitted because the path is under the `.swarm-worktrees\u002F` base. A bare `rm -rf` \u002F `Remove-Item -Recurse -Force` on `.swarm-worktrees\u002F` is deny-pattern-blocked by the guardrail, so do not use it here.\n5. **Prune:** `git worktree prune`\n6. **Verify:** `git branch --list \"swarm\u002Flane\u002F\u003Csession>\u002F\u003Ctask>\"` returns empty\n7. Only after cleanup, proceed to `declare_scope` + coder dispatch\n\n## Root cause\nThe provisioning code should auto-clean after coder completion\u002Fdenial\u002Fcancellation (tracked in issue #1746 item 1). This playbook is the temporary protocol.\n",{"name":5,"description":7},"main","1667541871a3a917f9e544e5584ef06a544a119d",".opencode\u002Fskills\u002Fworktree-retry-cleanup",0,"https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo","https:\u002F\u002Fgithub.com\u002Fdjimit","https:\u002F\u002Fdjimit.nl\u002F","About me\r\n\r\nI’m Dennis a strategic IT advisor specializing in cloud, cybersecurity, privacy, AI, and enterprise architecture. ","2026-11-15 04:42:36",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add djimit\u002Fdjimitflo --skill worktree-retry-cleanup",{"tool":39,"command":40},"bunx","bunx skills add djimit\u002Fdjimitflo --skill worktree-retry-cleanup",{"tool":42,"command":43},"pnpm","pnpm dlx skills add djimit\u002Fdjimitflo --skill worktree-retry-cleanup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fworktree-retry-cleanup\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M732DRW7MHQP9VTJ5JSBMWC3","provider-step-usage-v1-0-0","Sum measured OpenCode step_finish token totals with replay deduplication and fail-closed validation.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002Fskills\u002Fprovider-step-usage-v1-0-0\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M732DKXHWZ1P99ZDNA4PX7BV","writing-tests","Guidelines for writing, organizing, and maintaining tests in the opencode-swarm repository. Covers framework rules (bun:test), mock isolation, CI pipeline structure, file placement, and anti-patterns that break cross-platform CI. Load this skill before writing or modifying any test file.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fwriting-tests\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M732D8KYWE5RHJ1AA76F70K7","swarm","Cross-agent swarm-mode behavior model — a higher-rigor workflow using parallel investigation, independent reviewer validation, and critic challenge, plus the mandatory implementation closeout gate. Runtime adapters (.claude, .agents) add execution-specific notes and command wiring.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fswarm\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M732D232XCMYP3XYKEAQC3YT","swarm-pr-subscribe","Monitor a pull request after creation and act autonomously on pushed PR activity. Use when subscribing to a PR after opening it, when asked to watch, babysit, or autofix a PR until merge, or when a \u003Cpr-activity> wake message or [pr-monitor:...] advisory arrives for a subscribed PR. Owns event triage (fix \u002F ask \u002F skip), bounded-retry escalation, and terminal-state cleanup.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fswarm-pr-subscribe\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M732CVKJ4QEN83DQ30EYG75A","swarm-pr-review","Run a graph-guided, tool-augmented Swarm PR review using context packing, parallel exploration, triggered plugin micro-lanes, independent reviewer validation, critic challenge, and metrics writeback. Use for deep pull request review with low false-positive tolerance and high recall.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fswarm-pr-review\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M732CF6HHMVM2VHC4Q199PQ4","swarm-pr-feedback","Ingest and resolve known pull request feedback with skeptical source verification. Use when addressing pasted PR feedback, GitHub review comments or threads, requested changes, CI\u002Fcheck failures, merge conflicts, stale PR branches, or PR follow-up work that must close all known issues without dropping findings. Supports multi-round bot reviews (the repository's bot posts a new review after every push) via the iterative pattern documented in the body. Stage A (structural pre-checks) and Stage B (reviewer + test_engineer) gates and the reviewer + critic closeout gate are MANDATORY for any change made as part of this process.","https:\u002F\u002Fgithub.com\u002Fdjimit\u002Fdjimitflo\u002Fblob\u002Fmain\u002F.opencode\u002Fskills\u002Fswarm-pr-feedback\u002FSKILL.md",[],[]]