Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add darellchua2/opencode-config-template --skill worktree-pipeline-skillgit clone --depth 1 https://github.com/darellchua2/opencode-config-templateWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/darellchua2/opencode-config-template/worktree-pipeline-skill)<a href="https://agentmods.dev/skills/darellchua2/opencode-config-template/worktree-pipeline-skill"><img src="https://agentmods.dev/badge/skills/darellchua2/opencode-config-template/worktree-pipeline-skill.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00062 | $0.01561 |
| Opus 5 | $0.00031 | $0.00781 |
| Sonnet 5 | $0.00012 | $0.00312 |
| Haiku 4.5 | $0.00006 | $0.00156 |
Grade A, and why
worktree-pipeline-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
What I do
I run the full ticket-to-merged-PR pipeline, one ticket at a time, each in
its own git worktree so the main working tree stays free. I am the
orchestrator: heavy knowledge lives in the skills/subagents I drive
(ticket-plan-workflow-skill, plan-automation-loop-skill,
pr-workflow-subagent) — I own sequencing, worktree lifecycle, and
re-validation.
Usage: /run-worktree-pipeline [base-branch] <ticket-refs...>
Step 1 — Parse arguments
- First token is a base-branch iff it fails the ticket regex
^(#\d+|[\w.-]+/[\w.-]+#\d+|[A-Z][A-Z0-9]+-\d+)$and is not purely numeric. - Bare numerics (
351) auto-normalize to GitHub issue refs (#351). - Zero ticket refs → print usage and stop.
- The base-branch sets both where feat branches are cut from AND the PR
target. Default (omitted): repo default branch via
git symbolic-ref --short refs/remotes/origin/HEAD(yieldsorigin/<base>; strip the prefix; fallbackmain). - Ticket order = execution order (sequential; never parallel worktrees).
Before starting a ticket, if its body contains
blocked-by: <ref>naming a ticket that is not yet merged, skip it and report why (no JIRA link traversal in v1).
Steps 2-10 — per ticket (in order)
- Sync + branch:
git fetch origin <base>; cutgit branch feat/<KEY> origin/<base>. If the branch or worktree already exists (mid-pipeline failure leftovers), report state and ask: prune / resume / refuse — never clobber silently. - Ticket fetch/create: existing ref → fetch its description
(
gh issue view/ JIRA). JIRA access follows the MCP Availability Guard:atlassian_*tools present → use them; absent → REST fallback via API token; headless → degrade with a clear report (same policy asticket-plan-workflow-skill). New work → create the ticket first (same guard; GitHub issue or JIRA per ref format — tracker-agnostic). - Worktree: locate the main checkout via
git worktree list --porcelain | sed -n 's/^worktree //p' | head -1(NOT$(git rev-parse --show-toplevel)— that nests when invoked from a worktree). Creategit worktree add <main-repo>/../worktrees/<KEY> feat/<KEY>— always, even when the ticket is in this repo. Worktrees-root is user-overridable. Pre-flightgit worktree listfor stale<KEY>entries. - Re-validate: cross-check the ticket description once more against the
latest
origin/<base>content in the worktree; if stale, update the ticket and note deltas before proceeding. - PLAN — drive
ticket-plan-workflow-skillwith this entry contract:- That skill has no branch-creation step and never sets
$BRANCH_NAME— it only uses it (its Step 7 pushesgit push -u origin "$BRANCH_NAME"). We cutfeat/<KEY>in Step 2 above and exportBRANCH_NAME=feat/<KEY>before entering. - Enter at Step 5.5 (adopt/rename existing PLAN).
- Run 5.5 → 5.6 (BRD/SRS draft linking) → 6 (generate) → 6.5 (atomicity
gate). Note: 5.5 searches
PLANS/relative to the worktree cwd — drafts must be committed to<base>to be adoptable here; uncommitted main-worktree drafts are invisible by design. - Then run its Step 7 yourself: commit + push the PLAN on
feat/<KEY>. /run-plan commits implementation phases, not the PLAN — an untracked PLAN file would be lost on worktree removal. - Skip its Step 8 (initial ticket progress comment — execution follows immediately here; ticket updates flow through Step 5 re-validation and pr-workflow), its Step 7.5 branch-workflow setup signal, and its Step 9 interactive prompt.
- That skill has no branch-creation step and never sets
- Plan review: Task-delegate the PLAN file to
requirements-specialist-subagent+coverage-subagent+architecture-review-subagent; apply findings to the PLAN; re-review only if findings were structural. - Execute: run
/run-plan(plan-automation-loop-skill) inside the worktree — per-phase lint+build+test gate, commit + push per phase. - Code review:
code-review-subagenthasbash: deny— you compute the diff (git diff origin/<base>...feat/<KEY>and--stat) and embed it (file list + hunks) in the Task prompt. Fix findings: severity ≥ Major mandatory; Minor by judgment. - PR + cleanup:
pr-workflow-subagentcreates the PR target<base>(its step 2.5 docstring sweep and PLAN.md sync run as part of it); merge when CI is green. Thengit worktree remove <root>/<KEY>, delete the remote branch, andgit fetchin the main checkout (fetch-only — neverpullin the user's main worktree; uncommitted state may conflict). Advance to the next ticket.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 111 lines · 62 tokens per session scan A 163b755f8bb4
worktree-pipeline-skill is a skill published in the GitHub repository darellchua2/opencode-config-template (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 62 tokens to every session and 1,561 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
git-ship
An automated Git release workflow that takes code changes through a branch, commit, pull request, review checks, squash merge, and return to the main branch. A pull request is a request to review and merge changes into a shared branch.
mcore-split-pr
Split a PR into multiple PRs to reduce the number of required CODEOWNERS reviewer groups.
shiplog
Recap of everything shipped since the last run - cross-repo PRs, security fixes, star deltas, and X traction, synthesized into a digest article and a ready-to-post shiplog in your voice.
llxprt-issue-workflow
Use this skill when asked to address, fix, or work on a GitHub issue in the llxprt-code repository. Covers the complete issue lifecycle - branch setup, gh CLI usage, test-first planning, subagent delegation and review loops, the full verification cycle (including the stepfun-37 smoke test), open code review (ocr), PR…
cyrus-setup-repository
Add one or more Git repositories to Cyrus configuration so it can process issues from those repos.
github-sync
Bidirectional synchronization of epics and tasks with GitHub issues, labels, and relationships.