aiwf 0.1.0 → 0.3.1

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.
Files changed (163) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/CLAUDE.md +19 -0
  3. package/LICENSE +1 -1
  4. package/README.ko.md +90 -62
  5. package/README.md +109 -62
  6. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/01_PROJECT_DOCS/ARCHITECTURE.md +1 -1
  7. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/M01_Backend_Setup/M01_milestone_meta.md +5 -1
  8. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/M01_Backend_Setup/PRD_AMEND_01_Auth_Flow_Update.md +5 -1
  9. package/claude-code/{simone/.simone/03_SPRINTS/CLAUDE.MD → aiwf/en/.aiwf/03_SPRINTS/CLAUDE.md} +28 -7
  10. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/03_SPRINTS/S01_M01_Initial_API/S01_sprint_meta.md +8 -1
  11. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/03_SPRINTS/S01_M01_Initial_API/T01_S01_Setup_Project_Structure.md +5 -1
  12. package/claude-code/aiwf/en/.aiwf/04_GENERAL_TASKS/CLAUDE.md +96 -0
  13. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/04_GENERAL_TASKS/T002_API_Rate_Limiting.md +7 -2
  14. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/04_GENERAL_TASKS/TX001_Refactor_Logging_Module.md +7 -2
  15. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/05_ARCHITECTURAL_DECISIONS/ADR001_Chosen_Database_System.md +7 -1
  16. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/05_ARCHITECTURAL_DECISIONS/ADR002_API_Authentication_Method.md +7 -1
  17. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-needs-focus.md +139 -0
  18. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-test-alignment.md +155 -0
  19. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-13-00-50-solid-progress.md +122 -0
  20. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-14-08-30-infrastructure-challenges.md +141 -0
  21. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-16-21-48-critical-foundation-issues.md +177 -0
  22. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/2025-06-17-15-08-solid-progress.md +149 -0
  23. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/index.json +5 -0
  24. package/claude-code/aiwf/en/.aiwf/10_STATE_OF_PROJECT/sync-index.js +78 -0
  25. package/claude-code/aiwf/en/.aiwf/98_PROMPTS/github_integration.md +130 -0
  26. package/claude-code/aiwf/en/.aiwf/98_PROMPTS/useful-prompts.md +31 -0
  27. package/claude-code/aiwf/en/.aiwf/98_PROMPTS/vibe-front-prompts.md +89 -0
  28. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/task_template.md +1 -0
  29. package/claude-code/{simone/.simone/CLAUDE.MD → aiwf/en/.aiwf/CLAUDE.md} +13 -4
  30. package/claude-code/{simone/.simone → aiwf/en/.aiwf}/README.md +6 -6
  31. package/claude-code/aiwf/en/.claude/CLAUDE_BE.md +276 -0
  32. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_changelog.md +82 -0
  33. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_code_review.md +88 -0
  34. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_commit.md +160 -0
  35. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_general_task.md +147 -0
  36. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_milestone_plan.md +194 -0
  37. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_prd.md +272 -0
  38. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_sprint_tasks.md +189 -0
  39. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_create_sprints_from_milestone.md +121 -0
  40. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_discuss_review.md +29 -0
  41. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_do_task.md +109 -0
  42. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_docs.md +225 -0
  43. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_infinite.md +202 -0
  44. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_initialize.md +134 -0
  45. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_issue_create.md +65 -0
  46. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_language_manager.md +287 -0
  47. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_language_status.md +246 -0
  48. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_mermaid.md +272 -0
  49. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_pr_create.md +76 -0
  50. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_prime.md +9 -0
  51. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_project_review.md +261 -0
  52. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_switch_language.md +160 -0
  53. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_test.md +125 -0
  54. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_testing_review.md +198 -0
  55. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_tm-run-all-subtask.md +206 -0
  56. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_code_advanced.md +460 -0
  57. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_code_basic.md +165 -0
  58. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_ultrathink_general.md +362 -0
  59. package/claude-code/aiwf/en/.claude/commands/aiwf/aiwf_yolo.md +300 -0
  60. package/claude-code/aiwf/en/.claude/mcp.json +31 -0
  61. package/claude-code/aiwf/en/.claude/settings.json +102 -0
  62. package/claude-code/aiwf/ko/.aiwf/00_PROJECT_MANIFEST.md +49 -0
  63. package/claude-code/aiwf/ko/.aiwf/01_PROJECT_DOCS/ARCHITECTURE.md +55 -0
  64. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/CLAUDE.md +78 -0
  65. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/M01_milestone_meta.md +42 -0
  66. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/PRD_AMEND_01_Auth_Flow_Update.md +73 -0
  67. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/PRD_Backend_Setup.md +98 -0
  68. package/claude-code/aiwf/ko/.aiwf/02_REQUIREMENTS/M01_Backend_Setup/SPECS_API_V1.md +232 -0
  69. package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/CLAUDE.md +83 -0
  70. package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/S01_M01_Initial_API/S01_sprint_meta.md +49 -0
  71. package/claude-code/aiwf/ko/.aiwf/03_SPRINTS/S01_M01_Initial_API/T01_S01_Setup_Project_Structure.md +60 -0
  72. package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/CLAUDE.md +96 -0
  73. package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/T002_API_Rate_Limiting.md +54 -0
  74. package/claude-code/aiwf/ko/.aiwf/04_GENERAL_TASKS/TX001_Refactor_Logging_Module.md +58 -0
  75. package/claude-code/aiwf/ko/.aiwf/05_ARCHITECTURAL_DECISIONS/ADR001_Chosen_Database_System.md +119 -0
  76. package/claude-code/aiwf/ko/.aiwf/05_ARCHITECTURAL_DECISIONS/ADR002_API_Authentication_Method.md +124 -0
  77. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-needs-focus.md +139 -0
  78. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-12-12-00-test-alignment.md +155 -0
  79. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-13-00-50-solid-progress.md +122 -0
  80. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-14-08-30-infrastructure-challenges.md +141 -0
  81. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-16-21-48-critical-foundation-issues.md +177 -0
  82. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/2025-06-17-15-08-solid-progress.md +149 -0
  83. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/index.json +5 -0
  84. package/claude-code/aiwf/ko/.aiwf/10_STATE_OF_PROJECT/sync-index.js +78 -0
  85. package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/github_integration.md +130 -0
  86. package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/useful-prompts.md +31 -0
  87. package/claude-code/aiwf/ko/.aiwf/98_PROMPTS/vibe-front-prompts.md +89 -0
  88. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/adr_template.md +49 -0
  89. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/milestone_meta_template.md +25 -0
  90. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/project_manifest_template.md +39 -0
  91. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/sprint_meta_template.md +23 -0
  92. package/claude-code/aiwf/ko/.aiwf/99_TEMPLATES/task_template.md +36 -0
  93. package/claude-code/aiwf/ko/.aiwf/CLAUDE.md +76 -0
  94. package/claude-code/aiwf/ko/.aiwf/README.md +97 -0
  95. package/claude-code/aiwf/ko/.claude/CLAUDE_BE.md +276 -0
  96. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_changelog.md +82 -0
  97. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_code_review.md +88 -0
  98. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_commit.md +160 -0
  99. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_general_task.md +147 -0
  100. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_milestone_plan.md +194 -0
  101. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_prd.md +280 -0
  102. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_sprint_tasks.md +189 -0
  103. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_create_sprints_from_milestone.md +121 -0
  104. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_discuss_review.md +29 -0
  105. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_do_task.md +109 -0
  106. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_docs.md +225 -0
  107. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_infinite.md +202 -0
  108. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_initialize.md +134 -0
  109. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_issue_create.md +65 -0
  110. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_language_manager.md +287 -0
  111. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_language_status.md +246 -0
  112. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_mermaid.md +272 -0
  113. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_pr_create.md +76 -0
  114. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_prime.md +9 -0
  115. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_project_review.md +261 -0
  116. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_switch_language.md +160 -0
  117. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_test.md +124 -0
  118. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_testing_review.md +198 -0
  119. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_tm-run-all-subtask.md +210 -0
  120. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_code_advanced.md +460 -0
  121. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_code_basic.md +165 -0
  122. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_ultrathink_general.md +305 -0
  123. package/claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_yolo.md +300 -0
  124. package/claude-code/aiwf/ko/.claude/mcp.json +31 -0
  125. package/claude-code/aiwf/ko/.claude/settings.json +102 -0
  126. package/{AI-WORKFLOW.md → docs/AI-WORKFLOW.ko.md} +38 -24
  127. package/docs/AI-WORKFLOW.md +299 -0
  128. package/docs/COMMANDS_GUIDE.ko.md +727 -0
  129. package/docs/COMMANDS_GUIDE.md +726 -0
  130. package/docs/CONTRIBUTING.md +406 -0
  131. package/docs/DEVELOPMENT_GUIDE.md +727 -0
  132. package/docs/Enhanced_Installation_Flow_Design.md +498 -0
  133. package/docs/PRD.ko.md +148 -0
  134. package/docs/PRD.md +150 -0
  135. package/docs/moonklabs-metadata-system-prd.md +127 -0
  136. package/index.js +1493 -122
  137. package/jest.config.js +4 -0
  138. package/language-cli.js +279 -0
  139. package/language-utils.js +330 -0
  140. package/package.json +23 -10
  141. package/scripts/validate-commands.cjs +338 -0
  142. package/scripts/validate-commands.js +254 -0
  143. package/tests/basic.test.js +62 -0
  144. package/tests/commands.test.js +127 -0
  145. package/tests/installer.test.js +129 -0
  146. package/tests/language-utils.test.js +271 -0
  147. package/COMMANDS_GUIDE.md +0 -462
  148. package/PRD.ko.md +0 -96
  149. package/PRD.md +0 -98
  150. package/claude-code/simone/.simone/04_GENERAL_TASKS/CLAUDE.MD +0 -51
  151. package/claude-code/simone/CHANGELOG.md +0 -71
  152. package/claude-code/simone/LICENSE +0 -21
  153. package/claude-code/simone/README.md +0 -219
  154. package/claude-code/simone/SYNC_GUIDE.md +0 -172
  155. package/claude-code/simone/sync-simone.sh +0 -138
  156. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/00_PROJECT_MANIFEST.md +0 -0
  157. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/CLAUDE.md +0 -0
  158. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/M01_Backend_Setup/PRD_Backend_Setup.md +0 -0
  159. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/02_REQUIREMENTS/M01_Backend_Setup/SPECS_API_V1.md +0 -0
  160. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/adr_template.md +0 -0
  161. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/milestone_meta_template.md +0 -0
  162. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/project_manifest_template.md +0 -0
  163. /package/claude-code/{simone/.simone → aiwf/en/.aiwf}/99_TEMPLATES/sprint_meta_template.md +0 -0
