Modular engineering framework in Claude DSL v0.3 format with MCP server support for Claude Desktop.
git clone https://github.com/username/claude-code-engineering-guide.git
cd claude-code-engineering-guide
chmod +x setup-claude-dsl.sh
./setup-claude-dsl.shChoose your integration method:
- MCP Server (Recommended) - Auto-load rules on demand, 0 tokens
- Manual DSL Loading - Copy CLAUDE.md, use 4,404 tokens
| Method | Token Usage | Setup | Real-time Updates |
|---|---|---|---|
| MCP Server | 0 tokens | One-time setup | ✅ Automatic |
| Manual DSL | 4,404 tokens | Per session | ❌ Manual reload |
| Markdown | 7,041 tokens | Per session | ❌ Manual reload |
dsl/
├── entry-point.dsl # Main orchestrator
├── development.dsl # Development workflow
├── CLAUDE.md # Session entry point
├── behavior-rules/ # Claude's operational behaviors
├── coding-rules/ # Code quality and standards
├── design-rules/ # UI/UX and documentation
├── git-rules/ # Git workflow operations
├── security-rules/ # Security requirements
└── validation-rules/ # Correctness verification
mcp-server/ # MCP server for Claude Desktop
├── mcp-handler.js # Main MCP handler
├── cli.js # Command line interface
└── package.json # NPM package configuration
In Claude Desktop:
@dsl-rules- List available DSL resources@dsl-rules claude.md- Show session instructions@dsl-rules security-rules- Show security rules/apply-dsl-rules- Apply DSL rules for development/security-check web_application- Run security validation
Follow entry-point.dsl for complete DSL execution.
CLAUDE.md(15 lines) - Mandatory session entry pointentry-point.dsl(247 lines) - Main DSL orchestratordevelopment.dsl(138 lines) - Development workflow
Claude's operational behaviors and error handling
Code quality and development standards
UI/UX standards and documentation
Comprehensive security requirements
Correctness verification and validation
Git workflow and operations
checklist.dsl(25 lines) - Final verification checklistapp-types.dsl(62 lines) - Application type definitionsrisk-assessment.dsl(41 lines) - Risk evaluation framework
- Zero token usage: Rules loaded on-demand
- Real-time updates: File changes apply immediately
- Conditional loading: Task-appropriate rules only
- Category organization: Clear separation of concerns
- Cross-references: Unified variables prevent duplication
- Extensible architecture: Easy to add new categories
| Version | Files | Lines | Tokens | Efficiency |
|---|---|---|---|---|
| MCP Server | 30 files | 1,573 lines | 0 tokens | 100% reduction |
| DSL | 30 files | 1,573 lines | ~4,404 tokens | 37% reduction |
| YAML | 30 files | 1,473 lines | ~5,084 tokens | 28% reduction |
| Markdown | 10 files | 1,264 lines | ~7,041 tokens | Baseline |
If the setup script fails:
cd mcp-server
npm install
npm install -g .Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"dsl-rules": {
"command": "claude-dsl",
"args": ["/absolute/path/to/this/repo/dsl"]
}
}
}Copy dsl/CLAUDE.md contents and paste into Claude sessions.
- Permission denied:
chmod +x setup-claude-dsl.sh - npm errors: Use
sudo npm install -g .if needed - Command not found: Check PATH includes npm global bin
# Test MCP server
claude-dsl /path/to/dsl/folder
# Verify installation
claude-dsl --help- Restart Claude Desktop after config changes
- Check config file syntax is valid JSON
- Verify DSL folder path is absolute
MIT License - see LICENSE for details.