[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72YWACJVWM41EYSXKEDVRH9":3,"skill-same:01M72YWACJVWM41EYSXKEDVRH9":45},{"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":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M72YWACJVWM41EYSXKEDVRH9","agile-12-tech-debt-sweep",null,"End-of-sprint housekeeping before closeout: audit cross-repo leakage, useless CI, prebuild-image wins, CLAUDE.md\u002FAGENTS.md\u002FSKILL.md cruft, misplaced artifacts, dead code. Report before apply. Triggers: tech debt sweep, cleanup sweep, housekeeping, \u002Ftech-debt-sweep. Before agile-13-sprint-closeout.","cedricfarinazzo\u002Fagile-skills","cedricfarinazzo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F34288081?v=4","01M72YSXQAMF9679DT1EGZV51E","01M72YSXRG377986J64G71PJZE",0,"MIT","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fagile-sprint-close\u002Fskills\u002Fagile-12-tech-debt-sweep\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: agile-12-tech-debt-sweep\ndescription: \"End-of-sprint housekeeping before closeout: audit cross-repo leakage, useless CI, prebuild-image wins, CLAUDE.md\u002FAGENTS.md\u002FSKILL.md cruft, misplaced artifacts, dead code. Report before apply. Triggers: tech debt sweep, cleanup sweep, housekeeping, \u002Ftech-debt-sweep. Before agile-13-sprint-closeout.\"\n---\n\n# agile_12_tech_debt_sweep\n\nAudit the consumer repo for low-value drift accumulated during the sprint: report findings by category, get explicit approval, apply behaviour-preserving fixes, file cross-repo follow-ups.\n\n**Runs before `agile-13-sprint-closeout`** — closeout's smoke replays the user flow described in `CLAUDE.md\u002FAGENTS.md`, so it needs a clean repo and an accurate `CLAUDE.md\u002FAGENTS.md`. Sweeping *after* closeout would invalidate the closeout's signal.\n\n**Goal:** every finding is either fixed in place with no behaviour change, moved to its correct home repo, or filed as a tracked follow-up — so the sprint enters closeout with no obvious cruft, no CI workflows burning minutes for nothing, no personal tags leaked into project sources, and no Dockerfiles rebuilding stable content every run.\n\n**Non-goals:** rewriting business logic, adding features, refactoring for taste, changing test or CI semantics. **Behaviour preservation is the hard rule** — every approved change must be a no-op for the runtime and the test suite.\n\n**Input:** none required. Optionally scope to one bucket: `leakage` \u002F `claude-md` \u002F `ci` \u002F `docker` \u002F `misplacement` \u002F `dead-code`.\n\n## Phase 0 — Inventory\n\nRead the repo end-to-end — root and sub-folder `CLAUDE.md\u002FAGENTS.md`, `.github\u002Fworkflows\u002F`, `docker\u002F**`, `docker-compose*.yml`, every `SKILL.md` under `.claude\u002Fskills\u002F` and `.agents\u002Fskills\u002F` — and build a one-line manifest per category so the report is grounded in actual files rather than assumptions.\n\n## Phase 1 — Audit (six categories, all run by default)\n\n### A — Cross-repo \u002F personal leakage\n\nTracked project files must not carry: **personal workflow tags** in TODOs (`TODO(\u003Cowner-handle>)`, `TODO(\u003Cpersona-tag>)`); **personal style or compression modes** in `CLAUDE.md\u002FAGENTS.md` (\"always reply in `\u003Cstyle-name>` mode\") — those are agent-side preferences, not project conventions; **personal skill names** (`agile-13-sprint-closeout`, custom slash-commands) that live in plugin repos and are not installed for every contributor; or **owner-specific URLs, cloudIds, tokens, and project keys** outside their natural homes.\n\nBuild the tag list from the owner's actual agent\u002Fpersona vocabulary before grepping:\n\n```bash\ngrep -rni --include='*.md' --include='*.py' --include='*.ts' --include='*.tsx' \\\n  --include='*.yml' --include='*.yaml' --include='*.toml' --include='*.json' --include='*.sh' \\\n  -E '\u003Ctag1>|\u003Ctag2>|\u003Ccli-wrapper>|\u003Cowner-cloudId>' . \\\n  | grep -v '.venv' | grep -v node_modules | grep -v '\\.git\u002F' | grep -v '\\.claude\u002F'\n```\n\nFixes: `TODO(\u003Cowner-tag>): …` → `TODO: …`; a named style mode → the neutral behaviour it describes (\"concise; drop articles, filler, hedging\"); \"run `\u003Cpersonal-skill>` before X\" → the action it performs (\"run the end-of-sprint closeout gate before retro\").\n\n### B — `CLAUDE.md\u002FAGENTS.md` \u002F `SKILL.md` cruft\n\nRead every one in full and flag: **stale tree comments** contradicting current code (an annotation says \"stub\" where the file is now the full implementation); **duplicate stack tables** where a sub-folder re-lists rows already in the root (collapse to sub-only deps plus a pointer); **per-test bash blocks enumerating the same env block** with one filename swapped (replace with one canonical block plus \"swap the path for a single file\" — every former command is still producible); **trivial subsections restating root invariants**; **verbose multi-line `description:` frontmatter** where siblings use one line (compress, keeping all triggers verbatim); and **dead refs** to deleted files, moved scripts, or retired tickets.\n\n**Rule:** a removed line must be duplicated elsewhere, stale, or trivially derivable from a line that remains. **Never remove a battle-fought gotcha, an architecture invariant, or a test convention.**\n\n### C — Useless CI workflows\n\nWorkflows that cure consequences rather than causes, whose policy is already stated in `CLAUDE.md\u002FAGENTS.md`. Symptoms: it only posts a comment or adds a label nothing downstream consumes; its rule is already in `CLAUDE.md\u002FAGENTS.md` where the author, reviewer, and agent all read it at PR-creation time; it runs on every `synchronize` event burning runner minutes with no merge-blocking effect. *(Case study: a \"doc-only PR touches generated artifact\" warning workflow — the same rule is one bullet in root `CLAUDE.md\u002FAGENTS.md`.)*\n\n**Fix:** delete the workflow, strengthen the matching `CLAUDE.md\u002FAGENTS.md` bullet with specifics (the file globs it covers, the 2–3 action options), and confirm no orphan labels or comments dangle (`gh label delete` where the workflow created one).\n\n### D — Heavy Docker rebuilds → prebuild candidates\n\nRead every `Dockerfile` and every compose `build:` block, looking for layers that compile or download stable third-party tools (a C library, a CLI binary, browser bundles, native bindings) on every CI run, take >20s, and are invalidated by source changes that have nothing to do with them.\n\nEach is a candidate for extraction into the org's shared docker-images repo: a new `\u003Cimage-name>\u002F` folder at that repo's root with a `Dockerfile` parameterised by axes and multi-arch via `TARGETARCH`, `versions.json`, `package.json`, `.releaserc.json`, `README.md`, and `.github\u002Fworkflows\u002Fbuild-\u003Cimage-name>.yml` — then registered in the root `package.json` workspaces, the README images table, and the `CLAUDE.md\u002FAGENTS.md` layout. **Copy a working sibling image verbatim as the template and SHA-pin every `uses:`** rather than inventing a pattern.\n\n**Skip rule** — extraction is only worth it when the layer is genuinely stable (changes ≤ monthly), saves ≥20s per CI run, **and** is reusable by at least one other project. Otherwise it is complexity displacement.\n\n**The downstream swap is deferred.** Replacing the consumer's `build:` block with `image: ghcr.io\u002F\u003Cowner>\u002F\u003Cimage-name>:\u003Ctag>` must wait until the image is actually published, or compose pull fails. File it as a one-line follow-up ticket.\n\n### E — Misplaced artifacts\n\nThings living in the consumer repo that belong elsewhere: **plugin skills bundled into an app repo** (move to the plugin repo, add to the marketplace, delete or leave thin wrappers); **generalizable scripts hardcoded to one project** (a sprint audit script with `project = PROJ` baked into its JQL — generalise via args\u002Fenv, move beside the skill that calls it); **workflow docs and playbooks** that are execution conventions rather than project-specific.\n\nAfter each move, grep the consumer repo for residual references (the filename *and* the documented invocation) and either rewrite them to the new home or delete them as stale.\n\n### F — Dead \u002F slop source code\n\nScan tracked **source** (docs are category B). Every finding needs **evidence of deadness, not a hunch**: **unreferenced exports, functions, or files** proven by unused-export tooling or a repo-wide grep returning only the definition — a new file a story added but never wired is the common case; **commented-out blocks**; **dead branches and flags** (a flag now always one value, an `if` on a constant, a branch an earlier change made unreachable); **superseded or duplicated helpers**; **unused dependencies**.\n\n**Fix = delete** — removing code nothing reaches is a no-op, confirmed by the full test and lint suite afterwards. **Never delete on a weak signal:** a public API, plugin entrypoint, migration, or test fixture may be reached only by reflection, config, dynamic import, or a CI runner, so \"no callers\" from a grep is necessary but not sufficient. When a symbol is reachable non-statically, leave it and note why. Anything that changes behaviour at all is out of scope — file it as a refactor ticket.\n\n## Phase 2 — Report before apply\n\nOne Markdown report across all six categories, each finding row carrying file path, line range, what is wrong, the proposed fix, and a behaviour-preservation note; plus total lines saved and cross-repo moves.\n\n**Nothing is applied before the user approves — this is the hard gate.** Applying is destructive (deleting files, dropping workflows, moving artifacts between repos), so a wrong call loses work. \"Apply A and C only, skip B\" is a valid response, so structure the report to be approved per category.\n\n```markdown\n# Tech debt sweep — report\n\n## A — Cross-repo \u002F personal leakage      | File:line | Issue | Fix |\n## B — CLAUDE.md\u002FAGENTS.md \u002F SKILL.md cruft         | File:line | Issue | Lines saved | Fix |\n## C — Useless CI workflows               | Workflow | Why useless | Replacement |\n## D — Prebuild image candidates          | Layer | Rebuild cost per CI run | Target image | Notes |\n## E — Misplaced artifacts                | Source | Target repo | Notes |\n## F — Dead \u002F slop source code            | File:line | Kind | Evidence (why dead) | Fix |\n\n## Summary\n- N findings across 6 categories · lines saved ~X · CI minutes saved per run ~Y · cross-repo moves: [list]\n\nApprove which categories to apply.\n```\n\n**Skip categories the repo does not have** — a single-language repo with no Docker makes D N\u002FA; no bundled plugin skills makes E N\u002FA. **Report the skip explicitly** so the user knows you checked.\n\n## Phase 3 — Apply approved changes\n\nOnly the approved categories, **one commit per category per repo** so a reviewer can revert one bucket without unwinding the sweep.\n\n- **A \u002F B \u002F C** — in-repo edits and deletes. Lint the touched files and verify tests still parse (`pytest --collect-only`, `tsc --noEmit`).\n- **D** — scaffold the image in the shared docker-images repo only. **Do not touch the consumer's `docker-compose.yml`**; file the post-publish swap ticket instead.\n- **E** — move to the target repo, then grep the consumer for residual references and rewrite or delete them. **Cross-repo moves are two commits, not one:** the target repo gets the artifact and its plumbing first, and the consumer-side deletion lands separately so the move is independently reviewable.\n- **F** — delete the dead code and its orphaned imports, then run the **full** lint + unit + integration suite, not just the touched files. A false \"dead\" call turns red here: if anything breaks, it was not dead — revert and re-classify.\n\n## Phase 4 — Hand-off\n\nPer-repo commit list; the cross-repo PR order (\"docker-images PR first → wait for `\u003Cimage>-v1.0.0` → then the consumer swap PR\"); follow-up tickets filed; and a note that `agile-13-sprint-closeout` may now proceed.\n\n## Work discovered mid-phase — finish this ticket's own work; file what is separate\n\nEvery phase discovers work its ticket did not plan for. Two decisions, in order, and neither of them is \"leave it in a comment\":\n\n**1. Does it belong to this ticket?** It does when the change is incomplete, incorrect or inconsistent without it: the ACs, tests and docs for what it changes, a missed call site, a defect or flake its own change exposes, cleanup beside code it edits. Do it here, even when the PR grows. **Filing a follow-up to avoid work is not an option**; \"it is more work\" and \"it touches more files\" are not reasons. Test: would a reviewer accept this ticket as done without it? If not, it is this ticket's work.\n\n**2. Otherwise file it.** Separate work (its own design decision or risk, a different area, independent value) gets a ticket. One ticket per separate piece; never split this ticket's own remainder into several small ones.\n\n**Which backlog?**\n- **The current sprint** — it blocks the sprint goal, it is a must-have, or a human asked for it.\n- **The product backlog** — everything else, and this is the default. Pulling work into a running sprint is a scope change, not a convenience.\n\n**Point it at creation.** A ticket minted mid-phase never passes back through the refinement skill, so if it is not sized here it is never sized at all, and the sprint's velocity figure silently stops describing the work delivered. Use the project's normal estimation scale; if it truly cannot be sized yet, label it `unsized` with a one-line reason rather than leaving the field empty by default.\n\n## Stop conditions\n\n- A finding would require deleting a battle-fought gotcha or an architecture invariant to \"simplify\" — surface it, never auto-delete.\n- A cross-repo move would orphan a reference the consumer cannot easily rewrite — stop and ask rather than going half-way.\n- A prebuild extraction would change runtime behaviour, not just build location — it is no longer a behaviour-preserving sweep; file it separately.\n\n## When NOT to use\n\nA mid-sprint check-in (this runs after the last story merged and before closeout); a one-line `CLAUDE.md\u002FAGENTS.md` tweak (just edit it); or a greenfield repo, where the categories do not yet apply.\n\n**The report is read by humans and drives destructive actions, so its prose stays in normal English full sentences regardless of any session-level compression mode.**\n","# agile_12_tech_debt_sweep\n\nAudit the consumer repo for low-value drift accumulated during the sprint: report findings by category, get explicit approval, apply behaviour-preserving fixes, file cross-repo follow-ups.\n\n**Runs before `agile-13-sprint-closeout`** — closeout's smoke replays the user flow described in `CLAUDE.md\u002FAGENTS.md`, so it needs a clean repo and an accurate `CLAUDE.md\u002FAGENTS.md`. Sweeping *after* closeout would invalidate the closeout's signal.\n\n**Goal:** every finding is either fixed in place with no behaviour change, moved to its correct home repo, or filed as a tracked follow-up — so the sprint enters closeout with no obvious cruft, no CI workflows burning minutes for nothing, no personal tags leaked into project sources, and no Dockerfiles rebuilding stable content every run.\n\n**Non-goals:** rewriting business logic, adding features, refactoring for taste, changing test or CI semantics. **Behaviour preservation is the hard rule** — every approved change must be a no-op for the runtime and the test suite.\n\n**Input:** none required. Optionally scope to one bucket: `leakage` \u002F `claude-md` \u002F `ci` \u002F `docker` \u002F `misplacement` \u002F `dead-code`.\n\n## Phase 0 — Inventory\n\nRead the repo end-to-end — root and sub-folder `CLAUDE.md\u002FAGENTS.md`, `.github\u002Fworkflows\u002F`, `docker\u002F**`, `docker-compose*.yml`, every `SKILL.md` under `.claude\u002Fskills\u002F` and `.agents\u002Fskills\u002F` — and build a one-line manifest per category so the report is grounded in actual files rather than assumptions.\n\n## Phase 1 — Audit (six categories, all run by default)\n\n### A — Cross-repo \u002F personal leakage\n\nTracked project files must not carry: **personal workflow tags** in TODOs (`TODO(\u003Cowner-handle>)`, `TODO(\u003Cpersona-tag>)`); **personal style or compression modes** in `CLAUDE.md\u002FAGENTS.md` (\"always reply in `\u003Cstyle-name>` mode\") — those are agent-side preferences, not project conventions; **personal skill names** (`agile-13-sprint-closeout`, custom slash-commands) that live in plugin repos and are not installed for every contributor; or **owner-specific URLs, cloudIds, tokens, and project keys** outside their natural homes.\n\nBuild the tag list from the owner's actual agent\u002Fpersona vocabulary before grepping:\n\n```bash\ngrep -rni --include='*.md' --include='*.py' --include='*.ts' --include='*.tsx' \\\n  --include='*.yml' --include='*.yaml' --include='*.toml' --include='*.json' --include='*.sh' \\\n  -E '\u003Ctag1>|\u003Ctag2>|\u003Ccli-wrapper>|\u003Cowner-cloudId>' . \\\n  | grep -v '.venv' | grep -v node_modules | grep -v '\\.git\u002F' | grep -v '\\.claude\u002F'\n```\n\nFixes: `TODO(\u003Cowner-tag>): …` → `TODO: …`; a named style mode → the neutral behaviour it describes (\"concise; drop articles, filler, hedging\"); \"run `\u003Cpersonal-skill>` before X\" → the action it performs (\"run the end-of-sprint closeout gate before retro\").\n\n### B — `CLAUDE.md\u002FAGENTS.md` \u002F `SKILL.md` cruft\n\nRead every one in full and flag: **stale tree comments** contradicting current code (an annotation says \"stub\" where the file is now the full implementation); **duplicate stack tables** where a sub-folder re-lists rows already in the root (collapse to sub-only deps plus a pointer); **per-test bash blocks enumerating the same env block** with one filename swapped (replace with one canonical block plus \"swap the path for a single file\" — every former command is still producible); **trivial subsections restating root invariants**; **verbose multi-line `description:` frontmatter** where siblings use one line (compress, keeping all triggers verbatim); and **dead refs** to deleted files, moved scripts, or retired tickets.\n\n**Rule:** a removed line must be duplicated elsewhere, stale, or trivially derivable from a line that remains. **Never remove a battle-fought gotcha, an architecture invariant, or a test convention.**\n\n### C — Useless CI workflows\n\nWorkflows that cure consequences rather than causes, whose policy is already stated in `CLAUDE.md\u002FAGENTS.md`. Symptoms: it only posts a comment or adds a label nothing downstream consumes; its rule is already in `CLAUDE.md\u002FAGENTS.md` where the author, reviewer, and agent all read it at PR-creation time; it runs on every `synchronize` event burning runner minutes with no merge-blocking effect. *(Case study: a \"doc-only PR touches generated artifact\" warning workflow — the same rule is one bullet in root `CLAUDE.md\u002FAGENTS.md`.)*\n\n**Fix:** delete the workflow, strengthen the matching `CLAUDE.md\u002FAGENTS.md` bullet with specifics (the file globs it covers, the 2–3 action options), and confirm no orphan labels or comments dangle (`gh label delete` where the workflow created one).\n\n### D — Heavy Docker rebuilds → prebuild candidates\n\nRead every `Dockerfile` and every compose `build:` block, looking for layers that compile or download stable third-party tools (a C library, a CLI binary, browser bundles, native bindings) on every CI run, take >20s, and are invalidated by source changes that have nothing to do with them.\n\nEach is a candidate for extraction into the org's shared docker-images repo: a new `\u003Cimage-name>\u002F` folder at that repo's root with a `Dockerfile` parameterised by axes and multi-arch via `TARGETARCH`, `versions.json`, `package.json`, `.releaserc.json`, `README.md`, and `.github\u002Fworkflows\u002Fbuild-\u003Cimage-name>.yml` — then registered in the root `package.json` workspaces, the README images table, and the `CLAUDE.md\u002FAGENTS.md` layout. **Copy a working sibling image verbatim as the template and SHA-pin every `uses:`** rather than inventing a pattern.\n\n**Skip rule** — extraction is only worth it when the layer is genuinely stable (changes ≤ monthly), saves ≥20s per CI run, **and** is reusable by at least one other project. Otherwise it is complexity displacement.\n\n**The downstream swap is deferred.** Replacing the consumer's `build:` block with `image: ghcr.io\u002F\u003Cowner>\u002F\u003Cimage-name>:\u003Ctag>` must wait until the image is actually published, or compose pull fails. File it as a one-line follow-up ticket.\n\n### E — Misplaced artifacts\n\nThings living in the consumer repo that belong elsewhere: **plugin skills bundled into an app repo** (move to the plugin repo, add to the marketplace, delete or leave thin wrappers); **generalizable scripts hardcoded to one project** (a sprint audit script with `project = PROJ` baked into its JQL — generalise via args\u002Fenv, move beside the skill that calls it); **workflow docs and playbooks** that are execution conventions rather than project-specific.\n\nAfter each move, grep the consumer repo for residual references (the filename *and* the documented invocation) and either rewrite them to the new home or delete them as stale.\n\n### F — Dead \u002F slop source code\n\nScan tracked **source** (docs are category B). Every finding needs **evidence of deadness, not a hunch**: **unreferenced exports, functions, or files** proven by unused-export tooling or a repo-wide grep returning only the definition — a new file a story added but never wired is the common case; **commented-out blocks**; **dead branches and flags** (a flag now always one value, an `if` on a constant, a branch an earlier change made unreachable); **superseded or duplicated helpers**; **unused dependencies**.\n\n**Fix = delete** — removing code nothing reaches is a no-op, confirmed by the full test and lint suite afterwards. **Never delete on a weak signal:** a public API, plugin entrypoint, migration, or test fixture may be reached only by reflection, config, dynamic import, or a CI runner, so \"no callers\" from a grep is necessary but not sufficient. When a symbol is reachable non-statically, leave it and note why. Anything that changes behaviour at all is out of scope — file it as a refactor ticket.\n\n## Phase 2 — Report before apply\n\nOne Markdown report across all six categories, each finding row carrying file path, line range, what is wrong, the proposed fix, and a behaviour-preservation note; plus total lines saved and cross-repo moves.\n\n**Nothing is applied before the user approves — this is the hard gate.** Applying is destructive (deleting files, dropping workflows, moving artifacts between repos), so a wrong call loses work. \"Apply A and C only, skip B\" is a valid response, so structure the report to be approved per category.\n\n```markdown\n# Tech debt sweep — report\n\n## A — Cross-repo \u002F personal leakage      | File:line | Issue | Fix |\n## B — CLAUDE.md\u002FAGENTS.md \u002F SKILL.md cruft         | File:line | Issue | Lines saved | Fix |\n## C — Useless CI workflows               | Workflow | Why useless | Replacement |\n## D — Prebuild image candidates          | Layer | Rebuild cost per CI run | Target image | Notes |\n## E — Misplaced artifacts                | Source | Target repo | Notes |\n## F — Dead \u002F slop source code            | File:line | Kind | Evidence (why dead) | Fix |\n\n## Summary\n- N findings across 6 categories · lines saved ~X · CI minutes saved per run ~Y · cross-repo moves: [list]\n\nApprove which categories to apply.\n```\n\n**Skip categories the repo does not have** — a single-language repo with no Docker makes D N\u002FA; no bundled plugin skills makes E N\u002FA. **Report the skip explicitly** so the user knows you checked.\n\n## Phase 3 — Apply approved changes\n\nOnly the approved categories, **one commit per category per repo** so a reviewer can revert one bucket without unwinding the sweep.\n\n- **A \u002F B \u002F C** — in-repo edits and deletes. Lint the touched files and verify tests still parse (`pytest --collect-only`, `tsc --noEmit`).\n- **D** — scaffold the image in the shared docker-images repo only. **Do not touch the consumer's `docker-compose.yml`**; file the post-publish swap ticket instead.\n- **E** — move to the target repo, then grep the consumer for residual references and rewrite or delete them. **Cross-repo moves are two commits, not one:** the target repo gets the artifact and its plumbing first, and the consumer-side deletion lands separately so the move is independently reviewable.\n- **F** — delete the dead code and its orphaned imports, then run the **full** lint + unit + integration suite, not just the touched files. A false \"dead\" call turns red here: if anything breaks, it was not dead — revert and re-classify.\n\n## Phase 4 — Hand-off\n\nPer-repo commit list; the cross-repo PR order (\"docker-images PR first → wait for `\u003Cimage>-v1.0.0` → then the consumer swap PR\"); follow-up tickets filed; and a note that `agile-13-sprint-closeout` may now proceed.\n\n## Work discovered mid-phase — finish this ticket's own work; file what is separate\n\nEvery phase discovers work its ticket did not plan for. Two decisions, in order, and neither of them is \"leave it in a comment\":\n\n**1. Does it belong to this ticket?** It does when the change is incomplete, incorrect or inconsistent without it: the ACs, tests and docs for what it changes, a missed call site, a defect or flake its own change exposes, cleanup beside code it edits. Do it here, even when the PR grows. **Filing a follow-up to avoid work is not an option**; \"it is more work\" and \"it touches more files\" are not reasons. Test: would a reviewer accept this ticket as done without it? If not, it is this ticket's work.\n\n**2. Otherwise file it.** Separate work (its own design decision or risk, a different area, independent value) gets a ticket. One ticket per separate piece; never split this ticket's own remainder into several small ones.\n\n**Which backlog?**\n- **The current sprint** — it blocks the sprint goal, it is a must-have, or a human asked for it.\n- **The product backlog** — everything else, and this is the default. Pulling work into a running sprint is a scope change, not a convenience.\n\n**Point it at creation.** A ticket minted mid-phase never passes back through the refinement skill, so if it is not sized here it is never sized at all, and the sprint's velocity figure silently stops describing the work delivered. Use the project's normal estimation scale; if it truly cannot be sized yet, label it `unsized` with a one-line reason rather than leaving the field empty by default.\n\n## Stop conditions\n\n- A finding would require deleting a battle-fought gotcha or an architecture invariant to \"simplify\" — surface it, never auto-delete.\n- A cross-repo move would orphan a reference the consumer cannot easily rewrite — stop and ask rather than going half-way.\n- A prebuild extraction would change runtime behaviour, not just build location — it is no longer a behaviour-preserving sweep; file it separately.\n\n## When NOT to use\n\nA mid-sprint check-in (this runs after the last story merged and before closeout); a one-line `CLAUDE.md\u002FAGENTS.md` tweak (just edit it); or a greenfield repo, where the categories do not yet apply.\n\n**The report is read by humans and drives destructive actions, so its prose stays in normal English full sentences regardless of any session-level compression mode.**\n",{"name":5,"description":7},"master","5f163e1c0720bcc8f5c9caf4e675c301585b3b29","agile-sprint-close\u002Fskills\u002Fagile-12-tech-debt-sweep","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo","https:\u002F\u002Fcedricfarinazzo.fr\u002F","IT engineer specialized in Cybersecurity and SRE\u002FDevOps","2026-11-13 03:28:11",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add cedricfarinazzo\u002Fagile-skills --skill agile-12-tech-debt-sweep",{"tool":37,"command":38},"bunx","bunx skills add cedricfarinazzo\u002Fagile-skills --skill agile-12-tech-debt-sweep",{"tool":40,"command":41},"pnpm","pnpm dlx skills add cedricfarinazzo\u002Fagile-skills --skill agile-12-tech-debt-sweep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fagile-sprint-close\u002Fskills\u002Fagile-12-tech-debt-sweep\u002FSKILL.md",true,[],[46,53,60,67,74,81],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M72YXMSVD28QYHJ70AVJ9SBP","session-audit","Audit the cost and efficiency of Claude Code sessions that ran agile-skills: per-skill and per-subagent spend, a before\u002Fafter delta normalised by work shipped, and ranked skill improvements. Triggers: audit this session's cost, analyze the session transcripts, compare before and after sessions, is the new version more efficient, where do the tokens go, subagent cost breakdown, find efficiency improvements.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fsession-audit\u002Fskills\u002Fsession-audit\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":18},"01M72YXG2E8CAD3YHTHFESKF2B","deep-it-project-review","Autonomously perform a deep, evidence-backed technical review of a software or IT project across applicable architecture, code, security, delivery, operations, and lifecycle domains without modifying project files. Triggers: deep IT project review, technical project review, architecture audit, repository assessment, assess this codebase, review this project.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fproject-review\u002Fskills\u002Fdeep-it-project-review\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M72YXBQJCSDC60PVKA6H9SJ3","test-refactor","Audit one test suite at a time for dead weight, duplication, parallel-unsafety and runtime cost, or characterize behavior before a risky refactor — with production code frozen and good coverage kept, proven per module rather than assumed. Triggers: test refactor, characterize before refactor, characterization tests, clean the tests, refactor the tests, test suite audit, DRY the tests, parallelize the test suite, speed up the tests.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fdeep-refactor\u002Fskills\u002Ftest-refactor\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":18},"01M72YX7QCP7MA1H2DSWVG6Y4C","doc-refactor","Audit every markdown file in a repo — READMEs, docs\u002F, and agent-instruction files — for lies, drift, duplication and bloat, then ticket and ship the cleanup as a sequenced PR train, with source code frozen and every surviving claim verified against the repo rather than read. Triggers: doc refactor, refactor the docs, clean the docs, documentation audit, README audit, docs are stale, DRY the docs, audit every markdown file.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fdeep-refactor\u002Fskills\u002Fdoc-refactor\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M72YX36Z9MSECJH7FJ4JM09Z","deep-refactor","Audit an entire codebase for defects, waste and debt, then ticket and ship the findings as a sequenced PR train — without breaking the test contract. Triggers: deep refactor, refactor audit, clean the codebase, DRY pass, audit and fix everything.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fdeep-refactor\u002Fskills\u002Fdeep-refactor\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":18},"01M72YWZ1HEXSKQ7JCSVR2HPT0","agile-sprint-drain","Drain the active sprint to a fixed point: auto-alternate agile-10-implement (build) and agile-11-merge-train (merge) until both empty (DRAINED) or blocked (STUCK). Optional concurrency=N, dispatch=session, max-merges=N. Triggers: drain the sprint, run the sprint to completion, implement and merge until done, clear the whole board, ship the sprint.","https:\u002F\u002Fgithub.com\u002Fcedricfarinazzo\u002Fagile-skills\u002Fblob\u002Fmaster\u002Fagile-sprint-drain\u002Fskills\u002Fagile-sprint-drain\u002FSKILL.md",[],[]]