con un clic
moai
// MoAI unified orchestrator for autonomous development. Routes natural language or subcommands (plan, run, sync, design, db, project, fix, loop, mx, feedback, review, clean, codemaps, coverage, e2e) to specialized agents.
// MoAI unified orchestrator for autonomous development. Routes natural language or subcommands (plan, run, sync, design, db, project, fix, loop, mx, feedback, review, clean, codemaps, coverage, e2e) to specialized agents.
Mobile native and cross-platform development domain skill covering iOS native (Swift/SwiftUI), Android native (Kotlin/Jetpack Compose), React Native, and Flutter. Use when implementing mobile features or selecting between mobile paradigms. Harness seed: invoke builder-skill for deep sub-skills.
Parses Claude Design handoff bundle (ZIP or HTML) and extracts design tokens, component manifests, and static assets for expert-frontend delegation. Validates bundle version against the supported_bundle_versions whitelist and returns structured error codes on failure with path B fallback guidance.
Builder-Evaluator GAN loop workflow for iterative design quality improvement. Implements Sprint Contract negotiation, 4-dimension scoring (Design Quality, Originality, Completeness, Functionality), stagnation detection, and escalation protocol. Reads parameters from design.yaml.
| name | moai |
| description | MoAI unified orchestrator for autonomous development. Routes natural language or subcommands (plan, run, sync, design, db, project, fix, loop, mx, feedback, review, clean, codemaps, coverage, e2e) to specialized agents. |
| allowed-tools | Agent, AskUserQuestion, Skill, TaskCreate, TaskUpdate, TaskList, TaskGet, Bash, Read, Write, Edit, Glob, Grep |
| argument-hint | [subcommand] [args] | "natural language task" |
!git status --porcelain 2>/dev/null || true
!git branch --show-current 2>/dev/null || true
.moai/config/config.yaml
Rules and constraints governing all workflows are always loaded from these sources. Do NOT duplicate their content here:
$ARGUMENTS
[HARD] Route the Raw User Input above using the strict priority order below. Extract the FIRST WORD of the input for subcommand matching. All text after the subcommand keyword is CONTEXT to be passed to the matched workflow — it is NOT a routing signal and MUST NOT influence which workflow is selected.
--team: Force Agent Teams mode for parallel execution--solo: Force sub-agent mode (single agent per phase)When no flag is provided, the system evaluates task complexity and automatically selects between team mode (for complex, multi-domain tasks) and sub-agent mode (for focused, single-domain tasks).
[HARD] Extract the FIRST WORD from the Raw User Input section above. If it matches any subcommand below (or its alias), route to that workflow IMMEDIATELY. Do NOT analyze the remaining text for routing — it is context for the matched workflow:
.moai/project/codemaps/Only if Priority 1 did not match: Check if the Raw User Input contains a pattern matching SPEC-XXX (such as SPEC-AUTH-001). If found, route to the run workflow automatically. The SPEC-ID becomes the target for DDD/TDD implementation.
Only if BOTH Priority 1 AND Priority 2 did not match: Classify the intent of the ENTIRE Raw User Input as natural language. This priority is NEVER reached when the first word matches a known subcommand.
If the intent remains ambiguous after all priority checks, use AskUserQuestion to present the top 2-3 matching workflows and let the user choose.
If the intent is clearly a development task with no specific routing signal, default to the moai workflow (plan -> run -> sync pipeline) for full autonomous execution.
Purpose: Create comprehensive specification documents using EARS format with Research-Plan-Annotate cycle. Phases: Deep Research (research.md) -> SPEC Planning -> Annotation Cycle (1-6 iterations) -> SPEC Creation Agents: manager-spec (primary), Explore (research), manager-git (conditional) Flags: --worktree, --branch, --resume SPEC-XXX, --team, --no-issue For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/plan.md (team mode: ${CLAUDE_SKILL_DIR}/team/plan.md)
Purpose: Implement SPEC requirements through configured development methodology. Agents: manager-strategy, manager-ddd or manager-tdd (per quality.yaml), manager-quality, manager-git Flags: --resume SPEC-XXX, --team For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/run.md (team mode: ${CLAUDE_SKILL_DIR}/team/run.md)
Purpose: Synchronize documentation with code changes and prepare pull requests. Agents: manager-docs (primary), manager-quality, manager-git Modes: auto, force, status, project. Flags: --merge, --skip-mx For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/sync.md (team mode: ${CLAUDE_SKILL_DIR}/team/sync.md)
Purpose: Lightweight pre-commit quality check running lint, format, type-check, and tests in parallel. Also integrated into run (Phase 2.75) and sync (Phase 0) workflows as automatic pre-checks. Agents: Direct execution (no agent delegation) Flags: --fix, --staged, --file PATH Integration: Automatically invoked by run workflow (Phase 2.75) and sync workflow (Phase 0.0.1) with --fix behavior. For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/gate.md
Purpose: Dedicated security audit with OWASP Top 10 analysis, dependency scanning, secrets detection, and data isolation checks. Agents: expert-security (primary) Flags: --full, --deps, --secrets, --file PATH, --branch BRANCH For detailed orchestration: Read /Users/goos/MoAI/moai-adk-go/.claude/skills/moai/workflows/security.md
Purpose: Autonomously detect and fix LSP errors, linting issues, and type errors. Agents: expert-debug (diagnosis), expert-backend/expert-frontend (fixes) Flags: --dry, --sequential, --level N, --resume, --team For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/fix.md
Purpose: Repeatedly fix issues until completion marker detected or max iterations reached. Agents: expert-debug, expert-backend, expert-frontend, expert-testing Flags: --max N, --auto-fix, --seq For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/loop.md
Purpose: Scan codebase and add @MX code-level annotations for AI agent context. Agents: Explore (scan), expert-backend (annotation) Flags: --all, --dry, --priority P1-P4, --force, --team For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/mx.md
Purpose: Multi-perspective code review with security, performance, quality, and UX analysis. Agents: manager-quality (primary), expert-security Flags: --staged, --branch, --security, --team For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/review.md (team mode: ${CLAUDE_SKILL_DIR}/team/review.md)
Purpose: Identify and safely remove unused code with test verification. Agents: expert-refactoring, expert-testing Flags: --dry, --safe-only, --file PATH For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/clean.md
Purpose: Scan codebase and generate architecture documentation. Agents: Explore, manager-docs Flags: --force, --area AREA For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/codemaps.md
Purpose: Analyze test coverage gaps and generate missing tests. Agents: expert-testing Flags: --target N, --file PATH, --report For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/coverage.md
Purpose: Create and run E2E tests using Chrome, Playwright, or Agent Browser. Agents: expert-testing, expert-frontend Flags: --record, --url URL, --journey NAME For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/e2e.md
Purpose: Produce web/brand design artifacts via Claude Design import (path A) or code-based skill pipeline (path B). Integrates brand context from .moai/project/brand/ and design briefs from .moai/design/.
Agents: manager-spec (BRIEF), expert-frontend (implementation), evaluator-active (GAN loop scoring)
Skills: moai-domain-copywriting, moai-domain-brand-design, moai-workflow-design-import, moai-workflow-gan-loop, moai-workflow-design-context, moai-workflow-pencil-integration
Flags: --path A|B, --harness thorough|standard, --brief BRIEF-XXX
For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/design.md
Purpose: Manage project database documentation in .moai/project/db/ (schema.md, erd.mmd, migrations.md, rls-policies.md, queries.md, seed-data.md). Subcommands synchronize schema from migration files, verify drift, and list state.
Agents: moai-domain-db-docs (parser + sync), Explore (migration discovery)
Subcommands: init | refresh | verify | list
Flags: --dry, --force, --engine postgres|mongodb|mysql|oracle|sqlite|supabase
For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/db.md
Purpose: Full autonomous research -> plan -> annotate -> run -> sync pipeline. Phases: Parallel Exploration (research.md) -> SPEC Generation -> Annotation Cycle -> Implementation -> Sync Agents: Explore, manager-spec, manager-ddd/tdd, manager-quality, manager-docs, manager-git Flags: --loop, --max N, --branch, --pr, --resume SPEC-XXX, --team, --solo, --no-issue For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/moai.md
Purpose: Generate project documentation by analyzing the existing codebase. Agents: Explore, manager-docs, expert-devops (optional) Output: product.md, structure.md, tech.md in .moai/project/ For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/project.md
Purpose: Collect user feedback and create GitHub issues. Agents: manager-quality For detailed orchestration: Read ${CLAUDE_SKILL_DIR}/workflows/feedback.md
When this skill is activated, execute the following steps in order:
Step 1 - Parse Arguments:
Extract subcommand keywords and flags from the Raw User Input. Recognized global flags: --resume [ID], --seq, --deepthink, --team, --solo. Also detect ultrathink keyword in the input text.
CRITICAL: Two distinct deep analysis modes:
--deepthink flag detected → Invoke Sequential Thinking MCP (mcp__sequential-thinking__sequentialthinking) for structured step-by-step analysis. This is an MCP tool call.ultrathink keyword detected → Activate Claude's native extended reasoning (high effort mode). Do NOT invoke Sequential Thinking MCP. This is native Claude behavior with no MCP dependency.ultrathink --deepthink activates BOTH independently.Step 2 - Route to Workflow: Apply the Intent Router (Priority 1 through Priority 4) to determine the target workflow. If ambiguous, use AskUserQuestion to clarify with the user.
Step 2.5 - Project Documentation Check:
Before executing plan, run, sync, fix, loop, or default workflows, verify project documentation exists by checking for .moai/project/product.md. If product.md does NOT exist, use AskUserQuestion to ask the user (in their conversation_language):
Question: Project documentation not found. Would you like to create it first? Options:
This check does NOT apply to: project, feedback subcommands.
[HARD] Beginner-Friendly Option Design: All AskUserQuestion calls throughout MoAI workflows MUST follow these rules:
Step 3 - Load Workflow Details:
If --team flag was parsed AND ${CLAUDE_SKILL_DIR}/team/<name>.md exists for the target subcommand, read the team workflow file instead of the solo workflow. Otherwise read workflows/<name>.md. The Quick Reference section above shows both paths for each subcommand that supports team mode.
Step 4 - Read Configuration: Load relevant configuration from .moai/config/config.yaml and section files as needed.
Step 5 - Initialize Task Tracking: Use TaskCreate to register discovered work items with pending status.
Step 6 - Execute Workflow Phases: Follow the workflow-specific phase instructions. Delegate all implementation to appropriate agents via Agent(). Collect user approvals at designated checkpoints via AskUserQuestion.
Step 7 - Track Progress: Update task status using TaskUpdate as work progresses (pending to in_progress to completed).
Step 8 - Present Results: Display results to the user in their conversation_language using Markdown format.
Step 9 - Add Completion Marker:
When all workflow phases complete successfully, add the appropriate completion marker (<moai>DONE</moai> or <moai>COMPLETE</moai>).
Step 10 - Guide Next Steps: Use AskUserQuestion to present the user with logical next actions based on the completed workflow.
Version: 2.6.0 Last Updated: 2026-02-25
| Rationalization | Reality |
|---|---|
| "I will just implement this directly, delegation is overhead" | MoAI is an orchestrator. Direct implementation bypasses the quality gates agents enforce. |
| "The user's intent is obvious, no need for a Socratic interview" | Ambiguous verbs (clean, fix, improve) almost always produce wrong scope. Rule 5 exists because obvious is often wrong. |
| "This is a small change, Approach-First is unnecessary" | Small changes still touch files the user cares about. One sentence of approach costs nothing and prevents rework. |
| "I can run /moai run without a SPEC, it is just a tweak" | Without a SPEC, there is no acceptance criterion to check. Every run without a SPEC silently degrades quality tracking. |
| "Parallel agents will just race, sequential is safer" | Independent tool calls are explicitly required to run in parallel. Sequentializing them wastes user time. |
| "I will respond in English since it is technical" | Conversation language is a HARD rule. User-facing output must match the configured language, always. |
| "Schema 로드가 귀찮으니 이번엔 산문으로 질문하자" | AskUserQuestion/Task* 는 deferred tool. ToolSearch 한 번으로 session 전체 사용 가능. 산문 질문은 HARD 위반 (CLAUDE.md §1, §8 Deferred Tool Preload Protocol). |
| "짧은 확인 질문은 산문으로 처리해도 된다" | 모든 user-facing 질문은 AskUserQuestion 경유 강제. "짧은 질문"은 예외 아님. Self-check: 응답에 "?" 있으면 AskUserQuestion 호출 동반 필수. |
- A:, - B:, Option X:) without structured AskUserQuestion- A:, - B:) are routed through AskUserQuestion, not markdown-only