[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79PJAY0TEHEWASX7EHDRHY5":3,"skill-same:01M79PJAY0TEHEWASX7EHDRHY5":56},{"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":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M79PJAY0TEHEWASX7EHDRHY5","onboarding",null,"worktrail-repo-init scaffolding — write-if-absent files, the agent-facing PR labels doc, and AGENTS.md pointer handling for src\u002Fworktrail\u002Fonboarding","behindthedash\u002Fworktrail","behindthedash","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F30299179?v=4","01M79PHT5395GJXDSNP7MYP63D","OC","01M79PHT68KHMYHPS9D9RCYFJZ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fonboarding\u002Fskill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: onboarding\ndescription: worktrail-repo-init scaffolding — write-if-absent files, the agent-facing PR labels doc, and AGENTS.md pointer handling for src\u002Fworktrail\u002Fonboarding\ntriggers:\n  files:\n    - src\u002Fworktrail\u002Fonboarding\u002F**\n    - skills\u002Fworktrail-repo-init\u002F**\n    - tests\u002Fonboarding\u002F**\n  keywords:\n    - repo-init\n    - repo_init\n    - propose\n    - scaffold\n    - pull-requests.md\n    - go:risk\n---\n\nYou are working on **`worktrail-repo-init`**, which bootstraps\u002Fmigrates a repo onto the repo-standards doctrine (`src\u002Fworktrail\u002Fonboarding\u002Frepo_init.py`). `propose` scaffolds files; `apply` makes the GitHub API calls (e.g. creating the `AUTOMERGE_LABELS`).\n\n## Domain purpose\nThe scaffolded auto-merge workflow **fails closed**: a green PR with no `go:risk-low` \u002F `go:risk-medium` label is never armed and sits unmerged with `mergeStateStatus: CLEAN` and no error. Nothing in an onboarded repo told agents this, so `propose` now also scaffolds an agent-facing doc and links it from `AGENTS.md`.\n\n## Business rules \u002F invariants\n- **Scaffolded files are write-if-absent.** `propose` reports them under `written` \u002F `skipped`; an existing (possibly hand-tailored) file is left byte-identical.\n- **`docs\u002Fengineering\u002Fpull-requests.md` is rendered per branch model** by `build_pull_requests_doc(branches)`: the merge-method list comes from `merge_method_for_branch` (the same function the rulesets and auto-merge workflow use), and the promotion-PR rule (hold with `go:no-automerge`) appears only when the model has a branch outside `SQUASH_ONLY_BRANCHES` (`dev`\u002F`main`).\n- **The doc is repo-slug-free** — REST commands use `gh api repos\u002F{owner}\u002F{repo}\u002F...`, which `gh` expands from the checkout. Never embed an owner\u002Frepo.\n- **Label names are not duplicated in code.** The doc names the five labels literally; a test asserts every name in `AUTOMERGE_LABELS` appears in the rendered doc, so adding\u002Frenaming a label fails the build until the template is updated.\n- **The doc is deliberately excluded from `compute_drift`** — it is prose an operator may tailor.\n\n## Non-obvious behaviors\n- `ensure_agents_md_pr_pointer(repo)` inserts a \"Pull requests\" section into `AGENTS.md` **before the first tool-managed block** (`\u003C!-- name:start -->`, matched by `_TOOL_BLOCK_START_RE`) so blocks like aspens' stay last; with no block it appends. It is a no-op when `AGENTS.md` already contains `PULL_REQUESTS_DOC_RELPATH`, and returns `(changed, warning)` — a missing `AGENTS.md` yields a warning, never a created file.\n- The pointer is added **even when the doc file already existed** (the two steps are independent in `cmd_propose`).\n- `detect_state()` reports `pull_requests_doc_exists` and `agents_md_links_pull_requests_doc`; `propose --check` reports them without writing.\n- `build_pull_requests_doc` lives in `repo_init.py`, not the template module, because it needs `merge_method_for_branch` and `pull_requests_doc_template.py` cannot import `repo_init` without a cycle.\n- Template modules (`*_template.py`) hold prose as string constants with `__MARKER__` placeholders rather than packaged data files, to avoid package-data resolution at runtime.\n- The doc's guidance says to set labels via the REST API (`gh api ...\u002Fissues\u002F\u003Cn>\u002Flabels`) because `gh pr edit --add-label` fails on this account.\n\n## Critical files (purpose, not inventory)\n- `src\u002Fworktrail\u002Fonboarding\u002Frepo_init.py` — CLI: `detect_state`, `cmd_propose`, ruleset\u002Fworkflow builders, label creation\n- `src\u002Fworktrail\u002Fonboarding\u002Fpull_requests_doc_template.py` — doc prose, `PROMOTION_SECTION`, `AGENTS_MD_PR_SECTION`\n- `skills\u002Fworktrail-repo-init\u002FSKILL.md` — the user-facing procedure; keep in step with what `propose` writes\n- `tests\u002Fonboarding\u002Ftest_repo_init.py` — `PullRequestsDocTests` covers rendering, pointer placement, re-run idempotence, and drift exclusion\n\n## Critical Rules\n- Never overwrite an existing scaffolded file or add it to drift reporting without a deliberate decision.\n- Keep `AGENTS.md` tool-managed blocks last; never interleave the PR section into one.\n\n---\n**Last Updated:** 2026-09-20\n","You are working on **`worktrail-repo-init`**, which bootstraps\u002Fmigrates a repo onto the repo-standards doctrine (`src\u002Fworktrail\u002Fonboarding\u002Frepo_init.py`). `propose` scaffolds files; `apply` makes the GitHub API calls (e.g. creating the `AUTOMERGE_LABELS`).\n\n## Domain purpose\nThe scaffolded auto-merge workflow **fails closed**: a green PR with no `go:risk-low` \u002F `go:risk-medium` label is never armed and sits unmerged with `mergeStateStatus: CLEAN` and no error. Nothing in an onboarded repo told agents this, so `propose` now also scaffolds an agent-facing doc and links it from `AGENTS.md`.\n\n## Business rules \u002F invariants\n- **Scaffolded files are write-if-absent.** `propose` reports them under `written` \u002F `skipped`; an existing (possibly hand-tailored) file is left byte-identical.\n- **`docs\u002Fengineering\u002Fpull-requests.md` is rendered per branch model** by `build_pull_requests_doc(branches)`: the merge-method list comes from `merge_method_for_branch` (the same function the rulesets and auto-merge workflow use), and the promotion-PR rule (hold with `go:no-automerge`) appears only when the model has a branch outside `SQUASH_ONLY_BRANCHES` (`dev`\u002F`main`).\n- **The doc is repo-slug-free** — REST commands use `gh api repos\u002F{owner}\u002F{repo}\u002F...`, which `gh` expands from the checkout. Never embed an owner\u002Frepo.\n- **Label names are not duplicated in code.** The doc names the five labels literally; a test asserts every name in `AUTOMERGE_LABELS` appears in the rendered doc, so adding\u002Frenaming a label fails the build until the template is updated.\n- **The doc is deliberately excluded from `compute_drift`** — it is prose an operator may tailor.\n\n## Non-obvious behaviors\n- `ensure_agents_md_pr_pointer(repo)` inserts a \"Pull requests\" section into `AGENTS.md` **before the first tool-managed block** (`\u003C!-- name:start -->`, matched by `_TOOL_BLOCK_START_RE`) so blocks like aspens' stay last; with no block it appends. It is a no-op when `AGENTS.md` already contains `PULL_REQUESTS_DOC_RELPATH`, and returns `(changed, warning)` — a missing `AGENTS.md` yields a warning, never a created file.\n- The pointer is added **even when the doc file already existed** (the two steps are independent in `cmd_propose`).\n- `detect_state()` reports `pull_requests_doc_exists` and `agents_md_links_pull_requests_doc`; `propose --check` reports them without writing.\n- `build_pull_requests_doc` lives in `repo_init.py`, not the template module, because it needs `merge_method_for_branch` and `pull_requests_doc_template.py` cannot import `repo_init` without a cycle.\n- Template modules (`*_template.py`) hold prose as string constants with `__MARKER__` placeholders rather than packaged data files, to avoid package-data resolution at runtime.\n- The doc's guidance says to set labels via the REST API (`gh api ...\u002Fissues\u002F\u003Cn>\u002Flabels`) because `gh pr edit --add-label` fails on this account.\n\n## Critical files (purpose, not inventory)\n- `src\u002Fworktrail\u002Fonboarding\u002Frepo_init.py` — CLI: `detect_state`, `cmd_propose`, ruleset\u002Fworkflow builders, label creation\n- `src\u002Fworktrail\u002Fonboarding\u002Fpull_requests_doc_template.py` — doc prose, `PROMOTION_SECTION`, `AGENTS_MD_PR_SECTION`\n- `skills\u002Fworktrail-repo-init\u002FSKILL.md` — the user-facing procedure; keep in step with what `propose` writes\n- `tests\u002Fonboarding\u002Ftest_repo_init.py` — `PullRequestsDocTests` covers rendering, pointer placement, re-run idempotence, and drift exclusion\n\n## Critical Rules\n- Never overwrite an existing scaffolded file or add it to drift reporting without a deliberate decision.\n- Keep `AGENTS.md` tool-managed blocks last; never interleave the PR section into one.\n\n---\n**Last Updated:** 2026-09-20\n",{"name":5,"triggers":24,"description":7},{"files":25,"keywords":29},[26,27,28],"src\u002Fworktrail\u002Fonboarding\u002F**","skills\u002Fworktrail-repo-init\u002F**","tests\u002Fonboarding\u002F**",[30,31,32,33,34,35],"repo-init","repo_init","propose","scaffold","pull-requests.md","go:risk","main","db448e94704b506e1a5a0665d349fc422611fe9e",".claude\u002Fskills\u002Fonboarding","https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail","https:\u002F\u002Fgithub.com\u002Fbehindthedash","2026-11-14 18:34:42",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add behindthedash\u002Fworktrail --skill onboarding",{"tool":48,"command":49},"bunx","bunx skills add behindthedash\u002Fworktrail --skill onboarding",{"tool":51,"command":52},"pnpm","pnpm dlx skills add behindthedash\u002Fworktrail --skill onboarding","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fonboarding\u002Fskill.md",true,[],[57,64,71,78,85,92],{"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},"01M79PMY53NKDHVZ2AFSGNNJH7","worktrail-sdd-workflow","Internal SDD workflow executor invoked by \u002Fgo only. Do not call directly. Executes classified routes A–J: feature planning, implementation (parallel orchestration, PR generation), defect repair, refactoring, spec changes, investigation, and workflow evolution.","https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail\u002Fblob\u002Fmain\u002Fskills\u002Fworktrail-sdd-workflow\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},"01M79PMKBE8SYW0ZP14AEJDM5D","worktrail-routing-config","Configure Worktrail's agent routing table (`~\u002F.worktrail\u002Frouting.yaml`, or a repo-local `routing:` policy block) — which harness\u002Fmodel executes each role and tier, and how fallback between them works. Use when the operator wants to add or remove a harness\u002Fadapter (claude\u002Fcodex\u002Fopencode), add a model to an existing harness (e.g. adding a DeepSeek model to opencode), pin or change who does code review, add a new tier or purpose mapping, change the default tier, or is confused about which harness actually served a spawn (e.g. \"why did this use Codex when I only configured Claude\"). Trigger phrases: \"routing.yaml\", \"add a harness\", \"disable a harness\", \"add an adapter\", \"remove an adapter\", \"add a model\", \"add deepseek to opencode\", \"change the reviewer\", \"pin the reviewer\", \"routing tiers\", \"routing targets\", \"default_tier\", \"independent reviewer\", \"why did codex get called\". This skill is about *editing the config file*; it does not cover `\u002Fgo`'s own dispatch mechanics (see `worktrail-go`'s SKILL.md Phase 7 for how `tier_for()`\u002F`select_cell()` resolve it at runtime).","https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail\u002Fblob\u002Fmain\u002Fskills\u002Fworktrail-routing-config\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},"01M79PMB24YTZTZVVAKA4A4R38","worktrail-repo-init","Bootstrap a new repo, or migrate an existing single-branch repo, onto the workspace's repo-standards doctrine (~\u002Frules\u002FCLAUDE.repo.md): the AGENTS.md-is-truth\u002FCLAUDE.md-imports-it split, a dev\u002Fprd, dev\u002Fstg\u002Fprd, or main-only (trunk) branch model with matching GitHub rulesets, an OpenSpec scaffold, an auto-merge workflow, and a seeded .worktrail\u002Fpolicy.yaml. Trigger phrases: \"onboard this repo\", \"apply repo standards\", \"initialize repo standards\", \"set up this repo like the rest of the fleet\", \"bring this repo into line with the repo standards doctrine\".","https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail\u002Fblob\u002Fmain\u002Fskills\u002Fworktrail-repo-init\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},"01M79PM54RFP51Q2JPQGE13ZP8","worktrail-help","Show the Worktrail front-door commands and accepted positional arguments. Use when the user asks how to invoke worktrail-go, wants the available handoff, spec, pr, repo, or route forms, invokes worktrail-go with help or with a bare noun, or asks how to answer a filed product decision (worktrail-decision).","https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail\u002Fblob\u002Fmain\u002Fskills\u002Fworktrail-help\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},"01M79PKVZVBF4VFT5XEPCPNM9S","worktrail-handoff","Capture a discovered problem, gap, tech debt, or deferred work into a local work queue so a future agent session can pick it up cold. Use mid-session whenever you set work aside instead of doing it now — a fix you judge out of scope for this PR, work that belongs in a follow-up or a separate\u002Flater PR, an item you're deferring, or something worth fixing you won't tackle now — so the outstanding item isn't lost without derailing current work; can be called multiple times per session. Trigger phrases: \"defer this\", \"item deferred\", \"out of scope for this PR\", \"follow-up work\", \"leave for another PR\", \"capture for later\", \"outstanding item\". This skill captures only. Picking a brief back up is the front door's job: worktrail-go \u003Cbrief-id>.","https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail\u002Fblob\u002Fmain\u002Fskills\u002Fworktrail-handoff\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":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M79PKJZD9MPN7Q8GWR01KX0J","worktrail-go","Use when the user invokes worktrail-go, asks to pick up queued work, resume active specs, implement or fix a spec, route engineering work, or orient across repositories. Renders the orientation dashboard, classifies free-text requests, claims\u002Fresumes handoff briefs, and dispatches SDD work without requiring the user to know sdd-workflow. Grammar: worktrail-go [REPO] \u003Cnoun> \u003Cverb>, nouns handoff \u002F spec \u002F pr \u002F decision. Triggers: worktrail-go, worktrail-go help, worktrail-go spec fix, worktrail-go spec implement, worktrail-go spec route F, worktrail-go handoff new, worktrail-go handoff auto, worktrail-go decision answer, worktrail-go BRIEF-ID, bare worktrail-go, multi-repo orientation.","https:\u002F\u002Fgithub.com\u002Fbehindthedash\u002Fworktrail\u002Fblob\u002Fmain\u002Fskills\u002Fworktrail-go\u002FSKILL.md",[],[]]