[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72TPWNCC7NEYD0D9N12KSQS":3,"skill-same:01M72TPWNCC7NEYD0D9N12KSQS":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M72TPWNCC7NEYD0D9N12KSQS","ywc-worktrees",null,"(ywc) Use when creating, auditing, pruning, or resolving git worktrees for isolated task workspaces, whether delegated from an executor or used standalone. Triggers: \"worktree 생성\", \"worktree audit\", \"worktree 정리\", \"worktree prune\", \"ywc-worktrees\", \"create worktree\". Do not use for branch creation\u002Fdeletion alone, PR creation (use ywc-create-pr), CI or merge delivery (use ywc-finish-branch), task orchestration (use ywc-sequential-executor or ywc-parallel-executor), or non-git isolation.","yongwoon\u002Fywc-agent-toolkit","yongwoon","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9317029?v=4","01M72SZSF6VKANKG5QTMV4V95S","01M72SZSG8HHC3W2CV5P7EJ5AH",8,"MIT","https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: ywc-worktrees\ndescription: >-\n  (ywc) Use when creating, auditing, pruning, or resolving git worktrees for\n  isolated task workspaces, whether delegated from an executor or used\n  standalone. Triggers: \"worktree 생성\", \"worktree audit\", \"worktree 정리\",\n  \"worktree prune\", \"ywc-worktrees\", \"create worktree\". Do not use for branch\n  creation\u002Fdeletion alone, PR creation (use ywc-create-pr), CI or merge delivery (use\n  ywc-finish-branch), task orchestration (use ywc-sequential-executor or\n  ywc-parallel-executor), or non-git isolation.\n---\n\n# ywc-worktrees\n\n**Announce at start:** \"I'm using the ywc-worktrees skill to manage the git worktree lifecycle for an isolated workspace.\"\n\nSingle source of truth for git worktree priority resolution, creation,\naudit, and pruning. Extracted from `ywc-parallel-executor` so the same\ndiscipline is callable from any skill that needs worktree isolation\n(parallel-executor's per-task worktrees, finish-branch's post-merge\ncleanup, ad-hoc developer use). Pattern inspiration: superpowers\n`using-git-worktrees` skill, adapted to this project's self-contained\nruntime policy — referenced for design intent only, never dispatched at\nruntime.\n\n## Rationalization Defense\n\nWhen tempted to skip a step, check this table first:\n\n| Excuse | Reality |\n|---|---|\n| \"Worktree location does not matter — drop it next to the repo\" | Worktree path is a contract. Callers and audit tooling expect `.worktrees\u002F\u003Ctask-name>` or the project's documented `worktree_root`. Inventing a sibling path breaks every downstream cleanup that scans the documented location. |\n| \"`git worktree prune` is enough — skip the audit step\" | `prune` removes only stale metadata for worktrees whose directories are gone. It does **not** report worktrees whose directories still exist but were never claimed by any task. Audit catches both classes; prune alone hides drift. |\n| \"If a worktree path already exists, just reuse it\" | A pre-existing path means either a prior run did not clean up (drift) or another task is currently using it (collision). Reuse silently corrupts whichever party is touching the path. Always treat existing paths as an error, not a hint. |\n| \"The caller passed `--mode create` so the resolution step is decided — skip the audit\" | Pre-flight audit is mandatory before any new worktree creation. Stale metadata from a previous run causes the new `git worktree add` to fail with a confusing \"already registered\" error; the audit + prune catches this before the user-visible failure. |\n| \"Worktree priority is overhead — the caller knows where it wants to go\" | The priority chain (`.worktrees\u002F` > CLAUDE.md `worktree_root` > `--root` fallback) exists so that a project can pin a worktree location once (in its CLAUDE.md) and have every skill respect it. Callers that bypass the chain silently fragment worktree locations across the project. |\n\n**Violating the letter of these rules is violating the spirit.** A stale worktree from yesterday's run is the most common cause of \"the new run is broken for no reason\" in parallel-executor.\n\n## Arguments\n\n| Parameter | Format | Example | Description |\n|---|---|---|---|\n| `--mode` | `\u003Cmode>` | `--mode create` | One of `create`, `audit`, `prune`, `resolve`. See [Modes](#modes). |\n| `--task-name` | `\u003Ctask-name>` | `--task-name 000001-010-db-create-users` | The task this worktree belongs to. Required for `create` and `prune`; optional for `audit`. |\n| `--branch` | `\u003Cbranch-name>` | `--branch feature\u002F000001-010-db-create-users` | The branch to associate with the worktree. Required for `create`; optional for `prune` (defaults to `feature\u002F\u003Ctask-name>`). |\n| `--base-branch` | `\u003Cbranch-name>` | `--base-branch develop` | Starting point for a new branch; required for `create` only without `--existing-branch`. |\n| `--existing-branch \u003CH>` | existing head | `--existing-branch feature\u002F123-fix` | Create-only: use local `H` or its exact `origin` ref; `--branch` must equal `H`. |\n| `--root` | `\u003Cpath>` | `--root .worktrees` | Fallback worktree root when the project has neither `.worktrees\u002F` nor `CLAUDE.md` `worktree_root`. Project-level configuration wins over this value. |\n| `--expect` | `\u003Ctask1,task2,...>` | `--expect 000001-010,000001-020` | (Audit only) Comma-separated list of task names that should currently have a worktree. Any extra or missing worktree fails the audit. |\n| `--force` | flag | | (Prune only) Pass `--force` to `git worktree remove` even if the worktree is dirty. Use only when the caller has confirmed the worktree's contents are disposable. |\n| `--keep-branch` | flag | | (Prune only) Remove the worktree and prune metadata but preserve `--branch`. Used by run-level sequential worktrees whose accumulated integration branch must survive cleanup. |\n\n## Modes\n\n| Mode | Reads | Writes | Use case |\n|---|---|---|---|\n| `resolve` | `.worktrees\u002F` presence, CLAUDE.md `worktree_root`, `--root` | nothing | Caller wants to know where a worktree would land before committing to create. Returns the resolved path on stdout. |\n| `create` | resolved root + `--task-name` + `--branch` + exactly one base\u002Fexisting flag | `git worktree add` | Per-task worktree creation. Called by `ywc-parallel-executor` Step 4 for each in-wave task. |\n| `audit` | resolved root contents + `--expect` (optional) | nothing (read-only) | Pre-flight or wave-end audit. Reports stale, leaked, or unexpected worktrees. |\n| `prune` | resolved root + `--task-name` + optional `--branch` | `git worktree remove` + local branch delete or preserve + `git worktree prune` | Post-merge cleanup. Called by `ywc-finish-branch` Step 5\u002F8 and `ywc-parallel-executor` Step 4g. |\n\nModes are mutually exclusive — `--mode` takes exactly one value. The caller chooses the mode based on the lifecycle stage; this skill does not infer.\n\nFor create, `--base-branch` and `--existing-branch` are mutually exclusive and exactly one is required. With no existing-branch flag, preserve existing new-branch creation. Treat every argument as literal data; owner\u002Finput\u002Foutput\u002Fstatus mismatch returns `NEEDS_CONTEXT` before mutation.\n\n## Priority Resolution\n\nThe worktree root is resolved by walking the following chain in order; the first match wins:\n\n1. **`.worktrees\u002F` directory present in repo root** — if the directory exists (even empty), it is the worktree root. This is the recommended pattern: a project commits an empty `.worktrees\u002F.gitkeep` to make the location explicit and discoverable.\n2. **CLAUDE.md `worktree_root` directive** — if `CLAUDE.md` contains a line matching `worktree_root: \u003Cpath>`, that path is the root. Allows projects to pin a location outside the repo (e.g., a sibling `..\u002F\u003Crepo>-worktrees\u002F`) without requiring an in-repo directory.\n3. **`--root \u003Cpath>` fallback** — used only when neither `.worktrees\u002F` nor `CLAUDE.md` declares a project-level root. This lets callers pass an explicit location without overriding project policy.\n4. **Project-relative `..\u002F` fallback** — if none of the above match, fall back to `..\u002Fworktree-\u003Ctask-name>` (the legacy parallel-executor convention). A warning is logged: the project should adopt `.worktrees\u002F` or the CLAUDE.md directive to make this explicit.\n\nThe resolved path is recorded in the caller's payload and re-derived (not stored) on every invocation, so a mid-run change to CLAUDE.md or `.worktrees\u002F` presence takes effect on the next call.\n\n## Execution\n\n### `--mode resolve`\n\n1. Walk the priority chain above.\n2. Print the resolved root path to stdout.\n3. Exit 0 on success; exit 1 if `--root` was provided but is not a writable directory.\n\nNo side effects. Safe to call from `--dry-run` paths in upstream skills.\n\n### `--mode create`\n\n0. Before the audit or any path is built, on both paths (new branch and `--existing-branch`): `--task-name` forms a path component, so it must match `^[A-Za-z0-9_-]+$` (the same allowlist as prune); otherwise `NEEDS_CONTEXT: invalid task name` with no git command.\n1. Run `--mode audit` before creation; stop on unexpected findings, then run `--mode resolve` internally to get the worktree root.\n2. Verify the target path `\u003Croot>\u002F\u003Ctask-name>` does not already exist. If it does, exit 1 with a descriptive error — never overwrite.\n3. For a new branch, validate each of the branch and base in-process first — whole-string `^[A-Za-z0-9._\u002F-]+$`, no leading `-`, no `..` — then with `git check-ref-format \"refs\u002Fheads\u002F\u003Cvalue>\"`, before any other git command, resolve a commit at the exact local base ref or exact `origin` base ref, and run `git worktree add \u003Cresolved-path> -b \u003Cbranch> \u003Cbase-start-point>`. Missing\u002Finvalid\u002Funreachable input is `NEEDS_CONTEXT`; other Git failures are `BLOCKED`.\n4. With `--existing-branch`, Read [references\u002Fexisting-branch.md](references\u002Fexisting-branch.md). It defines local\u002Fexact-origin lookup, checked-out\u002Fdirty\u002Flocked refusal, and the runnable command recipe; never replace the existing branch or infer a different remote.\n5. Verify the worktree was registered: `git worktree list --porcelain | grep \u003Cresolved-path>` returns a row.\n6. Print the resolved worktree path on stdout for the caller to capture.\n7. Exit 0 on success.\n\nError handling: if `git worktree add` fails (locked, branch already exists elsewhere, etc.), surface the exact git error and exit 1. Never retry; the caller decides whether the failure is recoverable.\n\n### `--mode audit`\n\n1. Run `--mode resolve` to get the worktree root.\n2. Run the bundled `scripts\u002Faudit-worktrees.sh` against the resolved root. The script reports:\n   - **Clean** — no stale metadata, no unexpected worktrees, every `--expect` task has a worktree.\n   - **Drift** — `git worktree list` rows whose directories no longer exist (stale metadata) OR directories under the root whose paths are not in `git worktree list`. Both cases fail the audit.\n   - **Missing** — when `--expect` is provided, tasks in the expect list that do not have a worktree. Fails the audit.\n   - **Leaked** — when `--expect` is provided, worktrees that exist but are not in the expect list. Fails the audit (a previous task was not cleaned up).\n3. Exit 0 if clean; exit 1 with the categorized findings on stdout if not.\n\n### `--mode prune`\n\n1. Run `--mode resolve` to get the worktree root.\n2. Run the bundled `scripts\u002Fcleanup-worktree.sh` against the resolved task worktree path. The script:\n   - Verifies the path is under the resolved root (refuses to operate on paths outside).\n   - Runs `git worktree remove \u003Cpath>` (or `--force` if `--force` was passed).\n   - Deletes the local branch with `git branch -d \u003Cbranch>` (default `feature\u002F\u003Ctask-name>`) after the worktree is released.\n   - If `--keep-branch` is set, skips branch deletion and verifies the branch still exists.\n   - Runs `git worktree prune` to clear any stale metadata.\n   - Verifies the path is gone, the metadata row is removed, and the local branch state matches the selected cleanup mode.\n3. Exit 0 if cleanup verified; exit 1 with details on stdout if any step failed.\n\nThe script refuses to operate on dirty worktrees unless `--force` is set — this is the discipline that catches accidental deletion of work in progress.\n\n## Output Format\n\nEvery invocation returns one compact result block. Callers consume the first\nline for routing, so the `Status:` line is mandatory.\n\n```text\nStatus: DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT\nMode: resolve | create | audit | prune\nTask: \u003Ctask-name or N\u002FA>\nResolved root: \u003Cpath>\nResolved path: \u003Cpath or N\u002FA>\nBranch: \u003Cbranch or N\u002FA>\nVerification:\n  - root resolution: PASS | FAIL — \u003Cevidence>\n  - worktree registration: PASS | FAIL | N\u002FA — \u003Cevidence>\n  - metadata cleanup: PASS | FAIL | N\u002FA — \u003Cevidence>\n  - branch cleanup: PASS | FAIL | N\u002FA — \u003Cevidence>\nNext: \u003Ccaller action or \"N\u002FA\">\n```\n\nUse the statuses as follows:\n\n| Status | When |\n|---|---|\n| `DONE` | The requested mode completed and every required verification passed. |\n| `DONE_WITH_CONCERNS` | The mode completed but audit found drift, prune skipped a dirty worktree, or cleanup needs follow-up. |\n| `BLOCKED` | Git command failure, unsafe path, existing target path, locked worktree, transport failure, or permission issue prevents completion. |\n| `NEEDS_CONTEXT` | Required arguments are missing\u002Finvalid, create flags conflict, or an existing branch is absent locally and on the exact `origin` ref. |\n\nFor `--mode resolve`, `Resolved path` may be `N\u002FA` because only the root is\nrequested. For `--mode audit`, list every drift, missing, or leaked worktree in\nthe `Next` line or immediately below it as short bullets.\n\n## Validation Checklist\n\nBefore returning `DONE`, verify:\n\n- [ ] The selected mode is exactly one of `resolve`, `create`, `audit`, or `prune`.\n- [ ] Required arguments for that mode were present; otherwise return `NEEDS_CONTEXT`.\n- [ ] The worktree root was resolved using the priority chain, not a caller-invented path.\n- [ ] `create` verified the target path did not already exist before running `git worktree add`.\n- [ ] `create` verified registration with `git worktree list --porcelain`.\n- [ ] `audit` ran `scripts\u002Faudit-worktrees.sh` against the resolved root.\n- [ ] `prune` ran `scripts\u002Fcleanup-worktree.sh` and verified path, metadata, and branch cleanup or preservation.\n- [ ] `--force` was used only when the caller explicitly confirmed the worktree contents were disposable.\n- [ ] The final response starts with one `Status:` line and includes the resolved root.\n\n## Common Mistakes\n\n| Mistake | Why it is wrong | Correct behavior |\n|---|---|---|\n| Calling `git worktree add` inline from the caller instead of `--mode create` | Bypasses the priority resolution chain (`.worktrees\u002F` > CLAUDE.md `worktree_root` > `--root` > `..\u002F` fallback), so the worktree lands at an undocumented path that audit and prune tooling cannot find later. | Always invoke `--mode create` with `--task-name`, `--branch`, and exactly one of `--base-branch` or `--existing-branch`; let the skill resolve the root and register the worktree at `\u003Croot>\u002F\u003Ctask-name>`. |\n| Calling `git worktree remove` directly to clean up after a merge | Removes the worktree but leaves the local `feature\u002F\u003Ctask-name>` branch behind and skips the `git worktree prune` of stale metadata, accumulating orphan branches and drift the audit will later flag as Leaked. | Use `--mode prune`, which runs `scripts\u002Fcleanup-worktree.sh` to remove the worktree, delete the local branch with `git branch -d`, prune metadata, and verify all three are gone. |\n| Passing `--keep-branch` for ordinary post-merge feature-branch cleanup | Preserving a task branch that should be deleted leaves stale local branches and can make audit output misleading. | Use `--keep-branch` for a retained sequential integration branch or a created PR review worktree whose open head must survive; delete ordinary merged task branches. |\n| Passing `--force` (or `git worktree remove --force`) to clear a worktree that still has uncommitted changes | The dirty-worktree refusal is the discipline that catches accidental deletion of in-progress work; forcing past it silently destroys unmerged commits or edits. | Leave `--force` unset by default. Only pass it after confirming the worktree's contents are disposable; otherwise commit or stash the work first. |\n| Skipping the Pre-flight `--mode audit` because the caller already chose `--mode create` | Stale metadata from a previous run makes the new `git worktree add` fail with a confusing \"already registered\" error, and a leaked worktree directory under the root collides with the new path. | Run `--mode audit` before any wave of creates so stale metadata and leaked worktrees are caught and pruned before the user-visible `add` failure. |\n| Reusing a worktree path that already exists instead of treating it as an error | A pre-existing `\u003Croot>\u002F\u003Ctask-name>` means either prior-run drift or a concurrent task is using it; reusing it silently corrupts whichever party is touching the path. | `--mode create` exits 1 when the target path exists — never overwrite. Resolve the collision (prune the stale one, or pick the correct task name) before retrying. |\n| Constructing a worktree path from an unsanitized `--task-name` (e.g. one containing `..\u002F`) | A task name with path-traversal segments resolves outside the documented worktree root, so prune\u002Faudit refuse to operate on it and cleanup leaks; `cleanup-worktree.sh` enforces the `^[A-Za-z0-9_-]+$` allowlist for exactly this reason. | Keep task names within `^[A-Za-z0-9_-]+$`. The prune script verifies the resolved path is under the root and rejects anything outside it; do not bypass that guard. |\n\n## Integration\n\n- **upstream** — `ywc-parallel-executor` (Pre-flight `--mode audit`, Step 4 per-task `--mode create`, Step 4g `--mode prune`); `ywc-finish-branch` (Step 5\u002F8 cleanup `--mode prune` when called from a parallel-executor context); `ywc-sequential-executor --worktree` (run worktree prune with `--keep-branch` for non-aggregate integration branches).\n- **conditional consumer** — `ywc-handle-pr-reviews --worktree` requests `--existing-branch`; it owns reuse\u002Fin-place selection and passes the pinned head unchanged.\n- **downstream** — none; this skill is a leaf operation. Callers consume its exit code and stdout.\n- **bundled scripts** — `scripts\u002Faudit-worktrees.sh` (audit), `scripts\u002Fcleanup-worktree.sh` (prune + local branch deletion). Both moved here from `ywc-parallel-executor\u002Fscripts\u002F` via `git mv`, preserving history.\n\n## Design Source\n\nAdapted from the superpowers `using-git-worktrees` skill. The priority resolution chain (`.worktrees\u002F` > CLAUDE.md > `--root` > fallback) and the four-mode interface (`create` \u002F `audit` \u002F `prune` \u002F `resolve`) follow that pattern. This project's self-contained runtime policy means the superpowers skill is **not** dispatched at runtime — it is a design reference for the pattern shape only, and this file is the project-owned implementation.\n\n## Notes\n\nThis skill is the single source for worktree lifecycle. Callers must not re-implement worktree creation or pruning inline; doing so fragments the priority resolution chain and the audit \u002F prune discipline. If a caller needs a worktree operation not covered by the four modes, extend this skill rather than work around it.\n","# ywc-worktrees\n\n**Announce at start:** \"I'm using the ywc-worktrees skill to manage the git worktree lifecycle for an isolated workspace.\"\n\nSingle source of truth for git worktree priority resolution, creation,\naudit, and pruning. Extracted from `ywc-parallel-executor` so the same\ndiscipline is callable from any skill that needs worktree isolation\n(parallel-executor's per-task worktrees, finish-branch's post-merge\ncleanup, ad-hoc developer use). Pattern inspiration: superpowers\n`using-git-worktrees` skill, adapted to this project's self-contained\nruntime policy — referenced for design intent only, never dispatched at\nruntime.\n\n## Rationalization Defense\n\nWhen tempted to skip a step, check this table first:\n\n| Excuse | Reality |\n|---|---|\n| \"Worktree location does not matter — drop it next to the repo\" | Worktree path is a contract. Callers and audit tooling expect `.worktrees\u002F\u003Ctask-name>` or the project's documented `worktree_root`. Inventing a sibling path breaks every downstream cleanup that scans the documented location. |\n| \"`git worktree prune` is enough — skip the audit step\" | `prune` removes only stale metadata for worktrees whose directories are gone. It does **not** report worktrees whose directories still exist but were never claimed by any task. Audit catches both classes; prune alone hides drift. |\n| \"If a worktree path already exists, just reuse it\" | A pre-existing path means either a prior run did not clean up (drift) or another task is currently using it (collision). Reuse silently corrupts whichever party is touching the path. Always treat existing paths as an error, not a hint. |\n| \"The caller passed `--mode create` so the resolution step is decided — skip the audit\" | Pre-flight audit is mandatory before any new worktree creation. Stale metadata from a previous run causes the new `git worktree add` to fail with a confusing \"already registered\" error; the audit + prune catches this before the user-visible failure. |\n| \"Worktree priority is overhead — the caller knows where it wants to go\" | The priority chain (`.worktrees\u002F` > CLAUDE.md `worktree_root` > `--root` fallback) exists so that a project can pin a worktree location once (in its CLAUDE.md) and have every skill respect it. Callers that bypass the chain silently fragment worktree locations across the project. |\n\n**Violating the letter of these rules is violating the spirit.** A stale worktree from yesterday's run is the most common cause of \"the new run is broken for no reason\" in parallel-executor.\n\n## Arguments\n\n| Parameter | Format | Example | Description |\n|---|---|---|---|\n| `--mode` | `\u003Cmode>` | `--mode create` | One of `create`, `audit`, `prune`, `resolve`. See [Modes](#modes). |\n| `--task-name` | `\u003Ctask-name>` | `--task-name 000001-010-db-create-users` | The task this worktree belongs to. Required for `create` and `prune`; optional for `audit`. |\n| `--branch` | `\u003Cbranch-name>` | `--branch feature\u002F000001-010-db-create-users` | The branch to associate with the worktree. Required for `create`; optional for `prune` (defaults to `feature\u002F\u003Ctask-name>`). |\n| `--base-branch` | `\u003Cbranch-name>` | `--base-branch develop` | Starting point for a new branch; required for `create` only without `--existing-branch`. |\n| `--existing-branch \u003CH>` | existing head | `--existing-branch feature\u002F123-fix` | Create-only: use local `H` or its exact `origin` ref; `--branch` must equal `H`. |\n| `--root` | `\u003Cpath>` | `--root .worktrees` | Fallback worktree root when the project has neither `.worktrees\u002F` nor `CLAUDE.md` `worktree_root`. Project-level configuration wins over this value. |\n| `--expect` | `\u003Ctask1,task2,...>` | `--expect 000001-010,000001-020` | (Audit only) Comma-separated list of task names that should currently have a worktree. Any extra or missing worktree fails the audit. |\n| `--force` | flag | | (Prune only) Pass `--force` to `git worktree remove` even if the worktree is dirty. Use only when the caller has confirmed the worktree's contents are disposable. |\n| `--keep-branch` | flag | | (Prune only) Remove the worktree and prune metadata but preserve `--branch`. Used by run-level sequential worktrees whose accumulated integration branch must survive cleanup. |\n\n## Modes\n\n| Mode | Reads | Writes | Use case |\n|---|---|---|---|\n| `resolve` | `.worktrees\u002F` presence, CLAUDE.md `worktree_root`, `--root` | nothing | Caller wants to know where a worktree would land before committing to create. Returns the resolved path on stdout. |\n| `create` | resolved root + `--task-name` + `--branch` + exactly one base\u002Fexisting flag | `git worktree add` | Per-task worktree creation. Called by `ywc-parallel-executor` Step 4 for each in-wave task. |\n| `audit` | resolved root contents + `--expect` (optional) | nothing (read-only) | Pre-flight or wave-end audit. Reports stale, leaked, or unexpected worktrees. |\n| `prune` | resolved root + `--task-name` + optional `--branch` | `git worktree remove` + local branch delete or preserve + `git worktree prune` | Post-merge cleanup. Called by `ywc-finish-branch` Step 5\u002F8 and `ywc-parallel-executor` Step 4g. |\n\nModes are mutually exclusive — `--mode` takes exactly one value. The caller chooses the mode based on the lifecycle stage; this skill does not infer.\n\nFor create, `--base-branch` and `--existing-branch` are mutually exclusive and exactly one is required. With no existing-branch flag, preserve existing new-branch creation. Treat every argument as literal data; owner\u002Finput\u002Foutput\u002Fstatus mismatch returns `NEEDS_CONTEXT` before mutation.\n\n## Priority Resolution\n\nThe worktree root is resolved by walking the following chain in order; the first match wins:\n\n1. **`.worktrees\u002F` directory present in repo root** — if the directory exists (even empty), it is the worktree root. This is the recommended pattern: a project commits an empty `.worktrees\u002F.gitkeep` to make the location explicit and discoverable.\n2. **CLAUDE.md `worktree_root` directive** — if `CLAUDE.md` contains a line matching `worktree_root: \u003Cpath>`, that path is the root. Allows projects to pin a location outside the repo (e.g., a sibling `..\u002F\u003Crepo>-worktrees\u002F`) without requiring an in-repo directory.\n3. **`--root \u003Cpath>` fallback** — used only when neither `.worktrees\u002F` nor `CLAUDE.md` declares a project-level root. This lets callers pass an explicit location without overriding project policy.\n4. **Project-relative `..\u002F` fallback** — if none of the above match, fall back to `..\u002Fworktree-\u003Ctask-name>` (the legacy parallel-executor convention). A warning is logged: the project should adopt `.worktrees\u002F` or the CLAUDE.md directive to make this explicit.\n\nThe resolved path is recorded in the caller's payload and re-derived (not stored) on every invocation, so a mid-run change to CLAUDE.md or `.worktrees\u002F` presence takes effect on the next call.\n\n## Execution\n\n### `--mode resolve`\n\n1. Walk the priority chain above.\n2. Print the resolved root path to stdout.\n3. Exit 0 on success; exit 1 if `--root` was provided but is not a writable directory.\n\nNo side effects. Safe to call from `--dry-run` paths in upstream skills.\n\n### `--mode create`\n\n0. Before the audit or any path is built, on both paths (new branch and `--existing-branch`): `--task-name` forms a path component, so it must match `^[A-Za-z0-9_-]+$` (the same allowlist as prune); otherwise `NEEDS_CONTEXT: invalid task name` with no git command.\n1. Run `--mode audit` before creation; stop on unexpected findings, then run `--mode resolve` internally to get the worktree root.\n2. Verify the target path `\u003Croot>\u002F\u003Ctask-name>` does not already exist. If it does, exit 1 with a descriptive error — never overwrite.\n3. For a new branch, validate each of the branch and base in-process first — whole-string `^[A-Za-z0-9._\u002F-]+$`, no leading `-`, no `..` — then with `git check-ref-format \"refs\u002Fheads\u002F\u003Cvalue>\"`, before any other git command, resolve a commit at the exact local base ref or exact `origin` base ref, and run `git worktree add \u003Cresolved-path> -b \u003Cbranch> \u003Cbase-start-point>`. Missing\u002Finvalid\u002Funreachable input is `NEEDS_CONTEXT`; other Git failures are `BLOCKED`.\n4. With `--existing-branch`, Read [references\u002Fexisting-branch.md](references\u002Fexisting-branch.md). It defines local\u002Fexact-origin lookup, checked-out\u002Fdirty\u002Flocked refusal, and the runnable command recipe; never replace the existing branch or infer a different remote.\n5. Verify the worktree was registered: `git worktree list --porcelain | grep \u003Cresolved-path>` returns a row.\n6. Print the resolved worktree path on stdout for the caller to capture.\n7. Exit 0 on success.\n\nError handling: if `git worktree add` fails (locked, branch already exists elsewhere, etc.), surface the exact git error and exit 1. Never retry; the caller decides whether the failure is recoverable.\n\n### `--mode audit`\n\n1. Run `--mode resolve` to get the worktree root.\n2. Run the bundled `scripts\u002Faudit-worktrees.sh` against the resolved root. The script reports:\n   - **Clean** — no stale metadata, no unexpected worktrees, every `--expect` task has a worktree.\n   - **Drift** — `git worktree list` rows whose directories no longer exist (stale metadata) OR directories under the root whose paths are not in `git worktree list`. Both cases fail the audit.\n   - **Missing** — when `--expect` is provided, tasks in the expect list that do not have a worktree. Fails the audit.\n   - **Leaked** — when `--expect` is provided, worktrees that exist but are not in the expect list. Fails the audit (a previous task was not cleaned up).\n3. Exit 0 if clean; exit 1 with the categorized findings on stdout if not.\n\n### `--mode prune`\n\n1. Run `--mode resolve` to get the worktree root.\n2. Run the bundled `scripts\u002Fcleanup-worktree.sh` against the resolved task worktree path. The script:\n   - Verifies the path is under the resolved root (refuses to operate on paths outside).\n   - Runs `git worktree remove \u003Cpath>` (or `--force` if `--force` was passed).\n   - Deletes the local branch with `git branch -d \u003Cbranch>` (default `feature\u002F\u003Ctask-name>`) after the worktree is released.\n   - If `--keep-branch` is set, skips branch deletion and verifies the branch still exists.\n   - Runs `git worktree prune` to clear any stale metadata.\n   - Verifies the path is gone, the metadata row is removed, and the local branch state matches the selected cleanup mode.\n3. Exit 0 if cleanup verified; exit 1 with details on stdout if any step failed.\n\nThe script refuses to operate on dirty worktrees unless `--force` is set — this is the discipline that catches accidental deletion of work in progress.\n\n## Output Format\n\nEvery invocation returns one compact result block. Callers consume the first\nline for routing, so the `Status:` line is mandatory.\n\n```text\nStatus: DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT\nMode: resolve | create | audit | prune\nTask: \u003Ctask-name or N\u002FA>\nResolved root: \u003Cpath>\nResolved path: \u003Cpath or N\u002FA>\nBranch: \u003Cbranch or N\u002FA>\nVerification:\n  - root resolution: PASS | FAIL — \u003Cevidence>\n  - worktree registration: PASS | FAIL | N\u002FA — \u003Cevidence>\n  - metadata cleanup: PASS | FAIL | N\u002FA — \u003Cevidence>\n  - branch cleanup: PASS | FAIL | N\u002FA — \u003Cevidence>\nNext: \u003Ccaller action or \"N\u002FA\">\n```\n\nUse the statuses as follows:\n\n| Status | When |\n|---|---|\n| `DONE` | The requested mode completed and every required verification passed. |\n| `DONE_WITH_CONCERNS` | The mode completed but audit found drift, prune skipped a dirty worktree, or cleanup needs follow-up. |\n| `BLOCKED` | Git command failure, unsafe path, existing target path, locked worktree, transport failure, or permission issue prevents completion. |\n| `NEEDS_CONTEXT` | Required arguments are missing\u002Finvalid, create flags conflict, or an existing branch is absent locally and on the exact `origin` ref. |\n\nFor `--mode resolve`, `Resolved path` may be `N\u002FA` because only the root is\nrequested. For `--mode audit`, list every drift, missing, or leaked worktree in\nthe `Next` line or immediately below it as short bullets.\n\n## Validation Checklist\n\nBefore returning `DONE`, verify:\n\n- [ ] The selected mode is exactly one of `resolve`, `create`, `audit`, or `prune`.\n- [ ] Required arguments for that mode were present; otherwise return `NEEDS_CONTEXT`.\n- [ ] The worktree root was resolved using the priority chain, not a caller-invented path.\n- [ ] `create` verified the target path did not already exist before running `git worktree add`.\n- [ ] `create` verified registration with `git worktree list --porcelain`.\n- [ ] `audit` ran `scripts\u002Faudit-worktrees.sh` against the resolved root.\n- [ ] `prune` ran `scripts\u002Fcleanup-worktree.sh` and verified path, metadata, and branch cleanup or preservation.\n- [ ] `--force` was used only when the caller explicitly confirmed the worktree contents were disposable.\n- [ ] The final response starts with one `Status:` line and includes the resolved root.\n\n## Common Mistakes\n\n| Mistake | Why it is wrong | Correct behavior |\n|---|---|---|\n| Calling `git worktree add` inline from the caller instead of `--mode create` | Bypasses the priority resolution chain (`.worktrees\u002F` > CLAUDE.md `worktree_root` > `--root` > `..\u002F` fallback), so the worktree lands at an undocumented path that audit and prune tooling cannot find later. | Always invoke `--mode create` with `--task-name`, `--branch`, and exactly one of `--base-branch` or `--existing-branch`; let the skill resolve the root and register the worktree at `\u003Croot>\u002F\u003Ctask-name>`. |\n| Calling `git worktree remove` directly to clean up after a merge | Removes the worktree but leaves the local `feature\u002F\u003Ctask-name>` branch behind and skips the `git worktree prune` of stale metadata, accumulating orphan branches and drift the audit will later flag as Leaked. | Use `--mode prune`, which runs `scripts\u002Fcleanup-worktree.sh` to remove the worktree, delete the local branch with `git branch -d`, prune metadata, and verify all three are gone. |\n| Passing `--keep-branch` for ordinary post-merge feature-branch cleanup | Preserving a task branch that should be deleted leaves stale local branches and can make audit output misleading. | Use `--keep-branch` for a retained sequential integration branch or a created PR review worktree whose open head must survive; delete ordinary merged task branches. |\n| Passing `--force` (or `git worktree remove --force`) to clear a worktree that still has uncommitted changes | The dirty-worktree refusal is the discipline that catches accidental deletion of in-progress work; forcing past it silently destroys unmerged commits or edits. | Leave `--force` unset by default. Only pass it after confirming the worktree's contents are disposable; otherwise commit or stash the work first. |\n| Skipping the Pre-flight `--mode audit` because the caller already chose `--mode create` | Stale metadata from a previous run makes the new `git worktree add` fail with a confusing \"already registered\" error, and a leaked worktree directory under the root collides with the new path. | Run `--mode audit` before any wave of creates so stale metadata and leaked worktrees are caught and pruned before the user-visible `add` failure. |\n| Reusing a worktree path that already exists instead of treating it as an error | A pre-existing `\u003Croot>\u002F\u003Ctask-name>` means either prior-run drift or a concurrent task is using it; reusing it silently corrupts whichever party is touching the path. | `--mode create` exits 1 when the target path exists — never overwrite. Resolve the collision (prune the stale one, or pick the correct task name) before retrying. |\n| Constructing a worktree path from an unsanitized `--task-name` (e.g. one containing `..\u002F`) | A task name with path-traversal segments resolves outside the documented worktree root, so prune\u002Faudit refuse to operate on it and cleanup leaks; `cleanup-worktree.sh` enforces the `^[A-Za-z0-9_-]+$` allowlist for exactly this reason. | Keep task names within `^[A-Za-z0-9_-]+$`. The prune script verifies the resolved path is under the root and rejects anything outside it; do not bypass that guard. |\n\n## Integration\n\n- **upstream** — `ywc-parallel-executor` (Pre-flight `--mode audit`, Step 4 per-task `--mode create`, Step 4g `--mode prune`); `ywc-finish-branch` (Step 5\u002F8 cleanup `--mode prune` when called from a parallel-executor context); `ywc-sequential-executor --worktree` (run worktree prune with `--keep-branch` for non-aggregate integration branches).\n- **conditional consumer** — `ywc-handle-pr-reviews --worktree` requests `--existing-branch`; it owns reuse\u002Fin-place selection and passes the pinned head unchanged.\n- **downstream** — none; this skill is a leaf operation. Callers consume its exit code and stdout.\n- **bundled scripts** — `scripts\u002Faudit-worktrees.sh` (audit), `scripts\u002Fcleanup-worktree.sh` (prune + local branch deletion). Both moved here from `ywc-parallel-executor\u002Fscripts\u002F` via `git mv`, preserving history.\n\n## Design Source\n\nAdapted from the superpowers `using-git-worktrees` skill. The priority resolution chain (`.worktrees\u002F` > CLAUDE.md > `--root` > fallback) and the four-mode interface (`create` \u002F `audit` \u002F `prune` \u002F `resolve`) follow that pattern. This project's self-contained runtime policy means the superpowers skill is **not** dispatched at runtime — it is a design reference for the pattern shape only, and this file is the project-owned implementation.\n\n## Notes\n\nThis skill is the single source for worktree lifecycle. Callers must not re-implement worktree creation or pruning inline; doing so fragments the priority resolution chain and the audit \u002F prune discipline. If a caller needs a worktree operation not covered by the four modes, extend this skill rather than work around it.\n",{"name":5,"description":7},"main","7e8ac872e53df8c89d75663e031626281a2a2f5c","plugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees",1,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit","https:\u002F\u002Fgithub.com\u002Fyongwoon","https:\u002F\u002Fwww.webhani.com","2026-11-08 17:14:59",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add yongwoon\u002Fywc-agent-toolkit --skill ywc-worktrees",{"tool":37,"command":38},"bunx","bunx skills add yongwoon\u002Fywc-agent-toolkit --skill ywc-worktrees",{"tool":40,"command":41},"pnpm","pnpm dlx skills add yongwoon\u002Fywc-agent-toolkit --skill ywc-worktrees","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002FSKILL.md",true,[45,51,55,59,63,67,71,75,79,83,89,93],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",422,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"evals\u002Fevals.json",2301,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002Fevals\u002Fevals.json",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"README.en.md",2406,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002FREADME.en.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"README.es.md",461,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002FREADME.es.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"README.ja.md",2595,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002FREADME.ja.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"README.ko.md",1591,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002FREADME.ko.md",{"path":72,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":73,"sourceHtmlUrl":74},"README.md",2439,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002FREADME.md",{"path":76,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":77,"sourceHtmlUrl":78},"README.zh.md",438,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002FREADME.zh.md",{"path":80,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fexisting-branch.md",5209,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002Freferences\u002Fexisting-branch.md",{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Faudit-worktrees.sh","SCRIPT","脚本",5929,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002Fscripts\u002Faudit-worktrees.sh",{"path":90,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fcleanup-worktree.sh",7381,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002Fscripts\u002Fcleanup-worktree.sh",{"path":94,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Ftest-cleanup-worktree.sh",1237,"https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-worktrees\u002Fscripts\u002Ftest-cleanup-worktree.sh",[98,104,110,117,124,131],{"skillNo":99,"name":100,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M72TQ84GTCPCV2VJ778V17TW","missing-frontmatter","https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fcodex-description-limit\u002Fmissing-frontmatter\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":18},"01M72TQ6M4BFWE7P9EPW0GZDCM","malformed-frontmatter","https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fcodex-description-limit\u002Fmalformed-frontmatter\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":18},"01M72TQ3ESGKXZ4QRWGTX92BKJ","fixture-501-fail","(ywc) Use when aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Do not use for x.","https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fcodex-description-limit\u002F501-fail\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":18},"01M72TQ0HJ8H3R37J9WPWGKJZR","fixture-500-pass","(ywc) Use when aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa Do not use for x.","https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fscripts\u002Ffixtures\u002Fcodex-description-limit\u002F500-pass\u002FSKILL.md",[],[],{"skillNo":125,"name":126,"nameZh":6,"description":127,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":128,"categories":129,"keywords":130,"publishedAt":18},"01M72TPRNR3E6QWB91GM98ABBV","ywc-wayfinder","(ywc) Use when a large or uncertain change needs multi-session discovery with a deterministic local map and exactly one active ticket before planning or implementation. Triggers: \"wayfinder\", \"길찾기\", \"discovery map\", \"multi-session discovery\", \"탐색 ticket\", \"経路整理\", \"探索マップ\", \"ywc-wayfinder\". Do not use for ordinary planning (use ywc-plan), idea clarification (use ywc-brainstorm), direct implementation, or tracker\u002Fdatabase writes outside the local Markdown map.","https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-wayfinder\u002FSKILL.md",[],[],{"skillNo":132,"name":133,"nameZh":6,"description":134,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":18},"01M72TPMBCJVPT92HFG9TVC4XB","ywc-verify-done","(ywc) Use when about to claim work is complete, tests\u002Fbuild pass, a bug is fixed, requirements are met, or a subagent has finished, and before commit, PR creation, executor handoff, or task transition. Triggers: \"완료\", \"끝났어\", \"verify done\", \"검증해줘\", \"done\", \"完了\", \"終わった\", \"ywc-verify-done\". Do not use for implementation drafting (use ywc-code-gen), root-cause debugging (use ywc-debug-rootcause), pre-implementation confidence assessment, or exploration before planning (use ywc-plan).","https:\u002F\u002Fgithub.com\u002Fyongwoon\u002Fywc-agent-toolkit\u002Fblob\u002Fmain\u002Fplugins\u002Fywc-agent-toolkit\u002Fskills\u002Fywc-verify-done\u002FSKILL.md",[],[]]