Custom instructions
Store durable instructions at the right scope and inspect what is loaded.
Choose a scope
| Location | Purpose |
|---|---|
~/.crabcode/CRABCODE.md | Personal preferences across projects |
<repo>/CRABCODE.md or <repo>/.crabcode/CRABCODE.md | Shared project instructions |
<repo>/.crabcode/rules/*.md | Topic-specific rules |
<repo>/CRABCODE.local.md | Personal project instructions |
CRABCODE_CONFIG_DIR can change the configuration root. Run /memory to inspect loaded files before editing. Verify Git ignore rules for personal files rather than relying on their names.
Initialize and maintain instructions
Run /init at the repository root and review its proposed CRABCODE.md. Record actual build commands, directory responsibilities, tests, style and actions requiring confirmation.
Use pnpm for dependencies.
Run pnpm test:auth after changing login behavior.
Summarize changes and validation before committing; publishing needs approval.Use pnpm for dependencies.
Run pnpm test:auth after changing login behavior.
Summarize changes and validation before committing; publishing needs approval.Keep rules specific. Replace outdated commands instead of accumulating contradictory versions.
Includes and task instructions
Instruction files support @./path, @/absolute/path and @~/path includes. Include only necessary files. Their contents enter model context, so exclude credentials. Large files may be truncated.
Give temporary requirements in the conversation. Use agents for specialized roles, hooks for tool events and skills for repeatable workflows. Instructions do not replace permissions.
If instructions are missing, check the working directory, file names, configuration root, crabcodeMdExcludes and whether --bare disabled discovery. See memory for storage and disabling options.