Skip to content

Getting Started with Claude-Craft

Welcome to Claude-Craft! This guide will help you understand what Claude-Craft is and get your first project up and running in just 5 minutes.


What is Claude-Craft?

Claude-Craft is a comprehensive framework for AI-assisted development with Claude Code. It provides:

  • 125 Slash Commands - Quick actions across 15 namespaces for code generation, analysis, and quality checks
  • 70 AI Agents (31 specialized + 39 infra on-demand) - Specialized assistants with optimized effort levels and persistent memory
  • 11 Technology Stacks - From .NET/C# to Vue.js, with dedicated rules and agents
  • 55 skills - Architecture, testing, security best practices
  • 21 Templates - Ready-to-use code patterns for common components
  • 10 Checklists - Quality gates for features, releases, and security audits
  • 937 Test Suite - Comprehensive validation (vitest + bats)

Supported Technologies

TechnologyFocusUse Cases
.NET / C#Clean Architecture + CQRSAPIs, Enterprise apps
SymfonyClean Architecture + DDDAPIs, Web apps, Backend services
FlutterBLoC PatternMobile apps (iOS/Android)
PythonFastAPI + async/awaitAPIs, Data services, ML backends
ReactHooks + State ManagementWeb SPAs, Dashboards
React NativeCross-platform MobileMobile apps with JS
AngularSignals + StandaloneEnterprise Web apps
Vue.jsComposition API + PiniaWeb SPAs, Progressive apps
LaravelClean Architecture + ActionsAPIs, Web apps
PHPPSR-12 + PHPStanLibraries, Backend services
DockerInfrastructureContainerization, CI/CD

Supported Languages

All content is available in 5 languages:

  • English (en)
  • French (fr)
  • Spanish (es)
  • German (de)
  • Portuguese (pt)

Prerequisites

Required

  • Bash - Shell for running installation scripts
  • Claude Code - The AI coding assistant from Anthropic

Claude Code Compatibility

VersionStatus
2.1.193Recommended (full feature support)
2.1.97+Minimum supported (CVE-2025-59536 patched)
  • yq - YAML processor for configuration files

    bash
    # macOS
    brew install yq
    
    # Linux (Debian/Ubuntu)
    sudo apt install yq
    
    # Linux (snap)
    sudo snap install yq
  • jq - JSON processor (for StatusLine tool)

    bash
    # macOS
    brew install jq
    
    # Linux
    sudo apt install jq

Quick Installation

bash
# Clone Claude-Craft
git clone https://github.com/TheBeardedBearSAS/claude-craft.git
cd claude-craft

# Install for a Symfony project (in French)
make install-symfony TARGET=~/my-project RULES_LANG=fr

# Or for a Flutter project (in English)
make install-flutter TARGET=~/my-app RULES_LANG=en

Method 2: Direct Script

bash
# Navigate to Claude-Craft
cd claude-craft

# Run installation script
./Dev/scripts/install-symfony-rules.sh --lang=fr ~/my-project

Method 3: YAML Configuration (for Monorepos)

bash
# Create configuration file
cp claude-projects.yaml.example claude-projects.yaml

# Edit with your projects
nano claude-projects.yaml

# Install from configuration
make config-install CONFIG=claude-projects.yaml PROJECT=my-project

Your First Project in 5 Minutes

Let's create a new Symfony API project with French rules.

Step 1: Create Project Directory

bash
mkdir ~/my-api
cd ~/my-api
git init

Step 2: Install Claude-Craft Rules

bash
# From the claude-craft directory
make install-symfony TARGET=~/my-api RULES_LANG=fr

Step 3: Verify Installation

bash
ls -la ~/my-api/.claude/

You should see:

.claude/
├── CLAUDE.md           # Main configuration
├── .claudeignore       # Ignore patterns for context reduction
├── settings.json       # Optimized defaults with PostCompact hook
├── settings.local.json # Local permissions (wildcard patterns)
├── references/         # Technical references (since v8.7.1 — replaces rules/)
│   ├── base/           # Universal principles (SOLID, KISS, git, testing…)
│   └── symfony/        # Tech-specific reference + project-context.md
├── agents/             # AI agents with effort/memory optimization
├── commands/           # Slash commands
│   ├── common/         # Transversal commands
│   └── symfony/        # Symfony-specific commands
├── templates/          # Code templates
└── checklists/         # Quality gates

