agentleFS
Mi9-LLCMi9-LLC/agent-skills/CLAUDE.md

agent-skills

CLAUDE.md2 starsChanged 5 months agoMITView on GitHub

This is the Mi9 LLC public catalog of Claude Code Agent Skills, hosted on GitHub at github.com/Mi9-LLC/agent-skills. Teammates and external users install individual skills with: It is not application code. There is no build, test, or lint pipeline — the entire repo is Markdown skill definitions. Do not invent commands; there are none to run. Flat skills layout, matching the canonical anthropics/skills example: .claude-plugin/marketplace.json and hooks/ are the one exception to the flat layout. They exist because npx skills add…

  • Reads credentials
  • Deletes or force-pushes
  • Installs packages
  • Commits and pushes

The file

Files
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Repository purpose

This is the Mi9 LLC public catalog of Claude Code Agent Skills, hosted on GitHub at github.com/Mi9-LLC/agent-skills. Teammates and external users install individual skills with:

npx skills add https://github.com/Mi9-LLC/agent-skills --skill <skill-name>

It is not application code. There is no build, test, or lint pipeline — the entire repo is Markdown skill definitions. Do not invent commands; there are none to run.

Layout

Flat skills layout, matching the canonical anthropics/skills example:

  • skills/<name>/SKILL.md — the skill definition (YAML frontmatter with name, description, allowed-tools + Markdown body that's loaded into the model when the skill triggers).
  • skills/<name>/references/ — on-demand reference docs the skill reads itself when it needs the detail. Keep these out of SKILL.md so the always-loaded body stays small.

.claude-plugin/marketplace.json and hooks/ are the one exception to the flat layout. They exist because npx skills add installs skill files only: clear-and-short needs a UserPromptSubmit hook, and execute-change needs three subagent-watching hooks plus a process-sweep script. Read "Distribution mechanism" below before adding a third plugin.

The one other top-level directory is evals/ — skill eval fixtures (e.g. evals/session-handoff/) kept out of the installable skill folders. It is development material only: npx skills add installs a single skills/<name>/ tree and never pulls evals/, so nothing here ships to consumers.

Current skills

  • security-vulnerability-scan (skills/security-vulnerability-scan/) — OWASP Top 10:2025 static scanner. Read-only on the target source tree; writes only audit/<YYYY-MM-DD>/report.md. Never modifies source files, configs, lockfiles, or .gitignore of the repo being scanned; declares disallowed-tools: Edit, NotebookEdit to drop those tools while the skill is active (a per-turn guard — clears on the next message). Ships references/ (one file per OWASP A01–A10 category + framework-checks.md).
  • live-app-security-audit (skills/live-app-security-audit/) — Runtime audit of a deployed live URL. Seven checks: security headers, TLS, frontend-bundle secret search, localStorage tokens, unauthenticated endpoints, login rate-limit, username enumeration. Read-only on the user's source tree; writes only audit/<YYYY-MM-DD>/live-audit.md (mirrors security-vulnerability-scan's path, so both reports live side-by-side). Declares disallowed-tools: Edit, NotebookEdit (drops those tools while active; a per-turn guard that clears on the next message). Active probes (rate-limit, enumeration) require explicit target-authorization at Step 0; uses RFC-reserved @example.invalid emails for probes. Designed as the runtime counterpart to security-vulnerability-scan.
  • anti-sycophancy (skills/anti-sycophancy/) — Behavioral skill that swaps Claude into critical-thinking-partner mode for review/feedback/decision asks. Argues the strongest opposing case first, names untested assumptions, surfaces weaknesses before strengths, ends with a sit-with question. Produces no files or reports; behavioral only — changes only how Claude argues. Trigger description carved by skill-creator's description-optimization loop against an Opus 4.7 eval set. A do-NOT carve-out for structured pre-implementation plan review (routes to plan-eng-review) was appended to the description post-eval; re-running the description eval is an optional follow-up, not done.
  • update-dependencies (skills/update-dependencies/) — Research-first dependency updater for any JS/TS project. Supports npm, pnpm, yarn Classic, yarn Berry, and bun; auto-detects single-package or monorepo layout. Manual-only (disable-model-invocation: true; invoke with /update-dependencies [package-names...]). Operates exclusively on a dedicated agent/update-dependencies/<ts>-<rand> branch created from the auto-detected default branch; never commits or pushes. Ships references/ docs: per-PM command table (package-managers.md) and lockstep-ecosystem families (lockstep-ecosystems.md).
  • convert-plan-to-feature (skills/convert-plan-to-feature/) — Decomposes an approved plan into independently-trackable, per-feature implementation specs under a dedicated <plan-location>/<initiative>/ subfolder (the repository's own plan location checked first — its CLAUDE.md and existing folders, e.g. docs/up next/ — defaulting to docs/plans/): a REQUIREMENTS.md index (context, blast radius, cross-cutting catalogs, deploy ordering, parallel groups, feature table with a Status column — the initiative's status board; when every feature is done the folder follows the repo's docs contract, many repos pruning implemented plans) plus one features/NN - <name>.md file per unit of work, each with its own requirements, technical steps with real file paths, dependencies, acceptance criteria, and a verbatim Standing instructions for the implementer block (open questions go back to the requester, never resolved by assumption; external library/API behavior verified against current docs, not internal knowledge; the file's acceptance criteria are the verification contract verify-implementation runs against, so a mid-feature scope change is written back into them). A feature that modifies existing behavior must carry an acceptance criterion naming its regression test. Model assignments are quality-first: Opus is the default; Sonnet/Haiku only when a feature meets every condition of the cheaper tier; any underestimation signal (shared contracts, cross-component work, concurrency/caching/migrations/auth, modified existing behavior, open questions, "just/simple/quick" wording) forces Opus; a mandatory second pass re-reviews every assignment after all files are written (in doubt between tiers ⇒ the higher one), and the plan's own per-phase recommendations are input, not authority. Parallel groups mark concurrency mechanically (no dependencies ⇒ group 1; otherwise 1 + highest dependency group; same group ⇒ no mutual dependencies ⇒ safe to implement concurrently), recorded in the features table and each file's header and consistency-checked at the verify step — so a step-5 fleet coordinator never re-derives the dependency graph. On a re-run where the <initiative>/ folder already exists it reads the existing REQUIREMENTS.md first, preserves every feature's Status value, and asks (AskUserQuestion) before overwriting any feature file whose status is past todo. Produces planning documents only — does not implement anything. Declares disallowed-tools: Edit, NotebookEdit to drop those tools while the skill is active (a per-turn guard — clears on the next message). Invoke when a finished/approved plan exists (from plan mode or under docs/plans/) and the user wants it split into trackable features/tickets/specs — but NOT in a repository that mandates its own spec workflow (e.g. OpenSpec repos, where the change's tasks.md owns the breakdown; there the skill's execution rigor — model rubric, parallel groups, acceptance criteria, standing implementer instructions — is ported into that artifact instead of a parallel breakdown).
  • new-feature (skills/new-feature/) — Investigative Q&A workflow that turns a fuzzy feature request into a fully-specified design before any code is written. Researches the relevant code plus current best practices first, then surfaces every ambiguous design decision as categorized questions (A/B/C…) with [REC]-marked default options, one category per message, locking decisions as the user confirms. After the first one or two categories it emits the full punch list of outstanding decisions proactively (a living list re-posted as answers add or close items, was previously on-demand), and Phase 5 posts the complete locked-decision register in one message before transitioning to plan mode with zero ambiguity left. Design-only — writes no code itself; hands off to plan mode. Declares disallowed-tools: Edit, Write, NotebookEdit (drops those tools while active; a per-turn guard that clears on the next message), enforcing the design-only promise — Bash stays available for the git-history research step. Ships references/examples.md (longer worked examples; the in-body example stays short).
  • sonar-issue-check (skills/sonar-issue-check/) — Reads SonarCloud / self-hosted SonarQube issues for the current repo's analyzed branch or PR and prints a terminal summary; by default the new-code issues on that branch/PR (the pre-commit / pre-PR "did I introduce a problem?" check), or --all for the full unresolved backlog on that same branch/PR. Runs a bundled zero-dependency Node script (scripts/extract-sonar-issues.mjs, built-in fetch); read-only against the Sonar API — it queries results, never triggers a scan and never modifies the repo (writes only when --out <file> is passed). --quality-gate reports the project's quality-gate status for the branch/PR (previously advertised but unimplemented); the terminal listing is capped at 150 issues with an "… and N more" line, overridable with --max-print N. Auto-detects project key/org/host from sonar-project.properties (falling back to .vscode/settings.json); reads the token from SONAR_TOKEN or a local .env. allowed-tools: Bash, Read. No references/.
  • sonar-issue-fix (skills/sonar-issue-fix/) — Companion to sonar-issue-check that changes code to resolve the findings. Triages the new-code issues by rule into mechanical (localized, recipe-driven edits) and structural (cognitive-complexity refactors), applies behavior-identical fixes, and re-verifies against the project's own lint / type-check / test gates. Hard constraint: never changes runtime or wire behavior — code-quality smells only, not bug fixes; genuine bugs and genuine false positives (code right, rule wrong → recommend won't-fix/accepted) are surfaced, not force-fixed. Structural refactors on untested code are characterization-tests-first (lock current output with a snapshot, refactor to byte-identical output, keep the tests as regression coverage). Recipes are JS/TS today; the workflow is language-agnostic. Calls sonar-issue-check's script to fetch findings when installed, else accepts a pasted list. allowed-tools: Read, Edit, Write, Bash, Grep, Glob. Ships references/: per-rule fix recipes (rule-fixes.md) and the complexity-refactor playbook (refactor-playbook.md). Does not commit or push unless asked.
  • trim-initial-bundle (skills/trim-initial-bundle/) — Gets heavy vendor libraries off a React + Vite app's initial JavaScript load when they're only needed behind a lazy route/component (shrinks first-load size, LCP, TTI). Decides everything from the built dist via a bundled zero-dependency Node analyzer (scripts/analyze-initial-load.mjs — computes the entry's static-import closure, ranks initial-load chunks, flags vendor-looking deferral candidates), then diagnoses the leak (eager import / un-tree-shaken barrel re-export / manualChunks hoist), applies the matching fix on approval, and verifies against rebuilt artifacts. Vite/Rollup/Rolldown only (not Next.js/Webpack). allowed-tools: Bash, Read, Edit, Write, Grep, Glob, WebFetch. Ships references/ (diagnosis-and-fixes.md, verification.md).
  • systematic-debugging (skills/systematic-debugging/) — Root-cause-first debugging discipline adapted from obra/superpowers (MIT, © 2025 Jesse Vincent). Four phases: root-cause investigation → pattern/context analysis → ranked hypotheses, one tested at a time → fix the cause behind a failing test. Iron law: no fix without root-cause investigation first; after 3 failed fixes, stop and question the architecture rather than trying a 4th. States the running fix-attempt count in the visible reply on every failed fix. Phase 1 requires a reproduction loop before any diagnosis — one named command, run once with its output shown, that fails on the exact symptom, fast and deterministic (or, for a flaky bug, at the highest reproduction rate reachable — condition-based-waiting.md has the loop/parallel/load/injected-sleep techniques), then minimised one element at a time; temporary logs carry a unique [DEBUG-xxxx] prefix so cleanup is one grep. Phase 3 lists 2–4 ranked hypotheses, each with a falsifiable prediction, and tests only the top one; a failed test moves to the next on the list, re-ranked. Phase 4's regression test goes at a seam that exercises the bug as it happens at the real call site (no correct seam ⇒ a finding). root-cause-tracing.md adds a redaction rule for shown diagnostics (<REDACTED>, credentials only via environment variables). Decoupled from the superpowers hook/dispatcher/sibling skills; Windows-clean (no unix-only shell to run); examples for .NET/xUnit + TS/Vitest. Ships references/ (root-cause-tracing, defense-in-depth, condition-based-waiting). allowed-tools: Read, Grep, Glob, Bash, Edit, Write. The reproduction-loop, ranked-hypotheses, seam, log-tag, redaction, and flaky-rate rules are adapted from mattpocock/skills diagnosing-bugs (MIT, © 2026 Matt Pocock).
  • session-handoff (skills/session-handoff/) — Creates and resumes handoff documents for transferring work between AI agent sessions, so a fresh agent can continue with zero ambiguity. CREATE mode scaffolds a handoff via scripts/create_handoff.py (pre-fills timestamp, git branch, recent commits, modified files; supports --continues-from to chain handoffs), then validates it with scripts/validate_handoff.py (blocks finalizing if secrets are detected — API keys, passwords, tokens, private keys, connection strings — or the quality score is below 70). RESUME mode lists handoffs (scripts/list_handoffs.py) and grades staleness FRESH → SLIGHTLY_STALE → STALE → VERY_STALE from time elapsed, commits, and file/branch drift (scripts/check_staleness.py) before loading. Bundled scripts are Python, stdlib only (Python 3.9+, nothing to pip install). Writes only under .claude/handoffs/ (YYYY-MM-DD-HHMMSS-<slug>.md). Declares no allowed-tools/disallowed-tools (unrestricted). Ships references/ (handoff-template.md, resume-checklist.md) and its own README.md.
  • verify-frontend-change (skills/verify-frontend-change/) — Browser-verification loop that forbids calling a frontend/UI change done from a successful edit, green build, or HMR reload alone. Five steps driven through the Chrome DevTools MCP server (required; if absent the skill stops and reports the change unverified): start/reuse the dev server (background task; URL taken from the server's own output, never assumed) → open the affected route → interact with the changed behavior itself → console gate (zero new errors; unattributable errors count as new, pre-existing ones reported, never silent) → performance trace (fails on change-attributable regressions; dev-mode-numbers caveat). Any failure → fix → rerun from Step 1, never resume mid-loop; after 3 failed fix cycles on the same step, stop and question the approach (points to systematic-debugging). Exactly two end states: Verified-with-evidence or Blocked/unverified — no "probably fine". Stops only dev servers it started. Declares no allowed-tools/disallowed-tools (unrestricted — the browser tools it needs are the user's own chrome-devtools MCP registration). Ships references/ (chrome-devtools-mcp.md tool cheatsheet, dev-server-playbook.md).
  • plan-eng-review (skills/plan-eng-review/) — Pre-implementation gate that reviews a written implementation plan (plan-mode draft, a file under docs/plans/, or a pasted plan) before any code is written: scope challenge (incl. challenging any per-phase model recommendations the plan carries — quality-first, an underestimation signal forces Opus) → what-already-exists reuse check → four dimensions (architecture — including the deletion test on every planned module and the two-adapter rule (no interface/port unless two implementations are justified, normally production + test); code quality of the planned code; tests — the heaviest, including the seams-and-dependency-categories check (a planned test that must change when the implementation changes tests past the interface ⇒ a finding; fewer seams, existing ones preferred; the dependency category — in-process / locally substitutable / remote-but-owned / true external — decides the test strategy); performance) → verdict (APPROVED / APPROVED WITH CHANGES / NEEDS REVISION, bound by a decision table: any CRITICAL GAP or unresolved decision ⇒ NEEDS REVISION; non-empty Required plan changes ⇒ at most APPROVED WITH CHANGES). Iron law: no finding without evidence — presence findings quote the plan or a verified file:line; absence findings quote the obligation-creating plan text plus the verified negative search; findings depending on external library/framework/API behavior are verified against current documentation in-session (WebSearch/WebFetch), never internal knowledge; neither evidence form ⇒ at most a low-confidence appendix note. REGRESSION RULE (non-negotiable): plan modifies existing behavior with no covering test → regression test enters Required plan changes, no question asked. Max 8 findings per dimension, severity-ranked, confidence 1–10. Genuine scope/design forks go to the user via AskUserQuestion batched per section (never one-interrupt-per-finding); unanswered forks land under UNRESOLVED DECISIONS:, never silently defaulted; answered ones are recorded in a Decisions block and carried forward on re-runs, and on a re-run each prior report's Required plan changes are re-verified against the amended plan so the max-8-findings-per-dimension cap can't silently drop one. The only mutation it ever performs is replacing/appending the plan file's ## ENG REVIEW REPORT section via a whole-file Write-splice (H2 boundaries matched outside fenced code blocks, trailing-\r tolerant; report interior ###-only; every non-report byte preserved); no plan file on disk → terminal-only report, zero writes. Optional outside voice (one subagent prompted to refute the verdict) on explicit ask only. Never implements the plan; never commits or pushes. Catalog position: new-feature (design) → plan mode → plan-eng-review (gate) → convert-plan-to-feature (decomposition) → implement → verify-implementation (post-code gate). allowed-tools: Read, Grep, Glob, Bash, Write, Agent, AskUserQuestion, WebSearch, WebFetch (Bash read-only; Agent for the parallel Explore subagents in the what-already-exists reuse sweep — the reviewer re-reads every cited file:line itself, since a subagent report is a lead, not evidence — and for the optional outside-voice subagent; WebSearch/WebFetch only for current-docs verification); disallowed-tools: Edit, NotebookEdit. Ships references/review-dimensions.md (four checklists, coverage legend, severity/confidence tables, verdict rules, report skeleton, and the whole-file Write-splice procedure). Adapted from /plan-eng-review in garrytan/gstack (MIT, © 2026 Garry Tan); per-finding question gates → per-section batching, Codex outside-voice → optional on-request Claude subagent, test-plan/tasks artifacts folded into the single in-plan report, iron law extended to absence findings, gstack state (~/.gstack, bin/ loggers, brain, TODOS.md, readiness dashboard, review chaining, Lake Score) dropped. The deletion test, two-adapter rule, and seams/dependency-categories check are adapted from mattpocock/skills codebase-design and to-spec (MIT, © 2026 Matt Pocock).
  • document-generate (skills/document-generate/) — Writes human-facing documentation files — Diataxis tutorials, how-to guides, reference pages, explanations — for a named feature, module, or whole project, grounded in end-to-end codebase archaeology (implementation + tests read first) before any prose. Classifies each entity into the four Diataxis quadrants via a 7-row decision matrix, then never writes a doc file before the partition plan is approved via an always-on AskUserQuestion gate — an unanswered or blocked gate means nothing is written. Iron law: every example is executed (ran side-effect-free this session), traced (every identifier read at a real file:line this session), or illustrative (shape traced, explicitly labeled) — in that preference order; an example meeting none of these gets rewritten or cut. Collision policy: a planned file that already exists becomes an extend row — read fully, merged under its structure, authored prose preserved except where it contradicts the code (code wins every factual/API claim; every correction reported). Docs home resolves target-local convention → repo docs/ → detected doc-framework config (Docusaurus/MkDocs/VitePress/Nextra, sidebar updated) → new root docs/. allowed-tools: Read, Grep, Glob, Bash, Write, Edit, Agent — no disallowed-tools: the skill needs Edit and Bash to do its job, so its never-rules (never edits CLAUDE.md/AGENTS.md; never commits or pushes) are workflow discipline rather than a tool-pool restriction, and the body says so explicitly. Ships references/quadrant-templates.md (four templates, per-quadrant rules, anti-mixing table, example-verification techniques, doc-framework identification table, collision-policy detail) and references/example-and-report.md (an annotated worked example plus the end-of-run report format). Adapted from /document-generate in garrytan/gstack (MIT, © 2026 Garry Tan); the commit/push/PR-body-update tail is dropped (this skill never commits), the gstack-redact binary becomes the placeholder-credentials rule, the confirm-only-above-5-docs threshold becomes the always-on partition-plan approval gate, upstream's inline-summaries-plus-standalone-files default narrows to standalone files plus minimal link lines, and the gstack machinery is dropped.
  • coding-standards (skills/coding-standards/) — Behavioral reuse-before-build discipline for new TypeScript/Node and C#/.NET code: a strict 4-rung ladder (built-in/standard-library API → C#-only first-party Microsoft.Extensions.* → widely-adopted library the project already uses → custom implementation last) with one consistency exception (where the project already uses one library consistently for the exact task, matching that convention outranks introducing a rung-1 built-in alongside it; a genuine conflict is named to the user rather than decided silently), plus precise types (no any, no object/dynamic), specific error classes over bare Error/Exception, C# async with CancellationToken and no sync-over-async, and short doc comments on non-obvious members. Always asks before adding a dependency (AskUserQuestion); produces no files — changes only the code Claude writes. Description carved to the two decision moments (writing a new utility/helper/service; adding/choosing a dependency); do-NOT covers code review, debugging existing behavior, trivial edits, and other languages. Canonical copy of the ## Coding standards block checked into Mi9 repo CLAUDE.md files (their <!-- source --> comments point here) and the bootstrap for future repos. Declares no allowed-tools/disallowed-tools (guides code-writing; must not restrict tools). No references/ (body is small).
  • repo-change-summary (skills/repo-change-summary/) — Per-month change totals for a git repo across all branches: lines added/deleted, total lines changed (churn, not net), distinct files modified, file-touches, commits, PRs merged, authors — each commit counted once, merges excluded from the line/file/commit counts. A bundled POSIX-shell script (scripts/summary.sh, needs only git + a POSIX shell; kept LF via .gitattributes) computes everything deterministically, prints a Markdown table the model relays verbatim, and writes a self-contained HTML report (YYYY-MM-DD-HHMM-repo-change-summary-<month>.html) that opens in the browser (--no-open to suppress). Defaults to the current month and current repo; --month YYYY-MM, --repo PATH, --out DIR, --no-fetch, --exclude PATTERN (repeatable; matched by basename with */? glob support — exact match is the fast path, character classes unsupported, case-sensitive). The default exclude list (lockfiles + CI config) lives in a shared scripts/exclude-lib.sh both scripts source. Scope is local + remote-tracking branches (stash entries and tag-only commits excluded); authors respect .mailmap. PR count = distinct PR numbers from platform merge messages (GitHub subjects, Bitbucket "(pull request #N)" subjects incl. its squash merges, GitLab "See merge request <path>!N" body lines) — reverts, body mentions, and re-merges don't inflate it; markerless squash/rebase merges aren't counted. Companion scripts/multi-summary.sh --group NAME rolls up a named group of repos (processed in parallel, bounded to 4 at a time) into one combined Markdown + HTML report (rollup totals row + per-repo tables; group authors = distinct people across the group, never the column sum; fetch-failed repos marked *); groups are machine-local .list files under ~/.claude/repo-change-summary-groups/, one repo path per line — deliberately outside the skill because clone paths differ per machine. --per-author appends a per-developer activity table (sorted by total changed ascending like the rollup, explicitly activity-not-performance, single-dominating-file footnotes; PRs-authored via Bitbucket API through scripts/pr-authors.py, Python stdlib, creds from git credential fill as <git user.email>:<API token> with BITBUCKET_EMAIL override — column omitted with a note when unavailable; bot identities excluded from the table and footnoted — built-in commits-noreply@bitbucket.org, extend via <groups-dir>/bot-emails.list — rollup keeps every commit). The combined HTML embeds inline-SVG bar charts (zero JS/CDN; palette CVD-validated): lines changed by repo, plus per-developer lines + PRs charts under --per-author. Both scripts also support optional PDF-email delivery (--email, --to LIST, --subject STR, --email-dry-run, --env-file PATH, --mailmap PATH) via the bundled scripts/send-report.py (Python 3.9+, stdlib only): preview-first — --email-dry-run resolves every recipient (literal email, or a tiered case-insensitive .mailmap name match) and renders the HTML report to PDF via the locally-installed headless browser (Chrome preferred, Edge fallback — an Oct-2025 Edge-141 --print-to-pdf regression is why) without sending anything; only a confirmed re-run without that flag actually sends, over SMTP (AWS SES, credentials from ~/.claude/repo-change-summary.env) with a modern email-safe HTML body plus the PDF attached. allowed-tools: Bash; no model: pin (it runs on the session's model). Ships references/emailing.md.
  • verify-implementation (skills/verify-implementation/) — Post-implementation gate, plan-eng-review's counterpart on the other side of the code: adversarially verifies a finished implementation against whatever claims it is done — a feature file's acceptance criteria (convert-plan-to-feature's features/NN - <name>.md output is the designed-in highest-preference input), a plan, ticket, PR description, or a subagent's completion report; an informal claim gets a derived acceptance table labeled as derived, and no claim at all ⇒ refuse (nothing to verify against). Stance: the report is a claim, not evidence — diff first, report second; a claimed change absent from the diff is the most serious finding; balanced by an explicit no-manufactured-findings rule (a short review confirming real evidence is a good review). Highest-yield check: read every new test body and re-run mutation proofs — a test that cannot be made to fail is not a guard; proof bar = mutated line + verbatim failure output + confirmed revert, each cycle re-running only the targeted test file or single test (the full suite is the separate gate pass). Re-runs the project's own gates (CLAUDE.md is the source) reading output not exit codes; a not-run gate is reported as not run with the reason; verifies against the merged tree when the branch will merge (per-branch green ≠ merged green). Fixes what it finds on the same branch in dedicated commits, minimal and in scope, with two carve-outs (never changes a locked decision, never widens scope — both go in the report); never commits to a shared branch, never pushes, never opens a PR. On a CLEAN or FIXED verdict against a convert-plan-to-feature feature file it also writes that feature's Status cell to done in the initiative's REQUIREMENTS.md — a write outside the reviewed diff, so it is named explicitly in the report (a NEEDS ATTENTION verdict changes no Status cell). Verdicts CLEAN / FIXED / NEEDS ATTENTION bound by a decision table (any unfixed finding, locked-decision conflict, or not-run gate ⇒ at most NEEDS ATTENTION; any fix applied ⇒ at most FIXED). When run as a subagent, the report is the run's return value, not chat text. Pins model: opus (a weaker review returns CLEAN on broken work and CLEAN is acted on — false assurance is the failure mode). allowed-tools: Read, Edit, Write, Bash, Grep, Glob; no disallowed-tools (the skill needs Edit and Bash, so the never-rules are workflow discipline, and the body says so). Ships references/ (verification-checklist.md — the seven priority passes with per-pass evidence bars; tautology-catalog.md — the three tautological-guard failure modes, mutation construction per test shape, the proof bar; report-format.md — the six-section report skeleton, including a one-line Passes not run slot, + verdict table). Distilled from the review brief of a 20-feature internal Mi9 initiative (2026-07, one implementer subagent + one independent reviewer per feature); not adapted from an external project.
  • pr-review (skills/pr-review/) — Reviews a Bitbucket pull request end to end through the Composio MCP tools (COMPOSIO_SEARCH_TOOLS to load the schemas, then COMPOSIO_MULTI_EXECUTE_TOOL; no Composio registration ⇒ it stops rather than falling back to gh, and it never works on GitHub). Eight steps: fetch the pull request, the paginated diffstat (values[].new.path is null on a deletion, so it falls back to old.path) and the unified diff (a truncated: true response is not reviewed — it re-derives the diff from the pinned checkout and says so in the report); then the skip conditions, before anything is cloned (not OPEN, draft, needs no review, or this skill's own comment already posted at the current head — recognised by its fixed first line Code review by pr-review and compared through its second line Reviewed at head <hash>., so a review comment anyone else posted, an author's own AI review included, is not a skip condition; when the head has moved, or the comment names no head, it asks with AskUserQuestion whether to re-review, and stops when the question cannot be asked; all lead-run, no subagent, since Step 1 already holds the state and the draft flag; an AI-written pull request is explicitly not a skip condition); pin a throwaway checkout of the head commit via scripts/pin-pr-head.sh so no line number can move while the review is written, then cross-check that checkout's --numstat against Bitbucket's diffstat and stop on any difference (the pull request or the destination branch moved). The script prints ORIGIN= for the confirm-the-right-repository check; its optional fourth argument is the repository to clone from and is required when the pull request is not in the current checkout, since the default clones the current directory; it clones with core.longpaths=true and exits 2 on an incomplete checkout, because on Windows git checkout skips a path over 260 characters with Filename too long and still exits 0 (5 files went missing that way on 2026-09-16). Then collecting the in-scope CLAUDE.md / .claude/rules/ paths with Glob, no subagent (a CLAUDE.md governs only its own directory and below); the parallel diff pass — four agents at once (two Sonnet on CLAUDE.md compliance, two Opus on bugs and security), then one validation subagent per candidate finding from all four agents (validating only the bug agents' output would have made Step 5c discard every CLAUDE.md finding), capped at 12 per run and ranked by the rubric's now-explicitly-ranked "what to flag" list, ties broken by diffstat order, with every unvalidated finding dropped rather than reported and the count of unvalidated ones stated; the verification pass, which is the part the skill exists for — every claim in the commit messages and the pull request description is a claim to settle against a primary source, never evidence (a design or review document the pull request adds was written by the same author as the code, so it is part of the change under review), sibling repositories read-only, changed shell scripts linted through scripts/shellcheck-safe.sh (CRLF-normalised so SC1017 cannot bury real findings, and it reports an unfollowed source instead of printing a clean result that means less than it looks), changed YAML parsed, and the target repository's own CLAUDE.md as the source of truth for its quality gates and contribution rules (dependencies installed in the pinned checkout first, since a fresh clone has none and every gate would otherwise report "could not run"; no CLAUDE.md or no gates named ⇒ named per-ecosystem fallbacks, package.json lint/typecheck/test, dotnet build then dotnet test, the pyproject.toml linter plus pytest; the report names the exact commands run, and a gate that cannot run is reported as not run, never left looking like it passed); the report; and the comment. Every finding quotes its evidence — a line of code, a line of a CLAUDE.md rule, a line of a commit message, or the line of source that settles the claim — and a finding with no quoted evidence does not go in the report at all. Severity comes from references/severity-rubric.md, never by feel: rate on the failure mode not the size of the diff (a silent, permanent, low-probability failure outranks a loud one of the same size), bounded-or-unbounded is the usual HIGH/MEDIUM line, a wrong justification for correct code is a real finding, documentation-only findings are marked and capped at MEDIUM, and packaging raises a finding a level when it removes the cheap escape route. A finding re-rated or withdrawn mid-review is recorded in two places (the severity line and a corrections block), and if the comment is already posted a threaded reply says so. Posting is not gated (changed 2026-11-23 at the user's request; before that the comment was shown and AskUserQuestion asked first): BITBUCKET_CREATE_PULL_REQUEST_COMMENT is called with no question, in an interactive session, a claude -p run, or a subagent alike, and the terminal reply then shows the exact posted text and names the report path; a failed post is reported with its error and the report path. --no-comment skips Step 8. Hard rules: read and comment only (never push, never merge, never edit the pull request branch), the report is the only file written in the repository (docs/reviews/pr-review-{repo}-{pr_number}.md, or wherever the repository's CLAUDE.md puts review documents; for a pull request in another repository the report goes to the scratchpad, never into the unrelated checkout you are standing in), no links of any kind in the posted comment (not even to the report — it may name the path as plain text), and never a key, token, password or connection string in either. Bundled scripts are invoked through ${CLAUDE_SKILL_DIR}. Pins model: opus (the skill posts its verdict onto a real pull request a team acts on, so a weak "no issues found" is the costly failure); declares no allowed-tools (the Bitbucket tools are the user's own Composio MCP registration and cannot be listed) but does declare disallowed-tools: Edit, NotebookEdit, since Write covers the single report — a per-turn guard that does not reach the Step 5 subagents, so the never-rules remain workflow discipline as well. Ships references/ (report-template.md — the 13-section skeleton with a worked example at each severity, the corrections mechanism, and the self-review list; severity-rubric.md — the four definitions, the tie-break rules, and the what-to-flag / what-not-to-flag lists) and scripts/ (pin-pr-head.sh, shellcheck-safe.sh). Description trigger sweep on 2026-09-16 under real .claude/skills/ registration (evals/pr-review/, 14 prompts, claude-opus-5): 6/6 Bitbucket positives fired, 7/8 hard negatives stayed quiet (retro and plan-eng-review took theirs); the one miss is a bare review PR 29 in a checkout whose origin is GitHub, which no description can separate from the same words in a Bitbucket checkout, and which the skill body then stops safely by asking for the repository instead of guessing. First live run the same day: licensing-and-deployment-portal PR 300 through Steps 1 to 7 with --no-comment, verdict approve with 0 findings; Step 8 has shown its comment and been declined at the gate, but has never posted. A review request is not a review (added 2026-11-24): the description excludes writing the message that asks colleagues for a review (pr-review-request), and the body stops before Step 1 on such a request, because this skill would go on to post a comment the user did not ask for. Added after the wording "Review request for <Bitbucket URL>" loaded pr-review first in one pr-review-request behavior run. To make room under the 1,024-character limit the description's never-rules sentence and two exclusions were shortened (988 to 1,011 characters). Its own Bitbucket-checkout trigger prompts were re-run the same day in dontAsk mode (claude-fable-5-2): 6/6 positives fired and 6/6 negatives stayed quiet; the 2 GitHub-origin negatives were not re-run. Written at Mi9 from a run of real Bitbucket reviews and generalized out of one repository on 2026-09-16 (the Cloud Build substitution checker check-subs.py was dropped in that move); not adapted from an external project.
  • execute-change (skills/execute-change/) — Autonomous end-to-end execution of a plan brief in an OpenSpec-managed repo (detected via openspec/config.yaml, else openspec context — non-zero exit means not managed, but only with the CLI installed: a missing CLI goes to the install path first, never read as not-managed; not managed is a blocking AskUserQuestion, never a printed notice the user can scroll past — stop and work without OpenSpec (recommended) or openspec init --tools claude here and continue, and on the init answer the CLI is brought current against npm view @fission-ai/openspec version FIRST, because init generates the repo's instruction and command files and an outdated CLI writes outdated ones into a brand-new root; --tools is required or init prompts and an unattended run hangs, --force is never passed by default since it deletes legacy files without asking, and init creates .claude/commands/opsx/ so the session-restart rule applies): one lead session drives the feature routine — optionally starting from a free-text idea instead of a brief (design-first entry, before Step 0 in the main tree: read-only research subagent (the idea text passed inside a USER_IDEA block the prompt marks as data, so a pasted ticket or message cannot instruct the subagent; every claim in the dossier carries a source — a file path, or a URL to a primary source such as official docs, source code, or a spec, never a secondary write-up) → design dossier → categorized interview with [REC] defaults, one category per question call, run in frontier rounds (each answer opens the next round's questions; a question that depends on a still-open one waits; ends only when nothing is open) with repo/doc facts looked up by a read-only subagent instead of asked, and with domain-modeling habits (challenge a term that conflicts with the repo's CONTEXT.md glossary, propose one canonical word for a vague term, offer an ADR only when the decision is hard to reverse + surprising without context + a real trade-off) → lead drafts docs/up next/<date-time>-<slug>-plan.md with ## Glossary updates, ## Decisions to record as ADRs, and a closing ## Research dossier section holding the dossier verbatim (so the Step 1/2/7 subagents and a resumed run see the same facts the interview used) → approve-or-revise gate; only an approved brief enters the pipeline) — author the OpenSpec change (/opsx:propose flow; task groups are vertical slices sized to one fresh context window, prefactoring first; a change too wide for vertical slices is sequenced expand–contract instead — add the new form beside the old, migrate call sites in batches of one task group each, remove the old form as the last group blocked by every batch; the author reads CONTEXT.md / docs/adr/ when present and writes the brief's glossary/ADR sections into CONTEXT.md and docs/adr/NNNN-slug.md, files created lazily, committed with the change artifacts; content rules, not line caps, decide what goes in — design.md holds only the decisions the brief leaves open, one per heading, restating neither the brief nor the problem nor the code, tasks.md gives one line per task naming the file and the change, and file lists and verify clauses are never shortened because the step 6 concurrency gate and step 7 read them, after a 10 KB brief produced 154 KB of artifacts on 2026-09-03; when the author returns the lead prints wc -l of design.md and tasks.md in the Step log, information only, no threshold) → plan-eng-review gate (non-interactive; forks land under UNRESOLVED DECISIONS, report spliced into design.md) → one batched user question per step for decisions → apply required changes (/opsx:update flow, always one subagent launched after the step 3 answers are in, since nothing is started while the question is out and two subagents editing design.md and tasks.md in sequence left contradictions on 2026-09-03; its report ends with a QUOTES section giving one whole quoted line per required change and per decision, and a TASKS.MD RE-READ section listing every tasks.md line that contradicts an edit it made, or none) → step 5, lead-run: a whole-line grep -F -x of every line step 4 quoted against the file it names (a MISSING quote or a non-empty TASKS.MD RE-READ is a failed step 4, not a failed step 5), one conditional Opus tasks.md reader launched only when a required change or a decision edits a file list, a group boundary, or a blocked-by order (the class a whole-line grep cannot judge; the one real catch on 2026-09-03 was a file list of 12 where 14 were touched), and a re-review of plan-eng-review that is mandatory under a NEEDS REVISION verdict and launches right after the grep check passes, with no unplanned fix subagents on planning documents (a contradiction between proposal.md, design.md, the deltas, and tasks.md goes to the step 4 retry or to the user, never to an extra subagent the pipeline does not define) → implement one subagent per tasks.md task group on the model its row names (missing/unmappable ⇒ Opus, never Fable; implementers read CONTEXT.md / docs/adr/, use the glossary words, and return an ADR conflict as an open question; parallel groups run concurrently only when their tasks.md file lists are disjoint, serialized otherwise; an implementer runs the type check and the single test files it touches while working, then its verify clauses, and never the full suite or the project-wide gates, since the lead's own gate run is the only one that counts; the lead picks that run's gates proportionate to the group's changed files (docs/comments/README-only: no typecheck and no tests, only a markdown lint or link check if the project has one; any code change: typecheck and lint always; tests through the runner's related-tests mode where one exists, vitest related <files> or jest --findRelatedTests <files>, which also covers tests in other groups' files whose import graph reaches the changed code; where no such mode exists, .NET included, the group's own test files plus the full suite when the change alters behavior other tests assert on, meaning a call count, the order of operations, SQL or log text, or state left behind, and the full suite whenever unsure), then runs the full gates once after the last group, before step 7, and bisects a failure there across the per-group commits; the worked example is one added probeInstance call that broke an integration test in another group's file asserting the exact list of probed names, and the motivation is five serial groups times two full 8-minute runs, implementer plus lead, at roughly 80 minutes of gates with two of those groups documentation-only) → verify-implementation audit against git diff <start commit>..HEAD — the run's own commits, not the base branch against the branch, because reusing the current branch made the old diff empty when that branch was the base (git diff main...main returns nothing, so the audit checked nothing) and polluted when it was a feature branch (it included commits made before the run) (max 2 fix cycles) → self-contained simplification pass + gate re-run → reconcile tasks.md checkboxes, openspec validate --strict, STOP. Fresh subagents per step (step 3 is lead-run; steps 5/7/8 may launch a bounded follow-up); every substantial task runs in a subagent to preserve the lead's context for the hours-long run — the lead never edits source (only the ledger and the close-out tasks.md reconciliation); every "done" claim is checked against evidence on disk (one retry, then pause). Commits per checkpoint by explicit pathspec. The branch and the run root — the directory the run works in — are both settled by a blocking preflight question (check 6) with three options: reuse the current branch and checkout (recommended; commits go onto whatever branch is checked out now, no new branch and no new directory), create the run's branch agent/execute-change/<timestamp>-<plan name> in the current checkout, or create that branch in a dedicated git worktree under ../<repo>.worktrees/ (the previous always-on behavior); the timestamp is the run start's current date-time, never a date from the brief's filename. Only the worktree option leaves the main working tree untouched and supports concurrent runs of different plans on one repo — git refuses a branch checked out twice; it alone carries the per-run dependency install and the manual git worktree remove close-out step, and it alone puts that removal in the final report. Under the other two the main working tree is the run root: the user cannot work in the repo while the run executes, and a second concurrent run on that repo is not supported. The question states two facts before it is answered — reusing a current branch that is main/master commits an hours-long autonomous change straight onto it (stated, not blocked), and a dirty working tree means every gate run executes against those uncommitted changes, so a pre-existing failure can be blamed on the implementation and committing or stashing first is the clean path (commits go by explicit pathspec, so unrelated modified files are never committed). The route is check 6a, asked as the second question of check 6's AskUserQuestion call so Step 0 still has one pause: full (steps 1 to 8) or light. The lead answers six signals from the brief's own text and prints each with the brief line it came from: shared contract (an exported type, function, schema, or API that another package in the repo, or another repo, imports); infrastructure or data (deploy scripts, cloud resources, alert policies, CI config, database migrations, backfills); sensitive paths (auth, permissions, secrets, locks, concurrency, caching); breadth (more than one package, or more than 8 files, which is plan-eng-review's own hotspot threshold); test plan present (concrete test cases plus the commands or gates that prove them); engineering-reviewed (an ## ENG REVIEW REPORT whose verdict is APPROVED or APPROVED WITH CHANGES, whose closing marker is NO UNRESOLVED DECISIONS, and whose required changes are marked addressed, where a ## Research dossier section does not count, since the design-first entry interviews the user but runs no engineering review). A brief that does not say what it touches gets yes on the signal it leaves open. Recommendation rule: Light [REC] when signals 1 to 4 are all no and 5 is yes, or when 5 and 6 are both yes; Full [REC] otherwise. The user's answer is the route, whatever the recommendation was. The light route runs step 0 (with check 6a), then a light step 1 author that does NOT invoke /opsx:propose (it writes every artifact of the schema, design.md included, and would re-plan a brief that is already the plan): it runs openspec new change <id> for the scaffold and hand-writes proposal.md, the spec deltas (or sets skip_specs: true in the change's .openspec.yaml when the brief changes no observable behavior), and a tasks.md carrying the full route's columns with its task groups taken from the brief's own order section, and writes no design.md; then steps 6 and 7. Steps 2 to 5 and step 8 are skipped, each skip recorded as one Step log line, and the full route's step numbers are kept so a resume keeps its meaning: the ledger's Route: full | light field decides what follows Last completed step (a ledger with no Route line is a full run; Route: light with a last completed step anywhere from 1 to 5 resumes at step 6). Its step 1 acceptance check adds three mechanical tasks.md checks the lead runs itself (every group has a model, a blocked-by line, and at least one verify clause; the file lists of groups sharing a parallel group are disjoint; every listed file exists or is marked new). There is no switch between routes mid-run: to get the review after choosing light, stop the run, delete the ledger, and re-run with full. What the light route gives up is what plan-eng-review catches before any code exists: a changed path with no regression test asked for, over-build inside the claim, silent-failure gaps, architecture and performance findings, and a wrong tasks.md decomposition. A Step log entry is capped at 5 lines (the subagent's outcome, the acceptance-check result, the report file's path, and at most two lines of what matters next); detail stays in the report files the ledger names, decisions stay verbatim, and between step boundaries the lead writes nothing but the ledger update and the next prompt fill, after a run measured on 2026-09-03 in which the lead alone wrote 235,000 tokens including a 36 KB ledger. A subagent that dies on the API or the transport (the Agent tool returns an error or a synthetic last message such as 529 Overloaded or Internal server error, and no report file exists at its {{REPORT_PATH}}; an existing report file, whatever its contents, means the subagent finished and the acceptance check judges it) gets exactly one automatic relaunch: the death-relaunch wrapper in references/step-prompts.md when its progress file {{PROGRESS_PATH}} (<report label>.progress.md, one appended line per file the subagent finished, written as it works) exists and is non-empty, the plain template when it does not, and a second death pauses the run. That relaunch is one per subagent per step (per subagent inside a parallel set), shares its budget with the stall ladder's single relaunch, and does not consume the acceptance-check retry; a skill refusal is not a death. Never git add -A; ledger + reports folder + plan brief never committed. Pauses notify the phone via Remote Control push (AskUserQuestion renders in the app, waits indefinitely, survives sleep — verified live 2026-08-13); resume comes from <plan path>.ledger.md (branch, run root path — a worktree recreated if gone, Start commit: <full sha> — the commit HEAD pointed at when the run began, which steps 7 and 8 diff against, Route: full | light, change ID, last completed step, decisions, group summaries). Beside the ledger, Step 0 creates the reports folder <plan path>.reports/: every pipeline subagent writes its complete report to the {{REPORT_PATH}} file the lead names in its prompt (step1.md, step6-group3.md, step7-fix1.md, and so on) with OPEN QUESTIONS as its first section, and returns only that path plus a summary of at most 20 lines, so the lead reads the file instead of the returned text, which arrived truncated mid-sentence five times in one run on 2026-09-01, twice inside OPEN QUESTIONS; the design-entry research subagent gets the literal value none and returns its dossier directly. The reports folder is never committed, and the user deletes it at close-out with the ledger and the brief. Installed as a plugin (its own .claude-plugin/marketplace.json entry, hooks declared inline there), the run watches its own subagents: SubagentStart / SubagentStop / Notification (matcher permission_prompt|agent_needs_input|idle_prompt) all fire in the parent (lead) session, not inside the subagent, and are handled by one script, hooks/execute-change-watch.py, which appends one JSON object per line to <session project root>/.claude/execute-change-run.jsonl (start: kind, at, agent_id, agent_type; stop: kind, at, agent_id, agent_transcript_path, stop_hook_active, last_message_head — the first 200 characters of last_assistant_message; notify: kind, at, notification_type, notification_text, title; sweep: kind, at, line; resume: kind, at — appended by a resumed run before it arms anything, and treated by both replays as a hard reset of the running set, since the subagents of the interrupted run left start events that will never get a matching stop). The lead writes <session project root>/.claude/execute-change-run.json once at Step 0 (session id — read from the CLAUDE_CODE_SESSION_ID environment variable, which the Bash tool inherits; absent or empty means the file is not written at all and the lead says so, because a wrong id makes every hook inert while the readiness line claims the heartbeat is armed — plus run_root, branch, ledger path, start time — the hook falls back to the older worktree key so a run already in flight keeps working) and deletes it at close-out; both run-state files live in the directory the session was started in — the main repo checkout — and not in the run root, because the hooks start from the payload's cwd and walk up to the nearest directory holding the metadata file, and the session's project root is the one directory every such walk from inside the project reaches; that cwd is the Bash tool's current directory rather than the session's, since a cd into a subdirectory of the project persists between the lead's commands and Claude Code resets it only when a command leaves the project, and a worktree sits outside the project, so no walk up reaches a file written there and every hook stays inert; under the two reuse-checkout options the two directories are the same, and the metadata file's run_root field is what points at the actual run root; no metadata file, or a session_id that does not match the payload's, means the hook exits 0 and writes nothing — that is what keeps it inert in every session that is not an execute-change run — and the hook always exits 0 (exit code 2 on SubagentStop would block the subagent from stopping). After launching a subagent the lead arms a background watcher (Bash(run_in_background: true)) that re-reads the log every 180 seconds and prints a message only when something is wrong (9 minutes of log silence, or a permission_prompt / agent_needs_input / idle_prompt notification), prints one alive: N agents running, oldest <age> line every 30 minutes, and exits when every subagent has stopped. 9 minutes of silence is not proof of a stall — SubagentStart fires once and nothing else arrives until SubagentStop, so a step-6 implementer working normally for 20 minutes looks identical to a stall from the log alone: the lead calls ListAgents first (still running ⇒ it is working ⇒ re-arm and carry on; idle with no stop event ⇒ the real stall ⇒ retry ladder: SendMessage status request → TaskStop and one relaunch → pause and ask the user), and a permission_prompt is reported at once and waited on, never treated as a stall (only a human can answer it). An IDLE verdict is confirmed with ListAgents the same way, for the reverse reason: a start line can be missing (4 of 8 subagents in one session on 2026-09-01, and a parallel batch of three that produced no start line at all), so the watcher's replayed running set can be empty while agents are still working and the first check then prints a false IDLE; a missing start also makes the sweep fire on every stop instead of once per batch. The cause was diagnosed and fixed on 2026-09-01: the hook as shipped before that date read <cwd>/.claude/execute-change-run.json literally, and the payload's cwd is the Bash tool's current directory, so every event that fired while the shell sat in a package directory found no metadata file and was dropped. That is why each missing start followed a command that had changed into a package directory, and why the matching SubagentStop events were logged: a later command had reset the directory. Reproduced the same day in a test session, a subagent launched after a cd into a subdirectory logged neither start nor stop, one launched from the project root logged both, and two parallel launches from the root logged both starts. hooks/execute-change-watch.py now has a _find_root that walks up from cwd to the nearest directory holding .claude/execute-change-run.json, bounded at 64 levels, and every read and write uses that directory (verified by running the patched hook with a synthetic payload: a subdirectory cwd appends to the project-root log, and a cwd outside the project, C:\Temp, stays inert). The ListAgents confirmation stays in force, because an installed copy of the older hook keeps the defect until the plugin is updated, and so do two lead rules: never leave the shell in another directory ((cd <dir> && <command>), git -C <dir>, pnpm -C <dir> or --filter, dotnet <verb> <path>), and never pass the run's worktree as an additional working directory (--add-dir), since a walk up from outside the project finds nothing. When IDLE has proved false once in a run, or the hooks are not installed (NOLOG), the log watcher is replaced by a plain fallback timer (sleep 175, printing a timestamp and the newest file-modification time in the run root) whose exit re-invokes the lead, which calls ListAgents (authoritative) and re-arms; a subagent that has already reported but still shows as running is TaskStopped before a lead gate run. A subagent's stop carries no success or failure signal, so a failed step is caught by the lead's own acceptance check, not by the watcher. hooks/sweep-worktree-processes.ps1 (Windows only — on a non-Windows platform it exits 0 and kills nothing; -WhatIf lists without killing) runs automatically when the last subagent of a batch stops and once by hand at close-out (the close-out call resolves it as <Skill dir>/../../hooks/sweep-worktree-processes.ps1 from the ledger's Skill dir: field, replacing the earlier ls ~/.claude/plugins/cache/*/... glob that picked the alphabetically first cached copy, a stale one; under an npx skills add install the sweep is skipped without testing that path), and kills a process only when all three hold: its command line contains the run root path OR it descends from the current claude process; it started at or after -Since; and its executable is in a fixed allowlist (node, npm, npx, pnpm, yarn, bun, biome, eslint, tsc, vitest, jest, esbuild, dotnet — shells bash/sh/pwsh are deliberately not on it, since every process the sweep exists for is a node or dotnet process and a shell is far more often the lead's own tooling, the stall watcher included). -Since differs by caller: the automatic sweep passes the start of the batch of subagents that just finished, so the Step 0 background dependency install (which runs while steps 1–5 run their subagents) is never a candidate; the close-out sweep passes the run's start time, correct there because every subagent has finished. Known blind spot: a process started as node script.js with its working directory set to the run root carries no run root path on its command line, so only the parent-chain rule catches it — Win32_Process exposes no working-directory field. The sweep also reaches the lead's own gate runs, which descend from the claude process and name the run root on their command line: under a reuse-the-checkout run root it killed one twice on 2026-09-01, and a killed gate run reads as a real failure (the block ends in [ELIFECYCLE] Command failed with exit code 1 and names no failing test), costing 50 minutes. So the lead parks the metadata file for every gate run it starts itself, moving <session project root>/.claude/execute-change-run.json to execute-change-run.json.parked immediately before the run and back as soon as it ends; the hooks pass through while that file is absent, so the sweep cannot fire in that window. Parking logs no start/stop/notify line for the window, so it is safe only when no subagent is running (the serial flow guarantees that), and a crash between park and restore leaves the hooks inert, which is why a resume (check 2) looks for a leftover .parked file and restores it; check 6's run-root question states this cost for its two reuse-the-checkout options. Before believing a gate failure, grep the gate's output for a failing-test marker (FAIL, ✗, ×, AssertionError): none of those plus an ELIFECYCLE ending means the run was killed rather than failed, so look for a sweep line containing killed pid near that timestamp in .claude/execute-change-run.jsonl and re-run the gate. Preflight verifies/offers to install-update the OpenSpec CLI (version compared against npm view @fission-ai/openspec version — an outdated CLI silently reports "up to date", so never trust openspec update output) and the two companion skills; beyond those install offers and the blocking forks (check 3's not-OpenSpec-managed question, and check 6's run-root question together with check 6a's route question, both asked in one AskUserQuestion call so Step 0 has one pause) it asks no approval question — readiness (brief, branch, base, run root, route, notification state read from ~/.claude.json's agentPushNotifEnabled + hasUsedRemoteControl) is printed, since the manual invocation is the authorization and tasks.md — the only input to the concurrency decision — does not exist yet at Step 0. Never: deploy, push, open a PR, archive the change. Manual-only (disable-model-invocation: true; /execute-change "<plan-brief path | free-text idea>"); no allowed-tools/disallowed-tools (the lead needs Agent/Bash/AskUserQuestion — never-rules are workflow discipline); no model: pin. Ships references/ (preflight.md — OpenSpec detect/install/update, companion-skill check, the Step 0 procedure detail (resume, run-root question, route signals, readiness line), one-time Remote Control/push/allowlist setup, two optional hooks documented-only; design-entry.md — the design-first entry from a free-text idea to an approved brief, read only on an idea run; step-prompts.md — verbatim per-step subagent prompt templates with the standing implementer instructions embedded, including the rule that any prose written for people to read (proposal.md, design.md, spec deltas, tasks.md, CONTEXT.md, an ADR, a commit message body) must be free of AI writing tells — invoke the unslop skill on it or write to its rules directly — and never change a fact, a number, or a technical term to satisfy that; domain-docs.md — the CONTEXT.md glossary and ADR formats plus the three-condition ADR test, adapted from mattpocock/skills domain-modeling, MIT) and scripts/stall-watcher.sh — the heartbeat-log watcher the lead arms after every subagent launch (verdicts NOLOG / TROUBLE / IDLE / STALL), plus a --fallback timer mode; the path is built from the Skill dir: ledger field, which Step 0 records from the base directory Claude Code prints when the skill loads. The source-per-claim, research-dossier-in-brief, expand–contract, and serial-vs-parallel test-running rules are adapted from mattpocock/skills research, implement, and to-tickets (MIT, © 2026 Matt Pocock).
  • clear-and-short (skills/clear-and-short/) — Behavioral reply-compression mode: use the fewest words a reply needs in simple, correct, complete English. Compresses which facts get stated, never how words are formed — the deliberate opposite of telegraphic "caveman" compression, since dropping articles saves roughly 5-8% of tokens and costs every reader effort (most of all anyone reading in a second language), while the structural cuts save far more and cost nothing. Cuts: preamble/pleasantries, tool-call narration (before a call: nothing, or one short line such as "Checking both repos." when the calls take more than a few seconds; that line is also the whole answer to the harness's say-a-line-before-you-start instruction, which is where the pre-call sentence came from in an A/B on 2026-09-04, evals/clear-and-short/preamble-ab-2026-09-04.md), restating the user's question, comments on the question or on the approach ("that is checkable rather than a judgement call", "Let me verify in both repos"), plus a first-sentence check before sending (a first sentence that says nothing about the subject itself is deleted), the same fact repeated across heading + bullet + closing line, a closing summary on a reply under ~10 lines, surveys of options that will not be recommended, decorative tables/emoji, long raw logs (quote the one decisive line), hedging. Never cuts: full sentences and articles, negations (not/never/only/except), numbers/units/versions/file:line, verbatim code, error strings and API names, and anything skipped/failed/uncertain/assumed — a shorter report never turns a partial result into a clean one. Work reports capped at three lines (what changed / what was verified / what is left), only the lines with real content. Simple English: the common word over the rare synonym, one idea per sentence (about 20 words or fewer), no idioms or figurative verbs, concrete names over umbrella words ("the system", "the pipeline"), technical terms kept and defined in plain words on first use, active voice. Questions to the user: one at a time, numbered options with a [REC] default (AskUserQuestion when available), so the answer can be one number — the user's words cost tokens too. Steps back to full prose on its own for security warnings, destructive-action confirmations, hand-followed multi-step instructions where order matters, and when the user repeats a question (the repeat means the short version did not land → answer longer and in simpler words, not shorter), resuming after. Boundaries: chat replies only — code, comments, commit messages, documentation, PR/issue/ticket text, memory files, and messages for other people stay at normal length. Two entry points: a length ask ("be brief", "too many words") switches on every rule, while a voice-only ask ("humanize your responses", "remove the AI tells", "your replies sound like ChatGPT") switches on the simple-English and no-AI-tells rules and leaves the length caps off (the cut list is split into always and only when asked for shorter replies for exactly this; the three-line work-report cap and one-question-per-message are length rules too) — that request is for a different voice, not for less content. The No AI tells section covers what simple English misses: em dashes, "not just X, but Y", forced groups of three, AI vocabulary, "serves as" for "is", puffery, bold-label lists, sycophancy, feeling-words, connector colons, fake-candid openings ("Honestly?", "Look,", "Here's the thing"), fake deep truth ("at its core", "the real question is", "fundamentally"), announcing the next point ("Let's dive in", "here's what you need to know"), answering an objection the user did not raise ("To be clear", "Don't get me wrong"), and rows of dramatic fragments (items 11-15, borrowed from blader/humanizer in the same change that took ten patterns into unslop; the YAML description and hooks/clear-and-short-trigger.py are unchanged, the hook's DIRECTIVE_VOICE naming the section rather than listing its items, so the new items reach every session through the always-on voice default). The same words aimed at a file instead of at the replies ("humanize this README") are unslop's, and the routing is stated in both descriptions. Persists for the session until "normal mode"/"stop clear-and-short". The plugin's UserPromptSubmit hook makes the voice half an always-on default: it emits the VOICE directive on the first prompt of every session, so replies are in plain voice from the start without anyone asking — the voice directive and not the length one deliberately, because this is a default and a default must not silently drop content the user never asked to lose. It emits once per session, not on every prompt (re-injecting the same text every turn adds nothing and would conflict with an explicit "normal mode" later in the session); seen sessions are recorded in ~/.claude/.clear-and-short-sessions.json, entries older than 7 days are pruned, the file is written atomically, and a missing or corrupt file never blocks a prompt. A prompt that matches the skill's own patterns keeps today's behavior exactly — "be brief" still upgrades to the length rules, "normal mode" still turns the skill off — and it closes out the default for that session, so the voice directive can never fire a turn later and tell the model to drop length rules the user just asked for. Three things hold the default back: a first prompt asking for the mode off ("normal mode", "stop clear-and-short", "stop being brief", "you can be verbose again", "back to normal") emits nothing and closes out the default for that session (before, such a prompt got the voice directive on the very message asking for the mode to be off); the default fires only when the environment variable CLAUDE_CODE_ENTRYPOINT is cli or absent, never sdk-cli — so not in claude -p, SDK runs, or automated eval harnesses, where it silently changed output measured for other purposes (the payload's source field is also checked when present, but the claude -p payload on 2.1.251 carries none, which is how the default was caught firing in a claude -p run on 2026-08-28 under the earlier source-only check); a prompt that explicitly matches the skill's patterns is still honored whatever the entrypoint or source; and the environment variable CLEAR_AND_SHORT_NO_DEFAULT, set to any non-empty value, turns the default off with matched prompts still working — the documented opt-out, where before the only way out was uninstalling the plugin. The trigger description was validated by a real-registration A/B (2026-08-27, three skills registered under a scratch project's .claude/skills/, the installed user-level twin parked): the earlier wording under-triggered at roughly 8/16 across repeats — the model answered briefly inline without loading the skill, so nothing persisted — while precision was already 100%. The current wording front-loads the use-when clause, names "from now on keep it short" / "use fewer tokens" / "stop narrating every tool call" as phrases (bare "save tokens" was being read as a memory-save request), and adds the invoke-reason: invoke on the first such request even when that message also asks an ordinary question, because one shorter answer does not make the change persist. That scored 6/6 recall with 6/6 hard negatives still clean (README/release-notes prose → unslop, docs → document-generate, commit message / shorter function / summarize-a-file → no skill). Re-measured 2026-08-28 after the voice phrases were added (evals/clear-and-short/description-ab-2026-08-28.md, claude-opus-5, plugin disabled so the hook could not fire): voice asks 5/6 with "Humanize your responses and remove the AI tells." firing, length-with-task asks 4/6 against 3/6 for the pre-voice wording on the same model — the misses (bare "Be brief." / "keep it short from now on" plus a task) come from the model generation, not the added text, and the hook covers them in real use; hard negatives 0/8. Description kept unchanged. Declares no allowed-tools/disallowed-tools (behavioral; must not restrict tools) and no model: pin. No references/ (body is small). Also carries caveman's no-invented-abbreviations and no-arrows rules (the tokenizer splits cfg/impl/→ into as many tokens as the full words, so they save nothing) and its never-add-a-word / no-mode-announcement / reply-in-the-user's-language rules. Adapted from juliusbrussee/caveman (MIT, © 2026 Julius Brussee) by splitting its two mechanisms apart and keeping only the structural one — its grammar-mangling and six intensity levels are dropped; roughly caveman's lite level plus the simple-English and question rules.
  • unslop (skills/unslop/) — Behavioral prose editor that removes the patterns marking text as AI-written, working from a fixed list of 41 patterns in seven groups (content, language, style, communication artifacts, filler, jargon, plain speech): puffery, AI vocabulary, "not just X, but Y" (incl. its tailing-negation form), forced groups of three, synonym cycling and repeated sentence openings, em-dash/colon/bold overuse, bold-label lists, title-case headings, chatbot phrases, filler, hedging, abstract metaphor nouns ("substrate", "north star"), passive voice and missing subjects, feeling-words instead of facts — plus answering an objection nobody raised ("To be clear", "Don't get me wrong"), rejecting a fake alternative that never comes back, writing about the previous version instead of current behavior, hyphenated pairs kept after the noun, a heading whose first sentence only repeats the heading, fake-candid openings ("Honestly?", "Here's the thing"), announcing the next point ("Let's dive in"), fake deep truth ("at its core", "the real question is"), formulaic sayings ("X is the Y of Z", "the currency of"), and rows of dramatic fragments. Process: scan → rewrite preserving meaning and tone → self-audit. A ## What not to flag section is the false-positive guard, so the skill does not strip writing that was never machine-written: perfect grammar, mixed register, one em dash alone, curly quotes from a word processor, one short sentence for emphasis, deliberate repeated openings, real caveats and legal notices, real alternatives weighed in a design document, and a watched phrase inside a quotation, title, or an example discussing the phrase (one tell proves nothing, several together are evidence; pattern 16 still bans em dashes outright in prose we author, the stricter rule for our own text). A ## Keep the author's own voice section names what the edit must not delete (specific unusual details, unresolved tension, era-bound references, genuine asides, varied sentence length) — the mirror of the existing never-add-a-voice rule, not upstream's "Adding soul". Scope: human-facing prose only — docs, READMEs, posts, emails, PR descriptions — never code, comments, commit messages, or chat replies (their length, wording, and AI tells are clear-and-short's job, including a "humanize your responses" ask; the two are complementary). Never changes meaning, facts, numbers, or established technical terms; adds no opinions or first-person voice; a project style guide overrides a conflicting pattern. Produces no files; edits the given text. YAML description deliberately unchanged by the 41-pattern expansion (the new patterns do not change when the skill should trigger). Declares no allowed-tools/disallowed-tools and no model: pin. No references/. Adapted from cursor/plugins pstack (MIT, © 2026 Lauren Tan) — all 31 of its patterns kept; upstream's "Adding soul" section (opinions, first person, deliberate mess) and its Must always apply. trigger are dropped — the first conflicts with the catalog's plain-facts style, the second would fire on every turn. The ten added patterns, the three pattern extensions, and both new sections are adapted from blader/humanizer (MIT, © 2025 Siqi Chen), whose list comes from Wikipedia: Signs of AI writing; humanizer's "Add personality only when it fits" section is dropped for the same reason "Adding soul" was, and humanizer itself is deliberately not installed as a skill (it would claim the same "humanize"/"de-AI" trigger words unslop already owns).
  • delegation-prompt (skills/delegation-prompt/) — Writes the paste-ready prompt that briefs a different session, agent, or teammate to do a follow-up job on work this session just finished (review the PR, test under load, port the fix to a sibling repo, audit it). Output: one fenced code block holding the whole prompt, preceded by one to three lines naming the mode. Mode is decided first: checking (the receiver reviews/audits/verifies/tests) withholds this session's conclusions, phrases risk areas as questions with no answers attached, and frames claimed-deliberate oddities as claims to judge, because a reviewer handed the answer confirms it instead of verifying it; extending (the receiver continues/implements/ports) states every settled decision plainly so nothing is re-derived; a task that is both is split into a checking section and an extending section inside the single block. Always included in both modes: concrete identifiers (PR + URL, repo, branch, paths, exact tool/MCP server, the installed catalog skill to invoke, e.g. verify-implementation), provenance ("written by an AI session; commit-message claims are claims to verify"), environment traps with what the failure looks like, ground rules (read-only, no push), the wanted output shape. Iron rule: carry over only what you can trace to a source — every number/filename/version/command/decision traces to the user's words, a file read, or a command run, else cut or marked unknown ("the author did not say which other files changed; establish that yourself"); added after the skill's own eval runs showed prompts inventing an incident timing profile, a load-scenario description, and a "the only file changed" claim (those runs used an earlier eval set, since replaced). Never puts a secret in the prompt (names where the credential lives instead). Not for continuing the same work later (session-handoff), and never performs the follow-up itself. Declares no allowed-tools/disallowed-tools and no model: pin. No references/. Eval fixtures under evals/delegation-prompt/evals.json (3 scenarios: PR-review checking mode, sibling-repo port extending mode, load-test verification checking mode).
  • session-cleanup (skills/session-cleanup/) — The cleanup phase after a piece of work is merged or deployed: deletes the branches, plan documents, spec artifacts, scratch files, and background processes this session created, and reports everything else instead of removing it. Two questions decide every deletion and the skill's claim is that conflating them is the failure mode: is it mine? (the ownership test, run before any git check — a stale, merged, obviously-finished branch belonging to a teammate, another agent session in the same checkout, or the repository's arrival state is not yours; unsure whether you created it means you did not) and is it recoverable? (git ls-remote --heads origin / git branch -r --contains <sha> before the delete, not after — a commit on no remote branch is load-bearing even when stale). Ancestry lies after a squash merge: git branch -d refuses a branch whose content shipped an hour ago, ancestry can also pass while a branch's newest commits are missing, and -d succeeds on a branch merged only to its own upstream and never to the target (verified in-session: it warns merged to 'refs/remotes/origin/feature', but not yet merged to HEAD and deletes), so a clean -d proves nothing about the target; git diff --stat <branch> <target> and git merge-base --is-ancestor refs/heads/<branch> <target> decide and the report names which check was used. Never candidates, excluded before the ownership test: the repo's real default branch (read from git symbolic-ref --short refs/remotes/origin/HEAD, never assumed to be main), the current branch, and main/master/develop/dev/staging/production/qa/uat/release/*/hotfix/* — excluded from deletion but still reported when carrying unpushed commits. Branch names can run commands: $(id), `id`, a;b and a&b are all legal refnames (confirmed against git; a|b is rejected), so every branch name and path is single-quoted in a shell command and double quotes are not enough. A dirty worktree is never removed under a batch confirmation and --force is not the answer to the refusal: its uncommitted changes exist nowhere else, so they are listed and acknowledged individually first. Plan documents: a file reading "Status: not started" is queued work, not finished work, and the plan worked from is rarely the only one in the directory. Spec artifacts: where the workflow archives a change, the archive is the record and archiving is the cleanup. Scratch work products (a review report, a dossier, a generated summary a skill wrote into the session scratchpad) get one question, who will ever open this?: nothing indexes a session's scratchpad and no later session reads another's, so a file no committed file, memory note or message names is noise whatever it cost, and the recoverability test does not protect it; it is either deleted with its facts already recorded elsewhere, or moved to a place with a reader (evals/, docs/) as a change the user approves, never left in place (added after a 20 KB review report was kept on 2026-09-16 and deleted the moment the user asked who would read it). Worktrees: git worktree remove (which refuses a dirty tree, the check working) and git worktree prune, never rm -rf, which leaves the .git/worktrees registration and makes git refuse to check that branch out anywhere else. The remote is never deleted: git push origin --delete removes the copy that made the local delete reversible and takes the branch from everyone else, so cleanup deletes local refs and leaves the remote one to the user or the merge platform. Processes: identify by what they are doing, not by name — a gcloud or node process may be the user's or another session's; unidentifiable ⇒ leave it and say so. Shared checkouts: the branch can change between two commands, so re-check git branch --show-current / git status --short before committing, never git add -A or git add . (stage by explicit path), never commit or discard someone else's uncommitted files, and message a live sibling session before moving the branch; a blob compare (git rev-parse <branch-a>:<path> <branch-b>:<path>) confirms a file is identical on both branches before a switch carries changes across. Report shape: removed / kept and why / at risk — the exceptions are the actionable part — and a mistake made and reversed is reported, since a quiet delete-then-restore looks identical to a clean run. Declares no allowed-tools/disallowed-tools (the never-rules are workflow discipline). No references/. Written at Mi9 from one real session's cleanup on 2026-09-04, including its two mistakes (a branch deleted for being merged rather than for being ours, and a plan document deleted while it still read "Status: not started"). Description carved by a three-variant A/B against real .claude/skills registration on 2026-09-04 (evals/session-cleanup/, 42 queries + 11 re-checks, claude-opus-5, skill-creator's .claude/commands loop deliberately skipped): shipped wording vs proactive-clause-removed vs use-when-first-with-do-NOT-carve-outs; all three scored 14/14 (6/6 positives, 8/8 hard negatives against session-handoff/retro//simplify/repo-change-summary), so the set separated nothing and the third was adopted on a pre-registered tiebreak rather than a measured win. Three method findings recorded there: P5 ("kill the background processes you started") is unanswerable for a fresh claude -p subprocess that started none, so it measured the query and was replaced by P5b with a real running process (all three then fire); renaming an installed skill inside ~/.claude/skills/ does not park it (it stays registered under the new directory name and fires during the run — it must leave the tree), which contaminated C's first negative pass and forced a clean re-run (8/8 both times); and the node process the P5b fixture starts holds the repo directory open, so the rm -rf reset failed for the B and C runs. The behaviour eval is still owed — nothing has checked that the skill changes which things get deleted. The protected-branch list, quoting rule and dirty-worktree refusal were prompted by trailofbits/skills git-cleanup (CC-BY-SA-4.0, 4K installs), found when checking skills.sh for prior art: it handles branches and worktrees more rigorously than this skill did (refutation pass, verifyWith preconditions, two approval gates) and handles ownership, plan/spec/scratch files and processes not at all, and it is disable-model-invocation: true where this one triggers on its own. Its text is deliberately not reused — the licenses are incompatible (that repo is CC-BY-SA, this catalog is MIT), so each borrowed rule was re-derived from behavior verified against git in-session and written fresh.
  • dead-code-removal (skills/dead-code-removal/) — Re-checks an existing, dated dead-code analysis and its removal plan against the code as it stands today, using parallel read-only re-check subagents that re-prove every finding from scratch with a repository-wide search and record fresh VALID / CHANGED / INVALID / GONE verdicts into the plan and a new NN-recheck-<YYYY-MM-DD>.md file next to the analysis (the analysis itself gets at most one index paragraph and one table row, and its original findings are not rewritten), then deletes what is still statically proven dead, one plan step per commit, in a dedicated git worktree, running the project's own quality gates after every step and comparing each result to a pre-deletion baseline. Step 0 asks the user for the base commit (AskUserQuestion) before anything is created; the worktree is then created detached at that base, at ../<repo>.worktrees/dead-code-removal-<YYYY-MM-DD> (suffix -2 if it exists), beside the repository. Step 0 also checks whether git tracks the analysis and plan: an untracked one, or a tracked one that differs from the base commit (modified, staged, or missing there), is copied into the worktree and committed with the Step 3 documents, a git-ignored one is edited where it is and reported as not committed. Read-only during the re-check — a re-check agent writes only its own report file, to the session scratchpad, outside the repository; during the deletion phase it changes code only inside the worktree, never in the user's own checkout; the one exception is a git-ignored analysis or plan, which it edits where it is. Deletes on static proof only (never on config, deploy settings, or traffic alone); never fixes a gate failure forward (reverts the step per path with git restore --source=HEAD --staged --worktree -- <path> and git clean -f -- <path>, records it, skips it, and continues with the next step, skipping any later step that depends on it; the one exception is an import-order lint auto-fix the user approved in advance); runs the formatter only on the step's files and refreshes the lockfile and reinstalls before the gates when a step changes a dependency list; never deletes a defect it finds along the way (a bug like an uninjected dependency or an unregistered plugin is reported, not removed; state written but never read is recorded as a follow-up); never commits or pushes without the user's approval (stages each file of the current step by its explicit path, never git add -A or git add .); the Step 3 documents (re-check file, edited plan, analysis index) are proposed at Step 4 together with the checked plan and committed on approval as the branch's first commit, before any deletion, and test-only items are put to the user at Step 4. Section 2c's agent rules follow current Claude Code behaviour: only an agent's final result reaches the coordinator, so status lines go by SendMessage; an agent reads incoming messages only between tool calls; a background command a foreground agent started stops at its final response. Ends with a final check (clean, uncached build and test; a search for every removed name and deleted file) and a six-section report (removed, skipped, behaviour changes, gates, defects and follow-ups, steps left). Declares no allowed-tools. model: opus — a weaker re-check can return VALID on code something already uses, and that verdict is what leads straight into deleting live code. Ships references/ (recheck-brief.md, the fillable prompt and heartbeat rule sent to each re-check agent; false-positives.md, the checklist an agent must clear before calling anything VALID, re-read again before each deletion). Eval fixtures under evals/dead-code-removal/evals.json (8 trigger positives, 8 hard negatives, 5 behaviour scenarios). The trigger set scored 8/8 recall and 8/8 precision on 2026-09-29; behaviour scenarios 0, 1 and 3 were run, their failures led to the SKILL.md fixes, and after those fixes scenario 3 passes 7/7 and scenario 1 scored 16/16 on its fourth run, after the fixes to the closing report and the document agent's git use; scenarios 2 and 4 are not run. Results are in evals/dead-code-removal/results-2026-09-29.md.
  • windows-disk-cleanup (skills/windows-disk-cleanup/) — Finds what fills a Windows machine's disk and what can be removed without harm. A bundled read-only PowerShell script (scripts/Measure-DiskUsage.ps1, Windows PowerShell 5.1 and 7) measures free space, the user's TEMP/TMP variables against %LOCALAPPDATA%\Temp, the largest profile and AppData folders with reported AND on-disk size (cloud placeholders, sparse and NTFS-compressed files), known locations with a category, large folders no installed program matches, Docker and WSL .vhdx disks, and repeating Temp growth (Visual Studio Installer copies left by the BackgroundDownload scheduled task). The report sorts every large item into safe to delete / caches / shrink / your call / do not delete with one command per item. The agent never deletes: it hands over the commands, and scripts/Clear-DiskSpace.ps1 (with -DryRun; restarts itself elevated for LiveKernelReports and Panther\monitor) deletes the safe groups when the user runs it. Rules come from the source session's mistakes: Temp named by full path, never $env:TEMP; a folder called a leftover only after the program is confirmed uninstalled; unreadable is reported as not checked; a .vhdx is shrunk, never deleted; a script is given by its full path in the installed skill's folder, checked to exist first. Step 4 re-measures after the user runs the commands and explains every unchanged item. Procedures in references/locations.md. Trigger sweep on 2026-11-06 (evals/windows-disk-cleanup/, 15 prompts, claude-opus-5-5, real registration; every run in --permission-mode dontAsk with only Skill/Read/Glob/Grep allowed, never bypassPermissions, because the prompts ask to delete files on the real machine and the user-level settings default to bypass): recall 6/7, precision 8/8, the session-cleanup overlap on "delete the temp files" split correctly by scope; the miss was the uninstalled-program leftover prompt (0/3), which the description did not name. The description then gained a clause for "the folders a program left behind after it was uninstalled" (862 to 950 characters), and a second sweep the same day (17 prompts: added a second leftover wording and an uninstall-question negative) scored recall 8/8, precision 9/9, the Cursor prompt 3/3. Results in evals/windows-disk-cleanup/description-sweep-2026-11-06.md. No behaviour eval run.
  • pr-review-request (skills/pr-review-request/) — Writes the Google Chat message that asks colleagues to review one or more open pull requests; it does not review them (pr-review does) and posts nothing. Output: one fenced code block with raw Google Chat markup, preceded by a short note with one line per item (the mention reminder, what was left out, any difference between the description and the diff), nothing below it. The whole message stays within about 350 words: a larger pull request gets grouped bullets, not a longer message, and *Behavior to check* is cut last. The header is the team's existing format and is fixed: line 1 *<TICKET> <Component>: <summary>* (the whole line in bold since 2026-11-24, at the user's request; *, _, ~ and backticks are kept out of it because markup inside bold text was not tested in Chat), one mention line (Hi @<reviewer> This PR is ready for review., plural These PRs are for more than one), one <Repo label> PR: <url> line per pull request with a blank line between them; several pull requests for one ticket, in several repositories, go in one message. The detail sections follow in a fixed order, each included only when a source gives its content: *Why*, *What changed*, *Behavior to check* (ends with the line saying what did NOT change), *Also in the PR*. There is no *Not in scope* and no *Verification* section (removed 2026-11-24 at the user's request, after reading a generated message): the gates pass before a review is requested, so a line saying so is the same in every message, and a list of what the pull request does not do is not what the reviewer came to check; the skill does not run gates, puts no gate or test result in any section, and does not say in the note that the two sections are missing. Step 1 reads every pull request first: Bitbucket through the Composio MCP tools with the slugs pr-review verified (BITBUCKET_GET_PULL_REQUEST, _COMMITS, _DIFFSTAT with its pagination and null new.path on a deletion, _DIFF with its truncated flag, BITBUCKET_GET_FILE_FROM_REPOSITORY), GitHub through gh pr view --json and gh pr diff, or a local checkout with read-only git commands against origin/<branch> (never a checkout, switch or pull); then the ticket, a CHANGELOG entry, and a spec or plan document when one exists. A pull request that cannot be read ⇒ ask for the pasted description and diff stat, never write from the URL alone; a merged, declined or draft pull request ⇒ ask before writing, because the mention line would be false. Asking means AskUserQuestion when the session has it; otherwise (a claude -p run, a subagent) the question goes in the reply and the run stops with no message block, and only the user's own words count as the answer. Iron rule: every specific claim (a number, a file, a limit, a behavior change) traces to the pull request, its commits, its diff, the ticket or a document, or the user's words; otherwise it is left out and named in the note. A number the diff can confirm is confirmed there, and the diff wins over the description; a number only a document states is carried as stated, not rounded or extended; an item goes on the "unchanged" line only after it was checked against the diff stat (config and env vars; deployment, which a database migration in the diff stat also rules out) or the whole diff (response codes; a partial read of a large or truncated diff cannot support that item). Reviewer names: @<reviewer> placeholder when none are given, never invented and never taken from the pull request's reviewer list or commit authors; the note always says the mention has to be entered again in Chat. The message never states that the code was written or reviewed with an AI tool, even when that is true, the user confirmed it, or the user asks for the line (the note then says the skill does not add it). Wording rules: no pleasantries beyond the mention line, common literal words, no figurative verbs ("lands", "ships"), no AI vocabulary, no em dashes, identifiers kept as the code names them and always in backticks, each paragraph and bullet on one unwrapped line, never a secret. Google Chat markup was checked against Google's pages on 2026-11-24 (support.google.com/chat/answer/7649118, /answer/14170425, developers.google.com/workspace/chat/format-messages): a person can type *bold*, _italic_, ~strike~, backtick code, triple-backtick blocks, > quotes, - or * bullets and 1. lists; headings are "Not supported" in Chat's own syntax, and [text](url), **bold** and tables exist only for app messages sent through the Chat API in Markdown mode; a mention is documented as entering @ and the name, with the select-from-the-suggestion-menu step given only in the page's steps for editing a message. The message uses only *...* (around line 1 and for each *Label*), backticks, bare URLs and a literal • for bullets (a plain character, so it reads as a bullet whether or not Chat converts markup in pasted text). Not documented by Google, and stated as such in the skill: what happens to typed markup when text is pasted while the Live Markdown setting is on; the help page only says formatting applies "as you type" and that with the setting off the text converts after sending. Tested once, 2026-11-24: a message from this skill pasted into Google Chat and sent showed bold section labels, inline code, the • bullets and a linked URL; the test did not record whether Live Markdown was on. A user who reports mid-paragraph line breaks selected the text with the mouse in a terminal and is pointed to /copy. Declares disallowed-tools: Edit, Write, NotebookEdit (the only output is chat text; a per-turn guard) and no allowed-tools (the Bitbucket tools are the user's own Composio MCP registration and cannot be listed); no model: pin; argument-hint for the URLs or numbers. No references/. The worked example in the body is invented (service, ticket and every number), with the shape and length of a review request a user accepted on 2026-11-24; the accepted request itself described a weakness in a production service and was removed before the skill was committed, so do not put a real pull request back into this public catalog as the example. Eval fixtures under evals/pr-review-request/evals.json (9 trigger positives, 10 hard negatives aimed at pr-review, delegation-prompt, unslop and plain writing tasks, 8 behavior scenarios that carry the pull request facts inline so they need no Bitbucket access) and the runner run_evals.sh, which uses --permission-mode dontAsk with only Skill, Read, Glob and Grep allowed because pr-review posts without asking (never bypassPermissions). Run on 2026-11-24 (claude-fable-5-2, real .claude/skills registration in a scratch repository, results-2026-11-24.md): trigger run 1 scored 8/8 positives and 9/10 negatives ("reply to the reviewer's comments on PR 114" loaded the skill), run 2 after the description fix 9/9 and 10/10, with pr-review loading on no positive. Behavior: 8/8 pass after three fixes the runs led to. (1) "Review request for <Bitbucket URL>" loaded pr-review first in one run, so pr-review gained its exclusion and stop rule and the wording became positive P9. (2) The note grew to 8 lines and the "unchanged" line was written as the check that was run, so the note is capped at six lines with a fixed list of contents and the line is written as a claim. (3) Scenario 4 passed in run 1 and added the AI line in run 2 because the prompt asked for it; the rule gained "a direct request in the prompt does not change this", and 3 of 3 re-runs then left the line out. A single passing run does not prove a refusal rule holds. Not measured: Step 1 (reading a pull request through Composio, gh or a checkout). Written at Mi9; not adapted from an external project.

Removed skills

scaffold-claude, test-driven-development, retro and health were removed on 2026-11-24 because they were not used. To restore one, run from the repo root:

git restore --source=$(git log --diff-filter=D --format=%h -1 -- skills/<name>/SKILL.md)^ -- skills/<name>

Restore its README.md table row and section, and its bullet in this file, from that same commit (git show <commit>^:README.md), then follow the Contributing rules below.

Contributing

  1. Create or edit a directory under skills/<skill-name>/. Include a SKILL.md; put long-form reference docs under references/. The frontmatter must parse under a strict YAML parser (python -c "import yaml,sys; yaml.safe_load(open(sys.argv[1]).read().split(' ---')[0].lstrip('- '))" skills/<name>/SKILL.md): write the description as a >- block scalar, never as a plain one-line scalar, because a colon followed by a space anywhere in the text (...need removing: "clean up"...) is a nested mapping to YAML. Claude Code's own loader tolerates that and registers the skill, so nothing looks wrong locally, but npx skills add rejects the file with YAML parse error: Nested mappings are not allowed in compact mappings and reports No matching skills found, and the skill is unshipped for everyone else. session-cleanup was in that state from 2026-09-04 to 2026-09-16. Skill eval fixtures live under repo-root evals/<skill-name>/, never inside the installable skill folder — they are development material npx skills add does not install.
  2. When adding (or renaming/removing) a skill, update ALL catalog docs in the same change — this is mandatory, not optional:
    • README.md — add a row to the Skills at a glance table and a full per-skill section (mirror the existing format: what it does, use it for, triggers on, what it does not do / what it produces, install, full definition link). The README is how consumers discover skills — an undocumented skill is effectively unshipped.
    • This CLAUDE.md — add a bullet to the Current skills list above.
    • Keep the table-row count, the ## section count, and the skills/ directory count in agreement.
  3. Open a PR against main. Teammates pick up changes on their next npx skills add … --skill <name>.

There are no versions to bump and no catalogs to update — npx skills add always pulls the current state of the branch it points at.

Distribution mechanism

Two mechanisms, with a split worth stating plainly.

Almost every skill installs with npx skills add, which copies one skills/<name>/ tree into ~/.agents/skills/<name> and symlinks that into ~/.claude/skills/<name>. It installs skill files and nothing else, so an edit here does not reach an installed skill until the command runs again.

A skill that also needs a non-skill component — hooks, agents, MCP servers, LSP — is published as a plugin as well, through .claude-plugin/marketplace.json. There are two entries today, both with "source": "./": clear-and-short, for its UserPromptSubmit hook, and execute-change, for the three hooks that watch its subagents. hooks/README.md covers what each hook does and how a teammate installs it.

claude plugin marketplace add Mi9-LLC/agent-skills
claude plugin install clear-and-short@mi9-agent-skills
claude plugin install execute-change@mi9-agent-skills

Both entries declare their hooks inline, as a "hooks" object mapping hook event names to matcher arrays. There are two reasons, and both matter. First, a marketplace entry rejects a hooks file path — the CLI's own error text starts hooks: the file-path and array forms are not yet supported in a marketplace entry. and then names the two supported forms, the plugin's own hooks file or an inline object. Second, a hooks file auto-loads from the plugin root, and both entries share the repo root as their plugin root, so one hooks file there would load into both plugins — installing execute-change alone would have silently registered the clear-and-short UserPromptSubmit hook as well.

The earlier Bitbucket-hosted mi9-plugins marketplace was retired because the Claude Code TUI's /plugin install flow hit a "source type not supported" bug that blocked teammates from installing through the UI. The marketplace came back on 2026-08-27 to carry the hooks, this time from GitHub. If that bug returns, move the plugins to a second repo rather than dropping the hooks.

Do not install one skill both ways on the same machine. Two copies register under the same name, and only the plugin carries the hooks.

Agent skills

Issue tracker

Issues live as local markdown files under .scratch/<feature-slug>/ in this repo (gitignored — not published). See docs/agents/issue-tracker.md.

Triage labels

The five canonical roles, each label string equal to its name. See docs/agents/triage-labels.md.

Domain docs

Single-context: CONTEXT.md + docs/adr/ at the repo root. See docs/agents/domain.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.