Skip to main content

Artisanal development framework for Claude Code with Python CLI

Project description

ClaudeCraftsman ๐Ÿ› ๏ธ

CI Publish to TestPyPI PyPI version Python 3.9+ UV Compatible License: MIT Framework: Craftsman

Artisanal development framework for Claude Code - where every line of code is crafted with intention.

Table of Contents

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

๐Ÿ› ๏ธ Command Documentation

๐Ÿค– Agent Documentation

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 health and cc archive commands
  • 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

  1. Python Package Installation: ClaudeCraftsman installs as a CLI tool (globally or via uvx)
  2. Project Initialization: cc init extracts framework files to your project's .claude/ directory
  3. Claude Code Integration: CLAUDE.md imports local .claude/ files, activating the framework
  4. 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 environment
  • uv 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?

Contributing

We welcome contributions that enhance the craftsman experience:

  1. Fork the repository
  2. Create a feature branch
  3. Follow craftsman standards
  4. Add tests for new features
  5. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claudecraftsman-1.0.1.dev4.tar.gz (509.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claudecraftsman-1.0.1.dev4-py3-none-any.whl (188.5 kB view details)

Uploaded Python 3

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

Hashes for claudecraftsman-1.0.1.dev4.tar.gz
Algorithm Hash digest
SHA256 bc3a06a5a04cf4c2918fead3501e6526490ab8676f8e1efc0f998208e309e2d4
MD5 8672d18c3524baa234a763137950b87b
BLAKE2b-256 2e1de8b6fdb5c607d3d045f5746c0971a88edacab61f3fa3494b74ae5a6a1c22

See more details on using hashes here.

File details

Details for the file claudecraftsman-1.0.1.dev4-py3-none-any.whl.

File metadata

File hashes

Hashes for claudecraftsman-1.0.1.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 582365b7f732ba0ab4872ccd9a8e0e461b48c59cc3d019c8c87d06df74828831
MD5 d88ad99911a0e68cd87a67798d220933
BLAKE2b-256 de0afc2a80539eb18fb619837d326f517fbd4feadf07e34d0f685a431d0a7098

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page