[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EVTMPKG6R5BB99RGR8J014":3,"skill-same:01M7EVTMPKG6R5BB99RGR8J014":49},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":48},"01M7EVTMPKG6R5BB99RGR8J014","adopt",null,"Brownfield onboarding — audits existing project artifacts for template format compliance (not just existence), classifies gaps by impact, and produces a numbered migration plan. Run this when joining an in-progress project or upgrading from an older template version. Distinct from \u002Fproject-stage-detect (which checks what exists) — this checks whether what exists will actually work with the template's skills.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fadopt\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: adopt\ndescription: \"Brownfield onboarding — audits existing project artifacts for template format compliance (not just existence), classifies gaps by impact, and produces a numbered migration plan. Run this when joining an in-progress project or upgrading from an older template version. Distinct from \u002Fproject-stage-detect (which checks what exists) — this checks whether what exists will actually work with the template's skills.\"\nargument-hint: \"[focus: full | gdds | adrs | stories | infra]\"\nuser-invocable: true\nallowed-tools: Read, Glob, Grep, Write, AskUserQuestion\nagent: technical-director\n---\n\n# Adopt — Brownfield Template Adoption\n\nThis skill audits an existing project's artifacts for **format compliance** with\nthe template's skill pipeline, then produces a prioritised migration plan.\n\n**This is not `\u002Fproject-stage-detect`.**\n`\u002Fproject-stage-detect` answers: *what exists?*\n`\u002Fadopt` answers: *will what exists actually work with the template's skills?*\n\nA project can have GDDs, ADRs, and stories — and every format-sensitive skill\nwill still fail silently or produce wrong results if those artifacts are in the\nwrong internal format.\n\n**Output:** `docs\u002Fadoption-plan-[date].md` — a persistent, checkable migration plan.\n\n**Argument modes:**\n\n**Audit mode:** `$ARGUMENTS[0]` (blank = `full`)\n\n- **No argument \u002F `full`**: Complete audit — all artifact types\n- **`gdds`**: GDD format compliance only\n- **`adrs`**: ADR format compliance only\n- **`stories`**: Story format compliance only\n- **`infra`**: Infrastructure artifact gaps only (registry, manifest, sprint-status, stage.txt)\n\n---\n\n## Phase 1: Detect Project State\n\nEmit one line before reading: `\"Scanning project artifacts...\"` — this confirms the\nskill is running during the silent read phase.\n\nThen read silently before presenting anything else.\n\n### Existence check\n- `production\u002Fstage.txt` — if present, read it (authoritative phase)\n- `design\u002Fgdd\u002Fgame-concept.md` — concept exists?\n- `design\u002Fgdd\u002Fsystems-index.md` — systems index exists?\n- Count GDD files: `design\u002Fgdd\u002F*.md` (excluding game-concept.md and systems-index.md)\n- Count ADR files: `docs\u002Farchitecture\u002Fadr-*.md`\n- Count story files: `production\u002Fepics\u002F**\u002F*.md` (excluding EPIC.md)\n- `.claude\u002Fdocs\u002Ftechnical-preferences.md` — engine configured?\n- `docs\u002Fengine-reference\u002F` — engine reference docs present?\n- Glob `docs\u002Fadoption-plan-*.md` — note the filename of the most recent prior plan if any exist\n\n### Infer phase (if no stage.txt)\nUse the same heuristic as `\u002Fproject-stage-detect`:\n- 10+ source files in `src\u002F` → Production\n- Stories in `production\u002Fepics\u002F` → Pre-Production\n- ADRs exist → Technical Setup\n- systems-index.md exists → Systems Design\n- game-concept.md exists → Concept\n- Nothing → Fresh (not a brownfield project — suggest `\u002Fstart`)\n\nIf the project appears fresh (no artifacts at all), use `AskUserQuestion`:\n- \"This looks like a fresh project — no existing artifacts found. `\u002Fadopt` is for\n  projects with work to migrate. What would you like to do?\"\n  - \"Run `\u002Fstart` — begin guided first-time onboarding\"\n  - \"My artifacts are in a non-standard location — help me find them\"\n  - \"Cancel\"\n\nThen stop — do not proceed with the audit regardless of which option the user picks\n(each option leads to a different skill or manual investigation).\n\nReport: \"Detected phase: [phase]. Found: [N] GDDs, [M] ADRs, [P] stories.\"\n\n---\n\n## Phase 2: Format Audit\n\nFor each artifact type in scope (based on argument mode), check not just that\nthe file exists but that it contains the internal structure the template requires.\n\n### 2a: GDD Format Audit\n\nFor each GDD file found, check for the 8 required sections by scanning headings:\n\n| Required Section | Heading pattern to look for |\n|---|---|\n| Overview | `## Overview` |\n| Player Fantasy | `## Player Fantasy` |\n| Detailed Rules \u002F Design | `## Detailed` or `## Core Rules` or `## Detailed Design` |\n| Formulas | `## Formulas` or `## Formula` |\n| Edge Cases | `## Edge Cases` |\n| Dependencies | `## Dependencies` or `## Depends` |\n| Tuning Knobs | `## Tuning` |\n| Acceptance Criteria | `## Acceptance` |\n\nFor each GDD, record:\n- Which sections are present\n- Which sections are missing\n- Whether it has any content in present sections or just placeholder text\n  (`[To be designed]` or equivalent)\n\nAlso check: does each GDD have a `**Status**:` field in its header block?\nValid values: `In Design`, `Designed`, `In Review`, `Approved`, `Needs Revision`.\n\n### 2b: ADR Format Audit\n\nFor each ADR file found, check for these critical sections:\n\n| Section | Impact if missing |\n|---|---|\n| `## Status` | **BLOCKING** — `\u002Fstory-readiness` ADR status check silently passes everything |\n| `## ADR Dependencies` | HIGH — dependency ordering in `\u002Farchitecture-review` breaks |\n| `## Engine Compatibility` | HIGH — post-cutoff API risk is unknown |\n| `## GDD Requirements Addressed` | MEDIUM — traceability matrix loses coverage |\n| `## Performance Implications` | LOW — not pipeline-critical |\n\nFor each ADR, record: which sections present, which missing, current Status value\nif the Status section exists.\n\n### 2c: systems-index.md Format Audit\n\nIf `design\u002Fgdd\u002Fsystems-index.md` exists:\n\n1. **Parenthetical status values** — Grep for any Status cell containing\n   parentheses: `\"Needs Revision (\"`, `\"In Progress (\"`, etc.\n   These break exact-string matching in `\u002Fgate-check`, `\u002Fcreate-stories`,\n   and `\u002Farchitecture-review`. **BLOCKING.**\n\n2. **Valid status values** — check that Status column values are only from:\n   `Not Started`, `In Progress`, `In Review`, `Designed`, `Approved`, `Needs Revision`\n   Flag any unrecognised values.\n\n3. **Column structure** — check that the table has at minimum: System name,\n   Layer, Priority, Status columns. Missing columns degrade skill functionality.\n\n### 2d: Story Format Audit\n\nFor each story file found:\n\n- **`Manifest Version:` field** — present in story header? (LOW — auto-passes if absent)\n- **TR-ID reference** — does story contain `TR-[a-z]+-[0-9]+` pattern? (MEDIUM — no staleness tracking)\n- **ADR reference** — does story reference at least one ADR? (check for `ADR-` pattern)\n- **Status field** — present and readable?\n- **Acceptance criteria** — does the story have a checkbox list (`- [ ]`)?\n\n### 2e: Infrastructure Audit\n\n| Artifact | Path | Impact if missing |\n|---|---|---|\n| TR registry | `docs\u002Farchitecture\u002Ftr-registry.yaml` | HIGH — no stable requirement IDs |\n| Control manifest | `docs\u002Farchitecture\u002Fcontrol-manifest.md` | HIGH — no layer rules for stories |\n| Manifest version stamp | In manifest header: `Manifest Version:` | MEDIUM — staleness checks blind |\n| Sprint status | `production\u002Fsprint-status.yaml` | MEDIUM — `\u002Fsprint-status` falls back to markdown |\n| Stage file | `production\u002Fstage.txt` | MEDIUM — phase auto-detect unreliable |\n| Engine reference | `docs\u002Fengine-reference\u002F[engine]\u002FVERSION.md` | HIGH — ADR engine checks blind |\n| Architecture traceability | `docs\u002Farchitecture\u002Farchitecture-traceability.md` | MEDIUM — no persistent matrix |\n\n### 2f: Technical Preferences Audit\n\nRead `.claude\u002Fdocs\u002Ftechnical-preferences.md`. Check each field for `[TO BE CONFIGURED]`:\n- Engine, Language, Rendering, Physics → HIGH if unconfigured (ADR skills fail)\n- Naming conventions → MEDIUM\n- Performance budgets → MEDIUM\n- Forbidden Patterns, Allowed Libraries → LOW (starts empty by design)\n\n---\n\n## Phase 3: Classify and Prioritise Gaps\n\nOrganise every gap found across all audits into four severity tiers:\n\n**BLOCKING** — Will cause template skills to silently produce wrong results *right now*.\nExamples: ADR missing Status field, systems-index parenthetical status values,\nengine not configured when ADRs exist.\n\n**HIGH** — Will cause stories to be generated with missing safety checks, or\ninfrastructure bootstrapping will fail.\nExamples: ADRs missing Engine Compatibility, GDDs missing Acceptance Criteria\n(stories can't be generated from them), tr-registry.yaml missing.\n\n**MEDIUM** — Degrades quality and pipeline tracking but does not break functionality.\nExamples: GDDs missing Tuning Knobs or Formulas sections, stories missing TR-IDs,\nsprint-status.yaml missing.\n\n**LOW** — Retroactive improvements that are nice-to-have but not urgent.\nExamples: Stories missing Manifest Version stamps, GDDs missing Open Questions section.\n\nCount totals per tier. If zero BLOCKING and zero HIGH gaps: report that the project\nis template-compatible and only advisory improvements remain.\n\n---\n\n## Phase 4: Build the Migration Plan\n\nCompose a numbered, ordered action plan. Ordering rules:\n1. BLOCKING gaps first (must fix before any pipeline skill runs reliably)\n2. HIGH gaps next, infrastructure before GDD\u002FADR content (bootstrapping needs correct formats)\n3. MEDIUM gaps ordered: GDD gaps before ADR gaps before story gaps (stories depend on GDDs and ADRs)\n4. LOW gaps last\n\nFor each gap, produce a plan entry with:\n- A clear problem statement (one sentence, no jargon)\n- The exact command to fix it, if a skill handles it\n- Manual steps if it requires direct editing\n- A time estimate (rough: 5 min \u002F 30 min \u002F 1 session)\n- A checkbox `- [ ]` for tracking\n\n**Special case — systems-index parenthetical status values:**\nThis is always the first item if present. Show the exact values that need changing\nand the exact replacement text. Offer to fix this immediately before writing the plan.\n\n**Special case — ADRs missing Status field:**\nFor each affected ADR, the fix is:\n`\u002Farchitecture-decision retrofit docs\u002Farchitecture\u002Fadr-[NNNN]-[slug].md`\nList each ADR as a separate checkable item.\n\n**Special case — GDDs missing sections:**\nFor each affected GDD, list which sections are missing and the fix:\n`\u002Fdesign-system retrofit design\u002Fgdd\u002F[filename].md`\n\n**Infrastructure bootstrap ordering** — always present in this sequence:\n1. Fix ADR formats first (registry depends on reading ADR Status fields)\n2. Run `\u002Farchitecture-review` → bootstraps `tr-registry.yaml`\n3. Run `\u002Fcreate-control-manifest` → creates manifest with version stamp\n4. Run `\u002Fsprint-plan update` → creates `sprint-status.yaml`\n5. Run `\u002Fgate-check [phase]` → writes `stage.txt` authoritatively\n\n**Existing stories** — note explicitly:\n> \"Existing stories continue to work with all template skills — all new format\n> checks auto-pass when the fields are absent. They won't benefit from TR-ID\n> staleness tracking or manifest version checks until they're regenerated. This\n> is intentional: do not regenerate stories that are already in progress.\"\n\n---\n\n## Phase 5: Present Summary and Ask to Write\n\nPresent a compact summary before writing:\n\n```\n## Adoption Audit Summary\nPhase detected: [phase]\nEngine: [configured \u002F NOT CONFIGURED]\nGDDs audited: [N] ([X] fully compliant, [Y] with gaps)\nADRs audited: [N] ([X] fully compliant, [Y] with gaps)\nStories audited: [N]\n\nGap counts:\n  BLOCKING: [N] — template skills will malfunction without these fixes\n  HIGH:     [N] — unsafe to run \u002Fcreate-stories or \u002Fstory-readiness\n  MEDIUM:   [N] — quality degradation\n  LOW:      [N] — optional improvements\n\nEstimated remediation: [X blocking items × ~Y min each = roughly Z hours]\n```\n\nBefore asking to write, show a **Gap Preview**:\n- List every BLOCKING gap as a one-line bullet describing the actual problem\n  (e.g. `systems-index.md: 3 rows have parenthetical status values`,\n  `adr-0002.md: missing ## Status section`). No counts — show the actual items.\n- Show HIGH \u002F MEDIUM \u002F LOW as counts only (e.g. `HIGH: 4, MEDIUM: 2, LOW: 1`).\n\nThis gives the user enough context to judge scope before committing to writing the file.\n\nIf a prior adoption plan was detected in Phase 1, add a note:\n> \"A previous plan exists at `docs\u002Fadoption-plan-[prior-date].md`. The new plan will\n> reflect current project state — it does not diff against the prior run.\"\n\nUse `AskUserQuestion`:\n- \"Ready to write the migration plan?\"\n  - \"Yes — write `docs\u002Fadoption-plan-[date].md`\"\n  - \"Show me the full plan preview first (don't write yet)\"\n  - \"Cancel — I'll handle migration manually\"\n\nIf the user picks \"Show me the full plan preview\", output the complete plan as a\nfenced markdown block. Then ask again with the same three options.\n\n---\n\n## Phase 6: Write the Adoption Plan\n\nIf approved, write `docs\u002Fadoption-plan-[date].md` with this structure:\n\n```markdown\n# Adoption Plan\n\n> **Generated**: [date]\n> **Project phase**: [phase]\n> **Engine**: [name + version, or \"Not configured\"]\n> **Template version**: v1.0+\n\nWork through these steps in order. Check off each item as you complete it.\nRe-run `\u002Fadopt` anytime to check remaining gaps.\n\n---\n\n## Step 1: Fix Blocking Gaps\n\n[One sub-section per blocking gap with problem, fix command, time estimate, checkbox]\n\n---\n\n## Step 2: Fix High-Priority Gaps\n\n[One sub-section per high gap]\n\n---\n\n## Step 3: Bootstrap Infrastructure\n\n### 3a. Register existing requirements (creates tr-registry.yaml)\nRun `\u002Farchitecture-review` — even if ADRs already exist, this run bootstraps\nthe TR registry from your existing GDDs and ADRs.\n**Time**: 1 session (review can be long for large codebases)\n- [ ] tr-registry.yaml created\n\n### 3b. Create control manifest\nRun `\u002Fcreate-control-manifest`\n**Time**: 30 min\n- [ ] docs\u002Farchitecture\u002Fcontrol-manifest.md created\n\n### 3c. Create sprint tracking file\nRun `\u002Fsprint-plan update`\n**Time**: 5 min (if sprint plan already exists as markdown)\n- [ ] production\u002Fsprint-status.yaml created\n\n### 3d. Set authoritative project stage\nRun `\u002Fgate-check [current-phase]`\n**Time**: 5 min\n- [ ] production\u002Fstage.txt written\n\n---\n\n## Step 4: Medium-Priority Gaps\n\n[One sub-section per medium gap]\n\n---\n\n## Step 5: Optional Improvements\n\n[One sub-section per low gap]\n\n---\n\n## What to Expect from Existing Stories\n\nExisting stories continue to work with all template skills. New format checks\n(TR-ID validation, manifest version staleness) auto-pass when the fields are\nabsent — so nothing breaks. They won't benefit from staleness tracking until\nregenerated. Do not regenerate stories that are in progress or done.\n\n---\n\n## Re-run\n\nRun `\u002Fadopt` again after completing Step 3 to verify all blocking and high gaps\nare resolved. The new run will reflect the current state of the project.\n```\n\n---\n\n## Phase 6b: Set Review Mode\n\nAfter writing the adoption plan (or if the user cancels writing), check whether\n`production\u002Freview-mode.txt` exists.\n\n**If it exists**: Read it and note the current mode — \"Review mode is already set to `[current]`.\" — skip the prompt.\n\n**If it does not exist**: Use `AskUserQuestion`:\n\n- **Prompt**: \"One more setup step: how much design review would you like as you work through the workflow?\"\n- **Options**:\n  - `Full` — Director specialists review at each key workflow step. Best for teams, learning the workflow, or when you want thorough feedback on every decision.\n  - `Lean (recommended)` — Directors only at phase gate transitions (\u002Fgate-check). Skips per-skill reviews. Balanced for solo devs and small teams.\n  - `Solo` — No director reviews at all. Maximum speed. Best for game jams, prototypes, or if reviews feel like overhead.\n\nWrite the choice to `production\u002Freview-mode.txt` immediately after selection — no separate \"May I write?\" needed:\n- `Full` → write `full`\n- `Lean (recommended)` → write `lean`\n- `Solo` → write `solo`\n\nCreate the `production\u002F` directory if it does not exist.\n\n---\n\n## Phase 7: Offer First Action\n\nAfter writing the plan, don't stop there. Pick the single highest-priority gap\nand offer to handle it immediately using `AskUserQuestion`. Choose the first\nbranch that applies:\n\n**If there are parenthetical status values in systems-index.md:**\nUse `AskUserQuestion`:\n- \"The most urgent fix is `systems-index.md` — [N] rows have parenthetical status\n  values (e.g. `Needs Revision (see notes)`) that break \u002Fgate-check,\n  \u002Fcreate-stories, and \u002Farchitecture-review right now. I can fix these in-place.\"\n  - \"Fix it now — edit systems-index.md\"\n  - \"I'll fix it myself\"\n  - \"Done — leave me with the plan\"\n\n**If ADRs are missing `## Status` (and no parenthetical issue):**\nUse `AskUserQuestion`:\n- \"The most urgent fix is adding `## Status` to [N] ADR(s): [list filenames].\n  Without it, \u002Fstory-readiness silently passes all ADR checks. Start with\n  [first affected filename]?\"\n  - \"Yes — retrofit [first affected filename] now\"\n  - \"Retrofit all [N] ADRs one by one\"\n  - \"I'll handle ADRs myself\"\n\n**If GDDs are missing Acceptance Criteria (and no blocking issues above):**\nUse `AskUserQuestion`:\n- \"The most urgent gap is missing Acceptance Criteria in [N] GDD(s):\n  [list filenames]. Without them, \u002Fcreate-stories can't generate stories.\n  Start with [highest-priority GDD filename]?\"\n  - \"Yes — add Acceptance Criteria to [GDD filename] now\"\n  - \"Do all [N] GDDs one by one\"\n  - \"I'll handle GDDs myself\"\n\n**If no BLOCKING or HIGH gaps exist:**\nUse `AskUserQuestion`:\n- \"No blocking gaps — this project is template-compatible. What next?\"\n  - \"Walk me through the medium-priority improvements\"\n  - \"Run \u002Fproject-stage-detect for a broader health check\"\n  - \"Done — I'll work through the plan at my own pace\"\n\n---\n\n## Collaborative Protocol\n\n1. **Read silently** — complete the full audit before presenting anything\n2. **Show the summary first** — let the user see scope before asking to write\n3. **Ask before writing** — always confirm before creating the adoption plan file\n4. **Offer, don't force** — the plan is advisory; the user decides what to fix and when\n5. **One action at a time** — after handing off the plan, offer one specific next step,\n   not a list of six things to do simultaneously\n6. **Never regenerate existing artifacts** — only fill gaps in what exists;\n   do not rewrite GDDs, ADRs, or stories that already have content\n","# Adopt — Brownfield Template Adoption\n\nThis skill audits an existing project's artifacts for **format compliance** with\nthe template's skill pipeline, then produces a prioritised migration plan.\n\n**This is not `\u002Fproject-stage-detect`.**\n`\u002Fproject-stage-detect` answers: *what exists?*\n`\u002Fadopt` answers: *will what exists actually work with the template's skills?*\n\nA project can have GDDs, ADRs, and stories — and every format-sensitive skill\nwill still fail silently or produce wrong results if those artifacts are in the\nwrong internal format.\n\n**Output:** `docs\u002Fadoption-plan-[date].md` — a persistent, checkable migration plan.\n\n**Argument modes:**\n\n**Audit mode:** `$ARGUMENTS[0]` (blank = `full`)\n\n- **No argument \u002F `full`**: Complete audit — all artifact types\n- **`gdds`**: GDD format compliance only\n- **`adrs`**: ADR format compliance only\n- **`stories`**: Story format compliance only\n- **`infra`**: Infrastructure artifact gaps only (registry, manifest, sprint-status, stage.txt)\n\n---\n\n## Phase 1: Detect Project State\n\nEmit one line before reading: `\"Scanning project artifacts...\"` — this confirms the\nskill is running during the silent read phase.\n\nThen read silently before presenting anything else.\n\n### Existence check\n- `production\u002Fstage.txt` — if present, read it (authoritative phase)\n- `design\u002Fgdd\u002Fgame-concept.md` — concept exists?\n- `design\u002Fgdd\u002Fsystems-index.md` — systems index exists?\n- Count GDD files: `design\u002Fgdd\u002F*.md` (excluding game-concept.md and systems-index.md)\n- Count ADR files: `docs\u002Farchitecture\u002Fadr-*.md`\n- Count story files: `production\u002Fepics\u002F**\u002F*.md` (excluding EPIC.md)\n- `.claude\u002Fdocs\u002Ftechnical-preferences.md` — engine configured?\n- `docs\u002Fengine-reference\u002F` — engine reference docs present?\n- Glob `docs\u002Fadoption-plan-*.md` — note the filename of the most recent prior plan if any exist\n\n### Infer phase (if no stage.txt)\nUse the same heuristic as `\u002Fproject-stage-detect`:\n- 10+ source files in `src\u002F` → Production\n- Stories in `production\u002Fepics\u002F` → Pre-Production\n- ADRs exist → Technical Setup\n- systems-index.md exists → Systems Design\n- game-concept.md exists → Concept\n- Nothing → Fresh (not a brownfield project — suggest `\u002Fstart`)\n\nIf the project appears fresh (no artifacts at all), use `AskUserQuestion`:\n- \"This looks like a fresh project — no existing artifacts found. `\u002Fadopt` is for\n  projects with work to migrate. What would you like to do?\"\n  - \"Run `\u002Fstart` — begin guided first-time onboarding\"\n  - \"My artifacts are in a non-standard location — help me find them\"\n  - \"Cancel\"\n\nThen stop — do not proceed with the audit regardless of which option the user picks\n(each option leads to a different skill or manual investigation).\n\nReport: \"Detected phase: [phase]. Found: [N] GDDs, [M] ADRs, [P] stories.\"\n\n---\n\n## Phase 2: Format Audit\n\nFor each artifact type in scope (based on argument mode), check not just that\nthe file exists but that it contains the internal structure the template requires.\n\n### 2a: GDD Format Audit\n\nFor each GDD file found, check for the 8 required sections by scanning headings:\n\n| Required Section | Heading pattern to look for |\n|---|---|\n| Overview | `## Overview` |\n| Player Fantasy | `## Player Fantasy` |\n| Detailed Rules \u002F Design | `## Detailed` or `## Core Rules` or `## Detailed Design` |\n| Formulas | `## Formulas` or `## Formula` |\n| Edge Cases | `## Edge Cases` |\n| Dependencies | `## Dependencies` or `## Depends` |\n| Tuning Knobs | `## Tuning` |\n| Acceptance Criteria | `## Acceptance` |\n\nFor each GDD, record:\n- Which sections are present\n- Which sections are missing\n- Whether it has any content in present sections or just placeholder text\n  (`[To be designed]` or equivalent)\n\nAlso check: does each GDD have a `**Status**:` field in its header block?\nValid values: `In Design`, `Designed`, `In Review`, `Approved`, `Needs Revision`.\n\n### 2b: ADR Format Audit\n\nFor each ADR file found, check for these critical sections:\n\n| Section | Impact if missing |\n|---|---|\n| `## Status` | **BLOCKING** — `\u002Fstory-readiness` ADR status check silently passes everything |\n| `## ADR Dependencies` | HIGH — dependency ordering in `\u002Farchitecture-review` breaks |\n| `## Engine Compatibility` | HIGH — post-cutoff API risk is unknown |\n| `## GDD Requirements Addressed` | MEDIUM — traceability matrix loses coverage |\n| `## Performance Implications` | LOW — not pipeline-critical |\n\nFor each ADR, record: which sections present, which missing, current Status value\nif the Status section exists.\n\n### 2c: systems-index.md Format Audit\n\nIf `design\u002Fgdd\u002Fsystems-index.md` exists:\n\n1. **Parenthetical status values** — Grep for any Status cell containing\n   parentheses: `\"Needs Revision (\"`, `\"In Progress (\"`, etc.\n   These break exact-string matching in `\u002Fgate-check`, `\u002Fcreate-stories`,\n   and `\u002Farchitecture-review`. **BLOCKING.**\n\n2. **Valid status values** — check that Status column values are only from:\n   `Not Started`, `In Progress`, `In Review`, `Designed`, `Approved`, `Needs Revision`\n   Flag any unrecognised values.\n\n3. **Column structure** — check that the table has at minimum: System name,\n   Layer, Priority, Status columns. Missing columns degrade skill functionality.\n\n### 2d: Story Format Audit\n\nFor each story file found:\n\n- **`Manifest Version:` field** — present in story header? (LOW — auto-passes if absent)\n- **TR-ID reference** — does story contain `TR-[a-z]+-[0-9]+` pattern? (MEDIUM — no staleness tracking)\n- **ADR reference** — does story reference at least one ADR? (check for `ADR-` pattern)\n- **Status field** — present and readable?\n- **Acceptance criteria** — does the story have a checkbox list (`- [ ]`)?\n\n### 2e: Infrastructure Audit\n\n| Artifact | Path | Impact if missing |\n|---|---|---|\n| TR registry | `docs\u002Farchitecture\u002Ftr-registry.yaml` | HIGH — no stable requirement IDs |\n| Control manifest | `docs\u002Farchitecture\u002Fcontrol-manifest.md` | HIGH — no layer rules for stories |\n| Manifest version stamp | In manifest header: `Manifest Version:` | MEDIUM — staleness checks blind |\n| Sprint status | `production\u002Fsprint-status.yaml` | MEDIUM — `\u002Fsprint-status` falls back to markdown |\n| Stage file | `production\u002Fstage.txt` | MEDIUM — phase auto-detect unreliable |\n| Engine reference | `docs\u002Fengine-reference\u002F[engine]\u002FVERSION.md` | HIGH — ADR engine checks blind |\n| Architecture traceability | `docs\u002Farchitecture\u002Farchitecture-traceability.md` | MEDIUM — no persistent matrix |\n\n### 2f: Technical Preferences Audit\n\nRead `.claude\u002Fdocs\u002Ftechnical-preferences.md`. Check each field for `[TO BE CONFIGURED]`:\n- Engine, Language, Rendering, Physics → HIGH if unconfigured (ADR skills fail)\n- Naming conventions → MEDIUM\n- Performance budgets → MEDIUM\n- Forbidden Patterns, Allowed Libraries → LOW (starts empty by design)\n\n---\n\n## Phase 3: Classify and Prioritise Gaps\n\nOrganise every gap found across all audits into four severity tiers:\n\n**BLOCKING** — Will cause template skills to silently produce wrong results *right now*.\nExamples: ADR missing Status field, systems-index parenthetical status values,\nengine not configured when ADRs exist.\n\n**HIGH** — Will cause stories to be generated with missing safety checks, or\ninfrastructure bootstrapping will fail.\nExamples: ADRs missing Engine Compatibility, GDDs missing Acceptance Criteria\n(stories can't be generated from them), tr-registry.yaml missing.\n\n**MEDIUM** — Degrades quality and pipeline tracking but does not break functionality.\nExamples: GDDs missing Tuning Knobs or Formulas sections, stories missing TR-IDs,\nsprint-status.yaml missing.\n\n**LOW** — Retroactive improvements that are nice-to-have but not urgent.\nExamples: Stories missing Manifest Version stamps, GDDs missing Open Questions section.\n\nCount totals per tier. If zero BLOCKING and zero HIGH gaps: report that the project\nis template-compatible and only advisory improvements remain.\n\n---\n\n## Phase 4: Build the Migration Plan\n\nCompose a numbered, ordered action plan. Ordering rules:\n1. BLOCKING gaps first (must fix before any pipeline skill runs reliably)\n2. HIGH gaps next, infrastructure before GDD\u002FADR content (bootstrapping needs correct formats)\n3. MEDIUM gaps ordered: GDD gaps before ADR gaps before story gaps (stories depend on GDDs and ADRs)\n4. LOW gaps last\n\nFor each gap, produce a plan entry with:\n- A clear problem statement (one sentence, no jargon)\n- The exact command to fix it, if a skill handles it\n- Manual steps if it requires direct editing\n- A time estimate (rough: 5 min \u002F 30 min \u002F 1 session)\n- A checkbox `- [ ]` for tracking\n\n**Special case — systems-index parenthetical status values:**\nThis is always the first item if present. Show the exact values that need changing\nand the exact replacement text. Offer to fix this immediately before writing the plan.\n\n**Special case — ADRs missing Status field:**\nFor each affected ADR, the fix is:\n`\u002Farchitecture-decision retrofit docs\u002Farchitecture\u002Fadr-[NNNN]-[slug].md`\nList each ADR as a separate checkable item.\n\n**Special case — GDDs missing sections:**\nFor each affected GDD, list which sections are missing and the fix:\n`\u002Fdesign-system retrofit design\u002Fgdd\u002F[filename].md`\n\n**Infrastructure bootstrap ordering** — always present in this sequence:\n1. Fix ADR formats first (registry depends on reading ADR Status fields)\n2. Run `\u002Farchitecture-review` → bootstraps `tr-registry.yaml`\n3. Run `\u002Fcreate-control-manifest` → creates manifest with version stamp\n4. Run `\u002Fsprint-plan update` → creates `sprint-status.yaml`\n5. Run `\u002Fgate-check [phase]` → writes `stage.txt` authoritatively\n\n**Existing stories** — note explicitly:\n> \"Existing stories continue to work with all template skills — all new format\n> checks auto-pass when the fields are absent. They won't benefit from TR-ID\n> staleness tracking or manifest version checks until they're regenerated. This\n> is intentional: do not regenerate stories that are already in progress.\"\n\n---\n\n## Phase 5: Present Summary and Ask to Write\n\nPresent a compact summary before writing:\n\n```\n## Adoption Audit Summary\nPhase detected: [phase]\nEngine: [configured \u002F NOT CONFIGURED]\nGDDs audited: [N] ([X] fully compliant, [Y] with gaps)\nADRs audited: [N] ([X] fully compliant, [Y] with gaps)\nStories audited: [N]\n\nGap counts:\n  BLOCKING: [N] — template skills will malfunction without these fixes\n  HIGH:     [N] — unsafe to run \u002Fcreate-stories or \u002Fstory-readiness\n  MEDIUM:   [N] — quality degradation\n  LOW:      [N] — optional improvements\n\nEstimated remediation: [X blocking items × ~Y min each = roughly Z hours]\n```\n\nBefore asking to write, show a **Gap Preview**:\n- List every BLOCKING gap as a one-line bullet describing the actual problem\n  (e.g. `systems-index.md: 3 rows have parenthetical status values`,\n  `adr-0002.md: missing ## Status section`). No counts — show the actual items.\n- Show HIGH \u002F MEDIUM \u002F LOW as counts only (e.g. `HIGH: 4, MEDIUM: 2, LOW: 1`).\n\nThis gives the user enough context to judge scope before committing to writing the file.\n\nIf a prior adoption plan was detected in Phase 1, add a note:\n> \"A previous plan exists at `docs\u002Fadoption-plan-[prior-date].md`. The new plan will\n> reflect current project state — it does not diff against the prior run.\"\n\nUse `AskUserQuestion`:\n- \"Ready to write the migration plan?\"\n  - \"Yes — write `docs\u002Fadoption-plan-[date].md`\"\n  - \"Show me the full plan preview first (don't write yet)\"\n  - \"Cancel — I'll handle migration manually\"\n\nIf the user picks \"Show me the full plan preview\", output the complete plan as a\nfenced markdown block. Then ask again with the same three options.\n\n---\n\n## Phase 6: Write the Adoption Plan\n\nIf approved, write `docs\u002Fadoption-plan-[date].md` with this structure:\n\n```markdown\n# Adoption Plan\n\n> **Generated**: [date]\n> **Project phase**: [phase]\n> **Engine**: [name + version, or \"Not configured\"]\n> **Template version**: v1.0+\n\nWork through these steps in order. Check off each item as you complete it.\nRe-run `\u002Fadopt` anytime to check remaining gaps.\n\n---\n\n## Step 1: Fix Blocking Gaps\n\n[One sub-section per blocking gap with problem, fix command, time estimate, checkbox]\n\n---\n\n## Step 2: Fix High-Priority Gaps\n\n[One sub-section per high gap]\n\n---\n\n## Step 3: Bootstrap Infrastructure\n\n### 3a. Register existing requirements (creates tr-registry.yaml)\nRun `\u002Farchitecture-review` — even if ADRs already exist, this run bootstraps\nthe TR registry from your existing GDDs and ADRs.\n**Time**: 1 session (review can be long for large codebases)\n- [ ] tr-registry.yaml created\n\n### 3b. Create control manifest\nRun `\u002Fcreate-control-manifest`\n**Time**: 30 min\n- [ ] docs\u002Farchitecture\u002Fcontrol-manifest.md created\n\n### 3c. Create sprint tracking file\nRun `\u002Fsprint-plan update`\n**Time**: 5 min (if sprint plan already exists as markdown)\n- [ ] production\u002Fsprint-status.yaml created\n\n### 3d. Set authoritative project stage\nRun `\u002Fgate-check [current-phase]`\n**Time**: 5 min\n- [ ] production\u002Fstage.txt written\n\n---\n\n## Step 4: Medium-Priority Gaps\n\n[One sub-section per medium gap]\n\n---\n\n## Step 5: Optional Improvements\n\n[One sub-section per low gap]\n\n---\n\n## What to Expect from Existing Stories\n\nExisting stories continue to work with all template skills. New format checks\n(TR-ID validation, manifest version staleness) auto-pass when the fields are\nabsent — so nothing breaks. They won't benefit from staleness tracking until\nregenerated. Do not regenerate stories that are in progress or done.\n\n---\n\n## Re-run\n\nRun `\u002Fadopt` again after completing Step 3 to verify all blocking and high gaps\nare resolved. The new run will reflect the current state of the project.\n```\n\n---\n\n## Phase 6b: Set Review Mode\n\nAfter writing the adoption plan (or if the user cancels writing), check whether\n`production\u002Freview-mode.txt` exists.\n\n**If it exists**: Read it and note the current mode — \"Review mode is already set to `[current]`.\" — skip the prompt.\n\n**If it does not exist**: Use `AskUserQuestion`:\n\n- **Prompt**: \"One more setup step: how much design review would you like as you work through the workflow?\"\n- **Options**:\n  - `Full` — Director specialists review at each key workflow step. Best for teams, learning the workflow, or when you want thorough feedback on every decision.\n  - `Lean (recommended)` — Directors only at phase gate transitions (\u002Fgate-check). Skips per-skill reviews. Balanced for solo devs and small teams.\n  - `Solo` — No director reviews at all. Maximum speed. Best for game jams, prototypes, or if reviews feel like overhead.\n\nWrite the choice to `production\u002Freview-mode.txt` immediately after selection — no separate \"May I write?\" needed:\n- `Full` → write `full`\n- `Lean (recommended)` → write `lean`\n- `Solo` → write `solo`\n\nCreate the `production\u002F` directory if it does not exist.\n\n---\n\n## Phase 7: Offer First Action\n\nAfter writing the plan, don't stop there. Pick the single highest-priority gap\nand offer to handle it immediately using `AskUserQuestion`. Choose the first\nbranch that applies:\n\n**If there are parenthetical status values in systems-index.md:**\nUse `AskUserQuestion`:\n- \"The most urgent fix is `systems-index.md` — [N] rows have parenthetical status\n  values (e.g. `Needs Revision (see notes)`) that break \u002Fgate-check,\n  \u002Fcreate-stories, and \u002Farchitecture-review right now. I can fix these in-place.\"\n  - \"Fix it now — edit systems-index.md\"\n  - \"I'll fix it myself\"\n  - \"Done — leave me with the plan\"\n\n**If ADRs are missing `## Status` (and no parenthetical issue):**\nUse `AskUserQuestion`:\n- \"The most urgent fix is adding `## Status` to [N] ADR(s): [list filenames].\n  Without it, \u002Fstory-readiness silently passes all ADR checks. Start with\n  [first affected filename]?\"\n  - \"Yes — retrofit [first affected filename] now\"\n  - \"Retrofit all [N] ADRs one by one\"\n  - \"I'll handle ADRs myself\"\n\n**If GDDs are missing Acceptance Criteria (and no blocking issues above):**\nUse `AskUserQuestion`:\n- \"The most urgent gap is missing Acceptance Criteria in [N] GDD(s):\n  [list filenames]. Without them, \u002Fcreate-stories can't generate stories.\n  Start with [highest-priority GDD filename]?\"\n  - \"Yes — add Acceptance Criteria to [GDD filename] now\"\n  - \"Do all [N] GDDs one by one\"\n  - \"I'll handle GDDs myself\"\n\n**If no BLOCKING or HIGH gaps exist:**\nUse `AskUserQuestion`:\n- \"No blocking gaps — this project is template-compatible. What next?\"\n  - \"Walk me through the medium-priority improvements\"\n  - \"Run \u002Fproject-stage-detect for a broader health check\"\n  - \"Done — I'll work through the plan at my own pace\"\n\n---\n\n## Collaborative Protocol\n\n1. **Read silently** — complete the full audit before presenting anything\n2. **Show the summary first** — let the user see scope before asking to write\n3. **Ask before writing** — always confirm before creating the adoption plan file\n4. **Offer, don't force** — the plan is advisory; the user decides what to fix and when\n5. **One action at a time** — after handing off the plan, offer one specific next step,\n   not a list of six things to do simultaneously\n6. **Never regenerate existing artifacts** — only fill gaps in what exists;\n   do not rewrite GDDs, ADRs, or stories that already have content\n",{"name":5,"agent":24,"description":7,"allowed-tools":25,"argument-hint":26,"user-invocable":27},"technical-director","Read, Glob, Grep, Write, AskUserQuestion","[focus: full | gdds | adrs | stories | infra]",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fadopt",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":27},[38,41,44],{"tool":39,"command":40},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill adopt",{"tool":42,"command":43},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill adopt",{"tool":45,"command":46},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill adopt","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fadopt\u002FSKILL.md",[],[50,58,63,70,77,84],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":59,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":57},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":57},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":57},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":57},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":57},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]