@@ -0,0 +1,160 @@
1
+ # AIWF Language Switch
2
+
3
+ A command that allows users to change the language settings of the AIWF framework.
4
+
5
+ ## Usage
6
+
7
+ This command is used in the following cases:
8
+ - When you want to change the current language setting to another language
9
+ - When you want to check the current language setting status
10
+ - When you want to resolve language detection issues
11
+
12
+ ## Parameters
13
+
14
+ - `<language_code>` (optional): Language to switch to (`ko` or `en`)
15
+ - Running without parameters displays the current language status
16
+
17
+ ## Execution Steps
18
+
19
+ ### 1. Check Current Language Status
20
+
21
+ First, check the current language configuration status:
22
+
23
+ ```bash
24
+ node -e "
25
+ import('./language-utils.js').then(async ({ getLanguageStatus }) => {
26
+ const status = await getLanguageStatus();
27
+ console.log('=== AIWF Language Settings Status ===');
28
+ console.log('Detected language:', status.detectedLanguage);
29
+ console.log('Configured language:', status.configuredLanguage || 'None');
30
+ console.log('Effective language:', status.effectiveLanguage);
31
+ console.log('Auto detection:', status.autoDetect ? 'Enabled' : 'Disabled');
32
+ console.log('Fallback language:', status.fallbackLanguage);
33
+ console.log('Config file path:', status.configPath);
34
+ if (status.error) console.log('Error:', status.error);
35
+ });
36
+ "
37
+ ```
38
+
39
+ ### 2. Argument Analysis
40
+
41
+ Check the `<$ARGUMENTS>` value and perform one of the following:
42
+
43
+ - **No arguments**: Display current status only and exit
44
+ - **Valid language code (`ko` or `en`)**: Switch to that language
45
+ - **Invalid argument**: Display error message and usage guide
46
+
47
+ ### 3. Execute Language Switch
48
+
49
+ If a valid language code is provided, switch the language:
50
+
51
+ ```bash
52
+ node -e "
53
+ import('./language-utils.js').then(async ({ switchLanguage }) => {
54
+ const targetLanguage = process.argv[1];
55
+ const result = await switchLanguage(targetLanguage);
56
+
57
+ if (result.success) {
58
+ console.log('✅ Language switch successful!');
59
+ console.log('Previous language:', result.previousLanguage);
60
+ console.log('New language:', result.newLanguage);
61
+ console.log('Message:', result.message);
62
+ } else {
63
+ console.error('❌ Language switch failed:', result.error);
64
+ console.log('Message:', result.message);
65
+ }
66
+ });
67
+ " -- $ARGUMENTS
68
+ ```
69
+
70
+ ### 4. Post-Switch Validation
71
+
72
+ Verify that the settings are properly applied after the language switch:
73
+
74
+ ```bash
75
+ node -e "
76
+ import('./language-utils.js').then(async ({ getLanguageStatus }) => {
77
+ const status = await getLanguageStatus();
78
+ console.log('\n=== Post-Switch Language Settings Status ===');
79
+ console.log('Current language:', status.effectiveLanguage);
80
+ console.log('Config file:', status.configuredLanguage ? 'Saved' : 'None');
81
+ });
82
+ "
83
+ ```
84
+
85
+ ### 5. Command Path Testing
86
+
87
+ Test if command paths are properly resolved with the new language:
88
+
89
+ ```bash
90
+ node -e "
91
+ import('./language-utils.js').then(async ({ resolveCommandPath, detectLanguage }) => {
92
+ const currentLang = await detectLanguage();
93
+ const testCommands = ['aiwf_do_task', 'aiwf_commit', 'aiwf_initialize'];
94
+
95
+ console.log('\n=== Command Path Testing ===');
96
+ console.log('Current language:', currentLang);
97
+
98
+ for (const cmd of testCommands) {
99
+ const result = await resolveCommandPath(cmd);
100
+ if (result.path) {
101
+ console.log('✅', cmd, '->', result.path, result.fallback ? '(fallback)' : '(direct)');
102
+ } else {
103
+ console.log('❌', cmd, '-> Not found:', result.error);
104
+ }
105
+ }
106
+ });
107
+ "
108
+ ```
109
+
110
+ ## Output Format
111
+
112
+ ### Successful Language Switch
113
+ ```
114
+ ✅ Language switch successful!
115
+ Previous language: en
116
+ New language: ko
117
+ Message: Language changed successfully
118
+
119
+ === Post-Switch Language Settings Status ===
120
+ Current language: ko
121
+ Config file: Saved
122
+
123
+ === Command Path Testing ===
124
+ Current language: ko
125
+ ✅ aiwf_do_task -> claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_do_task.md (direct)
126
+ ✅ aiwf_commit -> claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_commit.md (direct)
127
+ ✅ aiwf_initialize -> claude-code/aiwf/ko/.claude/commands/aiwf/aiwf_initialize.md (direct)
128
+ ```
129
+
130
+ ### Status Check Only
131
+ ```
132
+ === AIWF Language Settings Status ===
133
+ Detected language: ko
134
+ Configured language: ko
135
+ Effective language: ko
136
+ Auto detection: Enabled
137
+ Fallback language: en
138
+ Config file path: .aiwf/config/language.json
139
+ ```
140
+
141
+ ### Error Occurred
142
+ ```
143
+ ❌ Language switch failed: Language not supported
144
+ Message: Failed to change language
145
+
146
+ Usage: /project:aiwf:switch_language [ko|en]
147
+ Supported languages: ko (Korean), en (English)
148
+ ```
149
+
150
+ ## Important Notes
151
+
152
+ 1. **Config File Permissions**: Write permissions are required for the `.aiwf/config/` directory
153
+ 2. **Command File Existence**: Command files for the target language must exist
154
+ 3. **Project Root**: Can only be used in projects where AIWF has been initialized
155
+
156
+ ## Related Commands
157
+
158
+ - `/project:aiwf:initialize` - Initialize AIWF project
159
+ - `/project:aiwf:update_docs` - Update documentation (language-specific)
160
+ - `/project:aiwf:help` - Help (displayed in current language)
@@ -0,0 +1,125 @@
1
+ # Test Execution and Common Issue Resolution
2
+
3
+ Follow these instructions from top to bottom.
4
+
5
+ ## Create a TODO with EXACTLY these 4 items
6
+
7
+ 1. Execute test suite
8
+ 2. Analyze results and identify issues
9
+ 3. Fix common problems if found
10
+ 4. Provide test summary
11
+
12
+ ---
13
+
14
+ ## 1 · Execute test suite
15
+
16
+ ### First, detect the project's test runner:
17
+
18
+ 1. **Python projects:**
19
+
20
+ - If `pyproject.toml` exists with `[tool.poetry]`: Try `poetry run pytest`
21
+ - If `setup.py` or `requirements.txt`: Try `pytest` or `python -m pytest`
22
+ - If custom test script exists (e.g., `run_tests.py`, `run_dev.py`): Use that
23
+ - Add common flags: `--tb=short` for pytest
24
+
25
+ 2. **JavaScript/TypeScript projects:**
26
+
27
+ - If `package.json` exists: Check "scripts" section for "test" command
28
+ - Common: `npm test`, `npm run test`, `yarn test`, `pnpm test`
29
+ - Framework specific: `jest`, `vitest`, `mocha`
30
+
31
+ 3. **Other languages:**
32
+ - Rust: `cargo test`
33
+ - Go: `go test ./...`
34
+ - Java: `mvn test` or `gradle test`
35
+ - Ruby: `bundle exec rspec` or `rake test`
36
+ - PHP: `composer test` or `phpunit`
37
+
38
+ ### Execute the detected test command:
39
+
40
+ - RUN the appropriate test command
41
+ - CAPTURE full output including any errors
42
+ - NOTE execution time and test counts
43
+
44
+ **If no test runner is found:** Report this to the user and ask for the correct test command.
45
+
46
+ ## 2 · Analyze results and identify issues
47
+
48
+ Check for common issues in this order:
49
+
50
+ ### Language-specific issues:
51
+
52
+ **Python:**
53
+
54
+ - Missing **init**.py files (import errors, tests not discovered)
55
+ - Import path problems
56
+ - Fixture issues (pytest)
57
+ - Virtual environment problems
58
+
59
+ **JavaScript/TypeScript:**
60
+
61
+ - Module resolution errors
62
+ - Missing dependencies in node_modules
63
+ - Jest/Vitest configuration issues
64
+ - TypeScript compilation errors
65
+
66
+ **Common across languages:**
67
+
68
+ - Environment variable issues (missing config)
69
+ - Database/external service connection errors
70
+ - File path problems (absolute vs relative)
71
+ - Permission issues
72
+
73
+ ## 3 · Fix common problems if found
74
+
75
+ **ONLY** fix these specific issues automatically:\*\*
76
+
77
+ ### Python-specific fixes:
78
+
79
+ - CREATE empty `__init__.py` files where needed
80
+ - FIX simple import path issues
81
+ - ADD missing test directory to Python path if needed
82
+
83
+ ### JavaScript/TypeScript fixes:
84
+
85
+ - RUN `npm install` if node_modules missing
86
+ - FIX simple module resolution in jest.config.js
87
+ - CREATE missing test setup files
88
+
89
+ ### General fixes:
90
+
91
+ - CREATE missing test directories
92
+ - FIX file permissions if possible
93
+ - IDENTIFY missing env vars and inform user
94
+
95
+ **DO NOT** fix:
96
+
97
+ - Actual test logic failures
98
+ - Business logic bugs
99
+ - Complex configuration issues
100
+ - Database schema problems
101
+ - External service dependencies
102
+
103
+ ## 4 · Provide test summary
104
+
105
+ Create a brief summary:
106
+
107
+ ```
108
+ Test Results:
109
+ - Total: X tests
110
+ - Passed: Y (Z%)
111
+ - Failed: A
112
+ - Skipped: B
113
+ - Time: C seconds
114
+
115
+ Issues Fixed:
116
+ - [List any fixes applied]
117
+
118
+ Issues Found (requires manual fix):
119
+ - [List problems that need attention]
120
+
121
+ Status: PASSING | FAILING | BLOCKED
122
+ ```
123
+
124
+ **IMPORTANT:** Keep it concise. This command should be quick and focused on running tests, not detailed analysis.
125
+ EOF < /dev/null
@@ -0,0 +1,198 @@
1
+ # Testing Review - Top-Down Execution
2
+
3
+ Perform a comprehensive, top-down project-level review focused on architecture, progress, and technical decisions.
4
+
5
+ ## Prerequisites Check
6
+
7
+ **FIRST**, check if a testing strategy document exists:
8
+
9
+ - CHECK for `.aiwf/01_PROJECT_DOCS/TESTING_STRATEGY.md`
10
+ - If NOT found, inform the user: "No testing strategy document found. Would you like me to help create one, or proceed with a general test quality review?"
11
+ - If user wants to proceed without strategy, adapt the review to focus on general test quality principles
12
+
13
+ ## Create a TODO with EXACTLY these 7 Items
14
+
15
+ 1. Load testing strategy document (or define review criteria)
16
+ 2. Analyze test implementation structure
17
+ 3. Evaluate test-to-code alignment
18
+ 4. Identify misaligned or unnecessary tests
19
+ 5. Assess critical functionality coverage
20
+ 6. Generate modification recommendations
21
+ 7. Create alignment report
22
+
23
+ Follow step by step and adhere closely to the following instructions for each step.
24
+
25
+ ## DETAILS on every TODO item
26
+
27
+ ### 1. Load testing strategy document (or define review criteria)
28
+
29
+ **Option A - Strategy document exists:**
30
+
31
+ - LOAD `.aiwf/01_PROJECT_DOCS/TESTING_STRATEGY.md`
32
+ - EXTRACT key principles and priorities
33
+ - IDENTIFY what should and shouldn't be tested
34
+ - NOTE coverage expectations and quality gates
35
+ - UNDERSTAND the testing philosophy
36
+
37
+ **Option B - No strategy document:**
38
+ Use general best practices as review criteria:
39
+
40
+ - Tests should focus on behavior, not implementation
41
+ - Critical paths must have coverage
42
+ - Tests should be maintainable and clear
43
+ - Avoid over-testing simple getters/setters
44
+ - Balance between coverage and maintenance burden
45
+
46
+ **DOCUMENT** which approach is being used for this review.
47
+
48
+ ### 2. Analyze test implementation structure
49
+
50
+ **EXAMINE** the current test codebase:
51
+
52
+ - USE test.md command to run tests (@.claude/commands/aiwf/aiwf_test.md)
53
+ - EXPLORE test directory structure and organization
54
+ - IDENTIFY test categories and their purposes
55
+ - CHECK test naming conventions and patterns
56
+ - NOTE any test infrastructure or utilities
57
+
58
+ **Focus on understanding what exists, not counting.**
59
+
60
+ ### 3. Evaluate test-to-code alignment
61
+
62
+ **COMPARE** tests against actual implementation:
63
+
64
+ - For each major component, check if tests match functionality
65
+ - IDENTIFY tests that test implementation details vs behavior
66
+ - FIND tests with excessive setup or mocking
67
+ - LOCATE tests that break frequently on refactoring
68
+ - CHECK if test complexity matches code complexity
69
+
70
+ **Key question:** Do the tests validate what users care about?
71
+
72
+ ### 4. Identify misaligned or unnecessary tests
73
+
74
+ **SEARCH** for tests that don't provide value:
75
+
76
+ **If using strategy document:**
77
+
78
+ - Tests for areas marked as "skip" in strategy
79
+ - Tests outside the defined scope
80
+ - Over-specified tests per strategy guidelines
81
+
82
+ **If using general principles:**
83
+
84
+ - Over-engineered tests for simple functionality
85
+ - Tests that break on every refactor
86
+ - Edge case tests for non-critical features
87
+ - Tests with excessive mocking/setup
88
+ - Performance tests without performance requirements
89
+
90
+ **Create a list of specific tests to modify or remove.**
91
+
92
+ ### 5. Assess critical functionality coverage
93
+
94
+ **VERIFY** that essential functionality has appropriate tests:
95
+
96
+ **If using strategy document:**
97
+
98
+ - CHECK coverage of high-priority areas defined in strategy
99
+ - VERIFY strategy-specific requirements are tested
100
+
101
+ **For all reviews:**
102
+
103
+ - IDENTIFY gaps in critical path testing
104
+ - CHECK authentication/authorization if applicable
105
+ - VERIFY error handling for important operations
106
+ - ENSURE data integrity tests exist where needed
107
+ - CONFIRM integration points are tested
108
+
109
+ **Note specific gaps that need addressing.**
110
+
111
+ ### 6. Generate modification recommendations
112
+
113
+ **CREATE** specific, actionable recommendations:
114
+
115
+ For each finding:
116
+
117
+ - SPECIFY the test file and function
118
+ - EXPLAIN why it needs modification
119
+ - SUGGEST the specific change (remove, simplify, add)
120
+ - PROVIDE example of the improved approach if helpful
121
+
122
+ **Format:**
123
+
124
+ ```
125
+ File: tests/test_example.py::test_function_name
126
+ Issue: [What's wrong]
127
+ Action: [What to do]
128
+ Reason: [Why this aligns with strategy]
129
+ ```
130
+
131
+ ### 7. Create alignment report
132
+
133
+ **GENERATE** a focused report on test-strategy alignment:
134
+
135
+ - Get current timestamp using system date command
136
+ - Create report in `.aiwf/10_STATE_OF_PROJECT/YYYY-MM-DD-HH-MM-test-alignment.md`
137
+
138
+ **Report structure:**
139
+
140
+ ```markdown
141
+ # Test-Strategy Alignment Review - [YYYY-MM-DD HH:MM]
142
+
143
+ ## Alignment Summary
144
+
145
+ Overall alignment with testing strategy: [EXCELLENT | GOOD | NEEDS WORK | POOR]
146
+
147
+ Key findings:
148
+
149
+ - [Major finding about test suite health]
150
+ - [Major finding about coverage]
151
+ - [Major finding about maintenance burden]
152
+
153
+ ## Tests Requiring Modification
154
+
155
+ ### Remove (Over-engineered/Out of scope)
156
+
157
+ [List specific tests with reasons]
158
+
159
+ ### Simplify (Too complex for purpose)
160
+
161
+ [List specific tests with simplification approach]
162
+
163
+ ### Add (Critical gaps)
164
+
165
+ [List specific missing tests for critical paths]
166
+
167
+ ## Recommended Actions
168
+
169
+ ### Immediate (Blocking issues)
170
+
171
+ - [ ] [Specific action with file/test reference]
172
+
173
+ ### Short-term (Quality improvements)
174
+
175
+ - [ ] [Specific action with file/test reference]
176
+
177
+ ### Long-term (Technical debt)
178
+
179
+ - [ ] [Specific action with file/test reference]
180
+
181
+ ## Test Health Indicators
182
+
183
+ - Tests align with code purpose: [YES | PARTIALLY | NO]
184
+ - Critical paths covered: [YES | PARTIALLY | NO]
185
+ - Maintenance burden reasonable: [YES | PARTIALLY | NO]
186
+ - Tests support development velocity: [YES | PARTIALLY | NO]
187
+
188
+ ## Implementation Examples
189
+
190
+ [If needed, show before/after examples of test improvements]
191
+
192
+ ## Next Review
193
+
194
+ Recommended review in: [X weeks/sprints]
195
+ Focus areas for next review: [Specific areas to monitor]
196
+ ```
197
+
198
+ **IMPORTANT:** Focus on alignment and balance, not metrics. The goal is tests that serve the project's actual needs.
@@ -0,0 +1,206 @@
1
+ # Intelligent Execution of All Tasks
2
+
3
+ Arguments: $ARGUMENTS
4
+
5
+ Intelligently analyzes and executes all project tasks (complete tasks or subtasks of specific tasks) in an optimized order.
6
+
7
+ ## Intelligent Analysis and Execution
8
+
9
+ ### Context Analysis
10
+
11
+ Before execution, analyze the following elements:
12
+
13
+ - **Task Dependencies**: Identify dependency relationships between tasks (parent-child, task-to-task)
14
+ - **Task Complexity**: Assess difficulty level and estimated time for each task
15
+ - **Current Status**: Identify in-progress tasks, blocked tasks, completed tasks
16
+ - **User Patterns**: Previous task execution methods and preferences
17
+ - **Project Priorities**: Importance from overall project perspective
18
+
19
+ ### Smart Execution Strategy
20
+
21
+ Optimized execution based on context:
22
+
23
+ **Dependency-Based Execution**:
24
+
25
+ - Arrange tasks with correct dependencies
26
+ - Identify parallelizable tasks
27
+ - Prioritize dependency resolution for blocked tasks
28
+
29
+ **Complexity-Based Execution**:
30
+
31
+ - Prioritize simple tasks → Quick wins and momentum
32
+ - Prioritize complex tasks → Focus when complex tasks are easier to handle
33
+
34
+ **Time-Based Optimization**:
35
+
36
+ - Morning: Prioritize complex tasks
37
+ - Afternoon: Routine tasks or review tasks
38
+ - Evening: Finish tasks or documentation
39
+
40
+ **Priority-Based Execution**:
41
+
42
+ - Prioritize tasks from overall project perspective
43
+ - Prioritize tasks for milestone completion
44
+
45
+ ## Workflow
46
+
47
+ ### 1. Analyze the entire project
48
+
49
+ ```bash
50
+ # Get all tasks
51
+ task-master get-tasks --with-subtasks
52
+
53
+ # Validate dependencies
54
+ task-master validate-dependencies
55
+
56
+ # Analyze complexity
57
+ task-master complexity-report
58
+ ```
59
+
60
+ ### 2. Determine execution mode
61
+
62
+ **Run the entire project**:
63
+
64
+ - Target all pending tasks
65
+ - Goal: Complete the entire project
66
+
67
+ **Run specific tasks and their subtasks**:
68
+
69
+ - Target specific tasks and their subtasks
70
+ - Goal: Complete the specific task
71
+
72
+ ### 3. Determine intelligent execution order
73
+
74
+ ```bash
75
+ # Find the next executable task
76
+ task-master next
77
+
78
+ # List all executable tasks (unblocked tasks)
79
+ task-master get-tasks --status=pending --with-subtasks
80
+ ```
81
+
82
+ ### 4. Optimized task execution
83
+
84
+ **Run the entire project loop**:
85
+
86
+ ```bash
87
+ # Loop while there are executable tasks
88
+ while [ "$(task-master next)" != "No tasks available" ]; do
89
+ CURRENT_TASK=$(task-master next --format=id)
90
+
91
+ # Display task information
92
+ echo "=== Executing: Task $CURRENT_TASK ==="
93
+ task-master show $CURRENT_TASK
94
+
95
+ # Check if there are subtasks
96
+ if task-master show $CURRENT_TASK | grep -q "subtasks"; then
97
+ echo "Starting subtasks..."
98
+ # Execute subtasks sequentially
99
+ for subtask in $(task-master show $CURRENT_TASK --subtasks-only --format=ids); do
100
+ echo "--- Executing subtask $subtask ---"
101
+ task-master show $subtask
102
+
103
+ # Actual implementation logic
104
+ echo "Implementing task..."
105
+
106
+ # Mark as completed
107
+ task-master set-status --id=$subtask --status=done
108
+ echo "Subtask $subtask completed"
109
+ done
110
+ else
111
+ # Run single task
112
+ echo "Running single task..."
113
+
114
+ # Actual implementation logic
115
+ echo "Implementing task..."
116
+ fi
117
+
118
+ # Mark task as completed
119
+ task-master set-status --id=$CURRENT_TASK --status=done
120
+ echo "Task $CURRENT_TASK completed"
121
+ echo ""
122
+ done
123
+
124
+ echo "All executable tasks completed!"
125
+ ```
126
+
127
+ ### 5. Track progress and learn
128
+
129
+ - Record execution patterns
130
+ - Learn from expected vs actual execution time
131
+ - Collect efficiency metrics
132
+ - Propose solutions for blocked
133
+
134
+ ### 6. Analyze post-completion status
135
+
136
+ ```bash
137
+ # Check overall project status
138
+ task-master get-tasks --status=all
139
+
140
+ # Check blocked tasks
141
+ task-master get-tasks --status=blocked,deferred
142
+
143
+ # Analyze project progress
144
+ echo "Analyzing project progress..."
145
+ ```
146
+
147
+ ## Learning Mode
148
+
149
+ This command learns execution patterns:
150
+
151
+ - **Optimize execution order**: Remember successful patterns
152
+ - **Improve time prediction**: Collect actual execution time data
153
+ - **Learn personal preferences**: Adapt to user's task style
154
+ - **Improve efficiency**: Identify high-efficiency workflows
155
+ - **Learn project patterns**: Identify optimal execution strategies for project types
156
+
157
+ ## Usage
158
+
159
+ ```bash
160
+ # Run all tasks in the entire project
161
+ /tm run-all-tasks
162
+
163
+ # Run specific tasks and their subtasks
164
+ /tm run-all-tasks <task-id>
165
+
166
+ # Specify execution strategy
167
+ /tm run-all-tasks --strategy=dependency # Dependency-based
168
+ /tm run-all-tasks --strategy=complexity # Complexity-based
169
+ /tm run-all-tasks --strategy=priority # Priority-based
170
+ /tm run-all-tasks --strategy=time # Time-based optimization
171
+
172
+ # Run tasks with specific status
173
+ /tm run-all-tasks --status=pending # pending tasks only
174
+ /tm run-all-tasks --status=in-progress # in-progress tasks only
175
+
176
+ # Dry run mode (show plan without actual execution)
177
+ /tm run-all-tasks --dry-run
178
+
179
+ # Interactive mode (confirm each task before execution)
180
+ /tm run-all-tasks --interactive
181
+ ```
182
+
183
+ ## Intelligent Features
184
+
185
+ ### Automatic pause points
186
+
187
+ - Automatic pause on blocked tasks
188
+ - Suggest dependency resolution
189
+ - Propose alternative task paths
190
+
191
+ ### Progress prediction
192
+
193
+ - Predict completion time based on remaining tasks
194
+ - Analyze daily/weekly goal achievement
195
+ - Predict project completion time
196
+
197
+ - **All tasks completed** → Congratulate project completion + Suggest next project
198
+ - **Some tasks blocked** → Suggest dependency resolution + Propose alternative task paths
199
+ - **Complex tasks remaining** → Suggest rest + Propose task splitting
200
+ - **Dependency issues** → Suggest dependency reconstruction
201
+
202
+ ### Smart batching
203
+
204
+ - **Consider energy level**: Morning for complex tasks, afternoon for simple tasks
205
+ - **Minimize context switching**: Group similar tasks for continuous execution
206
+ - **Parallel processing opportunities**: Suggest concurrent execution of independent tasks