Skip to content
Agentmart
Submit a tool

CLAUDE.md Β· SuperClaude-Org/SuperClaude_Framework

CLAUDE.md from SuperClaude-Org/SuperClaude_Framework: 342 lines covering 🐍 Python Environment Rules, πŸ“‚ Project Structure, πŸ”§ Development Workflow, πŸ“¦ Core…

Template by SuperClaude-Org

IndexedMITβ˜… 23,911
Write a review

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/SuperClaude-Org/SuperClaude_Framework/master/CLAUDE.md -o CLAUDE.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The CLAUDE.md file that SuperClaude-Org/SuperClaude_Framework (23,911 stars) keeps for coding agents. It has 342 lines in 12 sections: 🐍 Python Environment Rules; πŸ“‚ Project Structure; πŸ”§ Development Workflow; πŸ“¦ Core Architecture; πŸ§ͺ Testing with PM Agent; 🌿 Git Workflow; πŸ“ Key Documentation Files; πŸ’‘ Core Development Principles; πŸ”§ MCP Server Integration; πŸš€ Development & Installation; πŸ“Š Package Information; πŸ”Œ Claude Code Native Features (for developers). Use it as a model for your own project's instructions.

Use cases: prompt-engineering

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

A CLAUDE.md file: project memory Claude Code loads at the start of every session.

For
Claude Code
Length
342 lines
File
CLAUDE.md

Sections

  1. 🐍 Python Environment Rules
  2. πŸ“‚ Project Structure
  3. πŸ”§ Development Workflow
  4. πŸ“¦ Core Architecture
  5. πŸ§ͺ Testing with PM Agent
  6. 🌿 Git Workflow
  7. πŸ“ Key Documentation Files
  8. πŸ’‘ Core Development Principles
  9. πŸ”§ MCP Server Integration
  10. πŸš€ Development & Installation
  11. πŸ“Š Package Information
  12. πŸ”Œ Claude Code Native Features (for developers)

