skill-brain 2.1.0__tar.gz

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 (188) hide show
  1. skill_brain-2.1.0/.agents/AGENTS.md +194 -0
  2. skill_brain-2.1.0/.agents/brain/config.json +3 -0
  3. skill_brain-2.1.0/.agents/brain/decisions/anti-ai-sop.md +22 -0
  4. skill_brain-2.1.0/.agents/brain/decisions/architecture.md +35 -0
  5. skill_brain-2.1.0/.agents/brain/decisions/backend.md +27 -0
  6. skill_brain-2.1.0/.agents/brain/decisions/debugging.md +45 -0
  7. skill_brain-2.1.0/.agents/brain/decisions/frontend.md +38 -0
  8. skill_brain-2.1.0/.agents/brain/decisions/git.md +59 -0
  9. skill_brain-2.1.0/.agents/brain/decisions/memory.md +48 -0
  10. skill_brain-2.1.0/.agents/brain/index.json +630 -0
  11. skill_brain-2.1.0/.agents/memory/archive/.gitkeep +0 -0
  12. skill_brain-2.1.0/.agents/memory/decisions/.gitkeep +0 -0
  13. skill_brain-2.1.0/.agents/memory/phases/.gitkeep +0 -0
  14. skill_brain-2.1.0/.agents/memory/plans/.gitkeep +0 -0
  15. skill_brain-2.1.0/.agents/skills/animation-auditor/SKILL.md +89 -0
  16. skill_brain-2.1.0/.agents/skills/animation-builder/SKILL.md +108 -0
  17. skill_brain-2.1.0/.agents/skills/animation-opportunities/SKILL.md +102 -0
  18. skill_brain-2.1.0/.agents/skills/animation-performance/SKILL.md +108 -0
  19. skill_brain-2.1.0/.agents/skills/animation-reviewer/SKILL.md +82 -0
  20. skill_brain-2.1.0/.agents/skills/anti-ai-sop-agent/SKILL.md +76 -0
  21. skill_brain-2.1.0/.agents/skills/anti-slop-enforcer/SKILL.md +98 -0
  22. skill_brain-2.1.0/.agents/skills/anti-slop-planner/SKILL.md +70 -0
  23. skill_brain-2.1.0/.agents/skills/apple-feel/SKILL.md +137 -0
  24. skill_brain-2.1.0/.agents/skills/architecture-improver/SKILL.md +90 -0
  25. skill_brain-2.1.0/.agents/skills/architecture-master/SKILL.md +67 -0
  26. skill_brain-2.1.0/.agents/skills/backend-master/SKILL.md +43 -0
  27. skill_brain-2.1.0/.agents/skills/backend-planner/SKILL.md +70 -0
  28. skill_brain-2.1.0/.agents/skills/bug-diagnoser/SKILL.md +119 -0
  29. skill_brain-2.1.0/.agents/skills/canvas-art/SKILL.md +53 -0
  30. skill_brain-2.1.0/.agents/skills/code-reviewer/SKILL.md +87 -0
  31. skill_brain-2.1.0/.agents/skills/codebase-designer/SKILL.md +87 -0
  32. skill_brain-2.1.0/.agents/skills/context-handoff/SKILL.md +77 -0
  33. skill_brain-2.1.0/.agents/skills/debug-master/SKILL.md +38 -0
  34. skill_brain-2.1.0/.agents/skills/debug-planner/SKILL.md +65 -0
  35. skill_brain-2.1.0/.agents/skills/design-engineering/SKILL.md +121 -0
  36. skill_brain-2.1.0/.agents/skills/design-taste-frontend/SKILL.md +68 -0
  37. skill_brain-2.1.0/.agents/skills/design-taste-frontend/references/app-screens.md +30 -0
  38. skill_brain-2.1.0/.agents/skills/design-taste-frontend/references/building-and-composition.md +85 -0
  39. skill_brain-2.1.0/.agents/skills/design-taste-frontend/references/direction-draw.md +56 -0
  40. skill_brain-2.1.0/.agents/skills/design-taste-frontend/references/house-rules.md +44 -0
  41. skill_brain-2.1.0/.agents/skills/design-taste-frontend/references/laws-of-the-craft.md +54 -0
  42. skill_brain-2.1.0/.agents/skills/design-taste-frontend/references/special-cases.md +46 -0
  43. skill_brain-2.1.0/.agents/skills/desktop-ui-architect/SKILL.md +106 -0
  44. skill_brain-2.1.0/.agents/skills/domain-modeler/SKILL.md +89 -0
  45. skill_brain-2.1.0/.agents/skills/dynamic-ui-engine/SKILL.md +85 -0
  46. skill_brain-2.1.0/.agents/skills/frontend-baseline/SKILL.md +41 -0
  47. skill_brain-2.1.0/.agents/skills/frontend-master/SKILL.md +51 -0
  48. skill_brain-2.1.0/.agents/skills/frontend-planner/SKILL.md +85 -0
  49. skill_brain-2.1.0/.agents/skills/git-atomic-committer/SKILL.md +157 -0
  50. skill_brain-2.1.0/.agents/skills/git-branch-manager/SKILL.md +130 -0
  51. skill_brain-2.1.0/.agents/skills/git-isolator/SKILL.md +91 -0
  52. skill_brain-2.1.0/.agents/skills/git-master/SKILL.md +50 -0
  53. skill_brain-2.1.0/.agents/skills/git-phase-committer/SKILL.md +112 -0
  54. skill_brain-2.1.0/.agents/skills/implementation-planner/SKILL.md +89 -0
  55. skill_brain-2.1.0/.agents/skills/issue-triager/SKILL.md +92 -0
  56. skill_brain-2.1.0/.agents/skills/karpathy-coder/SKILL.md +71 -0
  57. skill_brain-2.1.0/.agents/skills/large-task-mapper/SKILL.md +85 -0
  58. skill_brain-2.1.0/.agents/skills/mcp-builder/SKILL.md +113 -0
  59. skill_brain-2.1.0/.agents/skills/memory-master/SKILL.md +69 -0
  60. skill_brain-2.1.0/.agents/skills/mobile-native-feel/SKILL.md +194 -0
  61. skill_brain-2.1.0/.agents/skills/phase-planner/SKILL.md +139 -0
  62. skill_brain-2.1.0/.agents/skills/phone-layout-master/SKILL.md +126 -0
  63. skill_brain-2.1.0/.agents/skills/pr-writer/SKILL.md +69 -0
  64. skill_brain-2.1.0/.agents/skills/research-agent/SKILL.md +77 -0
  65. skill_brain-2.1.0/.agents/skills/responsive-contract-enforcer/SKILL.md +77 -0
  66. skill_brain-2.1.0/.agents/skills/root-cause-debugger/SKILL.md +110 -0
  67. skill_brain-2.1.0/.agents/skills/session-continuity/SKILL.md +61 -0
  68. skill_brain-2.1.0/.agents/skills/setup-wizard/SKILL.md +79 -0
  69. skill_brain-2.1.0/.agents/skills/skill-creator/SKILL.md +77 -0
  70. skill_brain-2.1.0/.agents/skills/spec-implementer/SKILL.md +76 -0
  71. skill_brain-2.1.0/.agents/skills/spec-writer/SKILL.md +84 -0
  72. skill_brain-2.1.0/.agents/skills/subagent-executor/SKILL.md +76 -0
  73. skill_brain-2.1.0/.agents/skills/supreme-orchestrator/SKILL.md +90 -0
  74. skill_brain-2.1.0/.agents/skills/svg-icon-craftsman/SKILL.md +126 -0
  75. skill_brain-2.1.0/.agents/skills/swift-writer/SKILL.md +78 -0
  76. skill_brain-2.1.0/.agents/skills/tdd-implementer/SKILL.md +108 -0
  77. skill_brain-2.1.0/.agents/skills/test-verifier/SKILL.md +94 -0
  78. skill_brain-2.1.0/.agents/skills/text-tone-enforcer/SKILL.md +56 -0
  79. skill_brain-2.1.0/.agents/skills/theme-system/SKILL.md +67 -0
  80. skill_brain-2.1.0/.agents/skills/ticket-breaker/SKILL.md +75 -0
  81. skill_brain-2.1.0/.agents/skills/typography-master/SKILL.md +100 -0
  82. skill_brain-2.1.0/.agents/skills/ui-design-principles/SKILL.md +114 -0
  83. skill_brain-2.1.0/.agents/skills/ui-library-picker/SKILL.md +61 -0
  84. skill_brain-2.1.0/.agents/skills/ui-prototyper/SKILL.md +69 -0
  85. skill_brain-2.1.0/.agents/skills/ui-stress-tester/SKILL.md +112 -0
  86. skill_brain-2.1.0/.agents/skills/ui-taste-enforcer/SKILL.md +158 -0
  87. skill_brain-2.1.0/.agents/skills/ui-tells-eliminator/SKILL.md +119 -0
  88. skill_brain-2.1.0/.agents/skills/web-artifact-builder/SKILL.md +82 -0
  89. skill_brain-2.1.0/.agents/skills/webapp-tester/SKILL.md +111 -0
  90. skill_brain-2.1.0/.gitignore +49 -0
  91. skill_brain-2.1.0/LICENSE +21 -0
  92. skill_brain-2.1.0/PKG-INFO +144 -0
  93. skill_brain-2.1.0/README.md +114 -0
  94. skill_brain-2.1.0/docs/Skill_Brain_Manual.pdf +0 -0
  95. skill_brain-2.1.0/docs/manual.html +956 -0
  96. skill_brain-2.1.0/pyproject.toml +24 -0
  97. skill_brain-2.1.0/src/skill_brain/__init__.py +3 -0
  98. skill_brain-2.1.0/src/skill_brain/cli.py +185 -0
  99. skill_brain-2.1.0/src/skill_brain/data/brain/config.json +3 -0
  100. skill_brain-2.1.0/src/skill_brain/data/brain/decisions/anti-ai-sop.md +22 -0
  101. skill_brain-2.1.0/src/skill_brain/data/brain/decisions/architecture.md +35 -0
  102. skill_brain-2.1.0/src/skill_brain/data/brain/decisions/backend.md +27 -0
  103. skill_brain-2.1.0/src/skill_brain/data/brain/decisions/debugging.md +45 -0
  104. skill_brain-2.1.0/src/skill_brain/data/brain/decisions/frontend.md +38 -0
  105. skill_brain-2.1.0/src/skill_brain/data/brain/decisions/git.md +59 -0
  106. skill_brain-2.1.0/src/skill_brain/data/brain/decisions/memory.md +48 -0
  107. skill_brain-2.1.0/src/skill_brain/data/brain/index.json +630 -0
  108. skill_brain-2.1.0/src/skill_brain/data/skills/animation-auditor/SKILL.md +89 -0
  109. skill_brain-2.1.0/src/skill_brain/data/skills/animation-builder/SKILL.md +108 -0
  110. skill_brain-2.1.0/src/skill_brain/data/skills/animation-opportunities/SKILL.md +102 -0
  111. skill_brain-2.1.0/src/skill_brain/data/skills/animation-performance/SKILL.md +108 -0
  112. skill_brain-2.1.0/src/skill_brain/data/skills/animation-reviewer/SKILL.md +82 -0
  113. skill_brain-2.1.0/src/skill_brain/data/skills/anti-ai-sop-agent/SKILL.md +76 -0
  114. skill_brain-2.1.0/src/skill_brain/data/skills/anti-slop-enforcer/SKILL.md +98 -0
  115. skill_brain-2.1.0/src/skill_brain/data/skills/anti-slop-planner/SKILL.md +70 -0
  116. skill_brain-2.1.0/src/skill_brain/data/skills/apple-feel/SKILL.md +137 -0
  117. skill_brain-2.1.0/src/skill_brain/data/skills/architecture-improver/SKILL.md +90 -0
  118. skill_brain-2.1.0/src/skill_brain/data/skills/architecture-master/SKILL.md +67 -0
  119. skill_brain-2.1.0/src/skill_brain/data/skills/backend-master/SKILL.md +43 -0
  120. skill_brain-2.1.0/src/skill_brain/data/skills/backend-planner/SKILL.md +70 -0
  121. skill_brain-2.1.0/src/skill_brain/data/skills/bug-diagnoser/SKILL.md +119 -0
  122. skill_brain-2.1.0/src/skill_brain/data/skills/canvas-art/SKILL.md +53 -0
  123. skill_brain-2.1.0/src/skill_brain/data/skills/code-reviewer/SKILL.md +87 -0
  124. skill_brain-2.1.0/src/skill_brain/data/skills/codebase-designer/SKILL.md +87 -0
  125. skill_brain-2.1.0/src/skill_brain/data/skills/context-handoff/SKILL.md +77 -0
  126. skill_brain-2.1.0/src/skill_brain/data/skills/debug-master/SKILL.md +38 -0
  127. skill_brain-2.1.0/src/skill_brain/data/skills/debug-planner/SKILL.md +65 -0
  128. skill_brain-2.1.0/src/skill_brain/data/skills/design-engineering/SKILL.md +121 -0
  129. skill_brain-2.1.0/src/skill_brain/data/skills/design-taste-frontend/SKILL.md +68 -0
  130. skill_brain-2.1.0/src/skill_brain/data/skills/design-taste-frontend/references/app-screens.md +30 -0
  131. skill_brain-2.1.0/src/skill_brain/data/skills/design-taste-frontend/references/building-and-composition.md +85 -0
  132. skill_brain-2.1.0/src/skill_brain/data/skills/design-taste-frontend/references/direction-draw.md +56 -0
  133. skill_brain-2.1.0/src/skill_brain/data/skills/design-taste-frontend/references/house-rules.md +44 -0
  134. skill_brain-2.1.0/src/skill_brain/data/skills/design-taste-frontend/references/laws-of-the-craft.md +54 -0
  135. skill_brain-2.1.0/src/skill_brain/data/skills/design-taste-frontend/references/special-cases.md +46 -0
  136. skill_brain-2.1.0/src/skill_brain/data/skills/desktop-ui-architect/SKILL.md +106 -0
  137. skill_brain-2.1.0/src/skill_brain/data/skills/domain-modeler/SKILL.md +89 -0
  138. skill_brain-2.1.0/src/skill_brain/data/skills/dynamic-ui-engine/SKILL.md +85 -0
  139. skill_brain-2.1.0/src/skill_brain/data/skills/frontend-baseline/SKILL.md +41 -0
  140. skill_brain-2.1.0/src/skill_brain/data/skills/frontend-master/SKILL.md +51 -0
  141. skill_brain-2.1.0/src/skill_brain/data/skills/frontend-planner/SKILL.md +85 -0
  142. skill_brain-2.1.0/src/skill_brain/data/skills/git-atomic-committer/SKILL.md +157 -0
  143. skill_brain-2.1.0/src/skill_brain/data/skills/git-branch-manager/SKILL.md +130 -0
  144. skill_brain-2.1.0/src/skill_brain/data/skills/git-isolator/SKILL.md +91 -0
  145. skill_brain-2.1.0/src/skill_brain/data/skills/git-master/SKILL.md +50 -0
  146. skill_brain-2.1.0/src/skill_brain/data/skills/git-phase-committer/SKILL.md +112 -0
  147. skill_brain-2.1.0/src/skill_brain/data/skills/implementation-planner/SKILL.md +89 -0
  148. skill_brain-2.1.0/src/skill_brain/data/skills/issue-triager/SKILL.md +92 -0
  149. skill_brain-2.1.0/src/skill_brain/data/skills/karpathy-coder/SKILL.md +71 -0
  150. skill_brain-2.1.0/src/skill_brain/data/skills/large-task-mapper/SKILL.md +85 -0
  151. skill_brain-2.1.0/src/skill_brain/data/skills/mcp-builder/SKILL.md +113 -0
  152. skill_brain-2.1.0/src/skill_brain/data/skills/memory-master/SKILL.md +69 -0
  153. skill_brain-2.1.0/src/skill_brain/data/skills/mobile-native-feel/SKILL.md +194 -0
  154. skill_brain-2.1.0/src/skill_brain/data/skills/phase-planner/SKILL.md +139 -0
  155. skill_brain-2.1.0/src/skill_brain/data/skills/phone-layout-master/SKILL.md +126 -0
  156. skill_brain-2.1.0/src/skill_brain/data/skills/pr-writer/SKILL.md +69 -0
  157. skill_brain-2.1.0/src/skill_brain/data/skills/research-agent/SKILL.md +77 -0
  158. skill_brain-2.1.0/src/skill_brain/data/skills/responsive-contract-enforcer/SKILL.md +77 -0
  159. skill_brain-2.1.0/src/skill_brain/data/skills/root-cause-debugger/SKILL.md +110 -0
  160. skill_brain-2.1.0/src/skill_brain/data/skills/session-continuity/SKILL.md +61 -0
  161. skill_brain-2.1.0/src/skill_brain/data/skills/setup-wizard/SKILL.md +79 -0
  162. skill_brain-2.1.0/src/skill_brain/data/skills/skill-creator/SKILL.md +77 -0
  163. skill_brain-2.1.0/src/skill_brain/data/skills/spec-implementer/SKILL.md +76 -0
  164. skill_brain-2.1.0/src/skill_brain/data/skills/spec-writer/SKILL.md +84 -0
  165. skill_brain-2.1.0/src/skill_brain/data/skills/subagent-executor/SKILL.md +76 -0
  166. skill_brain-2.1.0/src/skill_brain/data/skills/supreme-orchestrator/SKILL.md +90 -0
  167. skill_brain-2.1.0/src/skill_brain/data/skills/svg-icon-craftsman/SKILL.md +126 -0
  168. skill_brain-2.1.0/src/skill_brain/data/skills/swift-writer/SKILL.md +78 -0
  169. skill_brain-2.1.0/src/skill_brain/data/skills/tdd-implementer/SKILL.md +108 -0
  170. skill_brain-2.1.0/src/skill_brain/data/skills/test-verifier/SKILL.md +94 -0
  171. skill_brain-2.1.0/src/skill_brain/data/skills/text-tone-enforcer/SKILL.md +56 -0
  172. skill_brain-2.1.0/src/skill_brain/data/skills/theme-system/SKILL.md +67 -0
  173. skill_brain-2.1.0/src/skill_brain/data/skills/ticket-breaker/SKILL.md +75 -0
  174. skill_brain-2.1.0/src/skill_brain/data/skills/typography-master/SKILL.md +100 -0
  175. skill_brain-2.1.0/src/skill_brain/data/skills/ui-design-principles/SKILL.md +114 -0
  176. skill_brain-2.1.0/src/skill_brain/data/skills/ui-library-picker/SKILL.md +61 -0
  177. skill_brain-2.1.0/src/skill_brain/data/skills/ui-prototyper/SKILL.md +69 -0
  178. skill_brain-2.1.0/src/skill_brain/data/skills/ui-stress-tester/SKILL.md +112 -0
  179. skill_brain-2.1.0/src/skill_brain/data/skills/ui-taste-enforcer/SKILL.md +158 -0
  180. skill_brain-2.1.0/src/skill_brain/data/skills/ui-tells-eliminator/SKILL.md +119 -0
  181. skill_brain-2.1.0/src/skill_brain/data/skills/web-artifact-builder/SKILL.md +82 -0
  182. skill_brain-2.1.0/src/skill_brain/data/skills/webapp-tester/SKILL.md +111 -0
  183. skill_brain-2.1.0/src/skill_brain/data/templates/AGENTS.md +47 -0
  184. skill_brain-2.1.0/src/skill_brain/data/templates/CLAUDE.md +9 -0
  185. skill_brain-2.1.0/src/skill_brain/data/templates/GEMINI.md +14 -0
  186. skill_brain-2.1.0/src/skill_brain/doctor.py +172 -0
  187. skill_brain-2.1.0/src/skill_brain/indexer.py +160 -0
  188. skill_brain-2.1.0/src/skill_brain/installer.py +432 -0
