Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Deep codebase cleanup — kills dead code, fixes all lint/format warnings, removes orphaned files, cleans stale TODOs, strips security hazards, tightens TypeScript strict mode, and organizes imports. Triggers: clean up, dead code, unused imports, lint, technical debt cleanup.
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
PARALLEL EXECUTION: Use the Agent tool to spawn cleanup specialists for independent categories.
You are an autonomous codebase cleanup agent. Do NOT ask questions — detect the stack, clean up everything aggressively, and verify nothing broke.
Before any cleanup, detect the project's language and tooling:
| Language | Lint Tool | Format Tool | Detection |
|---|---|---|---|
| TypeScript/JS | eslint | prettier | package.json, tsconfig.json |
| Rust | clippy | rustfmt | Cargo.toml |
| Go | golangci-lint | gofmt / goimports | go.mod |
| Python | ruff (preferred), flake8, pylint | ruff format, black | pyproject.toml, setup.py, requirements.txt |
| Ruby | rubocop | rubocop -a | Gemfile, .rubocop.yml |
| Java/Kotlin | checkstyle, ktlint | google-java-format, ktlint -F | pom.xml, build.gradle |
| Dart/Flutter | dart analyze, flutter analyze | dart format | pubspec.yaml |
| C/C++ | clang-tidy | clang-format | CMakeLists.txt, Makefile |
Use whatever tools are already configured in the project. If multiple are available, prefer the one with an existing config file (e.g., .eslintrc, ruff.toml, .clang-format).
Run the project's test suite once before making any changes to establish a green baseline. If tests fail before cleanup, note the failures and do not count them as regressions.
Find and remove code that is never executed:
return, throw, break, continue, sys.exit(), os.Exit().git log --diff-filter=M --since="6 months ago" -- <file> — if a file has zero imports AND zero recent modifications, it is dead.Verify after removals: run tests, run build.
Find and remove orphaned project artifacts:
devDependencies or the project (e.g., .babelrc when the project uses SWC, old .travis.yml when using GitHub Actions)..DS_Store, Thumbs.db, *.pyc, __pycache__/ not in .gitignore.Add any missing entries to .gitignore for generated file patterns found.
Scan all source files for TODO, FIXME, HACK, XXX, and WORKAROUND comments:
HACK / WORKAROUND comments where the workaround has been replaced with a proper implementation.Scan for and remove security hazards that should not be in production code:
console.log, print, log.debug calls that output tokens, passwords, user data, request bodies, or full error stacks. Remove or replace with sanitized logging./debug, /test, /admin/reset, or any endpoint guarded only by if (process.env.NODE_ENV !== 'production') that leaks internal state.password123, tokens, or secrets in source files (not .env). Replace with environment variable references.Access-Control-Allow-Origin: * in production config.// eslint-disable-next-line, # nosec, @SuppressWarnings for security rules.Do NOT remove legitimate debug tooling that is properly gated behind environment checks.
Fix all linter warnings and formatting issues using the tools detected in Phase 0:
eslint --fix, ruff check --fix, clippy --fix, rubocop -a, dart fix --apply).prettier --write, ruff format, rustfmt, gofmt, dart format, clang-format).If the project uses TypeScript, check tsconfig.json for strict mode gaps:
strict is not true, enable individual strict flags incrementally:
noImplicitAny — add explicit types where any is inferred.strictNullChecks — add null guards and optional chaining.noUnusedLocals and noUnusedParameters — remove unused code or prefix with _.strictPropertyInitialization — add definite assignment assertions or initialize in constructor.as any or @ts-ignore as fixes — those defeat the purpose.strict: true would require 50+ changes, enable the flags one at a time and fix each batch. Report which flags were enabled and which remain.Clean up imports across all files:
goimports. For Python: use isort or ruff's import sorting. For Dart: use import_sorter or manual alphabetical ordering.package.json, Cargo.toml, pyproject.toml, Gemfile, pubspec.yaml, go.mod).Run the full verification suite:
If any test fails that passed in the baseline, revert the change that caused it and note it in the report.
Commit in focused, atomic batches with tagged prefixes:
chore(dead-code): remove N unused exports and orphaned fileschore(safe-delete): remove stale configs and orphaned fixtureschore(todo): remove N resolved TODO/FIXME commentschore(security): strip debug logging and hardcoded credentialschore(lint): fix N lint warnings and format all fileschore(types): enable strictNullChecks and fix type errorschore(imports): organize and deduplicate importschore(deps): remove N unused dependenciesEach commit must independently pass tests. Do not batch unrelated changes.
After completing all phases, validate the combined output:
STOP when:
IF STILL FAILING after 3 iterations:
Cleanup Sprint Report
=====================
Stack: <language> | Lint: <tool> | Format: <tool>
Dead Code:
- Files removed: <N>
- Unused exports removed: <N>
- Commented code blocks removed: <N>
- Unreachable code blocks removed: <N>
Safe Deletions:
- Orphaned files removed: <N>
- Stale config files removed: <N>
- Dead test fixtures/snapshots removed: <N>
TODOs:
- Resolved TODOs removed: <N>
- Unresolved TODOs remaining: <N> (see list below)
Security:
- Debug logging stripped: <N>
- Hardcoded credentials removed: <N>
- Other security fixes: <N>
Lint & Format:
- Warnings fixed: <N>
- Remaining: <N> (with reasons)
TypeScript Strict Mode:
- Flags enabled: <list>
- Type errors fixed: <N>
- Flags deferred: <list> (with reasons)
Imports:
- Files cleaned: <N>
- Unused imports removed: <N>
Dependencies:
- Unused removed: <N>
Verification: Tests <pass/fail> | Build <pass/fail> | Lint <pass/fail>
Lines removed: <N> net
Commits created: <N>
Unresolved TODOs:
- <file>:<line> — <TODO text>
- ...
After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
~/.claude/projects/skill-telemetry.md in that memory directoryEntry format:
### /cleanup-sprint — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Analyzes actuarial modeling systems for loss reserving accuracy, premium pricing methodology, mortality/morbidity tables, stochastic modeling, and capital adequacy per SOA and Solvency II standards..
中文简介正在准备中。当前显示原文说明。
Analyzes advertising yield across programmatic and direct-sold inventory including CPM/CPC/CPA performance, header bidding efficiency, fill rate optimization, inventory monetization strategies, and compliance with IAB standards and OpenRTB protocols..
中文简介正在准备中。当前显示原文说明。
Create and manage Architecture Decision Records using the Michael Nygard format. Triggers: you need to document architecture decisions, record technical choices, explain why a technology was chosen.
中文简介正在准备中。当前显示原文说明。
Analyzes affordable housing management software for unit allocation algorithms, waitlist management, income verification workflows, Fair Housing compliance, LIHTC and Section 8 program tracking, inspection scheduling, and tenant reporting..
中文简介正在准备中。当前显示原文说明。
Rewrites existing landing pages, blog posts, and documentation so AI search engines (Google AI Overviews, ChatGPT, Perplexity, Claude, Gemini) cite them. Triggers: an existing page underperforms in AI answers despite ranking well in classic SERPs.
中文简介正在准备中。当前显示原文说明。