First lines (shown under the repo's MIT license)

# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## 🐍 Python Environment Rules

**CRITICAL**: This project uses **UV** for all Python operations. Never use `python -m`, `pip install`, or `python script.py` directly.

### Required Commands

```bash
# All Python operations must use UV
uv run pytest                    # Run tests
uv run pytest tests/pm_agent/   # Run specific tests
uv pip install package           # Install dependencies
uv run python script.py          # Execute scripts
```

## πŸ“‚ Project Structure

**Current v4.3.0 Architecture**: Python package with 30 commands, 20 agents, 7 modes

```
# Claude Code Configuration (v4.3.0)
# Installed via `superclaude install` to user's home directory
~/.claude/
β”œβ”€β”€ settings.json
β”œβ”€β”€ commands/sc/         # 30 slash commands (/sc:research, /sc:implement, etc.)
β”‚   β”œβ”€β”€ pm.md
β”‚   β”œβ”€β”€ research.md
β”‚   β”œβ”€β”€ implement.md
β”‚   └── ... (30 total)
β”œβ”€β”€ agents/              # 20 domain-specialist agents (@pm-agent, @system-architect, etc.)
β”‚   β”œβ”€β”€ pm-agent.md
β”‚   β”œβ”€β”€ system-architect.md
β”‚   └── ... (20 total)
└── skills/              # Skills (confidence-check, etc.)

# Python Package
src/superclaude/
β”œβ”€β”€ __init__.py          # Public API: ConfidenceChecker, SelfCheckProtocol, ReflexionPattern
β”œβ”€β”€ pytest_plugin.py     # Auto-loaded pytest integration (5 fixtures, 9 markers)
β”œβ”€β”€ pm_agent/            # confidence.py, self_check.py, reflexion.py, token_budget.py
β”œβ”€β”€ execution/           # parallel.py, reflection.py, self_correction.py
β”œβ”€β”€ cli/                 # main.py, doctor.py, install_commands.py, install_mcp.py, install_skill.py
β”œβ”€β”€ commands/            # 30 slash command definitions (.md files)
β”œβ”€β”€ agents/              # 20 agent definitions (.md files)
β”œβ”€β”€ modes/               # 7 behavioral modes (.md files)
β”œβ”€β”€ skills/              # Installable skills (confidence-check, etc.)
β”œβ”€β”€ hooks/               # Claude Code hook definitions
β”œβ”€β”€ mcp/                 # MCP server configurations (10 servers)
└── core/                # Core utilities

# Project Files
tests/                   # Python test suite (136 tests)
β”œβ”€β”€ unit/                # Unit tests (auto-marked @pytest.mark.unit)
└── integration/         # Integration tests (auto-marked @pytest.mark.integration)
docs/                    # Documentation
scripts/                 # Analysis tools (workflow metrics, A/B testing)
plugins/                 # Exported plugin artefacts for distribution
PLANNING.md              # Architecture, absolute rules
TASK.md                  # Current tasks
KNOWLEDGE.md             # Accumulated insights
```

### Claude Code Integration Points

SuperClaude integrates with Claude Code through these mechanisms:
- **Slash Commands**: 30 commands installed to `~/.claude/commands/sc/` (e.g., `/sc:pm`, `/sc:research`)
- **Agents**: 20 agents installed to `~/.claude/agents/` (e.g., `@pm-agent`, `@system-architect`)
- **Skills**: Installed to `~/.claude/skills/` (e.g., confidence-check)
- **Hooks**: Session lifecycle hooks in `src/superclaude/hooks/`
- **Settings**: Project settings in `.claude/settings.json`
- **Pytest Plugin**: Auto-loaded via entry point, provides fixtures and markers
- **MCP Servers**: 8+ servers configurable via `superclaude mcp`

## πŸ”§ Development Workflow

### Essential Commands

```bash
# Setup
make dev              # Install in editable mode with dev dependencies
make verify           # Verify installation (package, plugin, health)

# Testing
make test             # Run full test suite
uv run pytest tests/pm_agent/ -v              # Run specific directory
uv run pytest tests/test_file.py -v           # Run specific file
uv run pytest -m confidence_check             # Run by marker
uv run pytest --cov=superclaude               # With coverage

# Code Quality
make lint             # Run ruff linter
make format           # Format code with ruff
make doctor           # Health check diagnostics

# MCP Servers
superclaude mcp                              # Interactive install (gateway default)
superclaude mcp --list                       # List available servers
superclaude mcp --servers airis-mcp-gateway  # Install AIRIS Gateway (recommended)
superclaude mcp --servers tavily context7    # Install individual servers

# Plugin Packaging
make build-plugin            # Build plugin artefacts into dist/
make sync-plugin-repo        # Sync artefacts into ../SuperClaude_Plugin

# Maintenance
make clean            # Remove build artifacts
```

## πŸ“¦ Core Architecture

### Pytest Plugin (Auto-loaded)

Registered via `pyproject.toml` entry point, automatically available after installation.

**Fixtures**: `confidence_checker`, `self_check_protocol`, `reflexion_pattern`, `token_budget`, `pm_context`

**Auto-markers**:
- Tests in `/unit/` β†’ `@pytest.mark.unit`
- Tests in `/integration/` β†’ `@pytest.mark.integration`

**Custom markers**: `@pytest.mark.confidence_check`, `@pytest.mark.self_check`, `@pytest.mark.reflexion`

### PM Agent - Three Core Patterns

**1. ConfidenceChecker** (src/superclaude/pm_agent/confidence.py)
- Pre-execution confidence assessment: β‰₯90% required, 70-89% present alternatives, <70% ask questions
- Prevents wrong-direction work, ROI: 25-250x token savings

**2. SelfCheckProtocol** (src/superclaude/pm_agent/self_check.py)
- Post-implementation evidence-based validation
- No speculation - verify with tests/docs

**3. ReflexionPattern** (src/superclaude/pm_agent/reflexion.py)
- Error learning and prevention
- Cross-session pattern matching

### Parallel Execution

**Wave β†’ Checkpoint β†’ Wave pattern** (src/superclaude/execution/parallel.py):
- 3.5x faster than sequential execution
- Automatic dependency analysis
- Example: [Read files in parallel] β†’ Analyze β†’ [Edit files in parallel]

### Slash Commands, Agents & Modes (v4.3.0)

- Install via: `pipx install superclaude && superclaude install`
- **30 Commands** installed to `~/.claude/commands/sc/` (e.g., `/sc:pm`, `/sc:research`, `/sc:implement`)
- **20 Agents** installed to `~/.claude/agents/` (e.g., `@pm-agent`, `@system-architect`, `@deep-research`)
- **7 Behavioral Modes**: Brainstorming, Business Panel, Deep Research, Introspection, Orchestration, Task Management, Token Efficiency
- **Skills**: Installable to `~/.claude/skills/` (e.g., confidence-check)

> **Note**: TypeScript plugin system planned for v5.0 ([#419](https://github.com/SuperClaude-Org/SuperClaude_Framework/issues/419))

## πŸ§ͺ Testing with PM Agent

### Example Test with Markers

Signals

Stars
23,911
Forks
1,987
Open issues
60
Last commit (this folder)
Mar 22, 2026 (7 months ago)
Last release
Mar 22, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from SuperClaude-Org

Cite this page

CLAUDE.md Β· SuperClaude-Org/SuperClaude_Framework. Agent Mart. https://agentmart.dev/templates/superclaude-org-superclaude-framework-claude-md (last updated 2026-10-24)