[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74HGBRBJCS3AYK1APFCKNQP":3,"skill-same:01M74HGBRBJCS3AYK1APFCKNQP":45},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M74HGBRBJCS3AYK1APFCKNQP","phase-0-snapshot",null,"Use ONLY when the user explicitly invokes \u002Fsnapshot or asks in clear terms to \"establish a Phase 0 baseline\" \u002F \"snapshot before refactoring\" \u002F \"tag the current state before cleanup.\" Do NOT auto-trigger on casual mentions of code being messy — confirm with the user first. This skill writes 3 files and creates a git tag, so explicit consent matters. Establishes the safety net BEFORE any change.","drumfiend21\u002Fclaude-tdd-pro","drumfiend21","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10619389?v=4","01M74HCNYY9VCB2B7FNCSPQSZN","Siddharth Joshi","01M74HCNZHQP883HA9WSN1G6TR",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fphase-0-snapshot\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: phase-0-snapshot\ndescription: Use ONLY when the user explicitly invokes \u002Fsnapshot or asks in clear terms to \"establish a Phase 0 baseline\" \u002F \"snapshot before refactoring\" \u002F \"tag the current state before cleanup.\" Do NOT auto-trigger on casual mentions of code being messy — confirm with the user first. This skill writes 3 files and creates a git tag, so explicit consent matters. Establishes the safety net BEFORE any change.\ndisable-model-invocation: true\n---\n\n# Phase 0: Snapshot\n\nYou are about to clean up a real codebase that wasn't built TDD-first.\nThe discipline below makes recovery from any future mistake possible.\n\n## When to use this\n\nTrigger on:\n- First session in a project that lacks a CLAUDE.md\n- User says \"I want to clean this up before [showing\u002Fdeploying\u002Fetc.]\"\n- User asks to \"refactor this whole thing\"\n- User describes the codebase as messy \u002F accreted \u002F vibe-coded\n\n## What Phase 0 produces\n\nAfter Phase 0, the codebase has:\n\n1. **A git tag** marking the pre-remediation state (`pre-remediation-YYYY-MM-DD`).\n2. **A top-level README.md** explaining the project layout, ports,\n   run commands, and current status.\n3. **A top-level CLAUDE.md** for AI assistants — architecture brief,\n   \"do not touch\" zones, known landmines, current phase status.\n4. **A REMEDIATION.md** punch list — every known bug, every planned\n   phase of cleanup, with checkboxes.\n\nThese files are the asset. Even if the user never refactors anything,\nthe snapshot + docs are independently valuable.\n\n## Step-by-step\n\n### 1. Survey the codebase\n\nUse the existing tools to understand:\n- Top-level layout (one project? monorepo?)\n- Tech stack (per `package.json` \u002F `pyproject.toml`)\n- Git state (branches, untagged commits, uncommitted changes)\n- Existing docs (READMEs in subdirs?)\n- Existing tests (how many? what framework? running?)\n- Lint setup (any?)\n- Hot spots (god-files >500 lines? files with TODO\u002FFIXME density?)\n\nSpend ~10% of time on the survey before writing anything.\n\n### 2. Capture the snapshot tag\n\nIf there are uncommitted changes:\n- Show the user `git status` + `git diff --stat`.\n- ASK whether to commit them as a snapshot or stash them.\n- If commit:\n  - **MANDATORY**: run the secret-scan helper before any `git add`:\n    ```bash\n    bash \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fscripts\u002Fsecret-scan.sh\"\n    ```\n    Exit 2 means a secret-bearing filename or secret-shaped content\n    is in the staged set. STOP. Surface the output to the user. Do\n    not proceed until either:\n      - the offending file is moved out of git's view, OR\n      - the offending content is removed\u002Fredacted, OR\n      - the user explicitly overrides with full awareness (and you\n        document the override in the commit message).\n  - Stage individually (`git add \u003Cfile>` per file from the changes\n    list); never `git add -A` blindly. Re-run secret-scan after staging.\n- If stash: stash with a descriptive message.\n\nThen:\n```bash\ngit tag -a pre-remediation-$(date +%Y-%m-%d) -m \"Snapshot before remediation work begins\"\n```\n\nFor multi-repo workspaces (sub-projects with their own `.git`), tag\neach sub-repo separately.\n\n### 3. Write the top-level README.md\n\nCover:\n- One-paragraph \"what this project is.\"\n- Repository layout (if multi-project).\n- Architecture summary in one paragraph + an ASCII diagram if helpful.\n- Quick start: install + run commands.\n- Environment variables required.\n- Status (e.g., \"currently mid-remediation; see REMEDIATION.md\").\n- Attribution if applicable.\n\nKeep it short. Detail goes in subdir READMEs.\n\n### 4. Write the top-level CLAUDE.md\n\nThis is the file every future Claude session reads first. Cover:\n- What the project IS (one paragraph).\n- Architecture in one table (path → stack → port → role).\n- Any **two-database design \u002F state machines \u002F pipelines** that aren't\n  obvious from the code. E.g., \"we have read-only db.sqlite and\n  read\u002Fwrite user.db; never mix.\"\n- Auth \u002F security model.\n- The largest god-files (with line counts) and a note that they're\n  being decomposed (which phase).\n- Read-only \u002F \"don't touch\" zones (e.g., generated code, asset\n  pipelines).\n- When to use Claude Code vs Copilot for which tasks.\n- Code style notes (until the linter takes over).\n- **Known landmines** — a bullet list of bugs\u002Ffootguns you discovered\n  during the survey, with file pointers.\n\nEnd with: \"When in doubt, ask. Default to small, reviewable diffs.\"\n\n### 5. Write REMEDIATION.md\n\nA live punch list, organized by phase:\n\n```markdown\n# REMEDIATION.md\n\nLive checklist for the cleanup of \u003Cproject>. Pre-remediation snapshot\ntagged as `pre-remediation-YYYY-MM-DD`.\n\n## Phase 0 — Snapshot, inventory, salvage *(in progress)*\n\n- [x] Tag pre-remediation\n- [x] Top-level README.md\n- [x] Top-level CLAUDE.md\n- [x] Top-level REMEDIATION.md\n- [ ] (other Phase 0 items as applicable)\n\n## Phase 1 — Guardrails *(not started)*\n\n- [ ] ESLint flat config\n- [ ] Prettier\n- [ ] Husky + lint-staged pre-commit\n- [ ] TypeScript checkJs (no rename)\n- [ ] CI workflow (lint + test)\n\n## Phase 2 — Characterization tests *(not started)*\n\n- [ ] Test framework set up (vitest \u002F pytest \u002F node:test)\n- [ ] Coverage of critical paths\n- [ ] Integration regression tests\n\n## Phase 3 — Targeted bug fixes *(not started)*\n\n| # | Bug | Location |\n|---|---|---|\n| 1 | \u003Cdiscovered during survey> | \u003Cfile:line> |\n\n## Phase 4 — Decompose god-files *(not started)*\n\n| Wave | Target | Lines | Coupling |\n|---|---|---|---|\n\n## Phase 5 — Polish + CI *(not started)*\n\n- [ ] Per-project READMEs\n- [ ] .env.example\n- [ ] Security review\n- [ ] v1.0.0 tag\n```\n\nPre-fill the bug list and the wave list with what you discovered\nduring the survey. The user refines from there.\n\n### 6. Commit the docs\n\n```bash\ngit add README.md CLAUDE.md REMEDIATION.md\ngit commit -m \"docs(phase0): snapshot + remediation plan\n\nPhase 0 baseline before remediation work. Tagged pre-remediation-YYYY-MM-DD.\nREADME + CLAUDE.md + REMEDIATION.md established for the cleanup process.\n\nAssisted-by: Claude (claude-tdd-pro 0.3.0)\"\n```\n\n### 7. Report back to the user\n\nSummarize what you put in place, what's in REMEDIATION.md as the\nproposed next steps, and ask which phase to tackle next. Default\nsuggestion: Phase 1 (guardrails) — it's low-risk, high-value, and\nunblocks everything else.\n\n## What to refuse\n\n- **\"Just start refactoring; we don't need the docs\"** — push back.\n  The docs are 30 minutes of work and prevent hours of debugging\n  later when something goes wrong. If the user insists, do at least\n  the tag and the REMEDIATION.md.\n- **\"Skip the snapshot tag\"** — refuse. The tag is one git command.\n  Without it, recovering from a bad refactor means manual diff\n  archaeology.\n- **\"Force-push to clean up history first\"** — refuse, especially if\n  the repo is shared. History rewrites belong in a separate, deliberate\n  step (Phase 5 security if `.env` was tracked) — never as a Phase 0\n  drive-by.\n","# Phase 0: Snapshot\n\nYou are about to clean up a real codebase that wasn't built TDD-first.\nThe discipline below makes recovery from any future mistake possible.\n\n## When to use this\n\nTrigger on:\n- First session in a project that lacks a CLAUDE.md\n- User says \"I want to clean this up before [showing\u002Fdeploying\u002Fetc.]\"\n- User asks to \"refactor this whole thing\"\n- User describes the codebase as messy \u002F accreted \u002F vibe-coded\n\n## What Phase 0 produces\n\nAfter Phase 0, the codebase has:\n\n1. **A git tag** marking the pre-remediation state (`pre-remediation-YYYY-MM-DD`).\n2. **A top-level README.md** explaining the project layout, ports,\n   run commands, and current status.\n3. **A top-level CLAUDE.md** for AI assistants — architecture brief,\n   \"do not touch\" zones, known landmines, current phase status.\n4. **A REMEDIATION.md** punch list — every known bug, every planned\n   phase of cleanup, with checkboxes.\n\nThese files are the asset. Even if the user never refactors anything,\nthe snapshot + docs are independently valuable.\n\n## Step-by-step\n\n### 1. Survey the codebase\n\nUse the existing tools to understand:\n- Top-level layout (one project? monorepo?)\n- Tech stack (per `package.json` \u002F `pyproject.toml`)\n- Git state (branches, untagged commits, uncommitted changes)\n- Existing docs (READMEs in subdirs?)\n- Existing tests (how many? what framework? running?)\n- Lint setup (any?)\n- Hot spots (god-files >500 lines? files with TODO\u002FFIXME density?)\n\nSpend ~10% of time on the survey before writing anything.\n\n### 2. Capture the snapshot tag\n\nIf there are uncommitted changes:\n- Show the user `git status` + `git diff --stat`.\n- ASK whether to commit them as a snapshot or stash them.\n- If commit:\n  - **MANDATORY**: run the secret-scan helper before any `git add`:\n    ```bash\n    bash \"${CLAUDE_PLUGIN_ROOT}\u002Fhooks\u002Fscripts\u002Fsecret-scan.sh\"\n    ```\n    Exit 2 means a secret-bearing filename or secret-shaped content\n    is in the staged set. STOP. Surface the output to the user. Do\n    not proceed until either:\n      - the offending file is moved out of git's view, OR\n      - the offending content is removed\u002Fredacted, OR\n      - the user explicitly overrides with full awareness (and you\n        document the override in the commit message).\n  - Stage individually (`git add \u003Cfile>` per file from the changes\n    list); never `git add -A` blindly. Re-run secret-scan after staging.\n- If stash: stash with a descriptive message.\n\nThen:\n```bash\ngit tag -a pre-remediation-$(date +%Y-%m-%d) -m \"Snapshot before remediation work begins\"\n```\n\nFor multi-repo workspaces (sub-projects with their own `.git`), tag\neach sub-repo separately.\n\n### 3. Write the top-level README.md\n\nCover:\n- One-paragraph \"what this project is.\"\n- Repository layout (if multi-project).\n- Architecture summary in one paragraph + an ASCII diagram if helpful.\n- Quick start: install + run commands.\n- Environment variables required.\n- Status (e.g., \"currently mid-remediation; see REMEDIATION.md\").\n- Attribution if applicable.\n\nKeep it short. Detail goes in subdir READMEs.\n\n### 4. Write the top-level CLAUDE.md\n\nThis is the file every future Claude session reads first. Cover:\n- What the project IS (one paragraph).\n- Architecture in one table (path → stack → port → role).\n- Any **two-database design \u002F state machines \u002F pipelines** that aren't\n  obvious from the code. E.g., \"we have read-only db.sqlite and\n  read\u002Fwrite user.db; never mix.\"\n- Auth \u002F security model.\n- The largest god-files (with line counts) and a note that they're\n  being decomposed (which phase).\n- Read-only \u002F \"don't touch\" zones (e.g., generated code, asset\n  pipelines).\n- When to use Claude Code vs Copilot for which tasks.\n- Code style notes (until the linter takes over).\n- **Known landmines** — a bullet list of bugs\u002Ffootguns you discovered\n  during the survey, with file pointers.\n\nEnd with: \"When in doubt, ask. Default to small, reviewable diffs.\"\n\n### 5. Write REMEDIATION.md\n\nA live punch list, organized by phase:\n\n```markdown\n# REMEDIATION.md\n\nLive checklist for the cleanup of \u003Cproject>. Pre-remediation snapshot\ntagged as `pre-remediation-YYYY-MM-DD`.\n\n## Phase 0 — Snapshot, inventory, salvage *(in progress)*\n\n- [x] Tag pre-remediation\n- [x] Top-level README.md\n- [x] Top-level CLAUDE.md\n- [x] Top-level REMEDIATION.md\n- [ ] (other Phase 0 items as applicable)\n\n## Phase 1 — Guardrails *(not started)*\n\n- [ ] ESLint flat config\n- [ ] Prettier\n- [ ] Husky + lint-staged pre-commit\n- [ ] TypeScript checkJs (no rename)\n- [ ] CI workflow (lint + test)\n\n## Phase 2 — Characterization tests *(not started)*\n\n- [ ] Test framework set up (vitest \u002F pytest \u002F node:test)\n- [ ] Coverage of critical paths\n- [ ] Integration regression tests\n\n## Phase 3 — Targeted bug fixes *(not started)*\n\n| # | Bug | Location |\n|---|---|---|\n| 1 | \u003Cdiscovered during survey> | \u003Cfile:line> |\n\n## Phase 4 — Decompose god-files *(not started)*\n\n| Wave | Target | Lines | Coupling |\n|---|---|---|---|\n\n## Phase 5 — Polish + CI *(not started)*\n\n- [ ] Per-project READMEs\n- [ ] .env.example\n- [ ] Security review\n- [ ] v1.0.0 tag\n```\n\nPre-fill the bug list and the wave list with what you discovered\nduring the survey. The user refines from there.\n\n### 6. Commit the docs\n\n```bash\ngit add README.md CLAUDE.md REMEDIATION.md\ngit commit -m \"docs(phase0): snapshot + remediation plan\n\nPhase 0 baseline before remediation work. Tagged pre-remediation-YYYY-MM-DD.\nREADME + CLAUDE.md + REMEDIATION.md established for the cleanup process.\n\nAssisted-by: Claude (claude-tdd-pro 0.3.0)\"\n```\n\n### 7. Report back to the user\n\nSummarize what you put in place, what's in REMEDIATION.md as the\nproposed next steps, and ask which phase to tackle next. Default\nsuggestion: Phase 1 (guardrails) — it's low-risk, high-value, and\nunblocks everything else.\n\n## What to refuse\n\n- **\"Just start refactoring; we don't need the docs\"** — push back.\n  The docs are 30 minutes of work and prevent hours of debugging\n  later when something goes wrong. If the user insists, do at least\n  the tag and the REMEDIATION.md.\n- **\"Skip the snapshot tag\"** — refuse. The tag is one git command.\n  Without it, recovering from a bad refactor means manual diff\n  archaeology.\n- **\"Force-push to clean up history first\"** — refuse, especially if\n  the repo is shared. History rewrites belong in a separate, deliberate\n  step (Phase 5 security if `.env` was tracked) — never as a Phase 0\n  drive-by.\n",{"name":5,"description":7,"disable-model-invocation":24},true,"main","41c38db9b8cf2d5b7743093654a12fdd9cd59c03","skills\u002Fphase-0-snapshot","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro","https:\u002F\u002Fgithub.com\u002Fdrumfiend21","http:\u002F\u002Fjungleej.wordpress.com","2026-11-09 20:29:03",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add drumfiend21\u002Fclaude-tdd-pro --skill phase-0-snapshot",{"tool":38,"command":39},"bunx","bunx skills add drumfiend21\u002Fclaude-tdd-pro --skill phase-0-snapshot",{"tool":41,"command":42},"pnpm","pnpm dlx skills add drumfiend21\u002Fclaude-tdd-pro --skill phase-0-snapshot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fphase-0-snapshot\u002FSKILL.md",[],[46,53,60,67,74,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M74HHPZCJM1SJFPMAT28GZ1S","test-first-extract","Use when the user asks to EXTRACT or RELOCATE existing code into its own file, module, or component (\"extract X\", \"split out Y\", \"pull Z into its own file\", \"decompose god-file\"). NOT for net-new features (use tdd-feature-build) or behavior changes (use fix-bug). Enforces the 9-step extraction with isolated unit tests + integration regression tests as a two-tier safety net.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Ftest-first-extract\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M74HHK1QJ5APDRM7WWMC90X9","tdd-feature-build","Use when the user describes a NEW feature to add (\"add X to Y\", \"implement Z\", \"build a feature that…\", \"make it possible to…\"). Enforces TDD — failing test first, minimum code to pass, refactor. Refuses to ship code without a test that demonstrably catches its absence. Does NOT trigger on bug fixes (use bug-fix-discipline) or refactors (use test-first-extract). Will ask 1-3 clarifying questions before writing any code; safe to delegate from \u002Ffeature command.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Ftdd-feature-build\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M74HHEXN1MK9SK9JDGN52YDJ","sync","Multi-machine git-backed sync of local TDD Pro state via the `tdd-pro-sync` branch. Use when operators run claude-tdd-pro on more than one machine and want their FAILURE-LOG, decisions, audit checkpoints, workflow state, operator-curated URL registries, operator\u002Fcommunity trees, and paywalled attestations to follow them between hosts.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fsync\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M74HHBQ8K1FNZ5AXTEGGF8RW","strict-component-tests","Use when writing or reviewing test files. Enforces strict assertions that actually catch regressions (getByRole, exact counts, jest-dom matchers) in contrast to permissive tests (queryAllByText length > 0) that pass against broken UIs. References QUALITY-BAR.md for the canonical strictness rules.","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fstrict-component-tests\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M74HHA5W00JK570KTA68MRZD","spec","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fspec\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M74HH5HR9S2Q6HRAW0GTXATA","spec-first","Use when the user describes a non-trivial feature or system that should be specified in writing before any code is written. Pattern from Geoffrey Huntley's \"Ralph\" loop, OpenSpec, intent-driven.dev, and Kent Beck's \"augmented coding\" framing — specs+tests are the durable artifact, code is the disposable one. Produces a Markdown spec document that the user reviews; only after approval does any code get written (typically via tdd-feature-build or \u002Ffeature).","https:\u002F\u002Fgithub.com\u002Fdrumfiend21\u002Fclaude-tdd-pro\u002Fblob\u002Fmain\u002Fskills\u002Fspec-first\u002FSKILL.md",[],[]]