Agent skill
mcaf-formatting
Format code and keep style consistent using the repository’s canonical formatting/lint commands from `AGENTS.md`. Use after implementing changes or when formatting drift causes noisy diffs; keep formatting changes intentional and verified with build/tests.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/mcaf-formatting
SKILL.md
MCAF: Formatting
Outputs
- Formatted code changes (consistent with repo style)
- Evidence: formatting command(s) run and any follow-up build/tests
Workflow
- Use the canonical
formatcommand fromAGENTS.md(do not invent commands). - Run the formatter on the smallest scope possible (if your tools allow it).
- Review the diff:
- ensure changes are formatting-only
- if the formatter touched many files, separate the change or confirm it was explicitly requested
- Verify (follow
AGENTS.mdfor sequencing + required commands):- for formatting-only changes: run the smallest meaningful verification the repo requires (build/tests/analyze as applicable)
- for formatting as part of a behaviour change: follow the repo’s normal order (don’t reorder the pipeline)
- If
format/linters are missing or flaky:- fix
AGENTS.mdto point to a real, repeatable command - only then rerun formatting
- fix
- Report what was run and what changed.
Guardrails
- Do not introduce unrelated refactors under the cover of formatting.
- Keep formatting changes and behaviour changes reviewable.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?