Claude code

From hivellm/rulebook · View interactive version

Claude code is an AI agent skill from the GitHub repository hivellm/rulebook. Tool: Anthropic Claude Code CLI (`npm install -g @anthropic-ai/claude-code`)

How to use this skill

Skill file

<!-- CLAUDE_CODE:START -->

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:

  1. Never simplify tests — implement the full test as designed
  2. Never skip test cases — every case in the spec must be implemented
  3. No placeholder assertions — expect(true).toBe(true) and bare toBeDefined() are forbidden; assert actual behavior
  4. No .skip() / .only() to bypass failing tests
  5. Always test error paths — exceptions, edge cases, failure modes
  6. Maintain coverage — meet the project's coverage threshold

Workflow

  1. Read AGENTS.md and CLAUDE.md first for project standards
  2. Plan file changes before editing
  3. Write complete tests — no placeholders, no simplifications
  4. Run quality checks: npm run lint && npm test
  5. Verify coverage threshold before committing

Quality Gates

<!-- CLAUDE_CODE:END -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.