docs/developer-guide/technical-architecture.md
This guide documents how SuperClaude's Context-Oriented Configuration Framework is structured and how Claude Code interprets these context files to modify its behavior.
Important: SuperClaude is NOT standalone software with running processes, execution layers, or performance systems. It is a collection of .md instruction files that Claude Code reads to adopt specialized behaviors.
~/.claude/ (SuperClaude Framework Files Only)
├── CLAUDE.md # Main context file with imports
├── FLAGS.md # Flag definitions and triggers
├── RULES.md # Core behavioral rules
├── PRINCIPLES.md # Guiding principles
├── ZIG.md # Zig language integration
├── MCP_Context7.md # Context7 MCP integration
├── MCP_Magic.md # Magic MCP integration
├── MCP_Morphllm.md # Morphllm MCP integration
├── MCP_Playwright.md # Playwright MCP integration
├── MCP_Sequential.md # Sequential MCP integration
├── MCP_Serena.md # Serena MCP integration
├── MCP_Tavily.md # Tavily MCP integration
├── MCP_Zig.md # Zig MCP integration
├── MODE_Brainstorming.md # Collaborative discovery mode
├── MODE_Business_Panel.md # Business expert panel mode
├── MODE_DeepResearch.md # Deep research mode
├── MODE_Introspection.md # Transparent reasoning mode
├── MODE_Orchestration.md # Tool coordination mode
├── MODE_Task_Management.md # Task orchestration mode
├── MODE_Token_Efficiency.md # Compressed communication mode
├── agents/ # Domain specialist contexts (19 total)
│ ├── backend-architect.md # Backend expertise
│ ├── business-panel-experts.md # Business strategy panel
│ ├── deep-research-agent.md # Deep research expertise
│ ├── devops-architect.md # DevOps expertise
│ ├── frontend-architect.md # Frontend expertise
│ ├── learning-guide.md # Educational expertise
│ ├── performance-engineer.md # Performance expertise
│ ├── python-expert.md # Python expertise
│ ├── quality-engineer.md # Quality assurance expertise
│ ├── refactoring-expert.md # Code quality expertise
│ ├── requirements-analyst.md # Requirements expertise
│ ├── root-cause-analyst.md # Problem diagnosis expertise
│ ├── security-engineer.md # Security expertise
│ ├── socratic-mentor.md # Educational expertise
│ ├── spec-panel-experts.md # Specification review panel
│ ├── system-architect.md # System design expertise
│ ├── technical-writer.md # Documentation expertise
│ ├── test-runner.md # Test execution expertise
│ └── wave-orchestrator.md # Wave orchestration patterns
└── commands/ # Workflow pattern contexts
└── sc/ # SuperClaude command namespace (25 total)
├── analyze.md # Analysis patterns
├── brainstorm.md # Discovery patterns
├── build.md # Build patterns
├── business-panel.md # Business expert panel patterns
├── cleanup.md # Cleanup patterns
├── design.md # Design patterns
├── document.md # Documentation patterns
├── estimate.md # Estimation patterns
├── explain.md # Explanation patterns
├── git.md # Git workflow patterns
├── help.md # Help and command listing
├── implement.md # Implementation patterns
├── improve.md # Improvement patterns
├── index.md # Index patterns
├── load.md # Context loading patterns
├── reflect.md # Reflection patterns
├── research.md # Deep research patterns
├── save.md # Session persistence patterns
├── select-tool.md # Tool selection patterns
├── spawn.md # Multi-agent patterns
├── spec-panel.md # Specification review panel
├── task.md # Task management patterns
├── test.md # Testing patterns
├── troubleshoot.md # Troubleshooting patterns
└── workflow.md # Workflow planning patterns
Note: Other directories (backups/, logs/, projects/, serena/, etc.) are Claude Code
operational directories, not part of SuperClaude framework content.
| File Type | Purpose | Activation | Example |
|---|---|---|---|
| Commands | Define workflow patterns | /sc:[command] (context trigger) | User types /sc:implement → reads implement.md |
| Agents | Provide domain expertise | @agent-[name] or auto | @agent-security → reads security-engineer.md |
| Modes | Modify interaction style | Flags or triggers | --brainstorm → activates brainstorming mode |
| Core | Set fundamental rules | Always active | RULES.md always loaded |
The main CLAUDE.md file uses an import system to load multiple context files:
# CLAUDE
*MANDATORY*
@FLAGS.md # Flag definitions and triggers
@RULES.md # Core behavioral rules
@PRINCIPLES.md # Guiding principles
*SECONDARY*
@MCP_Context7.md # Context7 MCP integration
@MCP_Magic.md # Magic MCP integration
@MCP_Morphllm.md # Morphllm MCP integration
@MCP_Playwright.md # Playwright MCP integration
@MCP_Sequential.md # Sequential MCP integration
@MCP_Serena.md # Serena MCP integration
@MCP_Tavily.md # Tavily MCP integration
@MCP_Zig.md # Zig MCP integration
*CRITICAL*
@MODE_Brainstorming.md # Collaborative discovery mode
@MODE_Business_Panel.md # Business expert panel mode
@MODE_DeepResearch.md # Deep research mode
@MODE_Introspection.md # Transparent reasoning mode
@MODE_Task_Management.md # Task orchestration mode
@MODE_Orchestration.md # Tool coordination mode
@MODE_Token_Efficiency.md # Compressed communication mode
*LANGUAGE SPECIFIC*
@ZIG.md # Zig language integration
CLAUDE.md@import statementsEach agent .md file follows this structure:
---
name: agent-name
description: Brief description
category: specialized|architecture|quality
---
# Agent Name
## Triggers
- Keywords that activate this agent
- File types that trigger activation
- Complexity thresholds
## Behavioral Mindset
Core philosophy and approach
## Focus Areas
- Domain expertise area 1
- Domain expertise area 2
## Key Actions
1. Specific behavior pattern
2. Problem-solving approach
@agent-python-expert "task"---
name: command-name
description: Command purpose
category: utility|orchestration|analysis
complexity: basic|enhanced|advanced
mcp-servers: [context7, sequential]
personas: [architect, engineer]
---
# /sc:command-name
## Triggers
- When to use this command
- Context indicators
## Usage
/sc:command-name [target] [--options]
## Workflow Pattern
1. Step 1: Initial action
2. Step 2: Processing
3. Step 3: Validation
## Examples
Practical usage examples
When user types /sc:implement "feature" in Claude Code conversation:
commands/sc/implement.mdModes modify Claude's interaction style:
# MODE_[Name].md
## Activation Triggers
- Flag: --mode-name
- Keywords: [triggers]
- Complexity: threshold
## Behavioral Modifications
- Communication style changes
- Decision-making adjustments
- Output format modifications
## Interaction Patterns
- How to respond
- What to prioritize
MCP servers are configured in ~/.claude.json (NOT part of SuperClaude context):
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp@latest"]
},
"sequential-thinking": {
"command": "npx",
"args": ["-y", "sequential-thinking-mcp@latest"]
}
}
}
User Input (in Claude Code): "/sc:analyze src/ --focus security"
↓
1. Parse Command: identify 'analyze' command
↓
2. Load Context: read commands/sc/analyze.md
↓
3. Check Flags: --focus security
↓
4. Auto-Activation: load security-engineer.md
↓
5. Apply Patterns: follow analysis workflow
↓
6. Generate Output: using loaded contexts
/sc: commands take precedence@agent- override auto-activation~/.claude/commands/sc/new-command.md~/.claude/agents/new-specialist.md~/.claude/MODE_NewMode.md.md instructions for Claude CodeSuperClaude's architecture is intentionally simple: it's a well-organized collection of context files that Claude Code reads to modify its behavior. The power comes from the careful crafting of these contexts and their systematic organization, not from any executing code or running processes.
The framework's elegance lies in its simplicity - by providing Claude Code with structured instructions through context files, we can achieve sophisticated behavioral modifications without any software complexity.