tapps-agents 3.5.41__py3-none-any.whl → 3.6.1__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.
Files changed (141) hide show
  1. tapps_agents/__init__.py +2 -2
  2. tapps_agents/agents/reviewer/scoring.py +1566 -1566
  3. tapps_agents/agents/reviewer/tools/__init__.py +41 -41
  4. tapps_agents/cli/commands/health.py +665 -665
  5. tapps_agents/cli/commands/top_level.py +3586 -3586
  6. tapps_agents/core/artifact_context_builder.py +293 -0
  7. tapps_agents/core/config.py +33 -0
  8. tapps_agents/health/orchestrator.py +271 -271
  9. tapps_agents/resources/__init__.py +5 -0
  10. tapps_agents/resources/claude/__init__.py +1 -0
  11. tapps_agents/resources/claude/commands/README.md +156 -0
  12. tapps_agents/resources/claude/commands/__init__.py +1 -0
  13. tapps_agents/resources/claude/commands/build-fix.md +22 -0
  14. tapps_agents/resources/claude/commands/build.md +77 -0
  15. tapps_agents/resources/claude/commands/debug.md +53 -0
  16. tapps_agents/resources/claude/commands/design.md +68 -0
  17. tapps_agents/resources/claude/commands/docs.md +53 -0
  18. tapps_agents/resources/claude/commands/e2e.md +22 -0
  19. tapps_agents/resources/claude/commands/fix.md +54 -0
  20. tapps_agents/resources/claude/commands/implement.md +53 -0
  21. tapps_agents/resources/claude/commands/improve.md +53 -0
  22. tapps_agents/resources/claude/commands/library-docs.md +64 -0
  23. tapps_agents/resources/claude/commands/lint.md +52 -0
  24. tapps_agents/resources/claude/commands/plan.md +65 -0
  25. tapps_agents/resources/claude/commands/refactor-clean.md +21 -0
  26. tapps_agents/resources/claude/commands/refactor.md +55 -0
  27. tapps_agents/resources/claude/commands/review.md +67 -0
  28. tapps_agents/resources/claude/commands/score.md +60 -0
  29. tapps_agents/resources/claude/commands/security-review.md +22 -0
  30. tapps_agents/resources/claude/commands/security-scan.md +54 -0
  31. tapps_agents/resources/claude/commands/tdd.md +24 -0
  32. tapps_agents/resources/claude/commands/test-coverage.md +21 -0
  33. tapps_agents/resources/claude/commands/test.md +54 -0
  34. tapps_agents/resources/claude/commands/update-codemaps.md +20 -0
  35. tapps_agents/resources/claude/commands/update-docs.md +21 -0
  36. tapps_agents/resources/claude/skills/__init__.py +1 -0
  37. tapps_agents/resources/claude/skills/analyst/SKILL.md +272 -0
  38. tapps_agents/resources/claude/skills/analyst/__init__.py +1 -0
  39. tapps_agents/resources/claude/skills/architect/SKILL.md +282 -0
  40. tapps_agents/resources/claude/skills/architect/__init__.py +1 -0
  41. tapps_agents/resources/claude/skills/backend-patterns/SKILL.md +30 -0
  42. tapps_agents/resources/claude/skills/backend-patterns/__init__.py +1 -0
  43. tapps_agents/resources/claude/skills/coding-standards/SKILL.md +29 -0
  44. tapps_agents/resources/claude/skills/coding-standards/__init__.py +1 -0
  45. tapps_agents/resources/claude/skills/debugger/SKILL.md +203 -0
  46. tapps_agents/resources/claude/skills/debugger/__init__.py +1 -0
  47. tapps_agents/resources/claude/skills/designer/SKILL.md +243 -0
  48. tapps_agents/resources/claude/skills/designer/__init__.py +1 -0
  49. tapps_agents/resources/claude/skills/documenter/SKILL.md +252 -0
  50. tapps_agents/resources/claude/skills/documenter/__init__.py +1 -0
  51. tapps_agents/resources/claude/skills/enhancer/SKILL.md +307 -0
  52. tapps_agents/resources/claude/skills/enhancer/__init__.py +1 -0
  53. tapps_agents/resources/claude/skills/evaluator/SKILL.md +204 -0
  54. tapps_agents/resources/claude/skills/evaluator/__init__.py +1 -0
  55. tapps_agents/resources/claude/skills/frontend-patterns/SKILL.md +29 -0
  56. tapps_agents/resources/claude/skills/frontend-patterns/__init__.py +1 -0
  57. tapps_agents/resources/claude/skills/implementer/SKILL.md +188 -0
  58. tapps_agents/resources/claude/skills/implementer/__init__.py +1 -0
  59. tapps_agents/resources/claude/skills/improver/SKILL.md +218 -0
  60. tapps_agents/resources/claude/skills/improver/__init__.py +1 -0
  61. tapps_agents/resources/claude/skills/ops/SKILL.md +281 -0
  62. tapps_agents/resources/claude/skills/ops/__init__.py +1 -0
  63. tapps_agents/resources/claude/skills/orchestrator/SKILL.md +390 -0
  64. tapps_agents/resources/claude/skills/orchestrator/__init__.py +1 -0
  65. tapps_agents/resources/claude/skills/planner/SKILL.md +254 -0
  66. tapps_agents/resources/claude/skills/planner/__init__.py +1 -0
  67. tapps_agents/resources/claude/skills/reviewer/SKILL.md +434 -0
  68. tapps_agents/resources/claude/skills/reviewer/__init__.py +1 -0
  69. tapps_agents/resources/claude/skills/security-review/SKILL.md +31 -0
  70. tapps_agents/resources/claude/skills/security-review/__init__.py +1 -0
  71. tapps_agents/resources/claude/skills/simple-mode/SKILL.md +695 -0
  72. tapps_agents/resources/claude/skills/simple-mode/__init__.py +1 -0
  73. tapps_agents/resources/claude/skills/tester/SKILL.md +219 -0
  74. tapps_agents/resources/claude/skills/tester/__init__.py +1 -0
  75. tapps_agents/resources/cursor/.cursorignore +35 -0
  76. tapps_agents/resources/cursor/__init__.py +1 -0
  77. tapps_agents/resources/cursor/commands/__init__.py +1 -0
  78. tapps_agents/resources/cursor/commands/build-fix.md +11 -0
  79. tapps_agents/resources/cursor/commands/build.md +11 -0
  80. tapps_agents/resources/cursor/commands/e2e.md +11 -0
  81. tapps_agents/resources/cursor/commands/fix.md +11 -0
  82. tapps_agents/resources/cursor/commands/refactor-clean.md +11 -0
  83. tapps_agents/resources/cursor/commands/review.md +11 -0
  84. tapps_agents/resources/cursor/commands/security-review.md +11 -0
  85. tapps_agents/resources/cursor/commands/tdd.md +11 -0
  86. tapps_agents/resources/cursor/commands/test-coverage.md +11 -0
  87. tapps_agents/resources/cursor/commands/test.md +11 -0
  88. tapps_agents/resources/cursor/commands/update-codemaps.md +10 -0
  89. tapps_agents/resources/cursor/commands/update-docs.md +11 -0
  90. tapps_agents/resources/cursor/rules/__init__.py +1 -0
  91. tapps_agents/resources/cursor/rules/agent-capabilities.mdc +687 -0
  92. tapps_agents/resources/cursor/rules/coding-style.mdc +31 -0
  93. tapps_agents/resources/cursor/rules/command-reference.mdc +2081 -0
  94. tapps_agents/resources/cursor/rules/cursor-mode-usage.mdc +125 -0
  95. tapps_agents/resources/cursor/rules/git-workflow.mdc +29 -0
  96. tapps_agents/resources/cursor/rules/performance.mdc +29 -0
  97. tapps_agents/resources/cursor/rules/project-context.mdc +163 -0
  98. tapps_agents/resources/cursor/rules/project-profiling.mdc +197 -0
  99. tapps_agents/resources/cursor/rules/quick-reference.mdc +630 -0
  100. tapps_agents/resources/cursor/rules/security.mdc +32 -0
  101. tapps_agents/resources/cursor/rules/simple-mode.mdc +500 -0
  102. tapps_agents/resources/cursor/rules/testing.mdc +31 -0
  103. tapps_agents/resources/cursor/rules/when-to-use.mdc +156 -0
  104. tapps_agents/resources/cursor/rules/workflow-presets.mdc +179 -0
  105. tapps_agents/resources/customizations/__init__.py +1 -0
  106. tapps_agents/resources/customizations/example-custom.yaml +83 -0
  107. tapps_agents/resources/hooks/__init__.py +1 -0
  108. tapps_agents/resources/hooks/templates/README.md +5 -0
  109. tapps_agents/resources/hooks/templates/__init__.py +1 -0
  110. tapps_agents/resources/hooks/templates/add-project-context.yaml +8 -0
  111. tapps_agents/resources/hooks/templates/auto-format-js.yaml +10 -0
  112. tapps_agents/resources/hooks/templates/auto-format-python.yaml +10 -0
  113. tapps_agents/resources/hooks/templates/git-commit-check.yaml +7 -0
  114. tapps_agents/resources/hooks/templates/notify-on-complete.yaml +8 -0
  115. tapps_agents/resources/hooks/templates/quality-gate.yaml +8 -0
  116. tapps_agents/resources/hooks/templates/security-scan-on-edit.yaml +10 -0
  117. tapps_agents/resources/hooks/templates/session-end-log.yaml +7 -0
  118. tapps_agents/resources/hooks/templates/show-beads-ready.yaml +8 -0
  119. tapps_agents/resources/hooks/templates/test-on-edit.yaml +10 -0
  120. tapps_agents/resources/hooks/templates/update-docs-on-complete.yaml +8 -0
  121. tapps_agents/resources/hooks/templates/user-prompt-log.yaml +7 -0
  122. tapps_agents/resources/scripts/__init__.py +1 -0
  123. tapps_agents/resources/scripts/set_bd_path.ps1 +51 -0
  124. tapps_agents/resources/workflows/__init__.py +1 -0
  125. tapps_agents/resources/workflows/presets/__init__.py +1 -0
  126. tapps_agents/resources/workflows/presets/brownfield-analysis.yaml +235 -0
  127. tapps_agents/resources/workflows/presets/fix.yaml +78 -0
  128. tapps_agents/resources/workflows/presets/full-sdlc.yaml +122 -0
  129. tapps_agents/resources/workflows/presets/quality.yaml +82 -0
  130. tapps_agents/resources/workflows/presets/rapid-dev.yaml +84 -0
  131. tapps_agents/simple_mode/orchestrators/base.py +185 -185
  132. tapps_agents/simple_mode/orchestrators/build_orchestrator.py +2700 -2667
  133. tapps_agents/simple_mode/orchestrators/fix_orchestrator.py +723 -723
  134. tapps_agents/workflow/cursor_executor.py +2337 -2337
  135. tapps_agents/workflow/message_formatter.py +188 -188
  136. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/METADATA +6 -6
  137. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/RECORD +141 -18
  138. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/WHEEL +0 -0
  139. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/entry_points.txt +0 -0
  140. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/licenses/LICENSE +0 -0
  141. {tapps_agents-3.5.41.dist-info → tapps_agents-3.6.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,500 @@
1
+ ---
2
+ description: Simple Mode - Natural language orchestrator for TappsCodingAgents. ALWAYS APPLY to enable skill orchestration. CRITICAL: When users request Simple Mode workflow, you MUST follow ALL workflow steps and create documentation artifacts.
3
+ globs: []
4
+ alwaysApply: true
5
+ ---
6
+
7
+ # Simple Mode - Cursor-Native Skill Orchestrator
8
+
9
+ ## ⚠️ CRITICAL: Default to @simple-mode for ALL Development Tasks
10
+
11
+ **When a user asks you to implement features, fix bugs, review code, or write tests, you MUST DEFAULT to using `@simple-mode` commands.**
12
+
13
+ ### ⚠️ MANDATORY: Workflow Interceptor Pattern
14
+
15
+ **BEFORE making any code edits for feature implementation, bug fixes, or new functionality, you MUST:**
16
+
17
+ 1. **Suggest Simple Mode workflow FIRST** - Do not proceed with direct edits
18
+ 2. **Explain workflow benefits** - Tests, quality gates, documentation
19
+ 3. **Only proceed with direct edits if user explicitly overrides** - Get confirmation first
20
+
21
+ **Pre-Edit Checklist (MUST follow before making edits):**
22
+ - [ ] Is this a new feature/component? → Use `@simple-mode *build`
23
+ - [ ] Is this a bug fix? → Use `@simple-mode *fix`
24
+ - [ ] Is this code review? → Use `@simple-mode *review`
25
+ - [ ] Is this test generation? → Use `@simple-mode *test`
26
+ - [ ] **Only skip if:** Simple one-off operation OR user explicitly requests direct edit
27
+
28
+ **Example Interceptor Pattern:**
29
+ ```
30
+ User: "Add user authentication to my app"
31
+
32
+ ✅ CORRECT (Interceptor Pattern):
33
+ 🤖 Workflow Suggestion:
34
+
35
+ "For new feature implementation, I recommend using:
36
+ @simple-mode *build 'Add user authentication with login, logout, and session management'
37
+
38
+ This workflow will:
39
+ ✅ Generate comprehensive tests automatically (80%+ coverage)
40
+ ✅ Enforce quality gates (75+ score required)
41
+ ✅ Create documentation artifacts
42
+ ✅ Catch bugs early with systematic review
43
+ ✅ Provide full traceability (requirements → implementation)
44
+
45
+ Would you like me to proceed with the workflow?
46
+ [Yes, use workflow] [No, direct edit]"
47
+
48
+ [If user says Yes or doesn't respond]:
49
+ ✅ Starting Build Workflow...
50
+ @simple-mode *build "Add user authentication..."
51
+
52
+ [If user explicitly says No]:
53
+ ⚠️ Proceeding with direct edit (workflow benefits will be missed)
54
+
55
+ ❌ WRONG (No Interceptor):
56
+ "I'll implement this directly..." [edits files immediately without suggesting workflow]
57
+ ```
58
+
59
+ ### Automatic Routing Rules
60
+
61
+ | User Request | You MUST Use |
62
+ |--------------|--------------|
63
+ | "Add/implement/create/build a feature" | `@simple-mode *build "description"` |
64
+ | "Fix this bug/error/issue" | `@simple-mode *fix <file> "description"` |
65
+ | "Review/check this code" | `@simple-mode *review <file>` |
66
+ | "Add/write/generate tests" | `@simple-mode *test <file>` |
67
+ | "Refactor/improve this code" | `@simple-mode *refactor <file>` |
68
+ | Framework development (`tapps_agents/`) | `@simple-mode *full "description"` |
69
+
70
+ ### When NOT to Use @simple-mode
71
+
72
+ Only skip @simple-mode when:
73
+ 1. User **explicitly** asks for a specific agent (e.g., "use @reviewer to score this")
74
+ 2. Task is a **simple one-off operation** (e.g., "just lint this file")
75
+ 3. User is doing **quick exploration** (e.g., "what's the score of this file?")
76
+ 4. User **explicitly requests direct edit** after workflow suggestion
77
+
78
+ ### Example: Correct Behavior
79
+
80
+ ```
81
+ User: "Add user authentication to my app"
82
+
83
+ ✅ CORRECT:
84
+ "I'll use the Simple Mode build workflow for proper implementation:
85
+ @simple-mode *build 'Add user authentication with login, logout, and session management'
86
+
87
+ This will run the 7-step workflow:
88
+ 1. @enhancer → Requirements analysis
89
+ 2. @planner → User stories
90
+ 3. @architect → Architecture design
91
+ 4. @designer → Component specs
92
+ 5. @implementer → Code implementation
93
+ 6. @reviewer → Quality review (loops if < 70)
94
+ 7. @tester → Test generation (MANDATORY - 80%+ coverage)"
95
+
96
+ ❌ WRONG:
97
+ "I'll implement this directly..." [edits files without workflow]
98
+ ```
99
+
100
+ ---
101
+
102
+ ## What is Simple Mode?
103
+
104
+ Simple Mode is the **primary user interface** for TappsCodingAgents in Cursor. It provides natural language commands that automatically orchestrate multiple specialized skills through a **structured workflow** that produces better, more maintainable code with comprehensive documentation.
105
+
106
+ ## ⚠️ CRITICAL: Complete Workflow Execution
107
+
108
+ When a user requests Simple Mode workflow (especially `*build` commands), you MUST:
109
+
110
+ 1. **Follow ALL workflow steps** - Do NOT skip steps or directly implement
111
+ 2. **Create documentation artifacts** - Generate workflow documentation files
112
+ 3. **Execute in sequence** - Each step informs the next
113
+ 4. **Report progress** - Show which step you're on
114
+
115
+ **Why?** Our comparison (index.html vs index2.html) shows the workflow produces:
116
+ - Better documentation (87/100 quality score vs direct implementation)
117
+ - Higher maintainability (design system, spacing variables)
118
+ - Comprehensive testing (test plans, validation criteria)
119
+ - Full traceability (requirements → stories → architecture → implementation)
120
+
121
+ ## ⚠️ CRITICAL: You MUST Invoke Skills Directly
122
+
123
+ **When you are running as simple-mode, you ARE the orchestrator. You MUST directly invoke other skills using `@skill-name *command` syntax.**
124
+
125
+ **WRONG (DO NOT DO THIS):**
126
+ ```
127
+ "I can't directly invoke @simple-mode commands; those are Cursor IDE chat commands you type."
128
+ "I'll implement the change directly, then you can use @simple-mode for review."
129
+ ```
130
+
131
+ **CORRECT (DO THIS):**
132
+ ```
133
+ ✅ Starting Build Workflow...
134
+
135
+ 📝 Step 1/7: Enhancing prompt...
136
+ @enhancer *enhance "Create a user authentication API with JWT tokens"
137
+
138
+ [Then actually invoke the enhancer skill and wait for its output]
139
+ ```
140
+
141
+ **You are an active orchestrator, not a passive coordinator. When executing a workflow, you:**
142
+ 1. **Directly invoke** each skill in the workflow sequence
143
+ 2. **Use the output** from each skill as input to the next
144
+ 3. **Continue until all steps are complete**
145
+ 4. **Do NOT** tell the user to type commands - YOU execute them
146
+
147
+ ## How to Use Simple Mode
148
+
149
+ ### Invoke with @simple-mode (RECOMMENDED)
150
+
151
+ Use explicit commands for guaranteed workflow execution:
152
+
153
+ ```
154
+ @simple-mode *build "Create a user authentication feature"
155
+ @simple-mode *review src/api/auth.py
156
+ @simple-mode *fix src/buggy.py "Fix the error"
157
+ @simple-mode *test src/api/auth.py
158
+ @simple-mode *full "Build a complete REST API"
159
+ ```
160
+
161
+ ### Or Use Natural Language
162
+
163
+ ```
164
+ @simple-mode Build a user authentication feature
165
+ @simple-mode Review my authentication code
166
+ @simple-mode Fix the error in auth.py
167
+ @simple-mode Add tests for service.py
168
+ ```
169
+
170
+ **Note:** Explicit `*build` commands are more reliable for ensuring complete workflow execution.
171
+
172
+ ## Simple Mode Commands
173
+
174
+ | Command | Description | Skills Invoked |
175
+ |---------|-------------|----------------|
176
+ | `*build {description}` | Build new features | @enhancer → @planner → @architect → @designer → @implementer → @reviewer → @tester |
177
+ | `*review {file}` | Review code quality | @reviewer → @improver |
178
+ | `*fix {file} {description}` | Fix bugs/errors | @debugger → @implementer → @tester |
179
+ | `*test {file}` | Generate tests | @tester |
180
+ | `*explore {query}` | Explore codebase | @analyst → @reviewer |
181
+ | `*refactor {file}` | Refactor code | @reviewer → @architect → @implementer → @tester → @reviewer |
182
+ | `*plan-analysis {description}` | Safe planning (read-only) | @analyst → @architect → @reviewer |
183
+ | `*pr {title}` | Create pull request | @reviewer → @documenter |
184
+ | `*full {description}` | Full SDLC workflow | All skills in sequence |
185
+ | `*epic {epic-doc.md}` | Execute Epic document | Stories in dependency order |
186
+ | `*help` | Show help | - |
187
+ | `*resume` [workflow_id] | Resume failed/paused workflow | ResumeOrchestrator |
188
+ | `*status` | Check status | - |
189
+
190
+ ## Intent Detection
191
+
192
+ Simple Mode detects intent from keywords:
193
+
194
+ - **Build**: build, create, make, generate, add, implement, develop, write, new, feature
195
+ - **Review**: review, check, analyze, inspect, examine, score, quality, audit
196
+ - **Fix**: fix, repair, resolve, debug, error, bug, issue, problem, broken
197
+ - **Test**: test, verify, validate, coverage, testing
198
+ - **Explore**: explore, understand, navigate, find, discover, overview, codebase, trace, search, locate
199
+ - **Refactor**: refactor, modernize, update, improve code, modernize code, legacy, deprecated
200
+ - **Plan**: plan, planning, analyze, analysis, design, proposal, strategy, roadmap
201
+ - **PR**: pr, pull request, create pr, open pr, merge request, mr
202
+ - **Full**: full, complete, sdlc, lifecycle, everything
203
+ - **Enhance**: enhance, improve prompt, expand prompt
204
+ - **Breakdown**: breakdown, breakdown into tasks, task list
205
+ - **Todo**: todo, beads, bd, task tracking
206
+
207
+ ## ⚠️ CRITICAL: Explicit Command Precedence
208
+
209
+ **When a user explicitly specifies a command (e.g., `*build`, `*full`, `*review`), you MUST respect that command regardless of keywords in the prompt.**
210
+
211
+ **Examples:**
212
+ - ✅ `@simple-mode *build "Improve test coverage and code quality"` → Use **BUILD** workflow (7 steps)
213
+ - ✅ `@simple-mode *build "Add comprehensive unit tests"` → Use **BUILD** workflow (7 steps)
214
+ - ✅ `@simple-mode *full "Build a new feature"` → Use **FULL** workflow (9 steps)
215
+ - ❌ **DO NOT** switch from `*build` to `*full` just because the prompt contains words like "comprehensive", "quality", "complete", or "improve"
216
+
217
+ **When to Use Each Workflow:**
218
+
219
+ | Use Case | Workflow | Why |
220
+ |----------|----------|-----|
221
+ | New features | `*build` | 7-step workflow covers design → implementation → testing |
222
+ | Quality improvements | `*build` | Can refactor/improve existing code with full design cycle |
223
+ | Bug fixes | `*fix` | Focused debugging → fix → test workflow |
224
+ | Code reviews | `*review` | Review → improve workflow |
225
+ | Test generation | `*test` | Test-focused workflow |
226
+ | Codebase exploration | `*explore` | Understand and navigate existing codebases |
227
+ | Code modernization | `*refactor` | Systematic refactoring with pattern detection |
228
+ | Safe planning | `*plan-analysis` | Read-only analysis without code modifications |
229
+ | Pull requests | `*pr` | PR creation with quality scores |
230
+ | Framework development | `*full` | Requires requirements → security → documentation (9 steps) |
231
+ | Enterprise/critical features | `*full` | When user explicitly requests full SDLC with security scanning |
232
+
233
+ **Key Rule:** If the user says `*build`, use BUILD workflow. Only use `*full` if:
234
+ 1. User explicitly says `*full`
235
+ 2. Modifying TappsCodingAgents framework itself (`tapps_agents/` package)
236
+ 3. User explicitly requests "full SDLC" or "complete lifecycle"
237
+
238
+ ## Skill Orchestration Workflows
239
+
240
+ ### Build Workflow (MUST FOLLOW ALL STEPS)
241
+
242
+ **When user requests `@simple-mode *build` or build-related commands, you MUST execute ALL steps:**
243
+
244
+ ```
245
+ Step 1: @enhancer *enhance "{description}"
246
+ → Create: docs/workflows/simple-mode/step1-enhanced-prompt.md
247
+ → Enhanced prompt with requirements analysis, architecture guidance, quality standards
248
+
249
+ Step 2: @planner *plan "{enhanced prompt}"
250
+ → Create: docs/workflows/simple-mode/step2-user-stories.md
251
+ → User stories with acceptance criteria, story points, estimates
252
+
253
+ Step 3: @architect *design "{specification}"
254
+ → Create: docs/workflows/simple-mode/step3-architecture.md
255
+ → System architecture, component design, data flow, performance considerations
256
+
257
+ Step 4: @designer *design-api "{specification}" OR design components
258
+ → Create: docs/workflows/simple-mode/step4-design.md
259
+ → Component specifications, color palette, typography, spacing system, animations
260
+
261
+ Step 5: @implementer *implement "{specification}" {target_file}
262
+ → Implement code following all specifications from previous steps
263
+ → Use design system, spacing variables, architecture patterns
264
+
265
+ Step 6: @reviewer *review {target_file}
266
+ → Create: docs/workflows/simple-mode/step6-review.md
267
+ → Quality scores (7 categories), issues found, recommendations
268
+
269
+ Step 7: @tester *test {target_file}
270
+ → Create: docs/workflows/simple-mode/step7-testing.md
271
+ → Test plan, browser compatibility, accessibility checklist, performance validation
272
+ ```
273
+
274
+ **DO NOT:**
275
+ - ❌ Skip directly to implementation
276
+ - ❌ Skip documentation steps
277
+ - ❌ Combine steps
278
+ - ❌ Implement without planning
279
+
280
+ **DO:**
281
+ - ✅ Execute each step in sequence
282
+ - ✅ Create documentation files for each step
283
+ - ✅ Use outputs from previous steps as inputs
284
+ - ✅ Report progress ("Starting Step 1...", "Step 1 complete, starting Step 2...")
285
+
286
+ ### Review Workflow
287
+ ```
288
+ 1. @reviewer *review {file} → Quality scores
289
+ 2. @improver *improve {file} "{issues}" → Improvements (if needed)
290
+ ```
291
+
292
+ ### Fix Workflow
293
+ ```
294
+ 1. @debugger *debug "{error}" --file {file} → Root cause
295
+ 2. @implementer *refactor {file} "{fix}" → Fix applied
296
+ 3. @tester *test {file} → Verification
297
+ ```
298
+
299
+ ### Test Workflow
300
+ ```
301
+ 1. @tester *test {file} → Tests generated
302
+ ```
303
+
304
+ ### Full SDLC Workflow
305
+ ```
306
+ 0. @enhancer *enhance (optional; full-sdlc preset includes an enhance step before requirements, run via EnhancerHandler)
307
+ 1. @analyst *gather-requirements "{description}" → Requirements
308
+ 2. @planner *plan "{requirements}" → Stories
309
+ 3. @architect *design "{specification}" → Architecture
310
+ 4. @designer *design-api "{spec}" → API design
311
+ 5. @implementer *implement "{spec}" {file} → Code
312
+ 6. @reviewer *review {file} → Quality (loop if < 70)
313
+ 7. @tester *test {file} → Tests
314
+ 8. @ops *security-scan {file} → Security
315
+ 9. @documenter *document-api {file} → Documentation
316
+ ```
317
+
318
+ **⚠️ MANDATORY for Framework Development:**
319
+
320
+ When modifying the TappsCodingAgents framework itself (`tapps_agents/` package), you **MUST** use `*full` workflow:
321
+
322
+ ```
323
+ @simple-mode *full "Implement [framework enhancement description]"
324
+ ```
325
+
326
+ This ensures:
327
+ - ✅ Requirements analysis before implementation
328
+ - ✅ Architecture design for integration patterns
329
+ - ✅ Quality gates (≥75 score) with automatic loopbacks
330
+ - ✅ Test generation and execution
331
+ - ✅ Security validation
332
+ - ✅ Complete documentation
333
+ - ✅ Full traceability
334
+
335
+ **Example:**
336
+ ```
337
+ User: "Add Context7 integration to all agents"
338
+ AI: [MUST use] @simple-mode *full "Add Context7 integration to all SDLC agents"
339
+ ```
340
+
341
+ **DO NOT skip the workflow for framework changes!**
342
+
343
+ ## Available Skills Reference
344
+
345
+ | Skill | Purpose |
346
+ |-------|---------|
347
+ | `@enhancer` | Prompt enhancement (7-stage pipeline) |
348
+ | `@planner` | User story creation |
349
+ | `@architect` | System architecture design |
350
+ | `@designer` | API and data model design |
351
+ | `@implementer` | Code generation and refactoring |
352
+ | `@reviewer` | Code review with 7-category scoring |
353
+ | `@tester` | Test generation and execution |
354
+ | `@debugger` | Error analysis and debugging |
355
+ | `@improver` | Code improvement suggestions |
356
+ | `@analyst` | Requirements gathering |
357
+ | `@documenter` | Documentation generation |
358
+ | `@ops` | Security scanning and deployment |
359
+ | `@orchestrator` | YAML workflow coordination |
360
+ | `@evaluator` | Framework effectiveness evaluation |
361
+
362
+ ## Examples
363
+
364
+ ### Build a Feature
365
+ ```
366
+ User: @simple-mode *build "Create JWT authentication with refresh tokens"
367
+
368
+ Simple Mode:
369
+ ✅ Starting Build Workflow...
370
+
371
+ 📝 Step 1: @enhancer *enhance "Create JWT authentication with refresh tokens"
372
+ [Enhanced prompt with security requirements, architecture guidance, etc.]
373
+
374
+ 📝 Step 2: @planner *plan "JWT authentication system..."
375
+ [User stories created]
376
+
377
+ 📝 Step 3: @architect *design "JWT auth architecture..."
378
+ [Architecture design]
379
+
380
+ 📝 Step 4: @designer *design-api "Auth API endpoints..."
381
+ [API specification]
382
+
383
+ 📝 Step 5: @implementer *implement "JWT auth service" src/api/auth.py
384
+ [Code generated]
385
+
386
+ 📝 Step 6: @reviewer *review src/api/auth.py
387
+ [Quality score: 85/100 ✅]
388
+
389
+ 📝 Step 7: @tester *test src/api/auth.py
390
+ [Tests generated]
391
+
392
+ ✅ Build Complete!
393
+ ```
394
+
395
+ ### Review Code
396
+ ```
397
+ User: @simple-mode *review src/api/users.py
398
+
399
+ Simple Mode:
400
+ ✅ Starting Review Workflow...
401
+
402
+ 📝 @reviewer *review src/api/users.py
403
+
404
+ Quality Scores:
405
+ - Complexity: 7.5/10 ✅
406
+ - Security: 8.0/10 ✅
407
+ - Maintainability: 7.2/10 ✅
408
+ - Test Coverage: 65% ⚠️
409
+ - Performance: 7.8/10 ✅
410
+ - Overall: 76/100 ✅
411
+
412
+ Issues Found: 2
413
+ 📝 @improver *improve src/api/users.py "Add input validation, increase test coverage"
414
+
415
+ ✅ Review Complete!
416
+ ```
417
+
418
+ ## Configuration
419
+
420
+ Simple Mode is configured in `.tapps-agents/config.yaml`:
421
+
422
+ ```yaml
423
+ simple_mode:
424
+ enabled: true
425
+ auto_detect: true
426
+ show_advanced: false
427
+ natural_language: true
428
+ ```
429
+
430
+ ## Why Use Simple Mode?
431
+
432
+ 1. **Natural Language** - Use plain English instead of learning multiple skill commands
433
+ 2. **Automatic Orchestration** - Skills are coordinated automatically in the right sequence
434
+ 3. **Quality Gates** - Automatic quality checks with loopback on failures
435
+ 4. **Progressive Disclosure** - Start simple, unlock advanced features as you learn
436
+ 5. **Best Practices** - Follows TappsCodingAgents workflow patterns automatically
437
+ 6. **Better Outcomes** - Produces higher quality code with comprehensive documentation (see comparison: `docs/SIMPLE_MODE_WORKFLOW_COMPARISON.md`)
438
+
439
+ ## Evidence: Workflow Value
440
+
441
+ **Comparison Study:** `index.html` (direct) vs `index2.html` (workflow)
442
+ - Quality Score: 87/100 with workflow vs unmeasured direct implementation
443
+ - Documentation: 7 workflow documents vs 0
444
+ - Maintainability: Design system, spacing variables, architecture documented
445
+ - Testing: Comprehensive test plan vs none
446
+ - Traceability: Full requirements → implementation traceability
447
+
448
+ See `docs/SIMPLE_MODE_WORKFLOW_COMPARISON.md` for full analysis.
449
+
450
+ ## When User Requests Workflow
451
+
452
+ If user explicitly mentions "Simple Mode workflow", "follow the workflow", "use the complete workflow", or references workflow documentation:
453
+
454
+ 1. **Acknowledge** the workflow request
455
+ 2. **Execute ALL 7 steps** for build workflows
456
+ 3. **Create documentation files** for each step
457
+ 4. **Report progress** step-by-step
458
+ 5. **Do NOT shortcut** - complete workflow provides value
459
+
460
+ ## Workflow Suggestion System
461
+
462
+ **New Feature:** Workflow suggester automatically detects when workflows would be beneficial.
463
+
464
+ **How It Works:**
465
+ - Analyzes user input to detect intent (build, fix, review, test, refactor)
466
+ - Suggests appropriate `@simple-mode` workflow with benefits
467
+ - Only suggests when confidence is high (≥60%)
468
+
469
+ **Example:**
470
+ ```
471
+ User: "Add user authentication"
472
+
473
+ 🤖 Workflow Suggestion:
474
+ "For new feature implementation, consider using:
475
+ @simple-mode *build 'Add user authentication'
476
+
477
+ Benefits:
478
+ ✅ Automatic test generation (80%+ coverage)
479
+ ✅ Quality gate enforcement (75+ score required)
480
+ ✅ Comprehensive documentation
481
+ ✅ Early bug detection
482
+ ✅ Full traceability
483
+
484
+ Would you like me to proceed with the workflow?"
485
+ ```
486
+
487
+ **Implementation:**
488
+ - `tapps_agents/simple_mode/workflow_suggester.py` - Suggestion engine
489
+ - Integrated into `SimpleModeHandler` for automatic suggestions
490
+ - See `docs/WORKFLOW_ENFORCEMENT_GUIDE.md` for complete guide
491
+
492
+ ## Related Documentation
493
+
494
+ - See `.cursor/rules/when-to-use.mdc` for importance and when to use each capability (Tier 1–2 first)
495
+ - See `docs/SIMPLE_MODE_USER_GUIDE.md` for user guide with invocation options
496
+ - See `.claude/skills/simple-mode/SKILL.md` for full skill definition
497
+ - See `docs/SIMPLE_MODE_GUIDE.md` for complete documentation
498
+ - See `docs/SIMPLE_MODE_WORKFLOW_COMPARISON.md` for workflow vs direct comparison
499
+ - See `docs/WORKFLOW_ENFORCEMENT_GUIDE.md` for workflow enforcement guide
500
+ - See `.cursor/rules/agent-capabilities.mdc` for all agent capabilities
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: TDD, Red-Green-Refactor, coverage targets, when to add tests
3
+ alwaysApply: false
4
+ ---
5
+
6
+ # Testing Rules
7
+
8
+ ## TDD / Red-Green-Refactor
9
+
10
+ - **RED**: Write failing tests first (interfaces or behavior)
11
+ - **GREEN**: Implement minimal code to pass
12
+ - **IMPROVE**: Refactor while keeping tests green
13
+ - Use `@simple-mode *tdd` for the full TDD workflow
14
+
15
+ ## Coverage Targets
16
+
17
+ - **New and modified code**: aim for ≥80% coverage; quality gates may require 70–80%
18
+ - **Critical paths**: error handling, auth, and data flows need tests
19
+ - Use `@simple-mode *test-coverage` for gap-driven test generation
20
+
21
+ ## When to Add Tests
22
+
23
+ - After implementing features (`@simple-mode *build` includes a test step)
24
+ - When fixing bugs (`@simple-mode *fix` includes verification)
25
+ - Before refactoring to preserve behavior
26
+ - For public APIs and integration boundaries
27
+
28
+ ## References
29
+
30
+ - `tapps_agents/experts/knowledge/testing/` - best-practices, test-design-patterns, test-strategies, coverage-analysis, mocking
31
+ - Use `@tester *test` and `@tester *generate-tests`; `@simple-mode *test` for the workflow