Files
multica/CLAUDE.md
Jiayuan b10b3ff709 Add AI code safety defense system: tests, pre-commit hooks, and CI
Implemented three-layer defense mechanism to prevent AI-generated code from breaking the codebase:
- Layer 1: AGENTS.md with universal AI agent instructions
- Layer 2: Husky pre-commit hooks with test file checking
- Layer 3: GitHub Actions CI with TypeScript, ESLint, tests, and coverage

Includes design document, test infrastructure, and coverage thresholds.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-16 00:22:33 +08:00

900 B

Claude Code Instructions

This file contains instructions for Claude Code when working on this repository.

Important: Read AGENTS.md First

Before making any code changes, read and follow the guidelines in AGENTS.md.

Key Requirements

  1. Always write tests - Every code change must include corresponding unit tests
  2. Run checks before committing - Use pnpm typecheck && pnpm lint && pnpm test:run
  3. Follow test conventions - See AGENTS.md for test file location patterns

Quick Reference

# Development
pnpm dev              # Start development server
pnpm build            # Build for production

# Quality checks
pnpm typecheck        # TypeScript compilation check
pnpm lint             # ESLint check
pnpm format:check     # Prettier format check
pnpm test:run         # Run all tests
pnpm test:coverage    # Run tests with coverage report