docs/developer-guide/contributing-code.md
Welcome to SuperClaude Framework development! This guide provides everything you need to contribute context files and behavioral instructions that enhance Claude Code through structured prompts and MCP server integration.
Project Purpose: SuperClaude provides Claude Code with structured context files and behavioral instructions. We're building the next generation of AI-assisted development through intelligent prompt engineering.
Required:
Environment Setup:
# Fork SuperClaude_Framework on GitHub first
git clone https://github.com/YOUR_USERNAME/SuperClaude_Framework.git
cd SuperClaude_Framework
# Test installation system
PYTHONPATH=/path/to/SuperClaude_Framework python3 -m setup --help
# Install to development location
PYTHONPATH=/path/to/SuperClaude_Framework python3 -m setup install --components core
Validation Check:
# Verify Python version
python3 --version # Should be 3.8+
# Check Node.js for MCP configuration
node --version # Should be 16+
# Test Claude Code integration
ls ~/.claude/ # Should show Claude Code directory
SuperClaude is a Context-Oriented Configuration Framework - not executing software, but instruction files that Claude Code reads to modify its behavior.
SuperClaude_Framework/
āāā superclaude/ # Framework components (the source of truth)
ā āāā Core/ # PRINCIPLES.md, RULES.md, FLAGS.md
ā āāā Agents/ # 15 specialized domain experts
ā āāā Commands/ # 21 context trigger patterns (/sc: behavioral instructions)
ā āāā Modes/ # 6 behavioral modification patterns
ā āāā MCP/ # 6 MCP server configurations
āāā setup/ # Python installation system
āāā docs/ # Documentation (what you're reading)
āāā tests/ # File validation scripts
Key Concepts:
User Input ā Claude Code ā Reads SuperClaude Context ā Modified Behavior ā Enhanced Output
/sc:implement "auth system" in Claude Code conversation (not terminal)superclaude/Commands/implement.mdContext Files (.md):
Installation Scripts (.py):
Example Agent Structure:
---
name: new-specialist
description: Brief description of expertise
category: specialized|architecture|quality
---
# Agent Name
## Triggers
- Keywords that activate this agent
- File types that trigger activation
## 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
Structure Requirements:
Quality Standards:
Fork and Clone:
# Fork on GitHub, then:
git clone https://github.com/YOUR_USERNAME/SuperClaude_Framework.git
cd SuperClaude_Framework
git remote add upstream https://github.com/SuperClaude-Org/SuperClaude_Framework.git
Create Feature Branch:
git checkout -b feature/your-feature-name
# Work on your changes
git add .
git commit -m "Add: descriptive commit message"
Submit Pull Request:
git push origin feature/your-feature-name
# Create PR on GitHub
## Description
Brief description of context file changes
## Type of Change
- [ ] Bug fix in context files
- [ ] New feature (agent, command, mode)
- [ ] Documentation improvement
- [ ] Installation system enhancement
## Testing
- [ ] Manual testing with Claude Code
- [ ] Context file validation passes
- [ ] Examples validated in Claude Code conversations
## Checklist
- [ ] Files follow SuperClaude conventions
- [ ] Self-review completed
- [ ] Documentation updated
- [ ] No breaking changes to existing context
Manual Review:
Agent Development Process:
superclaude/Agents/Agent Template:
---
name: agent-name
description: Domain expertise description
category: specialized
tools: Read, Write, Edit, Bash
---
# Agent Name
## Triggers
- Specific keywords: domain, expertise, area
- File patterns: *.domain, specific frameworks
- Complexity indicators: architectural decisions
## Behavioral Mindset
- Focus on domain best practices
- Systematic approach to problem-solving
- Quality and security considerations
## Focus Areas
- Core domain expertise
- Related technical areas
- Integration patterns
## Key Actions
1. Analyze requirements within domain context
2. Apply domain-specific best practices
3. Coordinate with related specialists
4. Validate solutions meet domain standards
Command Structure:
---
name: command-name
description: Command purpose
category: workflow|utility|analysis
complexity: basic|standard|advanced
mcp-servers: [context7, sequential]
personas: [architect, engineer]
---
# /sc:command-name
## Triggers
- When to use this command
- Context indicators
## Usage
Type in Claude Code conversation:
/sc:command-name [target] [--options]
**Note**: This is a context trigger pattern, not a terminal command.
## Workflow Pattern
1. Initial analysis
2. Processing steps
3. Validation and output
## Examples
Practical usage examples
Mode Development:
Manual Validation Process:
Validation Checklist:
# Check file structure
find ~/.claude -name "*.md" | head -10
# Verify context file format
head ~/.claude/agents/python-expert.md
# Test import system
grep "@import" ~/.claude/CLAUDE.md
Documentation:
Community Channels:
Code Review Guidelines:
Bug Reports:
Feature Requests:
ā Follow existing patterns and conventions ā Test context files thoroughly with Claude Code ā Write clear, actionable behavioral instructions ā Provide working examples ā Focus on user experience improvements ā Coordinate with related components
ā Don't break existing functionality ā Don't add untested context modifications ā Don't ignore style guidelines ā Don't create overly complex behavioral patterns ā Don't duplicate existing functionality
Context Files:
Documentation:
MIT License: SuperClaude Framework is licensed under the MIT License, providing maximum freedom for use, modification, and distribution.
By contributing to SuperClaude Framework, you agree that your contributions will be licensed under the same MIT License. You retain copyright to your contributions while granting the project perpetual rights to use, modify, and distribute your context files.
SuperClaude Framework exists because of the collaborative effort of developers, users, and contributors who believe in advancing AI-assisted development. Every bug report, feature suggestion, documentation improvement, and context file contribution makes the framework better for everyone.
Your expertise and perspective make SuperClaude Framework better. Whether you're improving context files, adding features, or helping other users, every contribution advances the goal of more effective AI-assisted development.
Welcome to the SuperClaude Framework contributor community! Your contributions help build the future of AI-assisted development through intelligent context and behavioral programming.