Claude Code self-check before committing
Claude Code can use Maina’s MCP tools to verify its own work before committing.
-
Ensure MCP is configured
maina initcreates.claude/settings.jsonautomatically. Or add manually:.claude/settings.json {"mcpServers": {"maina": { "command": "maina", "args": ["--mcp"] }}} -
Add instructions to CLAUDE.md
CLAUDE.md Before committing, always:1. Call `verify` to run the full verification pipeline2. Call `checkSlop` on changed files3. Call `reviewCode` with your diff4. Fix any findings before committing -
Use
maina commitinstead ofgit commitTell Claude Code to use
maina commit— it runs verification automatically and only commits if everything passes.