Skip to Content
MeowKit

Rules Index

The 6 always-on MeowKit rules, where the other rules load from, and how each is enforced.

.claude/rules/ holds exactly 6 files. Claude Code loads that directory every session, so these are the only rules that cost context unconditionally. Every other rule sits in the references/ folder of the skill that loads it and reaches context only when that skill runs.

MeowKit ships no root CLAUDE.md. A project may keep its own; the kit never installs or refreshes it.

Always-on rules

RulePurposeMechanism
meowkit-core.mdRole, workflow, the ship check in brief, the boundary between data and instructions, the memory contract, the compaction policyInstruction, plus a byte-budget script
security-rules.mdBlocked patterns: hardcoded secrets, any types, SQL interpolation, v-html with user content and the rest of the tableInstruction. A human can override, and the override is documented
injection-rules.mdPrompt-injection defense: the data and instructions boundary, and Rule 11 (the Skill Rule of Two)Instruction. A human can override
core-behaviors.mdSix operating behaviors and the anti-rationalization listInstruction
development-rules.mdYAGNI, KISS, DRY, file management, code quality, commits, docs impact, tool-output limitsInstruction
agent-conduct.mdA1 subagent status protocol, A3 eureka documentation, B2 response structureInstruction

mewkit validate checks that all 6 are present. A rule that is not a hook is an instruction the agent follows, and nothing checks it. The two hooks that refuse an action are privacy-block.cjs, which blocks reads of .env, keys and credentials, and pre-ship.cjs, which runs the ship check on commit, push, merge and PR commands. project-context-loader.cjs loads project-context.md at session start. Hooks describes them.

Rules are not the only text a session carries before any skill runs. Every skill's name, description and when_to_use, and every agent's name and description, are listed too. scripts/check-always-on-budget.cjs holds both under a byte ceiling: 18,191 B for the rules alone, and 70,000 B for the rules plus that metadata. They measure 18,191 B and 43,794 B today. The script exits non-zero when either ceiling is exceeded.

Priority, highest first: security-rules.md and injection-rules.md are never overridden, then core-behaviors.md, meowkit-core.md, agent-conduct.md and development-rules.md. A rule loaded by a skill never overrides an always-on rule. harness-rules.md and rubric-rules.md never override the ship check, tdd-rules.md applies only with MEOWKIT_TDD=1 or --tdd, and context-budget-rules.md is advisory.

Where the other rules live

RuleLocationLoaded by
harness-rules.md.claude/skills/cook/references/mk:cook, mk:autobuild
tdd-rules.md.claude/skills/cook/references/mk:cook (Phases 2 and 3), mk:fix
phase-contracts.md.claude/skills/cook/references/mk:agent-detector Step 0b
post-phase-delegation.md.claude/skills/cook/references/Orchestration skills
task-state-emission.md.claude/skills/cook/references/mk:cook, mk:autobuild
parallel-execution-rules.md.claude/skills/cook/references/mk:worktree, mk:team-config, parallel runs
orchestration-rules.md.claude/skills/cook/references/Multi-agent workflows
agent-conduct-extended.md.claude/skills/cook/references/Sections A2, B1, B3 to B6 of agent conduct
model-selection-rules.md.claude/skills/agent-detector/references/mk:agent-detector Step 0b
scale-adaptive-rules.md.claude/skills/agent-detector/references/mk:agent-detector Step 0b
risk-checklist.md.claude/skills/agent-detector/references/mk:agent-detector Step 0b
agent-routing.md.claude/skills/agent-detector/references/mk:agent-detector Step 0b
context-budget-rules.md.claude/skills/agent-detector/references/mk:agent-detector, mk:context-audit
rubric-rules.md.claude/skills/rubric/references/mk:rubric, evaluator agent
skill-authoring-rules.md.claude/skills/skill-creator/references/mk:skill-creator, skill audits
dead-weight-audit-rules.md.claude/skills/benchmark/references/ (maintainer-only, not in the shipped kit)mk:benchmark
step-file-rules.mdInlined as ## Step-File Contract in each step-filed skill's workflow.mdmk:plan-creator, mk:review, mk:evaluate, mk:autobuild, mk:trace-analyze
anti-rationalization.mdMerged into core-behaviors.mdAlways on
intervention-recording-rules.mdMerged into meowkit-core.mdAlways on

