iterative-code-quality/SKILL.md
Improve an existing codebase through repeated evidence-based repository-wide scans, module-by-module deep-read coverage, and behavior-safe refactors until no known in-scope actionable quality issue or unvisited in-scope module remains: clarify poor names, simplify or extract reusable functions, split mixed-responsibility code, repair stale or missing logs, and add high-value tests where guardrails are missing, while preserving intended business behavior and the system's macro architecture. Use when users ask for comprehensive refactoring, code cleanup, maintainability hardening, naming cleanup, log alignment, or test coverage improvement across a repository.
npx skillsauth add laitszkin/apollo-toolkit iterative-code-qualityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
align-project-documents and maintain-project-constraints after the repository is truly iteration-complete.systematic-debug when a newly added or existing test exposes a real business-logic defect that must be fixed at the true owner.discover-edge-cases for high-risk boundary exploration before adding tests; improve-observability for non-trivial telemetry design.Leave the repository materially cleaner by continuously scanning the whole codebase, landing the highest-value safe refactors available at each moment, and repeating until there is no known in-scope actionable quality gap left to fix.
For this skill, macro architecture means the system's top-level runtime shape and overall operating logic: major subsystems, top-level execution model, deployment/runtime boundaries, persistence model, service boundaries, and the end-to-end way the whole system works. Ordinary module interactions, helper extraction, local responsibility moves, internal call-boundary cleanup, and local module splits do not count as macro-architecture changes by themselves.
AGENTS.md/CLAUDE.md, README*, package manifests, task runners, CI/test config, and major project docs.references/repository-scan.md for the scan checklist and backlog shaping rules.references/module-coverage.md for module inventory, job-oriented deep-read coverage, easy-first ordering, and completion rules.Load references for this step only as needed:
references/module-coverage.md for choosing the next module and proving every in-scope module has been deeply read through the available-job lenses.references/job-selection.md for next-job choice conditions and tie-breakers.references/naming-and-simplification.md for naming cleanup and function simplification/extraction.references/module-boundaries.md for single-responsibility module cleanup.references/logging-alignment.md for stale or missing log repair.references/testing-strategy.md for unit, property, integration, and E2E test strategy.references/coupled-core-file-strategy.md for staged unlock work on large coupled or apparently core files.references/iteration-gates.md for validation cadence, stage-gate rules, and stop criteria.Only enter this step when the latest full-codebase scan confirms there is no remaining known actionable in-scope quality issue and every in-scope module has received a deep-read iteration, except items explicitly classified as blocked, unsafe, speculative, low-value, excluded, or approval-dependent.
align-project-documents when README, architecture notes, setup docs, debugging docs, or test guidance may have drifted.maintain-project-constraints to verify AGENTS.md/CLAUDE.md still matches the repository's real architecture, business flow, commands, and conventions.Only report completion after Step 3 is done, the latest Step 1 scan is clear, and the module coverage ledger has no unvisited in-scope module.
Return:
N/A reasons where relevant.AGENTS.md/CLAUDE.md synchronization status.development
Read a user-specified PDF that marks the week's key financial events, deeply research each marked event with current sources, capture any additional breaking financial developments, and produce a concise Chinese-capable PDF briefing that explains what happened and why it matters.
documentation
Generate long-form videos (more than 10 minutes) by following user instructions and invoking related skills only when needed (`openai-text-to-image-storyboard`, `docs-to-voice`, `remotion-best-practices`). For text inputs, extract a complete long-form story arc, generate fresh storyboard images (no reuse of previously generated pictures), and render a 16:9 animated long-form video.
tools
協助完成自動化版本發佈。同步文檔、更新版本號、推送 tag 並建立 GitHub Release。
development
Incrementally refresh the architecture atlas when the project diagram drifts from actual code. Measures drift before updating to determine scope, then updates the base atlas and re-renders HTML.