@@ -0,0 +1,194 @@
1
+ # Skill Brain — Master Engineering Protocol
2
+
3
+ This is the master rule file. It loads automatically in every session. Read it before anything else.
4
+
5
+ ---
6
+
7
+ ## Philosophy
8
+
9
+ We build real engineering products. Not AI-generated slop. Not template defaults. Not the average of everything the model has seen.
10
+
11
+ Every decision here is a deliberate, mathematically grounded choice made for this project and this project only.
12
+
13
+ ---
14
+
15
+ ## Dollar Commands & Trigger Keywords ($)
16
+
17
+ You can trigger specific categories, dedicated planners, and capabilities instantly using dollar commands (`$` prefix) or shorthand keywords:
18
+
19
+ | Command | Keyword Trigger | Target Orchestrator / Skill | Action |
20
+ |---|---|---|---|
21
+ | `$orchestrate` | `brain:` | `supreme-orchestrator` | Evaluates multi-domain requests, selects category routing, gates execution. |
22
+ | `$plan-frontend`| `plan-ui:` | `frontend-planner` | Formulates complete UI design & dual-viewport responsive blueprint before coding. |
23
+ | `$frontend` | `ui:`, `fe:` | `frontend-master` | Activates frontend suite with Taste Kill + Anti-SOP + Dynamic Sizing baselines. |
24
+ | `$plan-backend` | `plan-api:` | `backend-planner` | Formulates domain models, responsive API contracts, and TDD plan before coding. |
25
+ | `$backend` | `api:`, `be:` | `backend-master` | Activates backend suite with Karpathy simplicity + TDD + Responsive contracts. |
26
+ | `$plan-debug` | `plan-fix:` | `debug-planner` | Mandatory diagnostic plan first: symptom, hypothesis, evidence roadmap. |
27
+ | `$debug` | `fix:` | `debug-master` | Executes diagnostic plan, isolates root cause, requires evidence before fixes. |
28
+ | `$plan-anti-slop`| `audit-plan:` | `anti-slop-planner` | Scans for AI tells, outputs itemized remediation plan across 6 dimensions. |
29
+ | `$anti-slop` | `gate:`, `audit:` | `anti-ai-sop-agent` | Generates 6-category quality gate scorecard (PASS / WARN / FAIL) with `--fix`. |
30
+ | `$architect` | `arch:`, `isolate:` | `architecture-master` | Isolates workspace via worktree, maps decision tickets, or dispatches sub-agents. |
31
+ | `$plan` | `plan:` | Domain Planner (`frontend-planner`, `backend-planner`, `debug-planner`, `implementation-planner`) | Formulates in-chat blueprint for task with zero disk writes. |
32
+ | `$memory` | `memory:` | `memory-master` | Creates master plan & phase files, renders Live Chat Dashboard, user-controlled. |
33
+ | `$taste` | `kill-slop:` | `design-taste-frontend` | Runs the 247-site study art direction: palette from subject, no template defaults. |
34
+ | `$typography` | `type:` | `typography-master` | Selects domain font archetype (Swiss, Editorial, Mono, Humanist), clamp scale. |
35
+ | `$icon` | `svg:` | `svg-icon-craftsman` | Crafts clean 24×24 grid-snapped vector geometry with 1.5px/2.0px stroke. |
36
+ | `$test`, `$verify` | `test:`, `evidence:` | `test-verifier` | Runs tests and verification ONLY when explicitly asked by the user ($test). |
37
+ | `$git` | `git:` | `git-master` | Apex Git orchestrator: branch lifecycle, atomic commit splitting, phase gates. |
38
+ | `$commit` | `commit:` | `git-atomic-committer` | Analyzes diffs, splits into 2+ atomic commits across domains, Conventional format. |
39
+ | `$branch` | `branch:` | `git-branch-manager` | Kebab branch taxonomy (`feat/`, `fix/`, `phase/`), clean tree, rebase workflow. |
40
+ | `$phase-commit` | `phase-commit:` | `git-phase-committer` | Automatic memory phase commit hook with embedded verification proof. |
41
+
42
+ ---
43
+
44
+ ## The Master Skill Protocol
45
+
46
+ **Rule 1 — Supreme Orchestration & Ask Before Acting:**
47
+ The top orchestrator is `supreme-orchestrator`.
48
+ Skill Brain reads `.agents/brain/config.json` for the confirmation policy (`"confirm": "always" | "multi-skill" | "never"`, default `"always"`):
49
+ - `"always"`: Always present proposed skills and ask confirmation before executing:
50
+ > *"I propose using `[skill-a]` + `[skill-b]` via `.agents/brain/decisions/[category].md`. Shall I proceed?"*
51
+ - `"multi-skill"`: Ask confirmation only when coordinating 2 or more skills; single-skill tasks proceed directly.
52
+ - `"never"`: Autonomous execution without interactive confirmation prompts.
53
+
54
+ **Rule 2 — Categorical Dispatch & Planning Fast-Paths:**
55
+ When the user explicitly invokes a planning command (e.g. `$plan-frontend`, `$plan-backend`, `$plan-debug`, `$plan-anti-slop`):
56
+ Formulate the architecture plan, present it to the user, and request confirmation before touching code.
57
+
58
+ **Rule 3 — Mandatory Frontend Baseline Bundle:**
59
+ For all frontend tasks:
60
+ - `frontend-baseline` (≤ 4 KB) is the mandatory active baseline bundle, condensing Taste Kill v2 (`design-taste-frontend`), Anti-AI SOP (`ui-tells-eliminator`), and Dynamic Responsive Sizing (`phone-layout-master` + `desktop-ui-architect`).
61
+ - Individual full skills remain accessible on demand from references.
62
+
63
+ **Rule 4 — Mandatory Backend Responsive Contracts:**
64
+ When designing or reviewing backend APIs and data structures:
65
+ - `responsive-contract-enforcer` is active.
66
+ - Forbids fixed pixel dimensions in API payloads; mandates explicit aspect ratios and responsive srcsets.
67
+
68
+ **Rule 5 — Debugging Planning Gate:**
69
+ When the user says *"debug"* or triggers `$debug`, **NEVER** edit code immediately.
70
+ 1. Formulate a diagnostic plan using `debug-planner` and `.agents/brain/decisions/debugging.md`.
71
+ 2. Present the plan (symptom, reproduction, hypotheses, investigation steps) to the user.
72
+ 3. Ask the user: *"Here is my diagnostic plan. Shall I proceed with the investigation?"*
73
+
74
+ **Rule 6 — User-Controlled Virtual Memory & $plan Routing:**
75
+ The user has 100% control over memory.
76
+ - **DO NOT** write casual tasks or single-turn edits into disk memory.
77
+ - `$plan` produces an in-chat plan with **zero disk writes** (routing to `frontend-planner`, `backend-planner`, `debug-planner`, or `implementation-planner`).
78
+ - Activate `.agents/memory/plans/` and `.agents/memory/phases/` **ONLY** when the user explicitly commands `$memory` or *"add to memory"*.
79
+ - When active, render the Live Phase Status Dashboard in the chat.
80
+ - Clean and archive to `.agents/memory/archive/` once all phases pass verification.
81
+
82
+ **Rule 7 — Token Efficiency (Max 3 Task Skills + Baseline Bundle):**
83
+ Never load more than 3 task skills + the baseline bundle (`frontend-baseline`) at the same time. Never attempt a monolithic pass.
84
+
85
+ **Rule 8 — Mandatory Atomic Git Commits & Branch Hygiene:**
86
+ When committing changes or managing branches:
87
+ - **Inspect Before Staging:** Run `git status --porcelain` and `git diff --stat`. Never blind-stage with `git add .`.
88
+ - **Multi-Commit Splitting:** When changes cross domain boundaries (e.g. backend core logic, UI, tests, memory phases), split them into 2 or more sequential atomic commits.
89
+ - **Conventional Commits Standard:** `<type>(<scope>): <imperative summary>` (<= 72 chars), body explaining *what* and *why*, and footer with verification proof (`Verified: <test output>`).
90
+ - **Phase Memory Hook:** When a virtual memory phase reaches `FINISHED` in `.agents/memory/phases/`, automatically trigger `git-phase-committer` (`$phase-commit`) before advancing to the next phase.
91
+ - **Branch Hygiene:** Never work directly on `main` for multi-step features. Branch with `feat/`, `fix/`, or `phase/`, rebase against `main`, and clean up merged branches.
92
+
93
+ **Rule 9 — Test-On-Demand Protocol (Never Test Unless Explicitly Asked):**
94
+ DO NOT write tests, run test suites, or execute logic test scripts unless the user explicitly requests it or invokes `$test` / `$verify`. Never block, delay, or clutter implementation with unsolicited test loops or speculative test suites unless explicitly commanded.
95
+
96
+ ---
97
+
98
+ ## The Skill Map
99
+
100
+ ### Apex Orchestrator
101
+ | Skill | Command | Purpose |
102
+ |---|---|---|
103
+ | `supreme-orchestrator` | `$orchestrate` | Top-level router for any user request, category routing & confirmation gate |
104
+
105
+ ### Category Orchestrators & Dedicated Planners
106
+ | Orchestrator / Planner | Command | Decision File | Purpose |
107
+ |---|---|---|---|
108
+ | `frontend-master` | `$frontend` | `.agents/brain/decisions/frontend.md` | All UI, design, typography, icons, animation |
109
+ | `frontend-planner` | `$plan-frontend` | `.agents/brain/decisions/frontend.md` | Pre-build UI design & dual-viewport responsive blueprint |
110
+ | `backend-master` | `$backend` | `.agents/brain/decisions/backend.md` | API, data, logic, TDD, Swift, Karpathy simplicity |
111
+ | `backend-planner` | `$plan-backend` | `.agents/brain/decisions/backend.md` | Domain schema, responsive API contract, and TDD plan |
112
+ | `debug-master` | `$debug` | `.agents/brain/decisions/debugging.md` | Diagnostic planning, root-cause isolation, verification |
113
+ | `debug-planner` | `$plan-debug` | `.agents/brain/decisions/debugging.md` | Diagnostic symptom, reproduction, and hypothesis roadmap |
114
+ | `anti-slop-planner`| `$plan-anti-slop`| `.agents/brain/decisions/anti-ai-sop.md` | 6-dimension code scanner & itemized remediation plan |
115
+ | `architecture-master` | `$architect` | `.agents/brain/decisions/architecture.md` | Worktree isolation, sub-agents, multi-session mapping |
116
+ | `memory-master` | `$memory` | `.agents/brain/decisions/memory.md` | User-controlled virtual memory plans & phases |
117
+ | `git-master` | `$git` | `.agents/brain/decisions/git.md` | Apex Git orchestrator: branch management, atomic commits, phase sync |
118
+ | `git-atomic-committer` | `$commit` | `.agents/brain/decisions/git.md` | Multi-commit splitting (2+ commits), Conventional Commits crafting |
119
+
120
+ ### Frontend Skills
121
+ - `frontend-baseline` (`$frontend-baseline`) — Mandatory unified frontend bundle: Taste Kill + Anti-AI SOP + Dynamic Sizing
122
+ - `frontend-planner` (`$plan-frontend`) — Pre-build UI design & dual-viewport blueprint
123
+ - `phone-layout-master` — Mobile phone perfection (320px–480px, 100svh, 44px targets, bottom sheets)
124
+ - `desktop-ui-architect` — Desktop application UI (768px–2560px, container queries, max bounds)
125
+ - `dynamic-ui-engine` — Master dynamic responsive sizing engine (fluid clamp math, zero CLS)
126
+ - `design-taste-frontend` (`$taste`) — Full Taste Kill v2 engine (247 award sites study, no-slop house style)
127
+ - `ui-taste-enforcer` — Anti-slop art direction: no generic defaults, subject-matter inventory
128
+ - `ui-design-principles` — 2-pass design: plan → review against brief → build → critique
129
+ - `typography-master` (`$typography`) — Domain-tailored font archetypes, fluid clamp scales, tracking math
130
+ - `svg-icon-craftsman` (`$icon`) — 24×24 grid, 1.5px/2.0px uniform stroke, zero-slop clean vectors
131
+ - `animation-builder` — Build purposeful web animations from scratch with proper easing
132
+ - `animation-reviewer` — Review existing motion against craft standards
133
+ - `animation-auditor` — Full codebase animation audit + improvement roadmap
134
+ - `animation-performance` — Fix janky animations; GPU composite layer tuning (16.6ms budget)
135
+ - `animation-opportunities` — Find what should animate but doesn't
136
+ - `apple-feel` — Apple-style spring physics, gesture UI, fluid momentum motion
137
+ - `mobile-native-feel` — Make web apps feel native on mobile: 100svh, tap lag fixes, safe areas
138
+ - `ui-stress-tester` — Feed worst-case data, find layout breaks and truncation failures
139
+ - `ui-library-picker` — Opinionated library selection: Radix, Sonner, cmdk, TanStack Table
140
+ - `ui-prototyper` — Build 3 genuinely different UI variants behind a live visual picker
141
+ - `design-engineering` — Emil Kowalski's invisible polish: 9 states, micro-interactions
142
+ - `canvas-art` — Static art, posters, PNG/PDF design output
143
+ - `theme-system` — Apply or generate visual themes (Obsidian, Paper, Blueprint)
144
+ - `web-artifact-builder` — Multi-component React/Tailwind/shadcn applications
145
+ - `webapp-tester` — Playwright browser automation testing for web UIs
146
+
147
+ ### Backend Skills
148
+ - `backend-planner` (`$plan-backend`) — Pre-implementation domain, contract, and TDD blueprint
149
+ - `responsive-contract-enforcer` — Mandatory backend responsive contract (no pixel widths, explicit aspect ratios)
150
+ - `karpathy-coder` — Surgical code implementation: minimal blast radius, YAGNI, think first
151
+ - `tdd-implementer` — Test-driven development: red → green → refactor loop
152
+ - `implementation-planner` — Detailed implementation plan before touching code
153
+ - `spec-writer` — Synthesize conversation into a formal technical specification
154
+ - `ticket-breaker` — Break spec into tracer-bullet tickets with dependency graph
155
+ - `spec-implementer` — Implement from a spec or tickets with incremental commits
156
+ - `domain-modeler` — Build and sharpen domain model and GLOSSARY.md
157
+ - `codebase-designer` — Deep module design, interface deepening, seam placement
158
+ - `architecture-improver` — Scan codebase for architectural debt and circular dependencies
159
+ - `swift-writer` — Modern Swift 6, strict concurrency, @MainActor, Swift Testing
160
+ - `pr-writer` — Write clear, complete pull request descriptions with test steps
161
+ - `mcp-builder` — Build MCP servers to connect LLMs with external APIs
162
+
163
+ ### Debugging Skills
164
+ - `debug-planner` (`$plan-debug`) — Mandatory diagnostic symptom, reproduction, and hypothesis plan
165
+ - `root-cause-debugger` (`$debug`) — Find root cause FIRST before attempting any fix
166
+ - `bug-diagnoser` — Systematic diagnosis loop for hard bugs, bisecting, regressions
167
+ - `test-verifier` (`$verify`) — Evidence before claims: run verification commands before saying "done"
168
+ - `code-reviewer` — Review against repo standards + spec in parallel
169
+ - `issue-triager` — Move issues through triage, verify reproduction, write agent briefs
170
+
171
+ ### Architecture Skills
172
+ - `subagent-executor` — Dispatch fresh sub-agents per task with isolated context
173
+ - `git-isolator` — Create isolated workspace via git worktrees before feature work
174
+ - `large-task-mapper` — Map project-level work as decision tickets across sessions
175
+ - `research-agent` — Investigate questions against primary sources with citations
176
+ - `setup-wizard` — Interactive bash wizard for human-only configuration steps
177
+ - `skill-creator` — Create, benchmark, and evaluate new skills
178
+
179
+ ### Memory Skills (User-Controlled)
180
+ - `phase-planner` — Master plan (`plans/`) + phase files (`phases/`) + live chat board + cleanup
181
+ - `session-continuity` — Recover state from memory files across sessions
182
+ - `context-handoff` — Compact session state into a cold-start handoff document
183
+
184
+ ### Anti-AI SOP Skills & Standalone Agent
185
+ - `anti-slop-planner` (`$plan-anti-slop`) — Pre-remediation 6-dimension code scanner & plan
186
+ - `anti-slop-enforcer` — Master kill-list for synthetic text filler and generic UI defaults
187
+ - `text-tone-enforcer` — Calibrate prose to direct, authoritative senior-engineer standard
188
+ - `ui-tells-eliminator` — Code-level scanner for pill badges, eyebrows, blob gradients
189
+ - `anti-ai-sop-agent` (`$anti-slop`) — Standalone quality-gate agent: 6-category scorecard (PASS / WARN / FAIL)
190
+
191
+ ### Git Skills
192
+ - `git-atomic-committer` (`$commit`) — Multi-domain commit splitting engine (2+ commits based on blast radius & type)
193
+ - `git-branch-manager` (`$branch`) — Strict branch lifecycle, kebab taxonomy, rebase sync, merge readiness
194
+ - `git-phase-committer` (`$phase-commit`) — Automatic phase completion commits with embedded verification proof
@@ -0,0 +1,3 @@
1
+ {
2
+ "confirm": "always"
3
+ }
@@ -0,0 +1,22 @@
1
+ # Anti-AI SOP Skills — Decision Making Matrix
2
+
3
+ This document dictates how the agent monitors, purges, and audits AI tells across prose, visual design, vectors, and code.
4
+
5
+ ---
6
+
7
+ ## 1. Zero Tolerance Mandate
8
+
9
+ Before ANY response, code snippet, SVG, or UI is returned to the user, run the anti-slop check.
10
+ If an output contains synthetic tells, rewrite it before sending.
11
+
12
+ ---
13
+
14
+ ## 2. Specialized Skill Selection Matrix
15
+
16
+ | Content Being Produced | Selected Skills | Enforced Restrictions |
17
+ |---|---|---|
18
+ | **Plan an Anti-AI audit before fixing** | `anti-slop-planner` (`$plan-anti-slop`) | Catalogs all AI tells across 6 dimensions with file:line citations; drafts surgical remediation plan. |
19
+ | **Formal quality gate audit of repo/PR** | `agents/anti-ai-sop-agent` (`$anti-slop`) | Produces formal 6-category scorecard (PASS / WARN / FAIL) with concrete citations and optional `--fix` mode. |
20
+ | **Text, explanations, answers, PRs** | `text-tone-enforcer` + `anti-slop-enforcer` | No sycophantic openers, no filler transitions ("Furthermore"), no bullet-point abuse; direct senior engineer cadence. |
21
+ | **Frontend UI (CSS, Tailwind, JSX, HTML)** | `ui-tells-eliminator` + `anti-slop-enforcer` | No cream/terracotta Anthropic clone, no pill badges above headlines, no tracked uppercase eyebrows, no 3-card centered icon grids. |
22
+ | **SVG Icons and Vector Graphics** | `svg-icon-craftsman` (`$icon`) | No wandering bezier curves, standard 24×24 viewBox, uniform 1.5px/2.0px stroke, integral pixel snapping. |
@@ -0,0 +1,35 @@
1
+ # Architecture Skills — Decision Making Matrix
2
+
3
+ This document dictates how the agent handles system design, workspace isolation, sub-agent dispatch, and large project planning.
4
+
5
+ ---
6
+
7
+ ## 1. Mandatory Baseline
8
+
9
+ Before structural or multi-module changes:
10
+ - Evaluate workspace isolation: if a feature branch or worktree is appropriate, activate `git-isolator`.
11
+ - Keep the main branch clean and unpolluted with in-progress experiments.
12
+
13
+ ---
14
+
15
+ ## 2. Specialized Skill Selection Matrix
16
+
17
+ | Architectural Goal | Selected Skills | Why This Combination |
18
+ |---|---|---|
19
+ | **Isolate workspace for feature work** | `git-isolator` | Creates native worktree (`git worktree add -b feature/...`), verifies isolation, keeps main tree clean. |
20
+ | **Dispatch parallel task execution** | `subagent-executor` | Dispatches fresh sub-agents with isolated prompts per task; reviews each task output before merging. |
21
+ | **Map huge project spanning sessions** | `large-task-mapper` | Deconstructs big goals into decision tickets (blocking forks in the road) before implementation tickets. |
22
+ | **Research API / library from sources** | `research-agent` | Restricts investigation strictly to primary sources (official docs, repo source); cites URLs and file lines. |
23
+ | **Human credential / dashboard setup** | `setup-wizard` | Generates idempotent, color-coded interactive bash wizard for human-only secrets, dashboards, or DNS steps. |
24
+ | **Author or optimize an agent skill** | `skill-creator` | Benchmarks trigger descriptions, runs eval matrices, refines procedural instructions. |
25
+
26
+ ---
27
+
28
+ ## 3. Sub-Agent vs. Single Pass Decision
29
+
30
+ - **Use `subagent-executor` when:**
31
+ - Tasks are embarrassingly parallel (e.g. 5 independent UI components or 4 separate API endpoints).
32
+ - Context window would be overwhelmed by reviewing all implementations at once.
33
+ - **Use single pass when:**
34
+ - Tasks are tightly coupled sequentially (e.g. database schema change followed immediately by dependent query update).
35
+
@@ -0,0 +1,27 @@
1
+ # Backend Skills — Decision Making Matrix
2
+
3
+ This document dictates how the agent selects, combines, and sequences backend skills.
4
+
5
+ ---
6
+
7
+ ## 1. Mandatory Baseline (Always Active in Backend)
8
+
9
+ Every backend implementation task **must** honor:
10
+ 1. `karpathy-coder` (minimal blast radius, zero speculative code, no unrequested abstractions).
11
+ 2. `tdd-implementer` (write test first, watch it fail, write minimal code to pass).
12
+ 3. `responsive-contract-enforcer` (all endpoints serving UI must declare responsive aspect ratios, multi-res srcsets, and zero fixed pixel widths).
13
+
14
+ ---
15
+
16
+ ## 2. Specialized Skill Selection Matrix
17
+
18
+ | User Goal | Selected Skills | Why This Combination |
19
+ |---|---|---|
20
+ | **Plan backend architecture before coding** | `backend-planner` (`$plan-backend`) | Defines domain models, responsive API contracts, tracer-bullet ticket graph, and TDD plan. |
21
+ | **Surgical bugfix or minimal tweak** | `karpathy-coder` + `tdd-implementer` | Touches only failing lines, adds a targeted regression test, leaves surrounding code pristine. |
22
+ | **Build new feature from spec** | `spec-implementer` | Follows ticket dependency graph in strict order, committing after each ticket. |
23
+ | **Design deep module / API boundary** | `codebase-designer` + `domain-modeler` | Maximizes information hiding (Ousterhout deep modules) and aligns naming to GLOSSARY.md. |
24
+ | **Enforce responsive UI API contract** | `responsive-contract-enforcer` | Validates that payloads contain responsive layout hints, aspect ratios, and zero hardcoded pixel widths. |
25
+ | **Modern Swift 6 / Apple backend** | `swift-writer` | Strict concurrency (@MainActor, actors, Sendable), value-type modeling, Swift Testing. |
26
+ | **Build MCP tool server** | `mcp-builder` | FastMCP or TypeScript MCP SDK; clean tool schemas, error handling, deterministic outputs. |
27
+ | **Write pull request description** | `pr-writer` | Generates summary, testing steps, before/after evidence, and reviewer checklist. |
@@ -0,0 +1,45 @@
1
+ # Debugging Skills — Decision Making Matrix
2
+
3
+ This document dictates how the agent handles bugs, test failures, crashes, and regressions.
4
+
5
+ ---
6
+
7
+ ## 1. The Debugging Iron Law (Planning First)
8
+
9
+ **When the user says "debug", NEVER edit code immediately.**
10
+ 1. Formulate a systematic diagnostic plan using debugging skills.
11
+ 2. State the observed symptom, reproduction steps, and candidate hypotheses.
12
+ 3. Ask the user for confirmation: *"Here is my diagnostic plan. Shall I proceed with isolating the root cause?"*
13
+ 4. Only after finding the root cause with verifiable evidence may a fix be designed.
14
+
15
+ ---
16
+
17
+ ## 2. Specialized Skill Selection Matrix
18
+
19
+ | Problem Type | Selected Skills | Why This Combination |
20
+ |---|---|---|
21
+ | **Exception, crash, or clear error** | `root-cause-debugger` | Enforces the 5-step protocol: state symptom, gather evidence, form ONE falsifiable hypothesis, test hypothesis, isolate cause. |
22
+ | **Intermittent bug / "works on my machine"** | `bug-diagnoser` | Systematically bisects problem space, instruments minimal logging, and isolates minimal reproduction. |
23
+ | **Performance regression / slow API** | `bug-diagnoser` (perf mode) | Measures CPU/memory bottlenecks, queries profilers, identifies O(n²) or N+1 query patterns. |
24
+ | **Validating a fix or claiming "done"** | `test-verifier` | Evidence before claims: runs actual test/lint commands and pastes raw terminal output before declaring success. |
25
+ | **Reviewing branch / PR for flaws** | `code-reviewer` | Runs parallel reviews: Standards compliance (clean code) vs. Spec compliance (did we build what was asked?). |
26
+ | **Triaging bug reports from users** | `issue-triager` | Moves issues through triage state machine (RAW → VERIFYING → CATEGORIZED → READY) and produces agent-ready briefs. |
27
+
28
+ ---
29
+
30
+ ## 3. Diagnostic Plan Template
31
+
32
+ Before touching code, present this plan to the user:
33
+
34
+ ```markdown
35
+ ### 🔍 Diagnostic Plan
36
+ 1. **Symptom:** [Exact error message or unexpected behavior observed]
37
+ 2. **Reproduction:** [Exact command or steps to reproduce]
38
+ 3. **Hypothesis:** [What mechanism is suspected of causing this]
39
+ 4. **Investigation Steps:**
40
+ - [ ] Inspect stack trace / logs at [file:line]
41
+ - [ ] Run isolated regression test
42
+ - [ ] Verify root cause before proposing edits
43
+ 5. **Next Step:** Confirm to begin investigation.
44
+ ```
45
+
@@ -0,0 +1,38 @@
1
+ # Frontend Skills — Decision Making Matrix
2
+
3
+ This document dictates how the agent selects, combines, and sequences frontend skills.
4
+
5
+ ---
6
+
7
+ ## 1. Mandatory Baseline Bundle (`frontend-baseline`)
8
+
9
+ Every frontend task **must** load `frontend-baseline` (≤ 4 KB), which condenses:
10
+ 1. **Art Direction:** `design-taste-frontend` + `ui-taste-enforcer` (Taste Kill v2, 247-site study, subject palette).
11
+ 2. **Anti-AI SOP:** `ui-tells-eliminator` + `anti-slop-enforcer` (kills pill badges, eyebrows, 3-card grids).
12
+ 3. **Dynamic Responsive Sizing:** `phone-layout-master` + `desktop-ui-architect` + `dynamic-ui-engine` (flawless adaptation from 320px phone to 2560px desktop).
13
+
14
+ Full skills can be loaded on demand from references when deeper guidance is required.
15
+
16
+ ---
17
+
18
+ ## 2. Specialized Skill Selection Matrix
19
+
20
+ | User Goal | Selected Skills | Why This Combination |
21
+ |---|---|---|
22
+ | **Plan UI architecture before building** | `frontend-planner` (`$plan-frontend`) | Creates complete blueprint: subject inventory, fluid tokens, phone layout, desktop layout, anti-slop check. |
23
+ | **Build new component or page** | `design-taste-frontend` + `dynamic-ui-engine` + `typography-master` | Directs composition, token ratios, fluid clamp scales, and tailored typography. |
24
+ | **Phone / Mobile layout perfection** | `phone-layout-master` + `mobile-native-feel` | 320px–480px optimization: 100svh, 44px touch targets, bottom sheets, safe-area insets. |
25
+ | **Desktop / Wide-screen UI workstation** | `desktop-ui-architect` + `design-engineering` | 768px–2560px optimization: multi-pane hierarchy, container queries (`@container`), max-width bounds. |
26
+ | **Typography & font archetype selection**| `typography-master` (`$typography`) | Selects Swiss, Editorial, Mono, or Humanist font stacks; establishes mathematical clamp scales. |
27
+ | **Craft SVG icons or glyphs** | `svg-icon-craftsman` (`$icon`) | Snaps vector paths to 24×24 grid, 1.5px/2.0px stroke, eliminates AI curve spaghetti. |
28
+ | **Add micro-interactions & polish** | `design-engineering` + `animation-builder` | Emil Kowalski polish standard: 9 interactive states, physical spring curves. |
29
+ | **Fix dropped frames or janky UI** | `animation-performance` | Keeps animations on composite-only GPU properties (transform, opacity); 16.6ms frame budget. |
30
+ | **Stress-test layout breaks** | `ui-stress-tester` | Feeds extreme strings, non-Latin text, negative numbers, empty arrays behind a demo toggle. |
31
+ | **Compare multiple UI directions** | `ui-prototyper` | Generates 3 genuinely different compositions behind a live switcher. |
32
+
33
+ ---
34
+
35
+ ## 3. The Baseline Bundle + 3 Task Skills Rule
36
+
37
+ - Rule 7 standard: Load `frontend-baseline` plus up to **3 specialized task skills** at the same time (e.g. `svg-icon-craftsman`, `animation-builder`, `webapp-tester`).
38
+ - Respect `.agents/brain/config.json` confirmation settings before executing.
@@ -0,0 +1,59 @@
1
+ # Git Skills — Decision Making Matrix
2
+
3
+ This document dictates how the agent handles version control operations, atomic commits, branch lifecycle management, and virtual memory phase commit synchronization.
4
+
5
+ ---
6
+
7
+ ## 1. Mandatory Baseline
8
+
9
+ Before executing any git operations:
10
+ - Never commit broken code, syntax errors, or unverified changes.
11
+ - Never dump massive, unrelated multi-domain changes into a single generic commit.
12
+ - Inspect `git status --porcelain` and `git diff --stat` before staging files.
13
+ - Enforce Conventional Commits standard: `<type>(<scope>): <imperative summary>` (<= 72 chars), followed by a concise body and verification evidence footer.
14
+ - When working within Virtual Memory (`.agents/memory/phases/`), every phase transition to `FINISHED` must trigger an atomic phase commit.
15
+
16
+ ---
17
+
18
+ ## 2. Specialized Skill Selection Matrix
19
+
20
+ | Git Operational Goal | Selected Skills | Why This Combination |
21
+ |---|---|---|
22
+ | **User commands: `$commit`, `commit:`, or code ready to commit** | `git-atomic-committer` | Analyzes staged/unstaged changes, evaluates domain blast radius, splits into 2 or more atomic commits if changes span multiple domains, crafts Conventional Commit message with verification evidence. |
23
+ | **User commands: `$branch`, `branch:`, or creating/syncing branches** | `git-branch-manager` | Enforces strict naming conventions (`feat/`, `fix/`, `phase/`, `refactor/`, `chore/`), checks working tree hygiene, performs rebase sync (`git pull --rebase origin main`), and handles branch cleanup. |
24
+ | **A Virtual Memory Phase completes (`[VERIFY]` → `[FINISH]`)** | `git-phase-committer` | Hooks into Step 4 of `phase-planner`. Stages and splits phase code, test fixtures, and memory updates into atomic phase commits, recording verification proof in the commit body. |
25
+ | **Feature isolation in separate workspace** | `git-branch-manager` + `git-isolator` | Creates an isolated worktree branch (`git worktree add ../feature-work -b feature/...`), keeping main branch unpolluted. |
26
+ | **Preparing Pull Request / Merge readiness** | `git-atomic-committer` + `pr-writer` | Validates clean atomic commit history and synthesizes high-fidelity PR description from the commit log. |
27
+
28
+ ---
29
+
30
+ ## 3. Commit Splitting Decision Rule
31
+
32
+ When analyzing workspace diffs:
33
+
34
+ ```
35
+ Total Changed Files & Domains?
36
+ │
37
+ ├── 1 domain, <= 3 tightly coupled files ──► SINGLE ATOMIC COMMIT
38
+ │ └── Example: feat(auth): implement token refresh rotation
39
+ │
40
+ └── Multiple domains OR > 3 loosely coupled files ──► SPLIT INTO 2+ ATOMIC COMMITS
41
+ ├── Commit 1 (Core Domain / Backend): feat(...) or fix(...)
42
+ ├── Commit 2 (Tests & Verification Fixtures): test(...)
43
+ ├── Commit 3 (UI / Styling / Components): feat(ui) or style(...)
44
+ └── Commit 4 (Memory Phases / Config / Docs): chore(phase-N) or docs(...)
45
+ ```
46
+
47
+ ---
48
+
49
+ ## 4. Anti-AI SOP Commit Standard
50
+
51
+ - **FORBIDDEN:**
52
+ - ❌ "Update files"
53
+ - ❌ "WIP" / "misc fixes" / "make code better"
54
+ - ❌ "Refactor code for improved readability and maintainability" (AI fluff)
55
+ - ❌ Monolithic 500-line commits combining UI, backend, tests, and config together.
56
+ - **MANDATORY:**
57
+ - ✅ Imperative present tense in header ("add", "fix", "refactor", not "added" or "adds").
58
+ - ✅ Explicit scope in header: `feat(api): ...`, `fix(layout): ...`, `test(auth): ...`.
59
+ - ✅ Verification evidence in footer: `Verified: pytest passed (14 tests)`.
@@ -0,0 +1,48 @@
1
+ # Memory Skills — Decision Making Matrix
2
+
3
+ This document dictates how the Virtual Memory system is invoked, controlled, and cleaned.
4
+
5
+ ---
6
+
7
+ ## 1. The User Control Gate (Strict Policy)
8
+
9
+ **The agent does NOT write every casual turn or trivial task into memory.**
10
+ - Virtual memory is disk-backed and persistent (`.agents/memory/plans/` and `.agents/memory/phases/`).
11
+ - **Trigger Condition:** The agent activates `phase-planner` ONLY when:
12
+ 1. The user explicitly requests: *"add to memory"*, *"save this in memory"*, or *"make a plan for this"*.
13
+ 2. The user initiates a large multi-phase feature and explicitly approves creating a master plan and phase breakdown.
14
+ - If the user has NOT requested memory tracking, execute in-context without cluttering memory folders.
15
+
16
+ ---
17
+
18
+ ## 2. Specialized Skill Selection Matrix
19
+
20
+ | Memory Need | Selected Skills | Why This Combination |
21
+ |---|---|---|
22
+ | **User commands: "add to memory" / multi-phase plan** | `phase-planner` | Creates `.agents/memory/plans/main-plan.md`, breaks it into `.agents/memory/phases/phase-NN-[name].md`, pre-assigns skills, and prints chat dashboard. |
23
+ | **User resumes session: "where were we?"** | `session-continuity` | Inspects `.agents/memory/plans/` and `phases/`, reconstructs active phase status, and renders the dashboard. |
24
+ | **Context window near limit / session handoff** | `context-handoff` | Compacts session deltas, decisions, open blockers, and git diff states into `.agents/memory/handoff-[date].md`. |
25
+ | **Phase completed & verified** | `git-phase-committer` (`$phase-commit`) | Automatically stages and commits phase code, tests, and memory phase files in atomic sequence with verification evidence. |
26
+ | **Task completed & verified** | `phase-planner` (cleanup mode) | Moves `main-plan.md` and all phase files to `.agents/memory/archive/[Date]-[Task]/`, clearing active phase folder. |
27
+
28
+ ---
29
+
30
+ ## 3. The Live Chat Status Dashboard Protocol
31
+
32
+ When memory mode is active, the agent **must** prepend the live status widget at the top of every response:
33
+
34
+ ```markdown
35
+ ┌─────────────────────────────────────────────────────────────┐
36
+ │ 🚀 PHASE STATUS DASHBOARD │
37
+ ├─────────────────────────────────────────────────────────────┤
38
+ │ Task: [Feature Name] │
39
+ │ Phase 1: [Scaffold] -> [FINISHED ✓] │
40
+ │ Phase 2: [Core Logic] -> [IN PROGRESS ⚙️] │
41
+ │ Phase 3: [UI & Polish] -> [PENDING ⏳] │
42
+ ├─────────────────────────────────────────────────────────────┤
43
+ │ Active Phase: Phase 2 │
44
+ │ Active Skills: [skill-a] + [skill-b] │
45
+ │ Stage: [APPLY] -> [EXECUTE 👈] -> [VERIFY] -> [FINISH] │
46
+ └─────────────────────────────────────────────────────────────┘
47
+ ```
48
+