Artisanal development framework for Claude Code with Python CLI
Project description
ClaudeCraftsman ๐ ๏ธ
Artisanal development framework for Claude Code - where every line of code is crafted with intention.
Table of Contents
- 5-Minute Quickstart
- Documentation
- How It Works
- Installation
- Core Commands
- Features
- Framework Philosophy
- Development
- Troubleshooting
- Contributing
Overview
ClaudeCraftsman transforms your development workflow with craftsman-quality standards, thoughtful automation, and seamless Claude Code integration. Every line of code crafted with intention, every decision made with care.
5-Minute Quickstart
Prerequisites
- Python 3.9+
- Claude Code installed
- UV (recommended) or pip
Install & Initialize
# 1. Install ClaudeCraftsman globally (30 seconds)
# Option A: Run without installation (recommended)
uvx --from claudecraftsman cc --version
# Option B: Install as global tool
uv tool install claudecraftsman
# Or: pip install --user claudecraftsman
# 2. Initialize your project (30 seconds)
cd your-project
uvx --from claudecraftsman cc init --name my-app --type web
# Or if installed globally: cc init --name my-app --type web
# This creates:
# - .claude/ directory with framework files
# - CLAUDE.md that activates the framework
# - All agents, commands, and templates locally
# 3. Start building with craftsman quality! (4 minutes)
# In Claude Code, use framework commands:
/design user-authentication # For comprehensive planning
/add agent custom-backend # For single components
/help # For guidance
That's it! You're now using ClaudeCraftsman. The framework provides:
- ๐ฏ Craftsman-quality components - Every output is production-ready
- ๐ง Intelligent automation - MCP tools integration for research & validation
- ๐ Living documentation - Self-updating, time-aware docs
- ๐ค Multi-agent coordination - Specialized AI craftspeople working together
Documentation
๐ Essential Guides
- Quick Start Guide - Get productive in 5 minutes
- Workflow Examples - Real-world development patterns
- Troubleshooting Guide - Solutions for common issues
- FAQ - Frequently asked questions
๐ ๏ธ Command Documentation
- Command Overview - Complete command reference
- Design Command - System design with market research
- Plan Command - Feature planning and coordination
- Implement Command - Execute plans with progress tracking
- Test Command - BDD/TDD testing workflows
๐ค Agent Documentation
- Agent Overview - All available craftsman agents
- Product Architect - PRDs and requirements
- Design Architect - Technical specifications
- QA Architect - Testing strategies
What's New in v1.0 ๐
- Self-Managing Framework: Automatic health monitoring and violation correction
- Document Lifecycle: Automatic archival of completed documents
- Enhanced CLI: New
cc healthandcc archivecommands - 10+ Specialized Agents: Including security, performance, and data architects
- Pure Python: No more shell scripts - everything is Python now
- MCP Tool Integration: Research-driven development with real citations
- Progress Tracking: Real-time visibility into implementation progress
- BDD/TDD Support: Comprehensive testing with Playwright integration
How It Works
- Python Package Installation: ClaudeCraftsman installs as a CLI tool (globally or via uvx)
- Project Initialization:
cc initextracts framework files to your project's.claude/directory - Claude Code Integration: CLAUDE.md imports local
.claude/files, activating the framework - Framework Commands: Once activated, use
/design,/add, etc. in Claude Code sessions
The key insight: The Python package delivers the framework files to your project, where Claude Code can access them.
Installation Methods
Understanding Installation Locations
uvx: Runs without installation, temporary isolated environmentuv tool install: Installs globally to~/.local/share/uv/tools/pip install --user: Installs globally to~/.local/uv add: Installs to current project's.venv/only
Quick Install (Recommended)
# Option 1: Run without installation (recommended for global use)
uvx --from claudecraftsman cc --help
# Option 2: Install as global CLI tool
uv tool install claudecraftsman
# Option 3: Install with pip globally
pip install --user claudecraftsman
# Option 4: Add to current project only
uv add claudecraftsman # Only available in this project
Development Installation
# Clone for development
git clone https://github.com/your-org/claudecraftsman.git
cd claudecraftsman
# Install with development dependencies
uv sync --all-extras
# Run tests
uv run pytest
Core Commands
CLI Commands (Python)
cc init # Initialize project with craftsman framework
cc status # Check framework status and configuration
cc health # Monitor framework health and compliance
cc archive # Manage document archival lifecycle
cc state # View/update project state and workflow
cc registry # Manage document registry
cc quality # Run quality gates validation
cc validate # Run pre-operation validation checks
cc hook # Configure Claude Code integration hooks
cc migrate # Migrate from older framework versions
Claude Code Commands (In-Session)
/design [system] # Comprehensive system design with research
/plan [feature] # Feature planning and coordination
/add [type] [name] # Create craftsman-quality components
/implement [feature] # Execute plans with multi-agent coordination
/test [component] # Comprehensive testing strategies
/help # Command selection guidance
Framework Philosophy
The Craftsman's Creed:
- Intention over Speed: Every decision thoughtfully considered
- Quality over Quantity: Better to build one thing excellently
- Research over Assumptions: Evidence-based development
- User Value over Features: Build what genuinely helps people
Project Structure
Framework Package
claudecraftsman/
โโโ cli/ # Command-line interface
โ โโโ app.py # Main CLI application
โ โโโ commands/ # CLI commands
โโโ core/ # Core functionality
โ โโโ config.py # Configuration management
โ โโโ state.py # State management
โ โโโ validation.py # Quality gates
โโโ hooks/ # Claude Code integration
โโโ templates/ # Framework templates
Your Project Structure
YOUR_PROJECT/
โโโ CLAUDE.md # Framework activation
โโโ .claude/ # Runtime directory
โโโ docs/current/ # Active documentation
โโโ context/ # Workflow state
โโโ templates/ # Project templates
Features
๐จ Craftsman-Quality Components
Every component created follows production-ready standards:
- Comprehensive error handling
- Full MCP tool integration
- Research-backed decisions
- Time-aware documentation
- Quality gates validation
๐ค Specialized AI Craftspeople
- product-architect: Business requirements and user research
- design-architect: Technical specifications and system design
- system-architect: High-level architecture with ultrathink methodology
- backend-architect: TDD-focused API development
- frontend-developer: Component-driven UI development
- workflow-coordinator: Multi-agent orchestration
- qa-architect: Testing strategies and quality assurance
- security-architect: Threat modeling and security analysis
- performance-architect: Optimization and scalability
- data-architect: Database design and data pipelines
๐ง Modern Python Tooling
- UV package manager support
- Pydantic v2 validation
- Typer CLI framework
- Rich terminal output
- Async-first design
๐ Claude Code Integration
- Hook system for tool validation
- Command routing and enhancement
- Session state management
- Quality gates enforcement
- Automatic context preservation
๐ฅ Self-Managing Framework
- Health Monitoring: Real-time compliance tracking
- Auto-Correction: Fixes common violations automatically
- Document Lifecycle: Automatic archival of completed work
- State Management: Self-healing state consistency
- Continuous Validation: Background enforcement every 5 minutes
Configuration
Environment Variables
export CLAUDE_DEBUG=true # Enable debug logging
export CLAUDE_UPDATE_CHECK=weekly # Update check frequency
Project Configuration
In your CLAUDE.md:
## Framework Configuration
- **Standards**: Craftsman quality only
- **Research**: Always current with MCP tools
- **Testing**: Minimum 80% coverage
- **Documentation**: Comprehensive and current
Updating
# Update global tool installation
uv tool install --upgrade claudecraftsman
# Or: pip install --user --upgrade claudecraftsman
# Update project-local installation
uv add --upgrade claudecraftsman
# Check current version
cc --version
Development
This project uses itself (self-hosting) for development:
# The framework being developed
.claude/ # Framework files used for self-development
src/claudecraftsman/ # Python package source
tests/ # Test suite
# Running in development mode
uv run claudecraftsman --help
Troubleshooting
Quick Solutions
For comprehensive troubleshooting, see our Troubleshooting Guide.
Common Issues:
# Verify installation
cc --version
# Check framework health
cc health check --auto-correct
# MCP tools not working?
# Ensure MCP servers are enabled in Claude Code
# Implementation stuck?
/implement [plan] --status
/implement [plan] --resume
Need Help?
- Check the FAQ
- Read the Troubleshooting Guide
- Use
/helpin Claude Code for command guidance
Contributing
We welcome contributions that enhance the craftsman experience:
- Fork the repository
- Create a feature branch
- Follow craftsman standards
- Add tests for new features
- Submit a pull request
Support
- Documentation: See
.claude/docs/in your project - Issues: GitHub issue tracker
- Discussions: GitHub discussions
- Community: Share your craftsman creations
License
MIT License - See LICENSE file for details
Welcome to ClaudeCraftsman. May your code be as thoughtful as it is functional.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claudecraftsman-1.0.1.dev4.tar.gz.
File metadata
- Download URL: claudecraftsman-1.0.1.dev4.tar.gz
- Upload date:
- Size: 509.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc3a06a5a04cf4c2918fead3501e6526490ab8676f8e1efc0f998208e309e2d4
|
|
| MD5 |
8672d18c3524baa234a763137950b87b
|
|
| BLAKE2b-256 |
2e1de8b6fdb5c607d3d045f5746c0971a88edacab61f3fa3494b74ae5a6a1c22
|
File details
Details for the file claudecraftsman-1.0.1.dev4-py3-none-any.whl.
File metadata
- Download URL: claudecraftsman-1.0.1.dev4-py3-none-any.whl
- Upload date:
- Size: 188.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
582365b7f732ba0ab4872ccd9a8e0e461b48c59cc3d019c8c87d06df74828831
|
|
| MD5 |
d88ad99911a0e68cd87a67798d220933
|
|
| BLAKE2b-256 |
de0afc2a80539eb18fb619837d326f517fbd4feadf07e34d0f685a431d0a7098
|