`/initx [OPTIONS]`
Creates project-specific AI agents tailored to your codebase and tech stack.
/plugin marketplace add Toskysun/sub-agents/plugin install universal@sub-agents/initx [OPTIONS]
Analyze project codebase, detect technology stack, and CREATE NEW PROJECT-SPECIFIC AGENTS tailored to your unique requirements. Saves custom agents to .claude/agents/ and updates project CLAUDE.md.
/initx # Smart analysis & agent creation
/initx --preview # Preview mode (no file creation)
/initx --force # Force overwrite existing agents
--mode=minimal - Create only essential agents--focus=security - Focus on security-specific agents--exclude=ui - Skip UI/design agents--template=mobile - Use mobile project template--model=inherit - Force all agents to use specified model (inherit/sonnet/opus/haiku)Frontend: vue (*.vue, nuxt.config.js), react (*.jsx, next.config.js), angular
Backend: fastapi (main.py), spring (pom.xml), go (go.mod), node (express/koa)
Mobile: android (*.kt, AndroidManifest.xml), flutter (pubspec.yaml)
Security: reversing (*.apk, frida scripts), hooking (xposed modules)
Creates NEW specialized agents based on detected stack:
vue-{project-name}-developer - Project-specific Vue expertapi-{domain}-specialist - Custom API integration expert{database}-data-architect - Database-specific data expertCreates NEW agents for unique project domains:
{domain}-business-logic-expert - Business rules specialist{integration}-connector-agent - Third-party integration expert{platform}-deployment-specialist - Platform-specific deploymentCreates NEW agents for project-specific QA:
{stack}-testing-specialist - Stack-specific testing expert{environment}-ops-engineer - Environment-specific operationsproject_root/
āāā .claude/
ā āāā agents/ # NEW custom agents
ā āāā vue-ecommerce-developer.md
ā āāā payment-integration-specialist.md
ā āāā postgres-data-architect.md
ā āāā aws-deployment-specialist.md
āāā CLAUDE.md # Updated with new team
āāā .gitignore # Updated exclusions
ā ļø LANGUAGE REQUIREMENT: All agent content MUST be generated in ENGLISH.
---
name: {project-domain}-{specialization}-agent
description: Project-specific {specialization} expert for {project_name}
model: inherit # Options: inherit | sonnet | opus | haiku
---
You are the **{Project Domain} {Specialization} Agent** for the {project_name} project.
## STRICT AGENT BOUNDARIES
**ALLOWED ACTIONS:**
- {Domain-specific actions based on project analysis}
- {Tech stack specific implementations}
- {Integration and performance optimizations}
**FORBIDDEN ACTIONS:**
- {Cross-domain work} (delegate to {appropriate_agent})
- Infrastructure concerns (delegate to devops-engineer)
- Security audits (delegate to code-review-expert)
**CORE MISSION:** {Single sentence describing the agent's purpose}
## RESPONSIBILITIES
### 1. {Primary Domain Area}
- {Specific responsibilities based on project analysis}
- {Pattern implementations from detected codebase}
### 2. {Quality & Testing}
- {Testing requirements specific to domain}
- {Performance criteria for project}
### 3. {Collaboration}
- Input from: {upstream agents}
- Output to: {downstream agents}
- Coordinate with: {peer agents}
## TECHNOLOGY STACK
**Primary**: {Detected technologies with versions}
**Integrations**: {Third-party services}
**Constraints**: Work exclusively within {project_domain} of {project_name}
Complex Reasoning (opus): Architecture design, security analysis, microservices
Balanced Performance (sonnet): Most development agents, API/database, testing
Simple Fast (haiku): Config generation, simple scripts, documentation
Inherit from Parent (inherit): Maintain consistency, avoid switching overhead
/initx --model=inherit # All agents inherit from parent (best for cost control)
/initx --model=sonnet # All agents use Sonnet (balanced performance)
/initx --model=opus # All agents use Opus (maximum reasoning)
/initx --model=haiku # All agents use Haiku (fastest response)
ā ļø Using --model overrides intelligent model selection for consistency/cost control.
š¤ Agent Creation - {agent_name}
š Recommended: {suggested_model} ({reason})
Select model: [1] ā
Recommended [2] Opus [3] Sonnet [4] Haiku [5] Inherit
Confirm? [y/N]
š¤ Agent Creation - {agent_name}
š Model: {forced_model} (forced by --model)
Confirm? [y/N]
All generated agents MUST be created in English, regardless of the user's input language:
vue-ecommerce-developer, not vue-ēµå-å¼åč
)This ensures consistency and compatibility across all projects and teams.
š Analyzing project structure...
āāā š Detecting tech stack and versions
āāā šļø Identifying architecture patterns
āāā š Assessing complexity and scale
āāā šÆ Discovering unique requirements
ā
Analysis Complete
- Type: E-commerce Web App
- Stack: Vue 3 + FastAPI + PostgreSQL
- Complexity: Medium (4/5)
- Unique: Payment integration, inventory management
š¤ Intelligent Model Matching...
vue-ecommerce-developer (recommended: sonnet)
āā Reason: Vue 3 patterns, balanced performance
āā Select: [1] ā
sonnet [2] opus [3] haiku [4] inherit
āā ā
Created
fastapi-payment-specialist (recommended: opus)
āā Reason: Payment integration, complex logic
āā Select: [1] ā
opus [2] sonnet [3] haiku [4] inherit
āā ā
Created
[... more agents ...]
š Created 8 agents: 4 sonnet, 2 opus, 1 haiku, 1 inherit
š¤ Force Model: inherit (all agents use parent model)
vue-ecommerce-developer
āā ā ļø Using inherit (recommended: sonnet)
āā ā
Created
fastapi-payment-specialist
āā ā ļø Using inherit (recommended: opus)
āā ā
Created
[... more agents ...]
š Created 8 agents: 8 inherit (forced)
š Configuring AI team collaboration...
āāā š Saving agents to .claude/agents/ directory
āāā š§ Setting up collaboration matrix and dependencies
āāā š Updating CLAUDE.md with team information
āāā šÆ Ready for project-specific task execution
ā
Custom AI team ready!
š Use /ai "optimize checkout flow" to engage specialist team
detected_patterns: [shopping_cart, payment_flow, inventory]
created_agents:
- payment-integration-specialist
- inventory-management-expert
- customer-analytics-agent
- ecommerce-testing-specialist
detected_patterns: [apk_analysis, hooking, reverse_engineering]
created_agents:
- android-malware-analyst
- frida-hooking-specialist
- apk-reverse-engineer
- vulnerability-scanner-expert
detected_patterns: [service_mesh, api_gateway, distributed_data]
created_agents:
- service-mesh-architect
- api-gateway-specialist
- distributed-data-expert
- microservices-testing-specialist
--model parameter--model=inheritInitX creates your perfect AI development team - not just assigns existing ones!
š One command, custom specialists, exponential productivity!