Step 4: Configure Your Project Context

You can configure the project context interactively or manually:

Option A: Interactive (Recommended)

bash
cd ~/my-api && claude
# Then run:
/common:setup-project-context

Option B: Manual

bash
nano ~/my-api/.claude/references/symfony/project-context.md

Update these sections:

  • Project name and description
  • Technical stack details
  • Team conventions
  • Specific constraints

Step 5: Start Claude Code

bash
cd ~/my-api
claude

Now you can use all the installed commands and agents!


Understanding the Structure

References (references/)

Since v8.7.1, installs place guidance under references/ (not the old rules/). Two layers:

LocationContent
references/base/Universal principles — workflow analysis, SOLID, KISS/DRY/YAGNI, git workflow, documentation, testing, security
references/{tech}/Tech-specific reference — architecture.md, coding-standards.md, quality-tools.md, testing.md, security.md, and project-context.md (customize this!)

The richer rule taxonomy (workflow, architecture, SOLID, security, DDD, CQRS…) lives in .claude/rules/ of the claude-craft repo itself; a project install receives the distilled references/ layer.

Agents (agents/)

Agents are specialized AI personas you can invoke for specific tasks:

markdown
@api-designer Design the REST API for user management
@database-architect Create the schema for the Order aggregate
@symfony-reviewer Review my UserService implementation
@tdd-coach Help me write tests for the authentication flow

Commands (commands/)

Slash commands are quick actions:

bash
# Generate code
/symfony:generate-crud User

# Check quality
/symfony:check-compliance

# Analyze architecture
/common:architecture-decision

Templates (templates/)

Templates provide code patterns:

  • service.md - Service class template
  • value-object.md - Value Object template
  • aggregate-root.md - DDD Aggregate Root template
  • test-unit.md - Unit test template

Checklists (checklists/)

Quality gates for different scenarios:

  • feature-checklist.md - Before completing a feature
  • pre-commit.md - Before committing code
  • release.md - Before releasing
  • security-audit.md - Security review

Key Concepts

1. TDD Workflow

Claude-Craft enforces Test-Driven Development:

1. Analyze requirements
2. Write failing tests
3. Implement code
4. Refactor
5. Review

2. Clean Architecture

All technology stacks follow Clean Architecture principles:

┌─────────────────────────────────────┐
│           Presentation              │
├─────────────────────────────────────┤
│           Application               │
├─────────────────────────────────────┤
│             Domain                  │
├─────────────────────────────────────┤
│          Infrastructure             │
└─────────────────────────────────────┘

3. Quality First

Every feature must pass quality gates:

  • 80%+ test coverage
  • Static analysis passing
  • Security audit clear
  • Documentation updated

Automatic Optimizations (v8.7)

Claude-Craft now includes optimized defaults out of the box:

Installed automatically:

  • .claudeignore to reduce context noise
  • settings.json with PostCompact hook for context reinjection
  • settings.local.json with wildcard permissions
  • CLAUDE_CODE_SUBAGENT_MODEL=sonnet enforced for cost savings
  • ✓ RTK --ultra-compact automatically patched during install

Optional: RTK Integration

For maximum CLI output reduction (60-90% savings):

bash
# In Claude Code, run the setup command
/common:setup-rtk

Expected savings: 55-65% overall token reduction with full RTK + optimizations. See the Setup Guide for details.


Next Steps

Now that you understand the basics, continue with:

  1. Project Creation Guide - Detailed setup for different scenarios
  2. Feature Development Guide - TDD workflow with agents and commands
  3. Bug Fixing Guide - Diagnostic and regression testing workflow

Quick Reference

Common Commands

bash
# Installation
make install-{tech} TARGET=path RULES_LANG=xx

# List available options
make help

# Validate YAML config
make config-validate CONFIG=file.yaml

Useful Agents

AgentPurpose
@api-designerAPI design and documentation
@database-architectDatabase schema design
@tdd-coachTest writing assistance
@{tech}-reviewerCode review for specific tech

Essential Commands

CommandPurpose
/common:analyze-featureAnalyze requirements
/{tech}:generate-crudGenerate CRUD code
/{tech}:check-complianceFull quality audit
/common:security-auditSecurity review

Next: Project Creation Guide →