moai-workflow-project
The moai-workflow-project integrates documentation generation, multilingual support, and template optimization into a unified project management system for Claude Code agents. Use it to automate project initialization, generate multilingual documentation from SPEC files, optimize template performance through benchmarking, and support web applications, mobile apps, CLI tools, libraries, and ML projects across English, Korean, Japanese, and Chinese languages.
git clone --depth 1 https://github.com/modu-ai/moai-adk /tmp/moai-workflow-project && cp -r /tmp/moai-workflow-project/.claude/skills/moai-workflow-project ~/.claude/skills/moai-workflow-projectSKILL.md
# MoAI Workflow Project - Integrated Project Management System Comprehensive project management system integrating documentation generation, multilingual support, and template optimization into a unified architecture with intelligent automation and Claude Code integration. Scope: Consolidates documentation management, language initialization, and template optimization into a single cohesive system supporting complete project lifecycle from initialization to maintenance. Target: Claude Code agents for project setup, documentation generation, multilingual support, and performance optimization. --- ## Quick Reference Core Capabilities: - Documentation Management: Template-based generation with multilingual support - Language Initialization: Detection, configuration, localization - Template Optimization: Analysis with performance optimization - Unified Interface: Single entry point for all capabilities Key Features: - Automatic project type detection and template selection - Multilingual documentation (English, Korean, Japanese, Chinese) - Intelligent template optimization with benchmarking - SPEC-driven documentation updates - Multi-format export (Markdown, HTML, PDF) Supported Project Types: web applications, mobile applications, CLI tools, libraries, ML projects. --- ## Implementation Guide ### Module Architecture Three capability areas: - Documentation Management: template-based generation, project type detection, multilingual support, SPEC integration, multi-format export - Language Initialization: automatic detection, configuration management, agent prompt localization, locale management - Template Optimization: complexity analysis, performance optimization, backup/recovery, benchmarking ### Core Workflows Three workflows: project initialization, documentation generation from SPEC, template performance optimization. Each follows a 3-step pattern (configure → execute → review results). See [core workflow walkthroughs](references/workflows.md) for detailed step-by-step procedures. ### Language and Localization Automatic Language Detection: analyzes file content, configuration files, system locale, and directory structure. Multilingual Documentation: language-specific directories (e.g., `docs/ko`, `docs/en`), language negotiation, automatic redirection. Agent Prompt Localization: language-specific instructions, cultural context, token cost optimization. See [language and localization detail](references/language-localization.md) for token cost analysis and locale configuration. ### Template Optimization Performance Analysis: file size, complexity, performance bottlenecks, optimization opportunities, resource usage, backup recommendations. Optimization Techniques: whitespace reduction, structure optimization, complexity reduction, performance caching. ### Configuration Management Integrated configuration covers project metadata, language settings + costs, documentation status, template optimization results, module initialization states. Language Settings: conversation_language (user-facing), agent_prompt_language (internal, often English for cost), documentation language (per language). Updates trigger configuration file modifications, documentation structure updates, template localization. See [configuration schema and language fields](references/configuration.md) for full field reference and supported language metadata. --- ## Advanced Implementation For advanced patterns (custom templates, performance caching, batch processing, integration workflows), see [references/reference.md](references/reference.md) and [references/examples.md](references/examples.md). --- ## Resources ### Performance Metrics | Operation | Typical Duration | |-----------|------------------| | Complete documentation generation | 2-5 seconds | | Language detection analysis | ~500 ms | | Template optimization | 10-30 seconds | | Configuration updates | ~100 ms | Memory: base ~50MB, large projects +10-50MB, optimization cache 5-20MB. File sizes: documentation 50-200KB per project, optimization backups match originals, configuration 5-10KB. --- ## Works Well With - moai-foundation-core: Core execution patterns and SPEC-driven workflows - moai-foundation-cc: Claude Code integration and configuration - moai-workflow-docs: Unified documentation management - moai-workflow-templates: Template optimization strategies - moai-library-nextra: Documentation architecture <!-- moai:evolvable-start id="rationalizations" --> ## Common Rationalizations | Rationalization | Reality | |---|---| | "project docs are a one-time setup, no need to keep them current" | Stale product.md and tech.md mislead every SPEC written against them. They are living documents. | | "structure.md will stay accurate since the codebase does not change much" | Every PR that adds a directory invalidates structure.md. Sync on every /moai project invocation. | | "I know the tech stack, I do not need tech.md" | tech.md is not for you. It is for every agent that consults the project context before acting. | | "codemaps take too long to generate" | codemaps are the only artifact that gives agents file-level awareness without reading every file. The cost pays for itself. | | "I will write project docs after the feature is done" | Post-hoc docs capture what was built, not what was intended. Pre-feature docs guide the build. | <!-- moai:evolvable-end --> <!-- moai:evolvable-start id="red-flags" --> ## Red Flags - product.md references features that do not exist in the codebase - tech.md lists a framework version that differs from the actual dependency file - structure.md missing directories that exist on disk - codemaps/ directory is empty or missing while the project has 10+ source files - /moai project last ran more than 30 days ago (check file modification dates) <!-- moai:evolvable-end --> <!-- moai:evolvable-start id="verification" --> ## Verification - [ ] product.md exists and describes the current product scope
Claude Code upstream change tracker -> moai-adk update plan + docs sync workflow (dev-only). Tracks new CC release notes, classifies changes by impact tier, cross-references official docs, generates update plan at .moai/research/ or .moai/specs/, and synchronizes docs-site 4-locale + README. NOT distributed to user projects.
GitHub Workflow - Manage issues and review PRs with Agent Teams (dev-only). NOT distributed to user projects.
MoAI-ADK production release via Enhanced GitHub Flow (CLAUDE.local.md §18). Creates release/vX.Y.Z branch, version bump, CHANGELOG (bilingual), PR to main, merge commit (NOT squash), then scripts/release.sh for tag + GoReleaser. Hotfix support via --hotfix flag. All git operations delegated to manager-git. Quality failures escalate to expert-debug. NOT distributed to user projects (dev-only).
Run the 7-phase /moai brain ideation workflow to convert ideas into validated proposals
Identify and safely remove dead code with test verification
Scan codebase and generate architecture documentation in codemaps/
Analyze test coverage, identify gaps, and generate missing tests
Hybrid design workflow — Claude Design import (path A) or code-based brand design (path B)