Codex Refactor a Large Method with MCAF Maintainability Rules
Review responsibilities, test seams, and justified exceptions under the repository's maintainability policy.
中文Install in Codex
Use local code, the nearest `AGENTS.md`, and tests that cover the existing behavior.
- Copy the pinned `.codex/skills/mcaf-solid-maintainability/` directory into `.agents/skills/mcaf-solid-maintainability/` in the project.
- Read `references/limits-and-exceptions.md` and the project policy to identify thresholds and exception rules.
Example task
Review a report method that parses, aggregates, and formats a title. Extract just the title formatting and compare complete outputs with existing fixtures.What to check
The diff isolates one responsibility, keeps the existing output, and records the rule and supporting test.
Original SKILL.md on GitHub · Updated
Frequently asked question
Must every method over a line limit be split?
Use repository policy and actual responsibilities. When there is a justified exception, record its scope and review date.