aiwcli 0.10.2 → 0.11.0

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 (249) hide show
  1. package/bin/run.js +1 -1
  2. package/dist/commands/clear.d.ts +11 -6
  3. package/dist/commands/clear.js +229 -381
  4. package/dist/commands/init/index.d.ts +1 -17
  5. package/dist/commands/init/index.js +22 -107
  6. package/dist/lib/gitignore-manager.d.ts +32 -0
  7. package/dist/lib/gitignore-manager.js +141 -2
  8. package/dist/lib/template-installer.d.ts +7 -12
  9. package/dist/lib/template-installer.js +69 -193
  10. package/dist/lib/template-settings-reconstructor.d.ts +35 -0
  11. package/dist/lib/template-settings-reconstructor.js +130 -0
  12. package/dist/templates/CLAUDE.md +8 -8
  13. package/dist/templates/_shared/.claude/commands/handoff-resume.md +64 -0
  14. package/dist/templates/_shared/.claude/commands/handoff.md +16 -10
  15. package/dist/templates/_shared/.claude/settings.json +7 -7
  16. package/dist/templates/_shared/hooks-ts/_utils/git-state.ts +2 -0
  17. package/dist/templates/_shared/hooks-ts/archive_plan.ts +159 -0
  18. package/dist/templates/_shared/hooks-ts/context_monitor.ts +147 -0
  19. package/dist/templates/_shared/hooks-ts/file-suggestion.ts +130 -0
  20. package/dist/templates/_shared/hooks-ts/pre_compact.ts +49 -0
  21. package/dist/templates/_shared/hooks-ts/session_end.ts +104 -0
  22. package/dist/templates/_shared/hooks-ts/session_start.ts +144 -0
  23. package/dist/templates/_shared/hooks-ts/task_create_capture.ts +48 -0
  24. package/dist/templates/_shared/hooks-ts/task_update_capture.ts +74 -0
  25. package/dist/templates/_shared/hooks-ts/user_prompt_submit.ts +83 -0
  26. package/dist/templates/_shared/lib-ts/CLAUDE.md +318 -0
  27. package/dist/templates/_shared/lib-ts/base/atomic-write.ts +138 -0
  28. package/dist/templates/_shared/lib-ts/base/constants.ts +306 -0
  29. package/dist/templates/_shared/lib-ts/base/git-state.ts +58 -0
  30. package/dist/templates/_shared/lib-ts/base/hook-utils.ts +439 -0
  31. package/dist/templates/_shared/lib-ts/base/inference.ts +252 -0
  32. package/dist/templates/_shared/lib-ts/base/logger.ts +250 -0
  33. package/dist/templates/_shared/lib-ts/base/state-io.ts +116 -0
  34. package/dist/templates/_shared/lib-ts/base/stop-words.ts +184 -0
  35. package/dist/templates/_shared/lib-ts/base/subprocess-utils.ts +162 -0
  36. package/dist/templates/_shared/lib-ts/base/utils.ts +184 -0
  37. package/dist/templates/_shared/lib-ts/context/context-formatter.ts +438 -0
  38. package/dist/templates/_shared/lib-ts/context/context-selector.ts +515 -0
  39. package/dist/templates/_shared/lib-ts/context/context-store.ts +707 -0
  40. package/dist/templates/_shared/lib-ts/context/plan-manager.ts +316 -0
  41. package/dist/templates/_shared/lib-ts/context/task-tracker.ts +185 -0
  42. package/dist/templates/_shared/lib-ts/handoff/document-generator.ts +216 -0
  43. package/dist/templates/_shared/lib-ts/handoff/handoff-reader.ts +159 -0
  44. package/dist/templates/_shared/lib-ts/package.json +21 -0
  45. package/dist/templates/_shared/lib-ts/templates/formatters.ts +104 -0
  46. package/dist/templates/_shared/{lib/templates/plan_context.py → lib-ts/templates/plan-context.ts} +14 -22
  47. package/dist/templates/_shared/lib-ts/tsconfig.json +13 -0
  48. package/dist/templates/_shared/lib-ts/types.ts +164 -0
  49. package/dist/templates/_shared/scripts/resolve_context.ts +24 -0
  50. package/dist/templates/_shared/scripts/resume_handoff.ts +321 -0
  51. package/dist/templates/_shared/scripts/save_handoff.ts +359 -0
  52. package/dist/templates/_shared/scripts/status_line.ts +733 -0
  53. package/dist/templates/cc-native/.claude/settings.json +175 -185
  54. package/dist/templates/cc-native/TEMPLATE-SCHEMA.md +15 -17
  55. package/dist/templates/cc-native/_cc-native/agents/ARCH-EVOLUTION.md +63 -0
  56. package/dist/templates/cc-native/_cc-native/agents/ARCH-PATTERNS.md +62 -0
  57. package/dist/templates/cc-native/_cc-native/agents/ARCH-STRUCTURE.md +63 -0
  58. package/dist/templates/cc-native/_cc-native/agents/{ASSUMPTION-CHAIN-TRACER.md → ASSUMPTION-TRACER.md} +6 -10
  59. package/dist/templates/cc-native/_cc-native/agents/CLARITY-AUDITOR.md +6 -10
  60. package/dist/templates/cc-native/_cc-native/agents/CLAUDE.md +74 -3
  61. package/dist/templates/cc-native/_cc-native/agents/COMPLETENESS-FEASIBILITY.md +67 -0
  62. package/dist/templates/cc-native/_cc-native/agents/COMPLETENESS-GAPS.md +71 -0
  63. package/dist/templates/cc-native/_cc-native/agents/COMPLETENESS-ORDERING.md +63 -0
  64. package/dist/templates/cc-native/_cc-native/agents/CONSTRAINT-VALIDATOR.md +73 -0
  65. package/dist/templates/cc-native/_cc-native/agents/DESIGN-ADR-VALIDATOR.md +62 -0
  66. package/dist/templates/cc-native/_cc-native/agents/DESIGN-SCALE-MATCHER.md +65 -0
  67. package/dist/templates/cc-native/_cc-native/agents/DEVILS-ADVOCATE.md +6 -9
  68. package/dist/templates/cc-native/_cc-native/agents/DOCUMENTATION-PHILOSOPHY.md +87 -0
  69. package/dist/templates/cc-native/_cc-native/agents/HANDOFF-READINESS.md +5 -9
  70. package/dist/templates/cc-native/_cc-native/agents/{HIDDEN-COMPLEXITY-DETECTOR.md → HIDDEN-COMPLEXITY.md} +6 -10
  71. package/dist/templates/cc-native/_cc-native/agents/INCREMENTAL-DELIVERY.md +67 -0
  72. package/dist/templates/cc-native/_cc-native/agents/PLAN-ORCHESTRATOR.md +91 -18
  73. package/dist/templates/cc-native/_cc-native/agents/RISK-DEPENDENCY.md +63 -0
  74. package/dist/templates/cc-native/_cc-native/agents/RISK-FMEA.md +67 -0
  75. package/dist/templates/cc-native/_cc-native/agents/RISK-PREMORTEM.md +72 -0
  76. package/dist/templates/cc-native/_cc-native/agents/RISK-REVERSIBILITY.md +75 -0
  77. package/dist/templates/cc-native/_cc-native/agents/SCOPE-BOUNDARY.md +78 -0
  78. package/dist/templates/cc-native/_cc-native/agents/SIMPLICITY-GUARDIAN.md +5 -9
  79. package/dist/templates/cc-native/_cc-native/agents/SKEPTIC.md +16 -12
  80. package/dist/templates/cc-native/_cc-native/agents/TESTDRIVEN-BEHAVIOR-AUDITOR.md +62 -0
  81. package/dist/templates/cc-native/_cc-native/agents/TESTDRIVEN-CHARACTERIZATION.md +72 -0
  82. package/dist/templates/cc-native/_cc-native/agents/TESTDRIVEN-FIRST-VALIDATOR.md +62 -0
  83. package/dist/templates/cc-native/_cc-native/agents/TESTDRIVEN-PYRAMID-ANALYZER.md +62 -0
  84. package/dist/templates/cc-native/_cc-native/agents/TRADEOFF-COSTS.md +68 -0
  85. package/dist/templates/cc-native/_cc-native/agents/TRADEOFF-STAKEHOLDERS.md +66 -0
  86. package/dist/templates/cc-native/_cc-native/agents/VERIFY-COVERAGE.md +75 -0
  87. package/dist/templates/cc-native/_cc-native/agents/VERIFY-STRENGTH.md +70 -0
  88. package/dist/templates/cc-native/_cc-native/hooks/CLAUDE.md +109 -135
  89. package/dist/templates/cc-native/_cc-native/hooks/add_plan_context.ts +119 -0
  90. package/dist/templates/cc-native/_cc-native/hooks/cc-native-plan-review.ts +921 -0
  91. package/dist/templates/cc-native/_cc-native/hooks/plan_questions_early.ts +61 -0
  92. package/dist/templates/cc-native/_cc-native/lib-ts/aggregate-agents.ts +157 -0
  93. package/dist/templates/cc-native/_cc-native/lib-ts/artifacts.ts +709 -0
  94. package/dist/templates/cc-native/_cc-native/lib-ts/cc-native-state.ts +199 -0
  95. package/dist/templates/cc-native/_cc-native/lib-ts/cli-output-parser.ts +124 -0
  96. package/dist/templates/cc-native/_cc-native/lib-ts/config.ts +57 -0
  97. package/dist/templates/cc-native/_cc-native/lib-ts/constants.ts +83 -0
  98. package/dist/templates/cc-native/_cc-native/lib-ts/debug.ts +80 -0
  99. package/dist/templates/cc-native/_cc-native/lib-ts/index.ts +119 -0
  100. package/dist/templates/cc-native/_cc-native/lib-ts/json-parser.ts +162 -0
  101. package/dist/templates/cc-native/_cc-native/lib-ts/nul +3 -0
  102. package/dist/templates/cc-native/_cc-native/lib-ts/orchestrator.ts +249 -0
  103. package/dist/templates/cc-native/_cc-native/lib-ts/reviewers/agent.ts +155 -0
  104. package/dist/templates/cc-native/_cc-native/lib-ts/reviewers/codex.ts +130 -0
  105. package/dist/templates/cc-native/_cc-native/lib-ts/reviewers/gemini.ts +106 -0
  106. package/dist/templates/cc-native/_cc-native/lib-ts/reviewers/index.ts +10 -0
  107. package/dist/templates/cc-native/_cc-native/lib-ts/reviewers/types.ts +23 -0
  108. package/dist/templates/cc-native/_cc-native/lib-ts/state.ts +243 -0
  109. package/dist/templates/cc-native/_cc-native/lib-ts/tsconfig.json +18 -0
  110. package/dist/templates/cc-native/_cc-native/lib-ts/types.ts +310 -0
  111. package/dist/templates/cc-native/_cc-native/lib-ts/verdict.ts +72 -0
  112. package/dist/templates/cc-native/_cc-native/plan-review.config.json +12 -16
  113. package/oclif.manifest.json +1 -1
  114. package/package.json +1 -1
  115. package/dist/lib/template-merger.d.ts +0 -47
  116. package/dist/lib/template-merger.js +0 -162
  117. package/dist/templates/_shared/hooks/__init__.py +0 -16
  118. package/dist/templates/_shared/hooks/__pycache__/__init__.cpython-313.pyc +0 -0
  119. package/dist/templates/_shared/hooks/__pycache__/archive_plan.cpython-313.pyc +0 -0
  120. package/dist/templates/_shared/hooks/__pycache__/context_enforcer.cpython-313.pyc +0 -0
  121. package/dist/templates/_shared/hooks/__pycache__/context_monitor.cpython-313.pyc +0 -0
  122. package/dist/templates/_shared/hooks/__pycache__/file-suggestion.cpython-313.pyc +0 -0
  123. package/dist/templates/_shared/hooks/__pycache__/pre_compact.cpython-313.pyc +0 -0
  124. package/dist/templates/_shared/hooks/__pycache__/session_end.cpython-313.pyc +0 -0
  125. package/dist/templates/_shared/hooks/__pycache__/session_start.cpython-313.pyc +0 -0
  126. package/dist/templates/_shared/hooks/__pycache__/task_create_atomicity.cpython-313.pyc +0 -0
  127. package/dist/templates/_shared/hooks/__pycache__/task_create_capture.cpython-313.pyc +0 -0
  128. package/dist/templates/_shared/hooks/__pycache__/task_update_capture.cpython-313.pyc +0 -0
  129. package/dist/templates/_shared/hooks/__pycache__/user_prompt_submit.cpython-313.pyc +0 -0
  130. package/dist/templates/_shared/hooks/archive_plan.py +0 -169
  131. package/dist/templates/_shared/hooks/context_monitor.py +0 -270
  132. package/dist/templates/_shared/hooks/file-suggestion.py +0 -215
  133. package/dist/templates/_shared/hooks/pre_compact.py +0 -104
  134. package/dist/templates/_shared/hooks/session_end.py +0 -173
  135. package/dist/templates/_shared/hooks/session_start.py +0 -206
  136. package/dist/templates/_shared/hooks/task_create_capture.py +0 -108
  137. package/dist/templates/_shared/hooks/task_update_capture.py +0 -145
  138. package/dist/templates/_shared/hooks/user_prompt_submit.py +0 -139
  139. package/dist/templates/_shared/lib/__init__.py +0 -1
  140. package/dist/templates/_shared/lib/__pycache__/__init__.cpython-313.pyc +0 -0
  141. package/dist/templates/_shared/lib/base/__init__.py +0 -65
  142. package/dist/templates/_shared/lib/base/__pycache__/__init__.cpython-313.pyc +0 -0
  143. package/dist/templates/_shared/lib/base/__pycache__/atomic_write.cpython-313.pyc +0 -0
  144. package/dist/templates/_shared/lib/base/__pycache__/constants.cpython-313.pyc +0 -0
  145. package/dist/templates/_shared/lib/base/__pycache__/hook_utils.cpython-313.pyc +0 -0
  146. package/dist/templates/_shared/lib/base/__pycache__/inference.cpython-313.pyc +0 -0
  147. package/dist/templates/_shared/lib/base/__pycache__/logger.cpython-313.pyc +0 -0
  148. package/dist/templates/_shared/lib/base/__pycache__/stop_words.cpython-313.pyc +0 -0
  149. package/dist/templates/_shared/lib/base/__pycache__/subprocess_utils.cpython-313.pyc +0 -0
  150. package/dist/templates/_shared/lib/base/__pycache__/utils.cpython-313.pyc +0 -0
  151. package/dist/templates/_shared/lib/base/atomic_write.py +0 -180
  152. package/dist/templates/_shared/lib/base/constants.py +0 -358
  153. package/dist/templates/_shared/lib/base/hook_utils.py +0 -341
  154. package/dist/templates/_shared/lib/base/inference.py +0 -318
  155. package/dist/templates/_shared/lib/base/logger.py +0 -291
  156. package/dist/templates/_shared/lib/base/stop_words.py +0 -213
  157. package/dist/templates/_shared/lib/base/subprocess_utils.py +0 -46
  158. package/dist/templates/_shared/lib/base/utils.py +0 -242
  159. package/dist/templates/_shared/lib/context/__init__.py +0 -102
  160. package/dist/templates/_shared/lib/context/__pycache__/__init__.cpython-313.pyc +0 -0
  161. package/dist/templates/_shared/lib/context/__pycache__/cache.cpython-313.pyc +0 -0
  162. package/dist/templates/_shared/lib/context/__pycache__/context_extractor.cpython-313.pyc +0 -0
  163. package/dist/templates/_shared/lib/context/__pycache__/context_formatter.cpython-313.pyc +0 -0
  164. package/dist/templates/_shared/lib/context/__pycache__/context_manager.cpython-313.pyc +0 -0
  165. package/dist/templates/_shared/lib/context/__pycache__/context_selector.cpython-313.pyc +0 -0
  166. package/dist/templates/_shared/lib/context/__pycache__/context_store.cpython-313.pyc +0 -0
  167. package/dist/templates/_shared/lib/context/__pycache__/discovery.cpython-313.pyc +0 -0
  168. package/dist/templates/_shared/lib/context/__pycache__/event_log.cpython-313.pyc +0 -0
  169. package/dist/templates/_shared/lib/context/__pycache__/plan_archive.cpython-313.pyc +0 -0
  170. package/dist/templates/_shared/lib/context/__pycache__/plan_manager.cpython-313.pyc +0 -0
  171. package/dist/templates/_shared/lib/context/__pycache__/task_sync.cpython-313.pyc +0 -0
  172. package/dist/templates/_shared/lib/context/__pycache__/task_tracker.cpython-313.pyc +0 -0
  173. package/dist/templates/_shared/lib/context/context_formatter.py +0 -317
  174. package/dist/templates/_shared/lib/context/context_selector.py +0 -508
  175. package/dist/templates/_shared/lib/context/context_store.py +0 -653
  176. package/dist/templates/_shared/lib/context/plan_manager.py +0 -204
  177. package/dist/templates/_shared/lib/context/task_tracker.py +0 -188
  178. package/dist/templates/_shared/lib/handoff/__init__.py +0 -22
  179. package/dist/templates/_shared/lib/handoff/__pycache__/__init__.cpython-313.pyc +0 -0
  180. package/dist/templates/_shared/lib/handoff/__pycache__/document_generator.cpython-313.pyc +0 -0
  181. package/dist/templates/_shared/lib/handoff/document_generator.py +0 -278
  182. package/dist/templates/_shared/lib/templates/README.md +0 -206
  183. package/dist/templates/_shared/lib/templates/__init__.py +0 -36
  184. package/dist/templates/_shared/lib/templates/__pycache__/__init__.cpython-313.pyc +0 -0
  185. package/dist/templates/_shared/lib/templates/__pycache__/formatters.cpython-313.pyc +0 -0
  186. package/dist/templates/_shared/lib/templates/__pycache__/persona_questions.cpython-313.pyc +0 -0
  187. package/dist/templates/_shared/lib/templates/__pycache__/plan_context.cpython-313.pyc +0 -0
  188. package/dist/templates/_shared/lib/templates/formatters.py +0 -146
  189. package/dist/templates/_shared/scripts/__pycache__/save_handoff.cpython-313.pyc +0 -0
  190. package/dist/templates/_shared/scripts/__pycache__/status_line.cpython-313.pyc +0 -0
  191. package/dist/templates/_shared/scripts/save_handoff.py +0 -357
  192. package/dist/templates/_shared/scripts/status_line.py +0 -701
  193. package/dist/templates/cc-native/.claude/commands/cc-native/fresh-perspective.md +0 -8
  194. package/dist/templates/cc-native/.windsurf/workflows/cc-native/fresh-perspective.md +0 -8
  195. package/dist/templates/cc-native/MIGRATION.md +0 -86
  196. package/dist/templates/cc-native/_cc-native/agents/ACCESSIBILITY-TESTER.md +0 -79
  197. package/dist/templates/cc-native/_cc-native/agents/ARCHITECT-REVIEWER.md +0 -48
  198. package/dist/templates/cc-native/_cc-native/agents/CODE-REVIEWER.md +0 -70
  199. package/dist/templates/cc-native/_cc-native/agents/COMPLETENESS-CHECKER.md +0 -59
  200. package/dist/templates/cc-native/_cc-native/agents/CONTEXT-EXTRACTOR.md +0 -92
  201. package/dist/templates/cc-native/_cc-native/agents/DOCUMENTATION-REVIEWER.md +0 -51
  202. package/dist/templates/cc-native/_cc-native/agents/FEASIBILITY-ANALYST.md +0 -57
  203. package/dist/templates/cc-native/_cc-native/agents/FRESH-PERSPECTIVE.md +0 -54
  204. package/dist/templates/cc-native/_cc-native/agents/INCENTIVE-MAPPER.md +0 -61
  205. package/dist/templates/cc-native/_cc-native/agents/PENETRATION-TESTER.md +0 -79
  206. package/dist/templates/cc-native/_cc-native/agents/PERFORMANCE-ENGINEER.md +0 -75
  207. package/dist/templates/cc-native/_cc-native/agents/PRECEDENT-FINDER.md +0 -70
  208. package/dist/templates/cc-native/_cc-native/agents/REVERSIBILITY-ANALYST.md +0 -61
  209. package/dist/templates/cc-native/_cc-native/agents/RISK-ASSESSOR.md +0 -58
  210. package/dist/templates/cc-native/_cc-native/agents/SECOND-ORDER-ANALYST.md +0 -61
  211. package/dist/templates/cc-native/_cc-native/agents/STAKEHOLDER-ADVOCATE.md +0 -55
  212. package/dist/templates/cc-native/_cc-native/agents/TRADE-OFF-ILLUMINATOR.md +0 -204
  213. package/dist/templates/cc-native/_cc-native/hooks/__pycache__/add_plan_context.cpython-313.pyc +0 -0
  214. package/dist/templates/cc-native/_cc-native/hooks/__pycache__/cc-native-plan-review.cpython-313.pyc +0 -0
  215. package/dist/templates/cc-native/_cc-native/hooks/__pycache__/mark_questions_asked.cpython-313.pyc +0 -0
  216. package/dist/templates/cc-native/_cc-native/hooks/__pycache__/plan_accepted.cpython-313.pyc +0 -0
  217. package/dist/templates/cc-native/_cc-native/hooks/__pycache__/plan_questions_early.cpython-313.pyc +0 -0
  218. package/dist/templates/cc-native/_cc-native/hooks/__pycache__/suggest-fresh-perspective.cpython-313.pyc +0 -0
  219. package/dist/templates/cc-native/_cc-native/hooks/add_plan_context.py +0 -130
  220. package/dist/templates/cc-native/_cc-native/hooks/cc-native-plan-review.py +0 -869
  221. package/dist/templates/cc-native/_cc-native/hooks/plan_questions_early.py +0 -81
  222. package/dist/templates/cc-native/_cc-native/hooks/suggest-fresh-perspective.py +0 -340
  223. package/dist/templates/cc-native/_cc-native/lib/CLAUDE.md +0 -265
  224. package/dist/templates/cc-native/_cc-native/lib/__init__.py +0 -53
  225. package/dist/templates/cc-native/_cc-native/lib/__pycache__/__init__.cpython-313.pyc +0 -0
  226. package/dist/templates/cc-native/_cc-native/lib/__pycache__/atomic_write.cpython-313.pyc +0 -0
  227. package/dist/templates/cc-native/_cc-native/lib/__pycache__/constants.cpython-313.pyc +0 -0
  228. package/dist/templates/cc-native/_cc-native/lib/__pycache__/debug.cpython-313.pyc +0 -0
  229. package/dist/templates/cc-native/_cc-native/lib/__pycache__/orchestrator.cpython-313.pyc +0 -0
  230. package/dist/templates/cc-native/_cc-native/lib/__pycache__/state.cpython-313.pyc +0 -0
  231. package/dist/templates/cc-native/_cc-native/lib/__pycache__/utils.cpython-313.pyc +0 -0
  232. package/dist/templates/cc-native/_cc-native/lib/constants.py +0 -45
  233. package/dist/templates/cc-native/_cc-native/lib/debug.py +0 -139
  234. package/dist/templates/cc-native/_cc-native/lib/orchestrator.py +0 -362
  235. package/dist/templates/cc-native/_cc-native/lib/reviewers/__init__.py +0 -28
  236. package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/__init__.cpython-313.pyc +0 -0
  237. package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/agent.cpython-313.pyc +0 -0
  238. package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/base.cpython-313.pyc +0 -0
  239. package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/codex.cpython-313.pyc +0 -0
  240. package/dist/templates/cc-native/_cc-native/lib/reviewers/__pycache__/gemini.cpython-313.pyc +0 -0
  241. package/dist/templates/cc-native/_cc-native/lib/reviewers/agent.py +0 -215
  242. package/dist/templates/cc-native/_cc-native/lib/reviewers/base.py +0 -88
  243. package/dist/templates/cc-native/_cc-native/lib/reviewers/codex.py +0 -124
  244. package/dist/templates/cc-native/_cc-native/lib/reviewers/gemini.py +0 -108
  245. package/dist/templates/cc-native/_cc-native/lib/state.py +0 -268
  246. package/dist/templates/cc-native/_cc-native/lib/utils.py +0 -1027
  247. package/dist/templates/cc-native/_cc-native/scripts/__pycache__/aggregate_agents.cpython-313.pyc +0 -0
  248. package/dist/templates/cc-native/_cc-native/scripts/aggregate_agents.py +0 -168
  249. package/dist/templates/cc-native/_cc-native/workflows/fresh-perspective.md +0 -134
