| name | systemcc |
| description | Intelligent workflow router with Lyra AI optimization, build config detection, and triple code review. Auto-analyzes complexity, risk, and scope to execute the optimal workflow automatically. |
| model | opus |
| argument-hint | <task description> |
โโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโ
โโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโ
โโโโโโโโ โโโโโโโ โโโโโโโโ โโโ โโโโโโ โโโโโโโโโโโ
โโโโโโโโ โโโโโ โโโโโโโโ โโโ โโโโโโ โโโโโโโโโโโ
โโโโโโโโ โโโ โโโโโโโโ โโโ โโโโโโโโโโโ โโโ โโโ
โโโโโโโโ โโโ โโโโโโโโ โโโ โโโโโโโโโโโ โโโ
โ Command Center โ
CLAUDE AGENT SYSTEM
MANDATORY: Output the banner above verbatim as your very first message to the user, before any tool calls or other output.
SystemCC - Master Command Router
User types: /systemcc "any task"
Claude does: EVERYTHING automatically
Phase 1: CRITICAL DETECTION (MANDATORY)
When /systemcc is detected, you MUST IMMEDIATELY show:
๐ฏ SYSTEMCC DETECTED - Command acknowledged and workflow initiated
โ
Following SYSTEMCC workflow instructions
This message MUST appear:
- IMMEDIATELY when /systemcc is detected
- BEFORE any other processing
- CANNOT BE SKIPPED under any circumstances
Phase 2: LYRA AI PROMPT OPTIMIZATION (MANDATORY)
After detection, ALWAYS show Lyra optimization with this EXACT format:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ LYRA AI PROMPT OPTIMIZATION
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Original Request:
"$ARGUMENTS"
๐ Analysis Phase:
- Deconstructing intent...
- Diagnosing gaps...
- Developing enhancements...
- Delivering optimized prompt...
โจ Optimized Prompt:
"[enhanced prompt with complete specifications]"
๐ Optimization Details:
- Mode: [BASIC/DETAIL]
- Complexity Score: [1-10]
- Improvements Applied: [number]
๐ง Key Enhancements:
โข [Enhancement 1]
โข [Enhancement 2]
โข [Enhancement 3]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
The 4-D Methodology
- DECONSTRUCT: Extract coding intent, feature requirements, technical context
- DIAGNOSE: Audit for technical clarity and specification gaps
- DEVELOP: Select optimal techniques based on request type:
- Bug Fixes โ Precise error context + systematic debugging
- Feature Development โ Clear requirements + implementation scope
- Refactoring โ Architecture goals + code quality standards
- UI/UX โ Design principles + user experience objectives
- DELIVER: Construct development-focused prompt with complete specs
Mode Detection
- BASIC mode: Simple fixes, single-file changes, typos, config updates
- DETAIL mode: Complex architecture, multi-component, security-sensitive
Phase 3: BUILD CONFIGURATION DETECTION
Scan for and apply project build configuration rules automatically.
Files to Scan (Priority Order)
Makefile / makefile
.gitlab-ci.yml / .github/workflows/*.yml
pyproject.toml / setup.cfg / tox.ini
package.json / .eslintrc* / .prettierrc*
.pre-commit-config.yaml
.editorconfig
When Configuration Found, Display:
๐ BUILD CONFIGURATION DETECTED
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Source: [Makefile/CI config/etc.]
โ
Formatting Rules:
โข black: line-length=[N]
โข isort: profile=black, multi-line=[N]
โข prettier: [settings]
โ
Linting Rules:
โข flake8: ignore=[codes], max-line-length=[N]
โข mypy: [settings]
โข eslint: [settings]
โ
Test Requirements:
โข [test framework] with coverage
โข minimum coverage: [N]%
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฏ All generated code will automatically follow these standards!
When No Configuration Found:
๐ No build configuration detected - using best practices
Apply Rules to All Generated Code
- Respect line length limits from black/prettier
- Sort imports according to isort/eslint config
- Add type hints if mypy is configured
- Follow linting rules to ensure CI/CD passes
Phase 4: TWO-PHASE WORKFLOW SELECTION
Critical: This engine uses ALL 6 available workflows via two-phase selection.
Available Workflows
| Workflow | Purpose | Best For |
|---|
anti-yolo-web | Web app development specialist | Frontend, React, Vue, dashboards, UI components |
aidevtasks | PRD-based feature development | New features requiring product specs |
agetos | Project initialization/standards | Setup, conventions, new projects |
plan-opus | Deep planning with parallel exploration | Architecture, migrations, complex unknowns |
complete_system | Full 6-agent validation pipeline | Moderate features, refactoring with validation |
orchestrated | Streamlined 3-agent workflow | Simple fixes, config changes, quick tasks |
PHASE 1: Domain Detection (CHECK FIRST)
Before any scoring, semantically analyze if the task matches a specialized domain:
| Domain | Workflow | Detection Signals |
|---|
| Web Development | anti-yolo-web | HTML, CSS, JavaScript, React, Vue, Angular, frontend, UI, dashboard, component, web app |
| Feature Development | aidevtasks | "build feature", "create system", product requirements, user stories, multi-component features |
| Project Setup | agetos | Setup, initialize, standards, conventions, new project, project structure |
| Deep Planning | plan-opus | Architecture design, major refactor, migration, "plan first", many unknowns |
Decision Logic:
- Domain match with HIGH confidence โ Use specialized workflow (skip Phase 2)
- No domain match โ Proceed to Phase 2
PHASE 2: Complexity Scoring (FALLBACK)
Only when NO specialized domain is detected, use 3-dimensional assessment:
Dimension 1: Complexity
| Level | Indicators |
|---|
| Simple | fix, update, change, small, typo, rename, style, tweak, adjust |
| Moderate | feature, add, create, implement, modify, improve |
| Complex | architecture, refactor, system, integration, migration, security, database |
Dimension 2: Risk
| Level | Indicators |
|---|
| Low | docs, style, test, config (non-production), UI text |
| High | critical, production, breaking, delete, security, database, auth, payment, encryption |
Dimension 3: Scope
| Level | Indicators |
|---|
| Single | specific file mentioned, "this file", "the function" |
| Multi | "multiple", "several files", specific file list, 3-10 files |
| System | "entire", "all files", "across", "throughout", "migrate all", >10 files |
Complexity-Based Workflow Selection
| Combined Score | Workflow | Use Case |
|---|
| 1.0 - 2.0 | orchestrated | Bug fixes, small changes, config updates, typos |
| 2.1 - 3.5 | complete_system | Moderate features, refactoring, validation needed |
| 3.6 - 5.0 | plan-opus | Complex multi-system changes, high risk |
Display Decision:
Phase 1 Match (Domain Detected)
๐ง DECISION ENGINE
โโโโโโโโโโโโโโโโโโ
Task: "[task description]"
Phase 1 - Domain Detection:
โ [Domain] detected
โ [Reasons]
โ Using **[workflow]** workflow
Phase 2 Fallback (No Domain Match)
๐ง DECISION ENGINE
โโโโโโโโโโโโโโโโโโ
Task: "[task description]"
Phase 1 - Domain Detection:
โ No specialized domain detected
Phase 2 - Complexity Assessment:
โข Complexity: [1-5]/5 - [reason]
โข Risk: [1-5]/5 - [reason]
โข Scope: [1-5]/5 - [reason]
Combined: [score] โ Using **[workflow]** workflow
Phase 5: SECURITY & SPECIAL HANDLING
Security Auto-Detection
Enable security scanning when task mentions:
| Category | Keywords |
|---|
| Database | sql, query, database, migration, schema, orm |
| Auth | auth, login, password, token, jwt, session, oauth |
| Security | encrypt, decrypt, permission, role, certificate, hash |
| Encoding | base64, serialize, sanitize, injection |
When triggered:
๐ Security scan auto-enabled: [reason]
Phase 6: AUTOMATIC EXECUTION
CRITICAL: Execute ALL phases automatically. NEVER ask user to run commands.
Orchestrated Workflow (3-Agent)
๐ Phase 1/3: Analysis
โโ Orchestrator analyzing code...
๐ Phase 2/3: Implementation
โโ Developer implementing changes...
๐ Phase 3/3: Review
โโ Reviewer validating...
โ
Complete!
Complete System Workflow (6-Agent)
๐ Phase 1/6: Strategic Analysis
โโ Planner analyzing architecture...
๐ Phase 2/6: Implementation Planning
โโ Designing implementation approach...
๐ Phase 3/6: Code Implementation
โโ Executer writing code...
๐ Phase 4/6: Verification
โโ Verifier testing logic...
๐ Phase 5/6: Quality Assurance
โโ Tester checking edge cases...
๐ Phase 6/6: Documentation
โโ Documenter updating docs...
โ
Implementation complete! Starting review...
Plan-Opus Workflow (Phased Execution)
For system-wide changes, decompose into phases:
๐ Decomposing task into manageable phases...
๐ฆ Phase 1: [Component A]
โโ Files: [list]
โโ Status: Pending
๐ฆ Phase 2: [Component B]
โโ Files: [list]
โโ Status: Pending
๐ฆ Phase 3: [Component C]
โโ Files: [list]
โโ Status: Pending
Executing phases sequentially to manage context...
Anti-YOLO Web Development
For web/UI tasks, create ASCII wireframe first:
๐จ Creating ASCII Wireframe...
โโ [Page Title] โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ [Header description] โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ [Content layout] โ
โ [________________] โ Input field โ
โ [โผ Dropdown ] โ Select โ
โ [Button Label] โ Action button โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Does this layout look right?
Type 'yes' to build HTML/CSS, or request changes.
Phase 7: TRIPLE CODE REVIEW (MANDATORY)
After implementation, run parallel code reviews:
๐ POST-EXECUTION REVIEW INITIATED
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โก Running 3 parallel reviews (5 min max)...
[PARALLEL EXECUTION]
โโ ๐จโ๐ป Senior Engineer โ Code quality, best practices
โโ ๐ฉโ๐ผ Lead Engineer โ Architecture, scalability
โโ ๐๏ธ Architect โ System integration, patterns
The Three Reviewers
-
Senior Software Engineer
- Focus: Code quality, readability, best practices
- Checks: Clean code, DRY, SOLID, error handling
- Output: PASSED / NEEDS_WORK
-
Lead Software Engineer
- Focus: Architecture, design patterns, technical debt
- Checks: Scalability, maintainability, team impact
- Output: APPROVED / REFACTOR_NEEDED
-
Software Architect
- Focus: System integration, enterprise patterns
- Checks: API contracts, resilience, security
- Output: CERTIFIED / REDESIGN_NEEDED
Decision Matrix
- All Pass โ Proceed to summary
- Senior: NEEDS_WORK โ Auto-fix code quality issues
- Lead: REFACTOR_NEEDED โ Auto-fix design issues
- Architect: REDESIGN_NEEDED โ BLOCKED - explain issue to user
Auto-Fix Protocol
Critical issues are fixed immediately:
- Security vulnerabilities (password plaintext, SQL injection, XSS)
- Data loss risks
- Memory leaks
- Missing error handling
โ ๏ธ POST-EXECUTION REVIEW - FIXING ISSUES
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
**Critical fixes applied:**
โข `api/auth.ts:45` - Encrypting passwords
โข `services/payment.ts:112` - Adding input validation
๐ง Auto-fixing critical issues...
โ
Issues resolved!
All Reviews Pass
โ
POST-EXECUTION REVIEW COMPLETE
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ All 3 reviewers approved the implementation!
Review Summary:
โข ๐จโ๐ป Senior: PASSED (clean code, good patterns)
โข ๐ฉโ๐ผ Lead: APPROVED (scalable design)
โข ๐๏ธ Architect: CERTIFIED (proper integration)
Minor suggestions logged for future improvement.
Phase 8: FINAL SUMMARY
โ
TASK COMPLETE
โโโโโโโโโโโโโโโ
What changed:
โข [Brief point 1]
โข [Brief point 2]
โข [Brief point 3]
Files modified: [count]
Tests: [status]
Build config: [applied/not applicable]
Critical Rules
- NEVER ask user to run another command - you handle everything
- NEVER ask user to continue - proceed automatically through all phases
- NEVER ask user to choose workflow - you decide based on analysis
- ALWAYS show Lyra optimization - it's mandatory
- ALWAYS show build config - if detected
- ALWAYS run triple review - unless user says "skip review"
- ALWAYS complete the task - don't stop mid-workflow
User Interaction Rules
ONLY Ask User For:
- Specifications: "Which authentication method do you prefer?"
- Clarifications: "Should this work on mobile devices?"
- Decisions: "Database choice: PostgreSQL or MySQL?"
- Wireframe approval: "Does this layout look right?"
NEVER Ask User To:
- Run another command
- Execute a specific agent
- Continue with next phase
- Choose workflow manually
Interruption Handling
When user says "no", "stop", "don't do that":
- IMMEDIATELY STOP current action
- Acknowledge: "Got it! Stopping [action]"
- Ask: "What would you prefer instead?"
Error Handling
If something fails:
โ ๏ธ Issue encountered: [description]
๐ Attempting recovery...
[Either: โ
Recovered! Continuing...]
[Or: โ Manual intervention needed: [specific action]]
Available Workflows Summary
| Workflow | Type | Agents | Best For |
|---|
anti-yolo-web | Phase 1 | 3 + wireframe | Web/frontend, React, Vue, dashboards |
aidevtasks | Phase 1 | PRD-based | Features requiring product specs |
agetos | Phase 1 | Setup | Project initialization, standards |
plan-opus | Phase 1 + 2 | Variable | Architecture, migrations, complex tasks |
complete_system | Phase 2 | 6 | Moderate features, validation needed |
orchestrated | Phase 2 | 3 | Simple fixes, config changes |
Quick Reference: Two-Phase Flow
Task comes in
โ
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 1: Domain Check โ
โ โ
โ Web Dev? โ anti-yolo โ
โ Feature? โ aidevtasks โ
โ Setup? โ agetos โ
โ Planning? โ plan-opus โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โ No domain match?
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ PHASE 2: Score Tasks โ
โ โ
โ 1.0-2.0 โ orchestrated โ
โ 2.1-3.5 โ complete_sys โ
โ 3.6-5.0 โ plan-opus โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ
Remember: SystemCC is the ONLY command users need.
Detection โ Lyra โ Build Config โ Two-Phase Analysis โ Workflow โ Execute โ Review โ Complete
All automatic. All quality-gated. All in one command.