ai
`/ai <TASK_DESCRIPTION | list | info <role> | workflow | auto>`
`/initx [OPTIONS]`
> /plugin marketplace add Toskysun/sub-agents > /plugin install universal@sub-agents
How it fires
How this command gets triggered: by you, by Claude, or both.
/initxContext preview
What this command does when you run it.
`/initx [OPTIONS]`
`/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
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:**
**Creates NEW agents for unique project domains:**
**Creates NEW agents for project-specific QA:**
project_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:
This ensures consistency and compatibility across all projects and teams.