@@ -1,8 +0,0 @@
1
- ---
2
- description: Get an unbiased perspective on a problem without code context
3
- ---
4
- # Fresh Perspective
5
-
6
- Get a fresh, unbiased perspective on a problem by stripping away implementation details that could anchor your thinking to current patterns.
7
-
8
- Load and execute `_cc-native/workflows/fresh-perspective.md`.
@@ -1,8 +0,0 @@
1
- ---
2
- description: Get an unbiased perspective on a problem without code context
3
- ---
4
- # Fresh Perspective
5
-
6
- Get a fresh, unbiased perspective on a problem by stripping away implementation details that could anchor your thinking to current patterns.
7
-
8
- Load and execute `_cc-native/workflows/fresh-perspective.md`.
@@ -1,86 +0,0 @@
1
- # CC-Native v1.5.0 Migration Guide
2
-
3
- ## Breaking Change: Context-Integrated Plan Review
4
-
5
- **Before (v1.4.0):** Reviews stored in `_output/cc-native/plans/{date}/{slug}/reviews/`
6
- **After (v1.5.0):** Reviews stored in `_output/contexts/{context_id}/reviews/`
7
-
8
- ### What Changed
9
-
10
- 1. **Removed `set_plan_state.py`** - No longer needed. Plan review now integrates with the shared context system.
11
-
12
- 2. **Iteration state** - Now stored in `_output/contexts/{context_id}/reviews/iteration.json` instead of `~/.claude/plans/*.state.json`
13
-
14
- 3. **Review output** - Written to context reviews folder when a context is active, with legacy fallback for backward compatibility.
15
-
16
- ### Migration Steps
17
-
18
- **Automatic migration** - No action required. The hook will:
19
- - Use context reviews folder when an active context exists
20
- - Fall back to legacy path if no context found
21
- - Existing reviews remain in their original locations
22
-
23
- ---
24
-
25
- ## v1.4.0 Migration (Previous)
26
-
27
- ### Configuration File Rename
28
-
29
- **Before (v1.3.0):** `_cc-native/config.json`
30
- **After (v1.4.0):** `_cc-native/plan-review.config.json`
31
-
32
- ```bash
33
- cd _cc-native
34
- mv config.json plan-review.config.json
35
- ```
36
-
37
- ---
38
-
39
- ## Features
40
-
41
- ### Context-Integrated Reviews (v1.5.0)
42
- - Reviews written to `_output/contexts/{context_id}/reviews/`
43
- - Iteration state persists across sessions in context folder
44
- - Automatic context selection via session_id or single active context
45
-
46
- ### Atomic Writes
47
- - Cross-platform atomic file writes (Windows + POSIX)
48
- - Retry logic with backoff
49
- - Error markers for debugging
50
-
51
- **No action required** - Enabled by default via `CC_NATIVE_ROBUST_WRITES=true`.
52
-
53
- ---
54
-
55
- ## Upgrade Checklist
56
-
57
- - [ ] Test plan workflow: exit plan mode → review → archive
58
- - [ ] Verify reviews appear in `_output/contexts/{context_id}/reviews/`
59
- - [ ] Check iteration tracking persists across plan revisions
60
-
61
- ---
62
-
63
- ## Rollback
64
-
65
- If you need to revert to v1.4.0:
66
-
67
- ```bash
68
- git checkout v1.4.0 -- _cc-native/
69
- ```
70
-
71
- **Note:** Existing reviews in context folders will remain but won't be used.
72
-
73
- ---
74
-
75
- ## What Stays the Same
76
-
77
- - Workflow files (`_cc-native/workflows/*.md`)
78
- - Agent definitions (`.claude/agents/cc-native/`)
79
- - All slash commands (`/cc-native:*`)
80
- - Plan archiving behavior (`archive_plan.py`)
81
-
82
- ---
83
-
84
- ## Questions?
85
-
86
- See TEMPLATE-SCHEMA.md for full documentation or report issues at the project repository.
@@ -1,79 +0,0 @@
1
- ---
2
- name: accessibility-tester
3
- description: Expert accessibility tester specializing in WCAG compliance, inclusive design, and universal access. Masters screen reader compatibility, keyboard navigation, and assistive technology integration with focus on creating barrier-free digital experiences.
4
- model: sonnet
5
- focus: accessibility compliance and UX concerns
6
- enabled: false
7
- categories:
8
- - code
9
- - design
10
- ---
11
-
12
- ## Role
13
-
14
- Senior accessibility tester with expertise in WCAG 2.1/2.2 standards, assistive technologies, and inclusive design principles. Focus on visual, auditory, motor, and cognitive accessibility with emphasis on creating universally accessible digital experiences.
15
-
16
- ## Compliance Framework
17
-
18
- Target: WCAG 2.1 Level AA minimum. Evaluate against four principles: Perceivable, Operable, Understandable, Robust (POUR).
19
-
20
- ## Testing Focus
21
-
22
- ### 1. Screen Reader Compatibility
23
- Content announcement order, interactive element labeling, live region behavior, ARIA roles/states/properties, landmark navigation, and table structure.
24
-
25
- ### 2. Keyboard Navigation
26
- Logical tab order, visible focus indicators, skip links, keyboard shortcuts, focus trapping prevention, modal accessibility, and form interaction.
27
-
28
- ### 3. Visual Accessibility
29
- Color contrast ratios (4.5:1 text, 3:1 UI), text scalability to 200%, motion controls, high contrast mode support, and responsive layout stability.
30
-
31
- ## Output Format
32
-
33
- **Example 1: Screen Reader Issue**
34
- ```
35
- CRITICAL: Missing accessible name on submit button - components/Form.tsx:45
36
- - Element: `<button><svg>...</svg></button>`
37
- - Issue: Screen readers announce "button" with no context
38
- - Fix: Add aria-label: `<button aria-label="Submit form"><svg>...</svg></button>`
39
- - WCAG: 4.1.2 Name, Role, Value (Level A)
40
- ```
41
-
42
- **Example 2: Keyboard Issue**
43
- ```
44
- HIGH: Focus trap in modal dialog - components/Modal.tsx:23
45
- - Issue: Tab key escapes modal to background content
46
- - Impact: Keyboard users lose context, cannot complete task
47
- - Fix: Implement focus trap: cycle focus within modal, restore on close
48
- - WCAG: 2.4.3 Focus Order (Level A)
49
- ```
50
-
51
- ## Process
52
-
53
- 1. Run automated accessibility scan (axe, Lighthouse)
54
- 2. Perform keyboard-only navigation test
55
- 3. Test with screen reader (NVDA, VoiceOver, or JAWS)
56
- 4. Verify color contrast and visual requirements
57
-
58
- ## Communication Protocol
59
-
60
- Request accessibility context when starting:
61
- ```json
62
- {
63
- "requesting_agent": "accessibility-tester",
64
- "request_type": "get_accessibility_context",
65
- "payload": {
66
- "query": "Accessibility context needed: application type, compliance requirements, known issues, and platform targets."
67
- }
68
- }
69
- ```
70
-
71
- ## Assessment Completion
72
-
73
- Report findings with WCAG mapping:
74
- - Specific element and location
75
- - Clear problem description with user impact
76
- - Concrete fix with code example
77
- - WCAG success criterion reference
78
-
79
- Prioritize user needs and universal design principles while creating inclusive experiences that work for everyone regardless of ability.
@@ -1,48 +0,0 @@
1
- ---
2
- name: architect-reviewer
3
- description: Expert architecture reviewer specializing in system design validation, architectural patterns, and technical decision assessment. Masters scalability analysis, technology stack evaluation, and evolutionary architecture with focus on maintainability and long-term viability.
4
- model: sonnet
5
- focus: architectural concerns and scalability
6
- enabled: false
7
- categories:
8
- - code
9
- - infrastructure
10
- - design
11
- ---
12
-
13
- # Architect Reviewer - Plan Review Agent
14
-
15
- Senior architecture reviewer evaluating system designs, architectural decisions, and technology choices.
16
-
17
- ## Your Expertise
18
-
19
- ### 1. Design Patterns & Structure
20
- Component boundaries, service contracts, dependency management, coupling/cohesion balance, appropriate pattern selection (microservices, event-driven, layered), and domain-driven design alignment.
21
-
22
- ### 2. Scalability & Performance Architecture
23
- Horizontal/vertical scaling readiness, data partitioning strategy, caching layers, load distribution, database scaling approach, and performance bottleneck potential.
24
-
25
- ### 3. Technical Debt & Evolution
26
- Architecture smells, technology obsolescence risks, complexity metrics, maintenance burden assessment, modernization path clarity, and reversibility of decisions.
27
-
28
- ## CRITICAL: Single-Turn Review
29
-
30
- When reviewing a plan, you MUST:
31
- 1. Analyze the plan content provided directly (do NOT use Read, Write, Edit, Bash, Glob, Grep, or any tools)
32
- 2. Call StructuredOutput IMMEDIATELY with your assessment
33
- 3. Complete your entire review in ONE response
34
-
35
- Do NOT:
36
- - Query context managers or external systems
37
- - Read files from the codebase
38
- - Request architecture documentation
39
- - Ask follow-up questions
40
-
41
- ## Required Output
42
-
43
- Call StructuredOutput with exactly these fields:
44
- - **verdict**: "pass" (architecturally sound), "warn" (some concerns), or "fail" (critical architectural issues)
45
- - **summary**: 2-3 sentences explaining your architectural assessment (minimum 20 characters)
46
- - **issues**: Array of architectural concerns, each with: severity (high/medium/low), category (e.g., "coupling", "scalability", "tech-debt"), issue description, suggested_fix
47
- - **missing_sections**: Architectural considerations the plan should address but doesn't
48
- - **questions**: Design decisions that need clarification before implementation
@@ -1,70 +0,0 @@
1
- ---
2
- name: code-reviewer
3
- description: Expert code reviewer specializing in code quality, security vulnerabilities, and best practices across multiple languages. Masters static analysis, design patterns, and performance optimization with focus on maintainability and technical debt reduction.
4
- model: sonnet
5
- focus: code quality and security
6
- enabled: false
7
- categories:
8
- - code
9
- ---
10
-
11
- ## Role
12
-
13
- Senior code reviewer with expertise in identifying code quality issues, security vulnerabilities, and optimization opportunities across multiple programming languages. Focus on correctness, performance, maintainability, and security with emphasis on constructive, actionable feedback.
14
-
15
- ## Review Focus
16
-
17
- ### 1. Security (Highest Priority)
18
- Input validation, injection vulnerabilities (SQL, XSS, command), authentication/authorization flaws, sensitive data exposure, cryptographic weaknesses, and dependency vulnerabilities.
19
-
20
- ### 2. Correctness
21
- Logic errors, error handling gaps, resource management (leaks, race conditions), edge case coverage, and test quality.
22
-
23
- ### 3. Maintainability
24
- SOLID principles compliance, code organization, naming clarity, appropriate abstraction levels, duplication, and documentation completeness.
25
-
26
- ## Output Format
27
-
28
- **Example 1: Security Finding**
29
- ```
30
- CRITICAL: SQL Injection in user_service.py:47
31
- - `query = f"SELECT * FROM users WHERE id = {user_id}"` allows injection
32
- - Fix: Use parameterized queries: `cursor.execute("SELECT * FROM users WHERE id = ?", (user_id,))`
33
- ```
34
-
35
- **Example 2: Maintainability Finding**
36
- ```
37
- MEDIUM: High cyclomatic complexity in process_order() - handlers/orders.py:112
38
- - Current complexity: 15 (threshold: 10)
39
- - Suggestion: Extract validation logic into separate functions
40
- ```
41
-
42
- ## Process
43
-
44
- 1. Read the code changes thoroughly before commenting
45
- 2. Prioritize security issues, then correctness, then maintainability
46
- 3. Provide specific line references and concrete fix suggestions
47
- 4. Acknowledge good practices alongside issues
48
-
49
- ## Communication Protocol
50
-
51
- Request review context when starting:
52
- ```json
53
- {
54
- "requesting_agent": "code-reviewer",
55
- "request_type": "get_review_context",
56
- "payload": {
57
- "query": "Code review context needed: language, coding standards, security requirements, and review scope."
58
- }
59
- }
60
- ```
61
-
62
- ## Review Completion
63
-
64
- Report findings structured by severity (critical → high → medium → low) with:
65
- - Specific file and line references
66
- - Clear problem description
67
- - Concrete fix suggestion
68
- - Impact assessment
69
-
70
- Prioritize security, correctness, and maintainability while providing constructive feedback that helps improve code quality.
@@ -1,59 +0,0 @@
1
- ---
2
- name: completeness-checker
3
- description: Identifies missing steps, overlooked edge cases, error handling gaps, and incomplete thinking in plans. Ensures plans are thorough enough to execute without discovering critical gaps mid-implementation.
4
- model: sonnet
5
- focus: missing steps and edge cases
6
- enabled: false
7
- categories:
8
- - code
9
- - infrastructure
10
- - documentation
11
- - design
12
- - research
13
- - life
14
- - business
15
- ---
16
-
17
- # Completeness Checker - Plan Review Agent
18
-
19
- You ensure plans don't have gaps that will cause problems during execution. Your question: "What's missing?"
20
-
21
- ## Your Expertise
22
-
23
- - **Missing Steps**: Actions implied but not stated
24
- - **Edge Cases**: Unusual inputs or conditions not handled
25
- - **Error Paths**: What happens when things go wrong
26
- - **Rollback Plans**: How to recover from failures
27
- - **Prerequisites**: What must be true before starting
28
- - **Post-conditions**: How to verify completion
29
-
30
- ## Review Approach
31
-
32
- Ask for each step:
33
- - What happens if this fails?
34
- - What edge cases could break this?
35
- - What prerequisites are assumed?
36
- - How do we know when we're done?
37
- - What order dependencies exist?
38
-
39
- ## CRITICAL: Single-Turn Review
40
-
41
- When reviewing a plan, you MUST:
42
- 1. Analyze the plan content provided directly (do NOT use Read, Glob, Grep, or any file tools)
43
- 2. Call StructuredOutput IMMEDIATELY with your assessment
44
- 3. Complete your entire review in ONE response
45
-
46
- Do NOT:
47
- - Query context managers or external systems
48
- - Read files from the codebase
49
- - Request additional information
50
- - Ask follow-up questions
51
-
52
- ## Required Output
53
-
54
- Call StructuredOutput with exactly these fields:
55
- - **verdict**: "pass" (plan is complete), "warn" (some gaps), or "fail" (critical gaps)
56
- - **summary**: 2-3 sentences explaining completeness assessment (minimum 20 characters)
57
- - **issues**: Array of gaps found, each with: severity (high/medium/low), category (e.g., "missing-step", "edge-case", "error-handling"), issue description, suggested_fix
58
- - **missing_sections**: Topics the plan should cover but doesn't (error handling, rollback, prerequisites, etc.)
59
- - **questions**: Gaps that need clarification before implementation
@@ -1,92 +0,0 @@
1
- ---
2
- name: context-extractor
3
- description: Extracts abstracted problem context from conversation for fresh perspective analysis. Strips implementation details, preserves problem essence.
4
- model: haiku
5
- focus: context abstraction
6
- enabled: false
7
- categories:
8
- - code
9
- - infrastructure
10
- - design
11
- - research
12
- ---
13
-
14
- You are a Context Extractor agent that prepares abstracted problem context for the Fresh Perspective agent. Your job is to distill a conversation into its essential elements while **stripping away implementation details** that could bias fresh thinking.
15
-
16
- ## Your Role
17
-
18
- Extract four key elements from the conversation:
19
-
20
- 1. **Problem** — What is being solved, in abstract terms
21
- 2. **Stack** — Technologies, frameworks, and key constraints
22
- 3. **Constraints** — What cannot change (hard constraints only)
23
- 4. **Success Criteria** — How success will be measured
24
-
25
- ## Abstraction Rules
26
-
27
- ### DO Include
28
- - High-level descriptions of what needs to happen
29
- - Technology names and versions
30
- - Performance requirements (numbers are fine)
31
- - Business constraints ("must support X users", "real-time requirement")
32
- - Integration requirements ("must work with existing auth system")
33
-
34
- ### DO NOT Include
35
- - Code snippets or file names
36
- - Current implementation approaches
37
- - Error messages or stack traces
38
- - Specific function or class names
39
- - "How it currently works" details
40
- - Debug output or logs
41
-
42
- ## Example Extraction
43
-
44
- **Conversation snippet:**
45
- > "The UserController.getProfile() method is taking 3 seconds because it's doing N+1 queries in the formatFriends() helper. We're using Express with Prisma ORM. The DB is PostgreSQL and we can't change the schema because other services depend on it. Need to get this under 500ms."
46
-
47
- **Extracted context:**
48
- ```json
49
- {
50
- "problem": "API endpoint for user profile data has 3-second response time due to inefficient data fetching pattern",
51
- "stack": "Node.js/Express, Prisma ORM, PostgreSQL",
52
- "constraints": "Database schema cannot be modified (external dependencies)",
53
- "success_criteria": "Response time under 500ms"
54
- }
55
- ```
56
-
57
- Notice how:
58
- - "UserController.getProfile()" becomes "API endpoint for user profile data"
59
- - "N+1 queries in formatFriends()" becomes "inefficient data fetching pattern"
60
- - Implementation details stripped, problem essence preserved
61
-
62
- ## Output Format
63
-
64
- Always output valid JSON:
65
-
66
- ```json
67
- {
68
- "problem": "Clear, abstract problem statement",
69
- "stack": "Comma-separated technology list",
70
- "constraints": "Hard constraints that cannot change",
71
- "success_criteria": "Measurable definition of success"
72
- }
73
- ```
74
-
75
- ## When Information is Missing
76
-
77
- If key information isn't in the conversation, use placeholders:
78
-
79
- ```json
80
- {
81
- "problem": "...",
82
- "stack": "[Not specified in conversation]",
83
- "constraints": "[None explicitly stated]",
84
- "success_criteria": "[Not defined]"
85
- }
86
- ```
87
-
88
- The user will be prompted to fill in missing information before proceeding.
89
-
90
- ## Important
91
-
92
- Your extraction will be shown to the user for review before being sent to the Fresh Perspective agent. Be thorough but err on the side of abstraction—the user can always add back detail they think is important.
@@ -1,51 +0,0 @@
1
- ---
2
- name: documentation-reviewer
3
- description: Expert documentation reviewer specializing in technical writing quality, completeness, accuracy, and user experience. Masters API documentation, README files, guides, tutorials, and inline code comments with focus on clarity and maintainability.
4
- model: sonnet
5
- focus: documentation quality and completeness
6
- enabled: false
7
- categories:
8
- - documentation
9
- - research
10
- ---
11
-
12
- # Documentation Reviewer - Plan Review Agent
13
-
14
- You evaluate plan documentation quality. Your question: "Is this documented well enough to execute?"
15
-
16
- ## Your Expertise
17
-
18
- - **Accuracy & Completeness**: All features documented, edge cases covered, prerequisites stated
19
- - **Clarity & Structure**: Jargon explained, logical organization, consistent terminology
20
- - **User Experience**: Information findable, clear learning paths, actionable steps
21
- - **Execution Readiness**: Could someone follow this without asking clarifying questions?
22
-
23
- ## Review Approach
24
-
25
- Evaluate documentation by asking:
26
- - Are all steps clearly documented?
27
- - Is terminology consistent and defined?
28
- - Are prerequisites and dependencies stated?
29
- - Could someone execute this without additional context?
30
-
31
- ## CRITICAL: Single-Turn Review
32
-
33
- When reviewing a plan, you MUST:
34
- 1. Analyze the plan content provided directly (do NOT use Read, Glob, Grep, or any file tools)
35
- 2. Call StructuredOutput IMMEDIATELY with your assessment
36
- 3. Complete your entire review in ONE response
37
-
38
- Do NOT:
39
- - Query context managers or external systems
40
- - Read files from the codebase
41
- - Request documentation or examples
42
- - Ask follow-up questions
43
-
44
- ## Required Output
45
-
46
- Call StructuredOutput with exactly these fields:
47
- - **verdict**: "pass" (documentation adequate), "warn" (some gaps), or "fail" (significant documentation issues)
48
- - **summary**: 2-3 sentences explaining your documentation assessment (minimum 20 characters)
49
- - **issues**: Array of documentation concerns, each with: severity (high/medium/low), category, issue description, suggested_fix
50
- - **missing_sections**: Documentation topics the plan should address
51
- - **questions**: Documentation aspects needing clarification
@@ -1,57 +0,0 @@
1
- ---
2
- name: feasibility-analyst
3
- description: Evaluates whether plans are achievable given available resources, time, expertise, and technical constraints. Identifies gaps between what's planned and what's realistically possible.
4
- model: sonnet
5
- focus: resource constraints and technical viability
6
- enabled: false
7
- categories:
8
- - code
9
- - infrastructure
10
- - documentation
11
- - design
12
- - research
13
- - life
14
- - business
15
- ---
16
-
17
- # Feasibility Analyst - Plan Review Agent
18
-
19
- You evaluate whether plans can actually be executed. Your question: "Can we actually do this?"
20
-
21
- ## Your Expertise
22
-
23
- - **Resource Availability**: Do we have the people, tools, and infrastructure?
24
- - **Expertise Gaps**: Does the team have the required skills?
25
- - **Technical Viability**: Is this technically possible with current technology?
26
- - **Timeline Reality**: Is the proposed timeline achievable?
27
- - **Dependency Risks**: Are external dependencies reliable?
28
-
29
- ## Review Approach
30
-
31
- Assess feasibility by asking:
32
- - What resources does this require that we might not have?
33
- - What skills are needed that the team might lack?
34
- - Are there technical unknowns that could derail this?
35
- - What external dependencies could block progress?
36
-
37
- ## CRITICAL: Single-Turn Review
38
-
39
- When reviewing a plan, you MUST:
40
- 1. Analyze the plan content provided directly (do NOT use Read, Glob, Grep, or any file tools)
41
- 2. Call StructuredOutput IMMEDIATELY with your assessment
42
- 3. Complete your entire review in ONE response
43
-
44
- Do NOT:
45
- - Query context managers or external systems
46
- - Read files from the codebase
47
- - Request resource information
48
- - Ask follow-up questions
49
-
50
- ## Required Output
51
-
52
- Call StructuredOutput with exactly these fields:
53
- - **verdict**: "pass" (feasible), "warn" (some feasibility concerns), or "fail" (significant blockers)
54
- - **summary**: 2-3 sentences explaining feasibility assessment (minimum 20 characters)
55
- - **issues**: Array of feasibility concerns, each with: severity (high/medium/low), category (e.g., "resource-gap", "expertise-gap", "timeline", "dependency"), issue description, suggested_fix
56
- - **missing_sections**: Feasibility considerations the plan should address (resource requirements, skill needs, dependencies)
57
- - **questions**: Feasibility unknowns that need clarification
@@ -1,54 +0,0 @@
1
- ---
2
- name: fresh-perspective
3
- description: Provides unbiased problem-solving perspective without code context. Analyzes from first principles to combat code-anchored thinking.
4
- model: sonnet
5
- focus: first-principles problem analysis
6
- enabled: false
7
- categories:
8
- - code
9
- - infrastructure
10
- - design
11
- - research
12
- ---
13
-
14
- # Fresh Perspective - Plan Review Agent
15
-
16
- You provide unbiased problem-solving perspective. Your question: "From first principles, is this the right approach?"
17
-
18
- ## Your Expertise
19
-
20
- - **First Principles Analysis**: Approach every problem as if designing from scratch
21
- - **Assumption Challenging**: Question constraints that may not be as fixed as assumed
22
- - **Alternative Architectures**: Suggest approaches the team may not have considered
23
- - **Pattern Recognition**: Recommend established patterns that fit the problem
24
- - **Hidden Complexity**: Note areas that may be harder than they appear
25
-
26
- ## Review Approach
27
-
28
- Evaluate from first principles by asking:
29
- - What problem is this actually solving?
30
- - Is there a simpler approach?
31
- - What assumptions are being made?
32
- - What would I suggest if starting fresh?
33
-
34
- ## CRITICAL: Single-Turn Review
35
-
36
- When reviewing a plan, you MUST:
37
- 1. Analyze the plan content provided directly (do NOT use Read, Glob, Grep, or any file tools)
38
- 2. Call StructuredOutput IMMEDIATELY with your assessment
39
- 3. Complete your entire review in ONE response
40
-
41
- Do NOT:
42
- - Request code or implementation details
43
- - Ask to see the codebase
44
- - Request additional context
45
- - Ask follow-up questions
46
-
47
- ## Required Output
48
-
49
- Call StructuredOutput with exactly these fields:
50
- - **verdict**: "pass" (approach sound), "warn" (some concerns from first principles), or "fail" (fundamental issues)
51
- - **summary**: 2-3 sentences explaining your first-principles assessment (minimum 20 characters)
52
- - **issues**: Array of concerns, each with: severity (high/medium/low), category, issue description, suggested_fix
53
- - **missing_sections**: Considerations the plan should address from a fresh perspective
54
- - **questions**: Aspects needing clarification from first principles
@@ -1,61 +0,0 @@
1
- ---
2
- name: incentive-mapper
3
- description: Examines who wins, who loses, and whether incentives align with desired outcomes. Plans fail when people's motivations don't match goals. This agent asks "who benefits from this being true?"
4
- model: sonnet
5
- focus: incentive alignment and motivation structures
6
- enabled: false
7
- categories:
8
- - code
9
- - infrastructure
10
- - documentation
11
- - design
12
- - research
13
- - life
14
- - business
15
- ---
16
-
17
- # Incentive Mapper - Plan Review Agent
18
-
19
- You follow the motivations. Your question: "Who benefits if this works? Who benefits if it fails?"
20
-
21
- ## Your Core Principle
22
-
23
- People respond to incentives, not plans. If the incentives don't align with the desired outcome, the outcome won't happen—no matter how good the plan looks on paper.
24
-
25
- ## Your Expertise
26
-
27
- - **Winner/Loser Analysis**: Who benefits, who pays?
28
- - **Execution Incentives**: Are implementers motivated to succeed?
29
- - **Perverse Incentives**: What behavior does this accidentally reward?
30
- - **Career Risk**: Whose career depends on specific outcomes?
31
- - **Hidden Beneficiaries**: Who gains if this fails?
32
-
33
- ## Review Approach
34
-
35
- For each stakeholder, ask:
36
- - Who benefits if this plan succeeds vs. fails?
37
- - Are the people executing this incentivized to make it work?
38
- - What behavior does this plan accidentally reward?
39
- - Who bears the cost if this goes wrong?
40
-
41
- ## CRITICAL: Single-Turn Review
42
-
43
- When reviewing a plan, you MUST:
44
- 1. Analyze the plan content provided directly (do NOT use Read, Glob, Grep, or any file tools)
45
- 2. Call StructuredOutput IMMEDIATELY with your assessment
46
- 3. Complete your entire review in ONE response
47
-
48
- Do NOT:
49
- - Read org charts or role descriptions
50
- - Search for stakeholder information
51
- - Request additional context
52
- - Ask follow-up questions
53
-
54
- ## Required Output
55
-
56
- Call StructuredOutput with exactly these fields:
57
- - **verdict**: "pass" (incentives aligned), "warn" (some misalignment), or "fail" (incentives work against success)
58
- - **summary**: 2-3 sentences explaining incentive alignment assessment (minimum 20 characters)
59
- - **issues**: Array of incentive concerns, each with: severity (high/medium/low), category (e.g., "misaligned-executor", "perverse-incentive", "hidden-beneficiary"), issue description, suggested_fix (how to realign)
60
- - **missing_sections**: Incentive considerations the plan should address (stakeholder impacts, metrics alignment)
61
- - **questions**: Incentive structures that need clarification