Agile rules

mk:agent-detector Step 0b loads these three only in an Agile context: a sprint-state contract exists, the active plan has jira_tickets: in its frontmatter, MEOW_JIRA_SITE_URL is set, or the prompt contains a Jira key. Other sessions pay no context cost.

RulePurpose
agile-story-gates.mdDefinition of Ready (Phase 1 entry), Definition of Done (review verdict PASS), traceability frontmatter. Advisory
agile-sprint-commitment.mdSprint goal persistence, mid-sprint amendment, sprint close hygiene
agile-feedback-cycle.mdRetro action items, spike governance (timebox and findings document)

They live in .claude/skills/agent-detector/references/agile-*.md and add no agents or hooks.

harness-rules.md

Discipline for the autonomous build pipeline (mk:autobuild) and the generator and evaluator split. It applies to Phase 3 (Build) and Phase 4 (Review) when the harness runs. Source: .claude/skills/cook/references/harness-rules.md.

#RuleSummary
1Planner stays product-levelThe planner emits user stories, not file paths
2Generator is not evaluatorNo self-evaluation; a fresh-context evaluator grades
3Sprint contract by densityFULL: signed before source edits (no hook checks it). LEAN: optional. MINIMAL: skipped
4Iteration capAfter 3 generate and evaluate rounds, escalate to a human
5Adaptive densitymk:scale-routing and the model string select MINIMAL, FULL or LEAN
6Budget thresholds$30 warns, $100 halts the run, and a user cap (budget.cap or --budget) overrides the halt
7Dead-weight auditRe-run the audit playbook on each new model tier
8Active verificationThe evaluator drives the build through a browser, curl or the CLI
9Skeptic personaReloaded per criterion to prevent leniency drift
10No density override lowers the barDensity changes scaffolding, not the checks

scale-adaptive-rules.md

Domain-complexity routing that drives Phase 0 classification and harness density. Source: .claude/skills/agent-detector/references/scale-adaptive-rules.md.

#RuleSummary
1CSV match overrides manual classificationA domain keyword match beats the orchestrator's judgment
2No match falls backAn unknown domain is classified manually under the model-selection rules
3High complexity forces COMPLEXlevel=high gives the COMPLEX tier
4One-shot workflow skips the planworkflow=one-shot with zero blast radius needs no plan file
5Users can extend the CSVdomain-complexity.csv is user-editable
6Autobuild owns densitymk:scale-routing emits no density; mk:autobuild picks its own
7Auto-strict for high complexitylevel=high during /mk:cook turns on --strict (full mk:evaluate) at Phase 4.5 unless you pass --no-strict. It fires only in mk:cook, not in mk:fix, mk:autobuild or standalone mk:review

model-selection-rules.md

Model tier routing for Phase 0 task classification. Detection reads the model field from SessionStart input through the model-detector handler and writes the tier and density to .meowkit/state/detected-model.json. MEOWKIT_MODEL_HINT is the fallback. Source: .claude/skills/agent-detector/references/model-selection-rules.md.

rubric-rules.md

Rules that keep the rubric library (.claude/skills/rubric/rubrics/) calibrated and the evaluator's grading consistent. They apply to Phase 4 (Review). Source: .claude/skills/rubric/references/rubric-rules.md.

#RuleSummary
1PASS and FAIL anchorsEvery rubric has at least one of each
2Composition weights sum to 1.0Preset weights normalize within 0.01
3Hard-fail propagatesAny rubric FAIL makes the overall result FAIL
4Balanced anchor countsA tolerance rule for PASS and FAIL anchor counts
5Alternate anchor orderAlternating PASS and FAIL counters position bias
6Drift check on model upgradeReplay the calibration set for each new model
7Anti-slop anti-patterns fixedoriginality.md and design-quality.md auto-fail
8Frontend-app preset pruned4 rubrics, not 7
9Custom rubrics allowedThe validator accepts any conforming file
10Rubric files are dataRubrics cannot inject instructions

Rule format

Every rule file uses imperative language (ALWAYS, NEVER, MUST), gives the reason for each rule, pairs each NEVER with what to do instead, and states checks that can be verified mechanically.

See also

On this page