moai-adk 0.8.2__py3-none-any.whl → 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of moai-adk might be problematic. Click here for more details.
- moai_adk/core/config/migration.py +1 -1
- moai_adk/core/issue_creator.py +7 -3
- moai_adk/core/tags/__init__.py +23 -24
- moai_adk/core/tags/ci_validator.py +3 -5
- moai_adk/core/tags/cli.py +2 -2
- moai_adk/core/tags/pre_commit_validator.py +5 -5
- moai_adk/core/tags/reporter.py +3 -5
- moai_adk/core/tags/validator.py +3 -3
- moai_adk/templates/.claude/commands/alfred/1-plan.md +65 -15
- moai_adk/templates/.claude/commands/alfred/2-run.md +65 -15
- moai_adk/templates/.claude/commands/alfred/3-sync.md +68 -14
- moai_adk/templates/.claude/hooks/alfred/core/project.py +750 -0
- moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +1 -1
- moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +111 -33
- moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +3 -3
- moai_adk/templates/.moai/memory/gitflow-protection-policy.md +330 -0
- moai_adk/templates/README.md +256 -0
- {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/METADATA +347 -48
- {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/RECORD +22 -36
- moai_adk/templates/.claude/hooks/alfred/.moai/cache/version-check.json +0 -9
- moai_adk/templates/.claude/hooks/alfred/README.md +0 -343
- moai_adk/templates/.claude/hooks/alfred/TROUBLESHOOTING.md +0 -471
- moai_adk/templates/.github/workflows/tag-report.yml +0 -261
- moai_adk/templates/.github/workflows/tag-validation.yml +0 -176
- moai_adk/templates/.moai/docs/quick-issue-creation-guide.md +0 -219
- moai_adk/templates/.moai/hooks/install.sh +0 -79
- moai_adk/templates/.moai/hooks/pre-commit.sh +0 -66
- moai_adk/templates/.moai/memory/CONFIG-SCHEMA.md +0 -444
- moai_adk/templates/.moai/memory/GITFLOW-PROTECTION-POLICY.md +0 -220
- moai_adk/templates/src/moai_adk/core/__init__.py +0 -5
- moai_adk/templates/src/moai_adk/core/tags/__init__.py +0 -87
- moai_adk/templates/src/moai_adk/core/tags/ci_validator.py +0 -435
- moai_adk/templates/src/moai_adk/core/tags/cli.py +0 -283
- moai_adk/templates/src/moai_adk/core/tags/pre_commit_validator.py +0 -355
- moai_adk/templates/src/moai_adk/core/tags/reporter.py +0 -959
- moai_adk/templates/src/moai_adk/core/tags/validator.py +0 -897
- {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/WHEEL +0 -0
- {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.8.2.dist-info → moai_adk-0.9.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: moai-adk
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.9.0
|
|
4
4
|
Summary: MoAI Agentic Development Kit - SPEC-First TDD with Alfred SuperAgent & Complete Skills v2.0
|
|
5
5
|
Project-URL: Homepage, https://github.com/modu-ai/moai-adk
|
|
6
6
|
Project-URL: Repository, https://github.com/modu-ai/moai-adk
|
|
@@ -255,7 +255,7 @@ my-project/
|
|
|
255
255
|
│ │ ├── 1-plan.md # SPEC authoring
|
|
256
256
|
│ │ ├── 2-run.md # TDD implementation
|
|
257
257
|
│ │ └── 3-sync.md # Documentation sync
|
|
258
|
-
│ ├── skills/ #
|
|
258
|
+
│ ├── skills/ # 55+ Claude Skills
|
|
259
259
|
│ │ ├── moai-foundation-* # 6 Foundation tier
|
|
260
260
|
│ │ ├── moai-essentials-* # 4 Essentials tier
|
|
261
261
|
│ │ ├── moai-alfred-* # 7 Alfred tier
|
|
@@ -388,30 +388,70 @@ cat README.md
|
|
|
388
388
|
|
|
389
389
|
MoAI-ADK's AI coordination is powered by **Alfred**, the MoAI SuperAgent. Alfred's behavior and decision-making are guided by a set of **internal configuration documents** in the `.claude/` directory.
|
|
390
390
|
|
|
391
|
-
### 4-Document Structure
|
|
391
|
+
### 4-Document Structure (Progressive Disclosure Pattern)
|
|
392
392
|
|
|
393
|
-
When you run MoAI-ADK, Alfred loads configuration from **4 coordinated documents** (stored in your `.claude/` directory):
|
|
393
|
+
When you run MoAI-ADK, Alfred loads configuration from **4 coordinated documents** (stored in your `.claude/` directory). This layered approach follows **Progressive Disclosure** — each document adds context only when needed:
|
|
394
394
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
|
398
|
-
|
|
399
|
-
| **CLAUDE
|
|
400
|
-
|
|
395
|
+
#### Layer 1: Bootstrap (Always Loaded)
|
|
396
|
+
|
|
397
|
+
| Document | Size | Purpose | Single Responsibility |
|
|
398
|
+
|----------|------|---------|----------------------|
|
|
399
|
+
| **CLAUDE.md** | ~7kb | Alfred's identity, directives, project metadata, language settings | **Project-specific guidance** (your team's working playbook) |
|
|
400
|
+
|
|
401
|
+
#### Layers 2-4: Just-In-Time (JIT) Loading
|
|
402
|
+
|
|
403
|
+
| Document | Size | Purpose | Triggered When |
|
|
404
|
+
|----------|------|---------|----------------|
|
|
405
|
+
| **CLAUDE-AGENTS-GUIDE.md** | ~14kb | Sub-agent roster (19 members), Skills map (55 packs), selection criteria | Deciding which agent to invoke (e.g., `/alfred:2-run` → need tdd-implementer) |
|
|
406
|
+
| **CLAUDE-RULES.md** | ~17kb | Decision rules: Skill invocation, Interactive Questions, TAG validation, TRUST gates, commit templates | At decision points (e.g., "Should I ask user?", "Which Skill applies?") |
|
|
407
|
+
| **CLAUDE-PRACTICES.md** | ~8kb | Real-world workflows, context engineering (JIT retrieval), agent collaboration patterns, code examples | During implementation phase (e.g., executing `/alfred:2-run` RED→GREEN→REFACTOR) |
|
|
408
|
+
|
|
409
|
+
### How Progressive Disclosure Works
|
|
410
|
+
|
|
411
|
+
**Example: You run `/alfred:2-run AUTH-001`**
|
|
412
|
+
|
|
413
|
+
```
|
|
414
|
+
Session Start
|
|
415
|
+
↓ Load CLAUDE.md (7kb)
|
|
416
|
+
├─ Alfred knows: project context, language settings, core directives
|
|
417
|
+
↓ User invokes /alfred:2-run
|
|
418
|
+
├─ Load CLAUDE-AGENTS-GUIDE.md (14kb)
|
|
419
|
+
├─ Alfred decides: "I need tdd-implementer agent"
|
|
420
|
+
├─ Load CLAUDE-RULES.md (17kb)
|
|
421
|
+
├─ Alfred checks: "TDD rules? TEST before CODE? TRUST gates?"
|
|
422
|
+
├─ Load CLAUDE-PRACTICES.md (8kb)
|
|
423
|
+
├─ Alfred references: "RED → GREEN → REFACTOR pattern"
|
|
424
|
+
↓ Implementation complete
|
|
425
|
+
└─ Context cleaned up (only CLAUDE.md remains for next task)
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
**Result**:
|
|
429
|
+
- ✅ Session boots fast (only 7kb initial load)
|
|
430
|
+
- ✅ Context stays clean (7kb → 7kb+14kb → 7kb+14kb+17kb as needed)
|
|
431
|
+
- ✅ Each document has single responsibility (easier to maintain)
|
|
432
|
+
- ✅ Developers know exactly where to find/modify specific guidance
|
|
401
433
|
|
|
402
434
|
### Why This Structure Matters
|
|
403
435
|
|
|
404
|
-
**For Developers**:
|
|
436
|
+
**For Developers**:
|
|
437
|
+
1. **CLAUDE.md**: Your project's working guide (language, settings, directives)
|
|
438
|
+
2. **CLAUDE-AGENTS-GUIDE.md**: "Who does what?" (agent selection logic)
|
|
439
|
+
3. **CLAUDE-RULES.md**: "How do we decide?" (decision frameworks, gates)
|
|
440
|
+
4. **CLAUDE-PRACTICES.md**: "Real examples" (practical patterns to follow)
|
|
405
441
|
|
|
406
|
-
|
|
407
|
-
-
|
|
408
|
-
-
|
|
442
|
+
Understanding this helps you:
|
|
443
|
+
- Write clearer SPEC requirements that Alfred understands
|
|
444
|
+
- Know which agent/Skill executes your request
|
|
445
|
+
- Predict where Alfred might ask questions or apply TRUST verification
|
|
409
446
|
|
|
410
|
-
**For AI
|
|
447
|
+
**For AI (Context Efficiency)**:
|
|
448
|
+
- **Phase 1** (Session Start): Minimal context footprint (7kb)
|
|
449
|
+
- **Phase 2** (Planning): Load agent selection guide (total ~21kb)
|
|
450
|
+
- **Phase 3** (Implementation): Load decision rules (~38kb)
|
|
451
|
+
- **Phase 4** (Execution): Load practical patterns (~46kb)
|
|
452
|
+
- **Between Tasks**: Unload unnecessary layers, keep CLAUDE.md active
|
|
411
453
|
|
|
412
|
-
|
|
413
|
-
- **On-Demand**: Load CLAUDE-AGENTS-GUIDE.md, CLAUDE-RULES.md, CLAUDE-PRACTICES.md only when needed
|
|
414
|
-
- **Result**: Faster session boot, cleaner context, clear decision logic
|
|
454
|
+
📚 **Learn More**: `.claude/CLAUDE.md` | `.claude/CLAUDE-AGENTS-GUIDE.md` | `.claude/CLAUDE-RULES.md` | `.claude/CLAUDE-PRACTICES.md`
|
|
415
455
|
|
|
416
456
|
### Example: What Happens When You Run `/alfred:2-run`
|
|
417
457
|
|
|
@@ -617,7 +657,7 @@ uv tool update
|
|
|
617
657
|
|
|
618
658
|
```bash
|
|
619
659
|
# Reinstall specific version (e.g., 0.4.2)
|
|
620
|
-
uv tool install moai-adk
|
|
660
|
+
uv tool install moai-adk
|
|
621
661
|
```
|
|
622
662
|
|
|
623
663
|
### Verify After Update
|
|
@@ -873,19 +913,109 @@ moai-adk update --check
|
|
|
873
913
|
|
|
874
914
|
## Core Workflow (0 → 3)
|
|
875
915
|
|
|
876
|
-
Alfred iteratively develops projects with four commands.
|
|
916
|
+
Alfred iteratively develops projects with four commands, guided by the **4-Step Workflow Logic** for every user request.
|
|
877
917
|
|
|
878
918
|
```mermaid
|
|
879
919
|
%%{init: {'theme':'neutral'}}%%
|
|
880
920
|
graph TD
|
|
881
|
-
Start([User Request]) -->
|
|
882
|
-
|
|
883
|
-
Plan -->
|
|
921
|
+
Start([User Request]) --> Intent[Step 1: Intent Understanding<br/>Clarify ambiguity if needed]
|
|
922
|
+
Intent --> Plan[Step 2: Plan Creation<br/>Decompose tasks + identify order]
|
|
923
|
+
Plan --> Execute[Step 3: Task Execution<br/>TodoWrite: pending → in_progress → completed]
|
|
924
|
+
Execute --> Report[Step 4: Report & Commit<br/>Document decisions + create git commits]
|
|
925
|
+
Report --> Init[0. Init<br/>/alfred:0-project]
|
|
926
|
+
Init --> PlanPhase[1. Plan & SPEC<br/>/alfred:1-plan]
|
|
927
|
+
PlanPhase --> Run[2. Run & TDD<br/>/alfred:2-run]
|
|
884
928
|
Run --> Sync[3. Sync & Docs<br/>/alfred:3-sync]
|
|
885
|
-
Sync -->
|
|
929
|
+
Sync --> PlanPhase
|
|
886
930
|
Sync -.-> End([Release])
|
|
887
931
|
```
|
|
888
932
|
|
|
933
|
+
### Alfred's 4-Step Workflow Logic
|
|
934
|
+
|
|
935
|
+
Every user request follows this systematic process:
|
|
936
|
+
|
|
937
|
+
#### Step 1: Intent Understanding
|
|
938
|
+
- **Goal**: Clarify user intent before any action
|
|
939
|
+
- **Action**: Evaluate request clarity
|
|
940
|
+
- **HIGH clarity**: Technical stack, requirements, scope all specified → Skip to Step 2
|
|
941
|
+
- **MEDIUM/LOW clarity**: Multiple interpretations possible → Invoke `AskUserQuestion`
|
|
942
|
+
- **Outcome**: Clear, unambiguous intent confirmed with user
|
|
943
|
+
|
|
944
|
+
#### Step 2: Plan Creation
|
|
945
|
+
- **Goal**: Analyze tasks and identify execution strategy
|
|
946
|
+
- **Action**: Invoke Plan Agent to:
|
|
947
|
+
- Decompose tasks into structured steps
|
|
948
|
+
- Identify dependencies between tasks
|
|
949
|
+
- Determine single vs parallel execution opportunities
|
|
950
|
+
- Estimate work scope and files affected
|
|
951
|
+
- **Outcome**: Structured task breakdown for TodoWrite initialization
|
|
952
|
+
|
|
953
|
+
#### Step 3: Task Execution
|
|
954
|
+
- **Goal**: Execute tasks with transparent progress tracking
|
|
955
|
+
- **Action**:
|
|
956
|
+
1. Initialize TodoWrite with all pending tasks
|
|
957
|
+
2. For each task:
|
|
958
|
+
- Update status: pending → **in_progress** (exactly ONE at a time)
|
|
959
|
+
- Execute task (call appropriate sub-agent or tool)
|
|
960
|
+
- Update status: in_progress → **completed** (immediately after)
|
|
961
|
+
3. Handle blockers: Keep task in_progress, create new blocking task
|
|
962
|
+
- **Outcome**: All tasks completed with verified progress
|
|
963
|
+
|
|
964
|
+
#### Step 4: Report & Commit
|
|
965
|
+
- **Goal**: Document work and create git history
|
|
966
|
+
- **Action**:
|
|
967
|
+
- **Report Generation**: ONLY if user explicitly requested
|
|
968
|
+
- ❌ Prohibited: Auto-generate reports without request
|
|
969
|
+
- ✅ Allowed: `.moai/docs/`, `.moai/reports/`, `.moai/specs/`
|
|
970
|
+
- **Git Commit**: ALWAYS create commits
|
|
971
|
+
- Call git-manager for all Git operations
|
|
972
|
+
- TDD commits: RED → GREEN → REFACTOR → DOCS
|
|
973
|
+
- Include Alfred co-authorship
|
|
974
|
+
- **Outcome**: Complete audit trail with documented decisions
|
|
975
|
+
|
|
976
|
+
### How 4-Step Workflow Maps to Phase 0-3 Commands
|
|
977
|
+
|
|
978
|
+
The **4-Step Workflow Logic** is universal and applies to **every command execution**. Here's how it manifests in each Phase:
|
|
979
|
+
|
|
980
|
+
#### Phase 0: Project Initialization (`/alfred:0-project`)
|
|
981
|
+
```
|
|
982
|
+
Step 1: Intent → Clarify project needs (language, framework, team structure)
|
|
983
|
+
Step 2: Plan → Design `.moai/` structure, detect tech stack
|
|
984
|
+
Step 3: Run → Initialize config, deploy Skills, set up project template
|
|
985
|
+
Step 4: Report → Create product/structure/tech.md documentation
|
|
986
|
+
```
|
|
987
|
+
|
|
988
|
+
#### Phase 1: Planning (`/alfred:1-plan <description>`)
|
|
989
|
+
```
|
|
990
|
+
Step 1: Intent → Parse requirements, clarify SPEC scope
|
|
991
|
+
Step 2: Plan → Decompose into EARS statements, identify acceptance criteria
|
|
992
|
+
Step 3: Run → Write SPEC document, create Plan Board, generate GitHub Issue
|
|
993
|
+
Step 4: Report → Create feature branch, commit SPEC with TAG
|
|
994
|
+
```
|
|
995
|
+
|
|
996
|
+
#### Phase 2: TDD Implementation (`/alfred:2-run <SPEC-ID>`)
|
|
997
|
+
```
|
|
998
|
+
Step 1: Intent → Understand SPEC requirements and test strategy
|
|
999
|
+
Step 2: Plan → Decompose SPEC into 3-step TDD cycle (RED/GREEN/REFACTOR)
|
|
1000
|
+
Step 3: Run → Execute TDD: 🔴 RED test → 🟢 GREEN implementation → ♻️ REFACTOR quality
|
|
1001
|
+
Step 4: Report → Verify TRUST 5 gates, commit code with @TEST/@CODE TAGs
|
|
1002
|
+
```
|
|
1003
|
+
|
|
1004
|
+
#### Phase 3: Sync & Docs (`/alfred:3-sync`)
|
|
1005
|
+
```
|
|
1006
|
+
Step 1: Intent → Understand what documentation needs synchronization
|
|
1007
|
+
Step 2: Plan → Identify TAG chains, detect orphans, plan doc updates
|
|
1008
|
+
Step 3: Run → Sync docs, validate TAGs, update README/CHANGELOG
|
|
1009
|
+
Step 4: Report → Create sync report, auto-close SPEC Issues, ready PR for merge
|
|
1010
|
+
```
|
|
1011
|
+
|
|
1012
|
+
**Key Insight**: Each command (0, 1, 2, 3) follows the same **4-Step Logic**. This ensures:
|
|
1013
|
+
- ✅ Consistent decision-making across all phases
|
|
1014
|
+
- ✅ Clear progression: understand → plan → execute → document
|
|
1015
|
+
- ✅ Predictable workflow that teams can rely on
|
|
1016
|
+
|
|
1017
|
+
---
|
|
1018
|
+
|
|
889
1019
|
### 0. INIT — Project Preparation
|
|
890
1020
|
|
|
891
1021
|
- Questions about project introduction, target, language, mode (locale)
|
|
@@ -910,18 +1040,19 @@ graph TD
|
|
|
910
1040
|
- Sync Living Document, README, CHANGELOG, etc.
|
|
911
1041
|
- Validate TAG chain and recover orphan TAGs
|
|
912
1042
|
- Generate Sync Report, transition Draft → Ready for Review, support `--auto-merge` option
|
|
1043
|
+
- **Auto-close related SPEC Issues** (Closes #XX reference in commit message)
|
|
913
1044
|
|
|
914
1045
|
---
|
|
915
1046
|
|
|
916
1047
|
## Command Cheat Sheet
|
|
917
1048
|
|
|
918
|
-
| Command
|
|
919
|
-
|
|
920
|
-
| `/alfred:0-project`
|
|
921
|
-
| `/alfred:1-plan <
|
|
922
|
-
| `/alfred:2-run <
|
|
923
|
-
| `/alfred:3-sync`
|
|
924
|
-
| `/alfred:9-feedback` |
|
|
1049
|
+
| Command | What It Does | Key Outputs |
|
|
1050
|
+
|---------|-------------|------------|
|
|
1051
|
+
| `/alfred:0-project` | **Initialize project**: gather metadata, detect tech stack, deploy 55 Claude Skills, set up `.moai/` directory | `.moai/config.json`, `.moai/project/*`, `product/structure/tech.md` |
|
|
1052
|
+
| `/alfred:1-plan <desc>` | **Write SPEC** in EARS format, create Plan Board, auto-generate acceptance criteria, create feature branch | `.moai/specs/SPEC-*/spec.md`, plan board, acceptance criteria, GitHub Issue |
|
|
1053
|
+
| `/alfred:2-run <ID>` | **Execute TDD cycle**: 🔴 RED (failing test) → 🟢 GREEN (minimal implementation) → ♻️ REFACTOR (cleanup) → quality gates | `tests/`, `src/` with `@TEST:ID` and `@CODE:ID` tags, test report |
|
|
1054
|
+
| `/alfred:3-sync` | **Synchronize Living Docs**: sync README, docs, CHANGELOG; validate TAG chains; auto-close SPEC Issues on PR merge | `docs/`, `.moai/reports/`, `@DOC:ID` tags, Issue closed |
|
|
1055
|
+
| `/alfred:9-feedback` | **Create GitHub Issues** interactively (workflow: issue type → title → description → priority/labels) | GitHub Issue with proper labels, priority, auto-assignable |
|
|
925
1056
|
|
|
926
1057
|
> ❗ All commands maintain **Phase 0 (optional) → Phase 1 → Phase 2 → Phase 3** cycle structure. Alfred automatically reports execution status and next-step suggestions.
|
|
927
1058
|
>
|
|
@@ -943,6 +1074,69 @@ When you create a SPEC document using `/alfred:1-plan` and push it to a feature
|
|
|
943
1074
|
4. **PR Comment** is added with a link to the created issue
|
|
944
1075
|
5. **Labels** are automatically applied based on priority (critical, high, medium, low)
|
|
945
1076
|
|
|
1077
|
+
### Automatic Issue Closure & Lifecycle Synchronization
|
|
1078
|
+
|
|
1079
|
+
When you complete implementation and run `/alfred:3-sync`, the system manages the complete SPEC-to-Issue lifecycle:
|
|
1080
|
+
|
|
1081
|
+
#### Issue Lifecycle Stages
|
|
1082
|
+
|
|
1083
|
+
| Stage | SPEC Status | GitHub Issue Status | Action |
|
|
1084
|
+
|-------|------------|-------------------|--------|
|
|
1085
|
+
| **1. Creation** | `draft` | `open` + `spec` label | SPEC created, Issue auto-created |
|
|
1086
|
+
| **2. Review** | `in-review` | `open` + `planning` label | Awaiting SPEC approval |
|
|
1087
|
+
| **3. Implementation** | `in-progress` | `open` + `in_progress` label | `/alfred:2-run` execution |
|
|
1088
|
+
| **4. Completion** | `completed` | Closing... | `/alfred:3-sync` adds `Closes #XX` |
|
|
1089
|
+
| **5. Release** | `stable` | `closed` ✅ | PR merges → Issue auto-closes |
|
|
1090
|
+
|
|
1091
|
+
#### Auto-Close Workflow Detail
|
|
1092
|
+
|
|
1093
|
+
When you run `/alfred:3-sync` to finalize implementation:
|
|
1094
|
+
|
|
1095
|
+
1. **SPEC Issue Detection**: System scans SPEC document for GitHub Issue number
|
|
1096
|
+
2. **Status Validation**: Confirms SPEC status is `completed` or `stable`
|
|
1097
|
+
3. **Closes Reference Generation**: Automatically generates `Closes #XX` in commit message
|
|
1098
|
+
4. **Smart Linking**: Issues PR to SPEC Issue with correlation
|
|
1099
|
+
5. **Auto-Close on Merge**: When PR merges to main branch:
|
|
1100
|
+
- GitHub reads `Closes #XX` reference in commit message
|
|
1101
|
+
- Automatically transitions Issue to `closed` status
|
|
1102
|
+
- SPEC Issue and GitHub Issue statuses now match
|
|
1103
|
+
|
|
1104
|
+
**Complete Example Workflow:**
|
|
1105
|
+
```
|
|
1106
|
+
Day 1: Create SPEC
|
|
1107
|
+
├─ /alfred:1-plan "User Authentication"
|
|
1108
|
+
├─ SPEC-AUTH-001 created in .moai/specs/SPEC-AUTH-001/
|
|
1109
|
+
└─ GitHub Issue #45 auto-created (status: open)
|
|
1110
|
+
|
|
1111
|
+
Day 2: Implement Feature
|
|
1112
|
+
├─ /alfred:2-run AUTH-001
|
|
1113
|
+
├─ 🔴 RED: Add failing test @TEST:AUTH-001
|
|
1114
|
+
├─ 🟢 GREEN: Implement minimal solution @CODE:AUTH-001
|
|
1115
|
+
├─ ♻️ REFACTOR: Improve quality per TRUST 5
|
|
1116
|
+
├─ GitHub Issue #45 status: open, developer assignment active
|
|
1117
|
+
|
|
1118
|
+
Day 3: Finalize & Sync
|
|
1119
|
+
├─ /alfred:3-sync
|
|
1120
|
+
├─ SPEC status: draft → completed → stable
|
|
1121
|
+
├─ Commit message: "🔖 RELEASE: v0.8.3 ... Closes #45"
|
|
1122
|
+
├─ PR created with automatic Issue linking
|
|
1123
|
+
└─ PR merges to main → Issue #45 automatically closed ✅
|
|
1124
|
+
|
|
1125
|
+
Result:
|
|
1126
|
+
- ✅ SPEC-AUTH-001 fully implemented
|
|
1127
|
+
- ✅ All tests passing (85%+ coverage)
|
|
1128
|
+
- ✅ Documentation synchronized
|
|
1129
|
+
- ✅ GitHub Issue #45 closed
|
|
1130
|
+
- ✅ Complete audit trail via git history
|
|
1131
|
+
```
|
|
1132
|
+
|
|
1133
|
+
#### Benefits of Automatic Closure
|
|
1134
|
+
|
|
1135
|
+
- **Single Source of Truth**: SPEC document status always matches GitHub Issue status
|
|
1136
|
+
- **No Manual Updates**: No need to manually close issues (GitHub does it automatically)
|
|
1137
|
+
- **Traceable History**: Complete record in git commits shows SPEC→Issue→Close chain
|
|
1138
|
+
- **Team Coordination**: Everyone sees status via GitHub, no separate tracking system needed
|
|
1139
|
+
|
|
946
1140
|
### What Gets Synchronized
|
|
947
1141
|
|
|
948
1142
|
**From SPEC to GitHub Issue:**
|
|
@@ -1187,6 +1381,8 @@ MoAI-ADK consists of 5 key concepts. Each concept connects to the others, and to
|
|
|
1187
1381
|
- ✅ SPEC-based test cases (what to test is already defined)
|
|
1188
1382
|
- ✅ When requirements change, track all affected code with `@SPEC:ID` TAG
|
|
1189
1383
|
|
|
1384
|
+
📚 **Learn More**: `.moai/specs/` | [EARS Syntax Guide](./CLAUDE-RULES.md#ears-syntax) | [SPEC Examples](./CLAUDE-PRACTICES.md#spec-examples)
|
|
1385
|
+
|
|
1190
1386
|
---
|
|
1191
1387
|
|
|
1192
1388
|
### Key Concept 2: TDD (Test-Driven Development)
|
|
@@ -1223,6 +1419,8 @@ MoAI-ADK consists of 5 key concepts. Each concept connects to the others, and to
|
|
|
1223
1419
|
- ✅ Refactoring confidence (always verifiable with tests)
|
|
1224
1420
|
- ✅ Clear Git history (trace RED → GREEN → REFACTOR process)
|
|
1225
1421
|
|
|
1422
|
+
📚 **Learn More**: [TDD Workflow](./CLAUDE-PRACTICES.md#tdd-workflow) | [Test Examples](./CLAUDE-PRACTICES.md#test-examples) | [Quality Gates](./CLAUDE-RULES.md#trust-5-principles)
|
|
1423
|
+
|
|
1226
1424
|
---
|
|
1227
1425
|
|
|
1228
1426
|
### Key Concept 3: @TAG System
|
|
@@ -1249,6 +1447,36 @@ MoAI-ADK consists of 5 key concepts. Each concept connects to the others, and to
|
|
|
1249
1447
|
- USER-001, USER-002...
|
|
1250
1448
|
- Once assigned, **never change**
|
|
1251
1449
|
|
|
1450
|
+
**Advanced TAG Usage: Multi-Component TAGs**
|
|
1451
|
+
|
|
1452
|
+
For complex features with multiple components, use sub-tags:
|
|
1453
|
+
|
|
1454
|
+
```
|
|
1455
|
+
@SPEC:AUTH-001 (complete requirements)
|
|
1456
|
+
↓
|
|
1457
|
+
@TEST:AUTH-001 (test suite)
|
|
1458
|
+
├─ @TEST:AUTH-001:login (login flow tests)
|
|
1459
|
+
├─ @TEST:AUTH-001:token (token refresh tests)
|
|
1460
|
+
└─ @TEST:AUTH-001:session (session management tests)
|
|
1461
|
+
↓
|
|
1462
|
+
@CODE:AUTH-001 (implementation)
|
|
1463
|
+
├─ @CODE:AUTH-001:service (authentication service)
|
|
1464
|
+
├─ @CODE:AUTH-001:model (User/Token models)
|
|
1465
|
+
├─ @CODE:AUTH-001:middleware (auth middleware)
|
|
1466
|
+
└─ @CODE:AUTH-001:repository (database access layer)
|
|
1467
|
+
↓
|
|
1468
|
+
@DOC:AUTH-001 (documentation)
|
|
1469
|
+
├─ @DOC:AUTH-001:api (API documentation)
|
|
1470
|
+
└─ @DOC:AUTH-001:guide (integration guide)
|
|
1471
|
+
```
|
|
1472
|
+
|
|
1473
|
+
**Component TAG Rules**:
|
|
1474
|
+
- Format: `@TAG:ID` or `@TAG:ID:component`
|
|
1475
|
+
- Component names are optional but **highly recommended** for clarity
|
|
1476
|
+
- All components share the same ID (never change ID once assigned)
|
|
1477
|
+
- When querying: `rg '@TAG:AUTH-001' -n` finds all components
|
|
1478
|
+
- Helps organize large features without creating new IDs
|
|
1479
|
+
|
|
1252
1480
|
**How to Use?** When requirements change:
|
|
1253
1481
|
|
|
1254
1482
|
```bash
|
|
@@ -1267,6 +1495,8 @@ rg '@TAG:AUTH-001' -n
|
|
|
1267
1495
|
- ✅ Instantly identify all affected code during refactoring
|
|
1268
1496
|
- ✅ Code remains understandable 3 months later (trace TAG → SPEC)
|
|
1269
1497
|
|
|
1498
|
+
📚 **Learn More**: [TAG System Guide](./CLAUDE-RULES.md#tag-system) | [TAG Validation](./CLAUDE-PRACTICES.md#tag-validation) | [Orphan Detection](./CLAUDE-RULES.md#orphan-tag-detection)
|
|
1499
|
+
|
|
1270
1500
|
---
|
|
1271
1501
|
|
|
1272
1502
|
### Key Concept 4: TRUST 5 Principles
|
|
@@ -1312,6 +1542,8 @@ rg '@TAG:AUTH-001' -n
|
|
|
1312
1542
|
- ✅ Entire team develops with same standards
|
|
1313
1543
|
- ✅ Fewer bugs, prevent security vulnerabilities in advance
|
|
1314
1544
|
|
|
1545
|
+
📚 **Learn More**: [TRUST 5 Validation](./CLAUDE-RULES.md#trust-5-principles) | [Quality Gates](./CLAUDE-RULES.md#quality-gates) | [Security Best Practices](./CLAUDE-RULES.md#security-guidelines)
|
|
1546
|
+
|
|
1315
1547
|
---
|
|
1316
1548
|
|
|
1317
1549
|
### Key Concept 5: Alfred SuperAgent
|
|
@@ -1322,10 +1554,40 @@ rg '@TAG:AUTH-001' -n
|
|
|
1322
1554
|
|
|
1323
1555
|
**Agent Composition**:
|
|
1324
1556
|
|
|
1325
|
-
|
|
1326
|
-
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1557
|
+
#### 1. Alfred SuperAgent (1)
|
|
1558
|
+
- **🎩 Alfred**: Overall orchestration, workflow management, team coordination
|
|
1559
|
+
|
|
1560
|
+
#### 2. Core Sub-agents (10)
|
|
1561
|
+
Specialized experts handling SPEC → TDD → SYNC pipeline:
|
|
1562
|
+
|
|
1563
|
+
| Agent | Role | Responsibility |
|
|
1564
|
+
|-------|------|-----------------|
|
|
1565
|
+
| **📋 project-manager** | Project Initialization | Setup `.moai/` structure, tech stack detection, Skills deployment |
|
|
1566
|
+
| **🏗️ spec-builder** | SPEC Authoring | Write EARS-format specifications, acceptance criteria |
|
|
1567
|
+
| **💎 tdd-implementer** | TDD Implementation | RED → GREEN → REFACTOR cycle, test-first development |
|
|
1568
|
+
| **📖 doc-syncer** | Documentation Sync | Living docs, README sync, changelog management |
|
|
1569
|
+
| **🏷️ tag-agent** | TAG Validation | @TAG chain verification, orphan detection, traceability |
|
|
1570
|
+
| **🚀 git-manager** | Git Workflow | Branch management, commits, PR automation, releases |
|
|
1571
|
+
| **🔬 debug-helper** | Error Analysis | Stack trace parsing, error diagnosis, fix suggestions |
|
|
1572
|
+
| **✅ trust-checker** | TRUST Verification | Test coverage (85%+), code quality, security checks |
|
|
1573
|
+
| **🛠️ cc-manager** | Claude Code Config | Session settings, tool permissions, hook management |
|
|
1574
|
+
| **📊 implementation-planner** | Strategy Planning | Task decomposition, dependency analysis, parallelization |
|
|
1575
|
+
|
|
1576
|
+
#### 3. Specialist Sub-agents (6)
|
|
1577
|
+
Domain-specific experts:
|
|
1578
|
+
|
|
1579
|
+
- **Language Detection**: Auto-detect Python, TS, Go, Rust, Java from package config
|
|
1580
|
+
- **Skills Factory**: Research and integrate new Claude Skills
|
|
1581
|
+
- **Template Managers**: Project scaffolding, documentation templates
|
|
1582
|
+
- **Quality Gate**: Code review, linting, type checking orchestration
|
|
1583
|
+
- **Context Optimizer**: Memory management, JIT context loading
|
|
1584
|
+
- **Interactive Questions**: TUI-based user input for AskUserQuestion
|
|
1585
|
+
|
|
1586
|
+
#### 4. Built-in Claude Agents (2)
|
|
1587
|
+
General-purpose capabilities:
|
|
1588
|
+
|
|
1589
|
+
- **General Q&A**: Answer questions about coding, architecture, debugging
|
|
1590
|
+
- **Codebase Exploration**: Fast grep/glob searches, code pattern analysis
|
|
1329
1591
|
|
|
1330
1592
|
**55 Claude Skills**:
|
|
1331
1593
|
|
|
@@ -1868,7 +2130,7 @@ Hooks are **event-driven** scripts that trigger automatically at specific points
|
|
|
1868
2130
|
- Editing critical files (`CLAUDE.md`, `config.json`)
|
|
1869
2131
|
- Mass edits (10+ files at once via MultiEdit)
|
|
1870
2132
|
|
|
1871
|
-
**TAG Guard
|
|
2133
|
+
**TAG Guard**:
|
|
1872
2134
|
Automatically detects missing @TAG annotations in changed files:
|
|
1873
2135
|
|
|
1874
2136
|
- Scans staged, modified, and untracked files
|
|
@@ -1896,7 +2158,42 @@ Or when TAGs are missing:
|
|
|
1896
2158
|
|
|
1897
2159
|
**Why It Matters**: Prevents data loss from mistakes and ensures @TAG traceability. You can always restore from the checkpoint if something goes wrong.
|
|
1898
2160
|
|
|
1899
|
-
#### 3.
|
|
2161
|
+
#### 3. PostToolUse (After Tool Execution)
|
|
2162
|
+
|
|
2163
|
+
**Triggers**: After executing file edits, code changes, or MultiEdit operations
|
|
2164
|
+
**Purpose**: Automatically run tests to verify changes didn't break anything
|
|
2165
|
+
|
|
2166
|
+
**Auto-Test Execution**:
|
|
2167
|
+
|
|
2168
|
+
Supported Languages (9 total):
|
|
2169
|
+
- 🐍 **Python**: `pytest` with coverage report
|
|
2170
|
+
- 📘 **TypeScript/JavaScript**: `Vitest` or `Jest`
|
|
2171
|
+
- 🐹 **Go**: `go test` with `-v` flag
|
|
2172
|
+
- 🦀 **Rust**: `cargo test` with `--all`
|
|
2173
|
+
- ☕ **Java**: `JUnit` via Maven/Gradle
|
|
2174
|
+
- 🎯 **Kotlin**: `JUnit` with Gradle
|
|
2175
|
+
- 🍎 **Swift**: `XCTest` via Xcode
|
|
2176
|
+
- 🎨 **Dart**: `flutter test`
|
|
2177
|
+
|
|
2178
|
+
**What You See**:
|
|
2179
|
+
|
|
2180
|
+
```
|
|
2181
|
+
✅ Tests passed (47 passed in 2.3s)
|
|
2182
|
+
Coverage: 87% (improved from 84%)
|
|
2183
|
+
```
|
|
2184
|
+
|
|
2185
|
+
Or if tests fail:
|
|
2186
|
+
|
|
2187
|
+
```
|
|
2188
|
+
❌ Test failures detected
|
|
2189
|
+
├─ src/auth/service.test.ts:23
|
|
2190
|
+
│ Expected token.length > 0
|
|
2191
|
+
└─ Revert to previous version? (y/n)
|
|
2192
|
+
```
|
|
2193
|
+
|
|
2194
|
+
**Why It Matters**: Instant feedback on code quality. Catches breaking changes immediately before you commit.
|
|
2195
|
+
|
|
2196
|
+
#### 4. UserPromptSubmit (Prompt Input)
|
|
1900
2197
|
|
|
1901
2198
|
**Triggers**: When you submit a prompt to Claude
|
|
1902
2199
|
**Purpose**: JIT (Just-In-Time) context loading—automatically add relevant files
|
|
@@ -1910,7 +2207,7 @@ Or when TAGs are missing:
|
|
|
1910
2207
|
|
|
1911
2208
|
**Why It Matters**: Saves time and ensures Claude has all the relevant context for your request.
|
|
1912
2209
|
|
|
1913
|
-
####
|
|
2210
|
+
#### 5. SessionEnd (Session Cleanup)
|
|
1914
2211
|
|
|
1915
2212
|
**Triggers**: When you close your Claude Code session
|
|
1916
2213
|
**Purpose**: Cleanup tasks and state preservation
|
|
@@ -1999,15 +2296,17 @@ If you need to temporarily disable hooks, edit `.claude/settings.json`:
|
|
|
1999
2296
|
|
|
2000
2297
|
| Version | Key Features | Date |
|
|
2001
2298
|
| ----------- | ------------------------------------------------------------------------------------------------ | ---------- |
|
|
2299
|
+
| **v0.8.3** | 🔄 4-Step Workflow Logic (Intent → Plan → Execute → Report) + AI decision framework | 2025-10-30 |
|
|
2300
|
+
| **v0.8.2** | 📖 EARS terminology update: "Constraints" → "Unwanted Behaviors" for clarity | 2025-10-29 |
|
|
2301
|
+
| **v0.8.1** | 🔄 Command rename: `/alfred:9-help` → `/alfred:9-feedback` + User feedback workflow improvements | 2025-10-28 |
|
|
2302
|
+
| **v0.8.0** | 🏷️ @DOC TAG auto-generation system + SessionStart version check enhancement | 2025-10-27 |
|
|
2303
|
+
| **v0.7.0** | 🌍 Complete language localization system (English, Korean, Japanese, Chinese, Spanish) | 2025-10-26 |
|
|
2304
|
+
| **v0.6.3** | ⚡ 3-Stage update workflow: 70-80% performance improvement via parallel operations | 2025-10-25 |
|
|
2305
|
+
| **v0.6.0** | 🏗️ Major architecture refactor + Enhanced SPEC metadata structure (7 required + 9 optional) | 2025-10-24 |
|
|
2002
2306
|
| **v0.5.7** | 🎯 SPEC → GitHub Issue automation + CodeRabbit integration + Auto PR comments | 2025-10-27 |
|
|
2003
2307
|
| **v0.4.11** | ✨ TAG Guard system + CLAUDE.md formatting improvements + Code cleanup | 2025-10-23 |
|
|
2004
|
-
| **v0.4.10** | 🔧 Hook robustness improvements + Bilingual documentation + Template language config | 2025-10-23 |
|
|
2005
|
-
| **v0.4.9** | 🎯 Hook JSON schema validation fixes + Comprehensive tests (468/468 passing) | 2025-10-23 |
|
|
2006
|
-
| **v0.4.8** | 🚀 Release automation + PyPI deployment + Skills refinement | 2025-10-23 |
|
|
2007
|
-
| **v0.4.7** | 📖 Korean language optimization + SPEC-First principle documentation | 2025-10-22 |
|
|
2008
|
-
| **v0.4.6** | 🎉 Complete Skills v2.0 (100% Production-Ready) + 85,000 lines official docs + 300+ TDD examples | 2025-10-22 |
|
|
2009
2308
|
|
|
2010
|
-
> 📦 **Install Now**: `uv tool install moai-adk
|
|
2309
|
+
> 📦 **Install Now**: `uv tool install moai-adk` or `pip install moai-adk`
|
|
2011
2310
|
|
|
2012
2311
|
---
|
|
2013
2312
|
|
|
@@ -2015,7 +2314,7 @@ If you need to temporarily disable hooks, edit `.claude/settings.json`:
|
|
|
2015
2314
|
|
|
2016
2315
|
| Purpose | Resource |
|
|
2017
2316
|
| ------------------------- | --------------------------------------------------------------- |
|
|
2018
|
-
| Skills detailed structure | `.claude/skills/` directory (
|
|
2317
|
+
| Skills detailed structure | `.claude/skills/` directory (55+ Skills) |
|
|
2019
2318
|
| Sub-agent details | `.claude/agents/alfred/` directory (12 agents) |
|
|
2020
2319
|
| Workflow guide | `.claude/commands/alfred/` (4 commands: 0-project ~ 3-sync) |
|
|
2021
2320
|
| Documentation | Coming soon (see `.moai/`, `.claude/`, `docs/` in your project) |
|
|
@@ -2029,8 +2328,8 @@ If you need to temporarily disable hooks, edit `.claude/settings.json`:
|
|
|
2029
2328
|
| ------------------------ | -------------------------------------------------------- |
|
|
2030
2329
|
| **GitHub Repository** | https://github.com/modu-ai/moai-adk |
|
|
2031
2330
|
| **Issues & Discussions** | https://github.com/modu-ai/moai-adk/issues |
|
|
2032
|
-
| **PyPI Package** | https://pypi.org/project/moai-adk/
|
|
2033
|
-
| **Latest Release** | https://github.com/modu-ai/moai-adk/releases
|
|
2331
|
+
| **PyPI Package** | https://pypi.org/project/moai-adk/ |
|
|
2332
|
+
| **Latest Release** | https://github.com/modu-ai/moai-adk/releases |
|
|
2034
2333
|
| **Documentation** | See `.moai/`, `.claude/`, `docs/` within project |
|
|
2035
2334
|
|
|
2036
2335
|
---
|
|
@@ -2039,7 +2338,7 @@ If you need to temporarily disable hooks, edit `.claude/settings.json`:
|
|
|
2039
2338
|
|
|
2040
2339
|
> **"No CODE without SPEC"**
|
|
2041
2340
|
|
|
2042
|
-
MoAI-ADK is not simply a code generation tool. Alfred SuperAgent with its 19-member team and
|
|
2341
|
+
MoAI-ADK is not simply a code generation tool. Alfred SuperAgent with its 19-member team and 55+ Claude Skills together guarantee:
|
|
2043
2342
|
|
|
2044
2343
|
- ✅ **SPEC → TEST (TDD) → CODE → DOCS consistency**
|
|
2045
2344
|
- ✅ **Complete history tracking with @TAG system**
|