Claude Code CLI Rules
Tool: Anthropic Claude Code CLI (npm install -g @anthropic-ai/claude-code)
Quick Start
export ANTHROPIC_API_KEY=your_key
claude "Read AGENTS.md and CLAUDE.md, then implement [feature] with tests"
# Key flags:
--model <model> # Model selection
--dangerously-skip-permissions # Skip permission prompts (use with caution)
--verbose # Debug mode
Test Implementation Rules
Write complete, production-quality tests:
- Never simplify tests — implement the full test as designed
- Never skip test cases — every case in the spec must be implemented
- No placeholder assertions —
expect(true).toBe(true)and baretoBeDefined()are forbidden; assert actual behavior - No
.skip()/.only()to bypass failing tests - Always test error paths — exceptions, edge cases, failure modes
- Maintain coverage — meet the project's coverage threshold
Workflow
- Read AGENTS.md and CLAUDE.md first for project standards
- Plan file changes before editing
- Write complete tests — no placeholders, no simplifications
- Run quality checks:
npm run lint && npm test - Verify coverage threshold before committing
Quality Gates
- All tests implemented completely (no placeholders)
- Linting passes with zero warnings
- All tests pass (100% pass rate)
- Coverage threshold met (check AGENTS.md for threshold)