/flow:debloatfrom flow
Reviews and simplifies code, tests, prose, and repository checks through behavior-preserving cuts while keeping typing, performance, and conventions intact.
Ships in flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Reduce the semantic surface a maintainer or agent must understand without changing what users can observe. Deletion is a behavior-preserving refactor, not proof that the deleted material was unnecessary.
Identify the contracts that must remain stable:
Classify each candidate as public, private-live, private-dead, generated, or test-only via repo-wide call-site tracing before recommending cuts.
Run focused verification before editing. Observable behavior and bug fixes use the task's TDD strategy. Behavior-preserving deletion, consolidation, or reordering uses a green-before/green-after characterization baseline. Read test and check debloat before deleting tests or replacing a check.
_... module helpers used only by a single domain class onto that class as private methods below its public methods.ai: as user instructions.git grep -n -F '<symbol>' across tracked files before marking code dead. Also check __all__ exports, CLI flags, wire schemas, config files, templates, SQL views, fixtures, reflection, and dynamic dispatch.../../templates/agent/simplify-card.md. Report cuts read-only during review passes without modifying files. In change-request mode, apply equivalent cuts after lint and tests pass, and confirm behavior_change cuts with the owner first.When adding or relying on a replacement check, inject a representative violation into a temporary tree, isolated fixture, or check self-test. Require a non-zero result and the expected diagnostic. Restore the violation and require the check to pass. Never leave deliberate violations in the working tree or overwrite user files.
Confirm that canonical aggregate commands inspect new and untracked files. Record any discovery gap instead of treating a vacuous green result as proof.
Review the final diff for semantic drift and newly introduced cleverness. Run focused behavior checks, affected lint/type/build checks, coverage comparison when deleting behavioral coverage, and git diff --check. Report the invariants preserved, exact checks, and any limitation.
Strip synthetic AI filler and context bloat from docs, specs, worksheets, .agents/ files, commit messages, and code:
pivotal, crucial, testament to, delve, tapestry, seamless, robust, comprehensive, leverage, unlock, foster, underscore, showcase)."It is not just X -- it is Y", "Not only... but also...", "Moreover", "Furthermore", and trailing participle clauses ("...ensuring seamless integration") with direct active-voice statements..agents/ docs when a context pointer (path/to/file::Symbol) points to the live source. Rewrite living docs in present tense without revision logs.# comments; move necessary rationale into module, class, or function docstrings and enforce PEP 585/604 built-in types (list[str], dict[str, Any], X | None).Reject and refactor test anti-patterns:
test_*remediation*.py, test_*audit*.py, or test_task_*.py files in the tree; merge valid behavior assertions into the canonical module test file.Relevant verification must remain equal or stronger after cleanup. Preserve observable behavior, public APIs, typing, performance, import boundaries, and repository-native quality checks.
Verify call sites across the whole repository before proposing a deletion or replacing a scanner with a linter rule:
git grep -n -F "LegacyHelper"
flow review plan --range main..HEAD --mode simplify --json
When replacing a pytest source scanner with a configured linter rule, first prove the linter rejects the same representative violation in an isolated fixture. Only then remove the superseded scanner and run the focused plus aggregate checks.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub cofin/flow --plugin flow11 skills in this plugin
/flowUse when a repository has .agents, or when routing Flow lifecycle tasks (setup, prd, spec, plan, revise, research, implement, status, dispatch, delegate, coordinate, learn, refresh, sync, docs, pr, review, simplify, finish, archive, cleanup, revert, validate, studio). Don't use for direct coding without specs or standalone plugin authoring (use multi-harness-plugins)./flow-completionUse when running independent code, spec, or subtraction-only simplify reviews, finishing and syncing completed specs, archiving into knowledge bundles, cleaning up, reverting, or validating Flow bundles. Don't use for planning new specs (use flow-planning) or implementing open tasks (use flow-execution)./flow-dispatchUse when choosing between inline work, subagents, packaged workflows, or bounded worker swarms, routing models and task briefs, dispatching work across CLI harnesses, or coordinating separate workspace conversations. Don't use for planning specs (use flow-planning), writing code (use flow-execution), or reviews (use flow-completion)./flow-docsUse when writing or auditing technical documentation, READMEs, user guides, design docs, agent instructions, pull requests, commit messages, or changelogs. Don't use for planning implementation specs (use flow-planning) or syncing task state against Git (use flow-learn)./flow-executionUse when implementing an approved Flow chapter's task worksheets or reporting live spec and branch status. Don't use for drafting or revising specs (use flow-planning), initializing bundles (use flow-setup), or final review and closeout (use flow-completion)./flow-learnUse when catching up across machines or harnesses, syncing spec checklists against Git, auditing drift, sharpening domain glossaries and ADRs, or updating OKF v0.2 knowledge and .agents/skills/. Don't use for planning new specs (use flow-planning) or public README/PR drafting (use flow-docs).Other plugins' skills for the same job