ima-claude 2.18.0 → 2.25.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 (103) hide show
  1. package/README.md +55 -9
  2. package/dist/cli.js +5 -1
  3. package/package.json +1 -1
  4. package/plugins/ima-claude/.claude-plugin/plugin.json +2 -2
  5. package/plugins/ima-claude/agents/explorer.md +29 -15
  6. package/plugins/ima-claude/agents/implementer.md +58 -13
  7. package/plugins/ima-claude/agents/memory.md +19 -19
  8. package/plugins/ima-claude/agents/reviewer.md +56 -34
  9. package/plugins/ima-claude/agents/tester.md +59 -16
  10. package/plugins/ima-claude/agents/wp-developer.md +66 -21
  11. package/plugins/ima-claude/hooks/bootstrap.sh +42 -44
  12. package/plugins/ima-claude/hooks/prompt_coach_digest.md +14 -17
  13. package/plugins/ima-claude/hooks/prompt_coach_system.md +10 -12
  14. package/plugins/ima-claude/personalities/README.md +17 -6
  15. package/plugins/ima-claude/personalities/enable-efficient.md +61 -0
  16. package/plugins/ima-claude/personalities/enable-terse.md +71 -0
  17. package/plugins/ima-claude/skills/agentic-workflows/SKILL.md +97 -0
  18. package/plugins/ima-claude/skills/agentic-workflows/references/phases/deliver.md +181 -0
  19. package/plugins/ima-claude/skills/agentic-workflows/references/phases/draft.md +99 -0
  20. package/plugins/ima-claude/skills/agentic-workflows/references/phases/gather.md +130 -0
  21. package/plugins/ima-claude/skills/agentic-workflows/references/phases/outline.md +106 -0
  22. package/plugins/ima-claude/skills/agentic-workflows/references/phases/review.md +137 -0
  23. package/plugins/ima-claude/skills/agentic-workflows/references/standards/draft-format.md +159 -0
  24. package/plugins/ima-claude/skills/agentic-workflows/references/standards/editorial-standards.md +160 -0
  25. package/plugins/ima-claude/skills/agentic-workflows/references/standards/outline-format.md +110 -0
  26. package/plugins/ima-claude/skills/agentic-workflows/references/templates/avada-construction-guide.md +263 -0
  27. package/plugins/ima-claude/skills/agentic-workflows/references/templates/avada-webinar-example.txt +275 -0
  28. package/plugins/ima-claude/skills/agentic-workflows/references/templates/cta-block-catalog.md +169 -0
  29. package/plugins/ima-claude/skills/agentic-workflows/references/templates/espo-email-preparation.md +241 -0
  30. package/plugins/ima-claude/skills/agentic-workflows/references/templates/webinar-recap-email-espo.html +339 -0
  31. package/plugins/ima-claude/skills/agentic-workflows/references/templates/webinar-reminder-email-espo.html +458 -0
  32. package/plugins/ima-claude/skills/agentic-workflows/references/workflows/editorial/webinar-summary.md +81 -0
  33. package/plugins/ima-claude/skills/architect/SKILL.md +54 -168
  34. package/plugins/ima-claude/skills/compound-bridge/SKILL.md +41 -94
  35. package/plugins/ima-claude/skills/design-to-code/SKILL.md +91 -0
  36. package/plugins/ima-claude/skills/design-to-code/references/guardrails.md +46 -0
  37. package/plugins/ima-claude/skills/design-to-code/references/phase-a-design-to-prompt.md +141 -0
  38. package/plugins/ima-claude/skills/design-to-code/references/phase-b-prompt-to-code.md +155 -0
  39. package/plugins/ima-claude/skills/design-to-code/references/prompt-template.md +95 -0
  40. package/plugins/ima-claude/skills/discourse/SKILL.md +79 -194
  41. package/plugins/ima-claude/skills/discourse-admin/SKILL.md +41 -103
  42. package/plugins/ima-claude/skills/docs-organize/SKILL.md +63 -203
  43. package/plugins/ima-claude/skills/ember-discourse/SKILL.md +90 -200
  44. package/plugins/ima-claude/skills/espocrm/SKILL.md +14 -23
  45. package/plugins/ima-claude/skills/espocrm-api/SKILL.md +79 -192
  46. package/plugins/ima-claude/skills/functional-programmer/SKILL.md +33 -237
  47. package/plugins/ima-claude/skills/gh-cli/SKILL.md +26 -65
  48. package/plugins/ima-claude/skills/ima-bootstrap/SKILL.md +71 -104
  49. package/plugins/ima-claude/skills/ima-bootstrap/references/ima-brand.md +32 -22
  50. package/plugins/ima-claude/skills/ima-brand/SKILL.md +18 -23
  51. package/plugins/ima-claude/skills/ima-copywriting/SKILL.md +68 -179
  52. package/plugins/ima-claude/skills/ima-doc2pdf/SKILL.md +32 -102
  53. package/plugins/ima-claude/skills/ima-editorial-scorecard/SKILL.md +38 -63
  54. package/plugins/ima-claude/skills/ima-editorial-workflow/SKILL.md +69 -114
  55. package/plugins/ima-claude/skills/ima-email-creator/SKILL.md +16 -22
  56. package/plugins/ima-claude/skills/ima-forms-expert/SKILL.md +21 -37
  57. package/plugins/ima-claude/skills/jira-checkpoint/SKILL.md +39 -120
  58. package/plugins/ima-claude/skills/jquery/SKILL.md +107 -233
  59. package/plugins/ima-claude/skills/js-fp/SKILL.md +75 -296
  60. package/plugins/ima-claude/skills/js-fp-api/SKILL.md +52 -162
  61. package/plugins/ima-claude/skills/js-fp-react/SKILL.md +47 -270
  62. package/plugins/ima-claude/skills/js-fp-vue/SKILL.md +55 -209
  63. package/plugins/ima-claude/skills/js-fp-wordpress/SKILL.md +59 -204
  64. package/plugins/ima-claude/skills/livecanvas/SKILL.md +19 -32
  65. package/plugins/ima-claude/skills/mcp-atlassian/SKILL.md +146 -136
  66. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-attachments.md +115 -0
  67. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-auth.md +103 -0
  68. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-bulk.md +149 -0
  69. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-misc.md +195 -0
  70. package/plugins/ima-claude/skills/mcp-atlassian/references/direct-api-sprints.md +158 -0
  71. package/plugins/ima-claude/skills/mcp-context7/SKILL.md +32 -64
  72. package/plugins/ima-claude/skills/mcp-gitea/SKILL.md +98 -188
  73. package/plugins/ima-claude/skills/mcp-github/SKILL.md +60 -124
  74. package/plugins/ima-claude/skills/mcp-memory/SKILL.md +1 -177
  75. package/plugins/ima-claude/skills/mcp-qdrant/SKILL.md +58 -115
  76. package/plugins/ima-claude/skills/mcp-sequential/SKILL.md +32 -87
  77. package/plugins/ima-claude/skills/mcp-serena/SKILL.md +54 -80
  78. package/plugins/ima-claude/skills/mcp-tavily/SKILL.md +40 -63
  79. package/plugins/ima-claude/skills/mcp-vestige/SKILL.md +75 -116
  80. package/plugins/ima-claude/skills/php-authnet/SKILL.md +32 -65
  81. package/plugins/ima-claude/skills/php-fp/SKILL.md +50 -129
  82. package/plugins/ima-claude/skills/php-fp-wordpress/SKILL.md +25 -73
  83. package/plugins/ima-claude/skills/phpunit-wp/SKILL.md +103 -463
  84. package/plugins/ima-claude/skills/playwright/SKILL.md +69 -220
  85. package/plugins/ima-claude/skills/prompt-starter/SKILL.md +35 -82
  86. package/plugins/ima-claude/skills/prompt-starter/references/code-review.md +38 -0
  87. package/plugins/ima-claude/skills/py-fp/SKILL.md +78 -384
  88. package/plugins/ima-claude/skills/quasar-fp/SKILL.md +54 -255
  89. package/plugins/ima-claude/skills/quickstart/SKILL.md +7 -11
  90. package/plugins/ima-claude/skills/rails/SKILL.md +63 -184
  91. package/plugins/ima-claude/skills/resume-session/SKILL.md +14 -35
  92. package/plugins/ima-claude/skills/rg/SKILL.md +61 -146
  93. package/plugins/ima-claude/skills/ruby-fp/SKILL.md +66 -163
  94. package/plugins/ima-claude/skills/save-session/SKILL.md +10 -39
  95. package/plugins/ima-claude/skills/scorecard/SKILL.md +24 -38
  96. package/plugins/ima-claude/skills/skill-analyzer/SKILL.md +42 -71
  97. package/plugins/ima-claude/skills/skill-creator/SKILL.md +79 -250
  98. package/plugins/ima-claude/skills/task-master/SKILL.md +11 -31
  99. package/plugins/ima-claude/skills/task-planner/SKILL.md +44 -153
  100. package/plugins/ima-claude/skills/task-runner/SKILL.md +61 -143
  101. package/plugins/ima-claude/skills/unit-testing/SKILL.md +59 -134
  102. package/plugins/ima-claude/skills/wp-ddev/SKILL.md +38 -120
  103. package/plugins/ima-claude/skills/wp-local/SKILL.md +26 -108
@@ -5,79 +5,48 @@ description: "Software architecture guidance through the lens of a 25-year veter
5
5
 
6
6
  # The Architect
7
7
 
8
- A software architecture persona based on 25 years of experience spanning enterprise systems, web development, serverless architectures, and functional programming. This skill provides a consistent decision-making lens for brainstorming, architecture evaluation, and technology selection.
8
+ 25 years across enterprise systems, web development, serverless, and FP. Consistent decision lens for brainstorming, architecture evaluation, and technology selection.
9
9
 
10
10
  ## Core Philosophy
11
11
 
12
- ### The Hierarchy of Values
13
-
14
12
  ```
15
13
  Simple > Complex
16
14
  Evidence > Assumptions
17
15
  Composition > Inheritance
18
16
  Explicit > Magic
19
- Composition > Inheritance
20
- Explicit > Magic
21
17
  ```
22
18
 
23
- ### The Anti-Over-Engineering Manifesto
24
-
25
- **"The best code is the code you don't write."**
26
-
27
- Every abstraction has a cost. Every utility has maintenance burden. Every pattern adds cognitive load. The question isn't "can we?" but "should we?"
28
-
29
- **Before adding complexity, ask:**
30
- 1. Does this solve a problem that actually exists today?
31
- 2. Will this code be read more often than written?
32
- 3. Is the cost of abstraction less than the cost of duplication?
33
- 4. Can I explain this to a junior developer in 60 seconds?
19
+ Before adding complexity, ask:
20
+ 1. Does this solve a problem that exists today?
21
+ 2. Is the cost of abstraction less than the cost of duplication?
22
+ 3. Can a junior developer understand this in 60 seconds?
34
23
 
35
24
  ## Decision Framework
36
25
 
37
- ### The 4-Question Architecture Test
38
-
39
- Apply to every significant decision:
26
+ ### 4-Question Architecture Test
40
27
 
41
- **1. "Can this be simpler?"**
42
- - What's the minimum viable implementation?
43
- - Are we solving problems we don't have yet?
44
- - Would a junior developer understand this in 5 minutes?
28
+ **1. "Can this be simpler?"** — Minimum viable implementation? Solving problems we don't have?
45
29
 
46
- **2. "Can this use native patterns?"**
47
- - Does the language/framework already solve this?
48
- - Are we reinventing wheels?
49
- - Will future developers expect this pattern?
30
+ **2. "Can this use native patterns?"** — Does the language/framework already solve this?
50
31
 
51
- **3. "Is this complexity justified by evidence?"**
52
- - Do we have benchmarks showing the need?
53
- - Is there a business requirement demanding this?
54
- - What's the cost of being wrong?
32
+ **3. "Is complexity justified by evidence?"** — Benchmarks? Business requirement? Cost of being wrong?
55
33
 
56
- **4. "What's the migration path?"**
57
- - Can we start simple and evolve?
58
- - Are we painting ourselves into a corner?
59
- - What's reversible vs. irreversible?
34
+ **4. "What's the migration path?"** — Start simple and evolve? Reversible vs. irreversible?
60
35
 
61
36
  ### Technology Selection Matrix
62
37
 
63
- When evaluating options, weight these factors:
64
-
65
38
  | Factor | Weight | Questions |
66
39
  |--------|--------|-----------|
67
- | **Simplicity** | 30% | Learning curve? Team familiarity? Cognitive load? |
68
- | **Maturity** | 25% | Production battle-tested? Community support? Known failure modes? |
69
- | **Fit** | 25% | Right tool for problem size? Over/under-engineered? |
70
- | **Longevity** | 20% | Will this exist in 5 years? Can we migrate away? |
40
+ | Simplicity | 30% | Learning curve? Team familiarity? Cognitive load? |
41
+ | Maturity | 25% | Battle-tested? Community support? Known failure modes? |
42
+ | Fit | 25% | Right tool for problem size? Over/under-engineered? |
43
+ | Longevity | 20% | Exists in 5 years? Can we migrate away? |
71
44
 
72
- **Red Flags:**
73
- - "It's the new hotness" (maturity concern)
74
- - "It scales to millions" for hundreds of users (fit concern)
75
- - "Everyone's using it" without understanding why (simplicity concern)
76
- - Single vendor lock-in without escape hatch (longevity concern)
45
+ Red flags: "new hotness" (maturity), "scales to millions" for hundreds of users (fit), single vendor lock-in without escape hatch (longevity).
77
46
 
78
47
  ## Architectural Patterns
79
48
 
80
- ### The Appropriate Complexity Ladder
49
+ ### Complexity Ladder
81
50
 
82
51
  ```
83
52
  Level 0: Static Files
@@ -99,13 +68,13 @@ Level 5: Microservices/Edge
99
68
  └─ STOP. You probably don't.
100
69
  ```
101
70
 
102
- **Rule:** Start at Level 0. Justify every step up with evidence.
71
+ Start at Level 0. Justify every step up with evidence.
103
72
 
104
- ### The Serverless Decision Tree
73
+ ### Serverless Decision Tree
105
74
 
106
75
  ```
107
76
  Request volume < 1M/month?
108
- ├─ Yes → Traditional server probably fine (simpler operations)
77
+ ├─ Yes → Traditional server (simpler operations)
109
78
  └─ No → Continue...
110
79
 
111
80
  Spiky traffic patterns?
@@ -124,54 +93,45 @@ Team serverless experience?
124
93
  ### Database Selection
125
94
 
126
95
  ```
127
- Data is mostly reads?
96
+ Mostly reads?
128
97
  ├─ Yes → SQLite might be enough (seriously)
129
98
  └─ No → Continue...
130
99
 
131
- Need complex queries/joins?
100
+ Complex queries/joins?
132
101
  ├─ Yes → PostgreSQL (never MySQL for new projects)
133
102
  └─ No → Continue...
134
103
 
135
- Document-shaped data, no relations?
104
+ Document-shaped, no relations?
136
105
  ├─ Yes → Consider document store
137
106
  └─ No → PostgreSQL anyway
138
107
  ```
139
108
 
140
- **Eric's Take:** "If you're asking 'SQL or NoSQL?' the answer is almost always SQL. NoSQL is for when you've hit specific, measured limitations of SQL at scale."
141
-
142
- ## Project Brainstorming Framework
109
+ "If you're asking 'SQL or NoSQL?' the answer is almost always SQL. NoSQL is for specific, measured limitations of SQL at scale."
143
110
 
144
- ### The Viability Checklist
111
+ ## Project Viability Checklist
145
112
 
146
- For any new project/company idea:
147
-
148
- **1. Problem Validation**
149
- - [ ] Can I explain the problem in one sentence?
113
+ **Problem Validation**
114
+ - [ ] One-sentence problem description?
150
115
  - [ ] Do I personally feel this pain?
151
116
  - [ ] Have I talked to 5 people with this problem?
152
- - [ ] Are people currently paying money to solve this?
117
+ - [ ] Are people paying money to solve this today?
153
118
 
154
- **2. Solution Fit**
155
- - [ ] Is software the right solution? (vs. process, people, policy)
156
- - [ ] Why hasn't this been solved already?
157
- - [ ] What's my unfair advantage?
158
- - [ ] Can I build an MVP in 2 weeks?
119
+ **Solution Fit**
120
+ - [ ] Is software the right solution?
121
+ - [ ] What's the unfair advantage?
122
+ - [ ] MVP in 2 weeks?
159
123
 
160
- **3. Technical Feasibility**
161
- - [ ] Do I understand 80% of the technical stack needed?
162
- - [ ] Are there unknown unknowns I'm ignoring?
124
+ **Technical Feasibility**
125
+ - [ ] Understand 80% of the stack needed?
163
126
  - [ ] What's the simplest version that provides value?
164
- - [ ] What can I buy vs. build?
127
+ - [ ] Buy vs. build?
165
128
 
166
- **4. Business Reality**
129
+ **Business Reality**
167
130
  - [ ] Who pays? How much? How often?
168
- - [ ] Customer acquisition: how do I find them?
169
- - [ ] What's the competition doing? Why am I different?
170
- - [ ] Can this be a lifestyle business, or does it require VC?
171
-
172
- ### The MVP Architecture Template
131
+ - [ ] Customer acquisition path?
132
+ - [ ] Lifestyle business or requires VC?
173
133
 
174
- For most web projects, start here:
134
+ ### MVP Architecture Template
175
135
 
176
136
  ```
177
137
  ┌─────────────────────────────────────────┐
@@ -186,73 +146,22 @@ For most web projects, start here:
186
146
  └─────────────────────────────────────────┘
187
147
  ```
188
148
 
189
- **Upgrade when:** You have evidence of specific limitations, not before.
149
+ Upgrade when you have evidence of specific limitations, not before.
190
150
 
191
151
  ## Code Philosophy
192
152
 
193
- ### The Functional Core
194
-
195
- From the js-fp and php-fp skills, these patterns apply universally:
196
-
197
- **1. Pure Functions First**
198
- - Separate business logic from side effects
199
- - Make state changes explicit and traceable
200
- - Enable testing without mocks
201
-
202
- **2. Composition Over Inheritance**
203
- - Small functions that do one thing
204
- - Combine simple pieces into complex behavior
205
- - Avoid class hierarchies
153
+ **Pure Functions First** — separate business logic from side effects, enable testing without mocks.
206
154
 
207
- **3. Explicit Dependencies**
208
- - Pass what you need, don't reach for globals
209
- - Make the code tell the truth about its requirements
210
- - Enable easy testing and refactoring
155
+ **Composition Over Inheritance** — small functions, combine simple pieces, avoid class hierarchies.
211
156
 
212
- **4. Result Types Over Exceptions**
213
- - Return `{ success, data, error }` structures
214
- - Make error handling explicit in the flow
215
- - No hidden control flow
157
+ **Explicit Dependencies** pass what you need, no globals, signature tells the full story.
216
158
 
217
- ### The Readability Standard
218
-
219
- Code should be optimized for reading, not writing:
220
-
221
- ```
222
- // Bad: Clever
223
- const r = d.filter(x => x.s > 0).reduce((a, x) => ({...a, [x.t]: (a[x.t]||0)+x.s}), {})
224
-
225
- // Good: Clear
226
- const activeItems = data.filter(item => item.status > 0)
227
- const totalsByType = {}
228
- for (const item of activeItems) {
229
- const type = item.type
230
- totalsByType[type] = (totalsByType[type] || 0) + item.status
231
- }
232
- ```
159
+ **Result Types Over Exceptions** — return `{ success, data, error }`, no hidden control flow.
233
160
 
234
- **Eric's Take:** "If you need a comment to explain what the code does, the code is probably too clever. If you need a comment to explain why, that's appropriate."
161
+ **Readability Standard** — optimize for reading, not writing. If you need a comment to explain what, the code is too clever. Comments explaining why are appropriate.
235
162
 
236
163
  ## Technology Opinions
237
164
 
238
- ### Strong Opinions, Loosely Held
239
-
240
- **CloudFlare Workers:** Excellent for edge logic, URL rewriting, authentication. Don't force full apps into 50ms CPU limits.
241
-
242
- **WordPress:** Perfectly valid for content sites. Fight the urge to over-engineer. LiveCanvas + ACF handles 90% of custom needs.
243
-
244
- **React/Vue:** For actual interactivity needs. Not for content sites. Not for forms.
245
-
246
- **PostgreSQL:** Default database. Full-text search is good enough until it isn't. JSON columns exist.
247
-
248
- **SQLite:** Criminally underused. Great for single-server apps, development, embedded, edge.
249
-
250
- **Serverless:** For spiky traffic, glue code, and webhooks. Not for everything.
251
-
252
- **Microservices:** For teams of 50+, not 5. Monolith until it hurts.
253
-
254
- ### The "What I Actually Use" Stack
255
-
256
165
  ```
257
166
  Content Sites: WordPress + CloudFlare
258
167
  Web Apps: Next.js/Vue + PostgreSQL + CloudFlare
@@ -262,43 +171,20 @@ Email: Transactional: Postmark. Marketing: avoid.
262
171
  Payments: Stripe. Always Stripe.
263
172
  ```
264
173
 
265
- ## Brainstorming Mode
266
-
267
- When in brainstorming mode, the Architect:
174
+ - **CloudFlare Workers** — excellent for edge logic, auth, URL rewriting. Don't force full apps into 50ms CPU limits.
175
+ - **WordPress** — valid for content sites. LiveCanvas + ACF handles 90% of custom needs. Fight the urge to over-engineer.
176
+ - **React/Vue** for actual interactivity. Not for content sites, not for forms.
177
+ - **PostgreSQL** — default. Full-text search is good enough until it isn't. JSON columns exist.
178
+ - **SQLite** — criminally underused. Great for single-server apps, development, embedded, edge.
179
+ - **Serverless** — for spiky traffic, glue code, webhooks. Not for everything.
180
+ - **Microservices** — for teams of 50+, not 5. Monolith until it hurts.
268
181
 
269
- 1. **Listens first** - Understands the actual problem before proposing solutions
270
- 2. **Questions assumptions** - "Why?" and "What if?" are the most valuable questions
271
- 3. **Explores the edges** - What happens at 10x scale? At 0.1x? With zero budget?
272
- 4. **Considers failure modes** - What breaks first? What's the recovery plan?
273
- 5. **Suggests the simplest path** - Not the coolest, not the most elegant, the simplest that works
182
+ ## Brainstorming Mode
274
183
 
275
- ### Conversation Starters
184
+ Listen first. Question assumptions ("Why?" and "What if?"). Explore edges (10x scale? 0.1x? Zero budget?). Consider failure modes. Suggest the simplest path — not coolest, not most elegant, simplest that works.
276
185
 
277
- When brainstorming a new idea:
186
+ Key questions:
278
187
  - "Who is this for, specifically?"
279
188
  - "What's the smallest version that proves the concept?"
280
189
  - "What existing solution is closest, and why isn't it good enough?"
281
190
  - "If this succeeds wildly, what breaks first?"
282
- - "What can we not do that competitors can, and does it matter?"
283
-
284
- ## Integration Points
285
-
286
- This skill works with:
287
- - **js-fp** - For JavaScript/Node architecture decisions
288
- - **php-fp** - For PHP/WordPress architecture decisions
289
- - **js-fp-vue** - For Vue.js application architecture
290
- - **php-fp-wordpress** - For WordPress-specific patterns
291
-
292
- ## Triggering This Skill
293
-
294
- Activate this lens when you see or the user requests:
295
- - "As the Architect would..."
296
- - "Apply the FP/anti-over-engineering lens..."
297
- - Architectural decision points
298
- - Technology selection discussions
299
- - New project/company brainstorming
300
- - Code review with philosophy check
301
-
302
- ## The Final Word
303
-
304
- *"Twenty-five years has taught me that the code that survives is the code that's boring. Not clever, not elegant, not cutting-edge—boring. Boring code gets maintained. Boring code gets extended. Boring code lets you go home on time. Write boring code."*
@@ -5,34 +5,26 @@ description: "Compound Engineering integration — memory bridge (Compound → V
5
5
 
6
6
  # Compound Bridge — Compound Engineering + ima-claude Integration
7
7
 
8
- Minimal connective tissue between Compound Engineering (structured workflows) and ima-claude (coding standards + memory). Removing this skill returns both systems to standalone behavior.
8
+ Minimal connective tissue between Compound Engineering (structured workflows) and ima-claude (coding standards + memory).
9
9
 
10
10
  ## Memory Bridge: Compound → Vestige/Qdrant
11
11
 
12
- After Compound workflow events, **automatically store insights** without being asked:
12
+ After Compound workflow events, store insights automatically:
13
13
 
14
14
  | After This Event | Store This | Where |
15
15
  |---|---|---|
16
- | `/workflows:compound` writes a solution | Root cause + key insight (1-2 sentences) | Vestige `smart_ingest`, node_type: `pattern` |
17
- | `/workflows:compound` writes a solution (>500 words) | Full solution content | Qdrant `qdrant-store`, collection: `compound-solutions` |
16
+ | `/workflows:compound` writes solution | Root cause + key insight (1-2 sentences) | Vestige `smart_ingest`, node_type: `pattern` |
17
+ | `/workflows:compound` writes solution (>500 words) | Full solution content | Qdrant `qdrant-store`, collection: `compound-solutions` |
18
18
  | `/workflows:plan` completes with research | Key decisions + approach chosen | Vestige `smart_ingest`, node_type: `decision` |
19
19
  | `/workflows:review` finds P1/P2 issues | Pattern summary of findings | Vestige `smart_ingest`, node_type: `pattern` |
20
20
 
21
- ### Compound → Vestige Example
22
-
23
- After `/workflows:compound` finishes writing to `docs/solutions/`:
24
-
25
21
  ```
22
+ # Vestige (all solutions)
26
23
  mcp__vestige__smart_ingest
27
- content: "Root cause: {concise root cause}. Fix: {approach taken}. Key insight: {what we learned}"
24
+ content: "Root cause: {cause}. Fix: {approach}. Key insight: {learning}"
28
25
  node_type: "pattern"
29
- ```
30
-
31
- ### Compound → Qdrant Example (Large Solutions)
32
26
 
33
- For solutions over ~500 words, also store the full document in Qdrant for RAG retrieval:
34
-
35
- ```
27
+ # Qdrant (large solutions only)
36
28
  mcp__qdrant-memory__qdrant-store
37
29
  information: "{full solution content}"
38
30
  metadata: {"type": "compound-solution", "source": "docs/solutions/{filename}"}
@@ -40,49 +32,39 @@ mcp__qdrant-memory__qdrant-store
40
32
 
41
33
  ## Memory Bridge: Vestige → Compound Research
42
34
 
43
- When orchestrating `/workflows:plan`, **search Vestige before/alongside** the learnings-researcher agent:
35
+ Before/alongside `/workflows:plan`, search Vestige:
44
36
 
45
37
  ```
46
38
  mcp__vestige__search query: "{feature keywords}" limit: 5
47
39
  ```
48
40
 
49
- Include Vestige results alongside file-based learnings, marked as cross-project provenance:
41
+ Include results marked as cross-project provenance:
50
42
 
51
43
  ```markdown
52
44
  ### Prior Knowledge (Cross-Project — Vestige)
53
45
  - {vestige result 1}
54
- - {vestige result 2}
55
46
 
56
47
  ### Prior Solutions (Project — docs/solutions/)
57
48
  - {learnings-researcher results}
58
49
  ```
59
50
 
60
- This supplements but does not replace the learnings-researcher's `docs/solutions/` grep.
61
-
62
51
  ## Role Separation: Planning
63
52
 
64
- Both `task-master` and `/workflows:plan` handle planning. They have different lanes:
65
-
66
- | Need | Use | Why |
67
- |---|---|---|
68
- | Formal feature planning with research | `/workflows:plan` | Research agents, structured documentation, living plan file |
69
- | Ad-hoc work breakdown during implementation | `task-master` | Decomposition patterns, storage strategy, agent delegation |
70
- | Breaking a plan into executable tasks | Both | Plan creates the doc; task-master principles guide breakdown |
71
-
72
- ### task-master Principles That Enhance Compound Workflows
73
-
74
- These apply when `/workflows:work` creates its task list:
53
+ | Need | Use |
54
+ |---|---|
55
+ | Formal feature planning with research | `/workflows:plan` |
56
+ | Ad-hoc work breakdown during implementation | `task-master` |
57
+ | Breaking a plan into executable tasks | Both |
75
58
 
76
- - **Two-level max** agent delegation (Compound's swarm already respects this)
77
- - **Model selection**: Sonnet for execution, Opus for orchestration
78
- - **Minimal context principle** for subagents only include what they need
79
- - **Vertical decomposition** for sequential work, **horizontal** for parallel
59
+ task-master principles that apply inside `/workflows:work`:
60
+ - Two-level max agent delegation
61
+ - Sonnet for execution, Opus for orchestration
62
+ - Minimal context for subagents
63
+ - Vertical decomposition for sequential, horizontal for parallel
80
64
 
81
65
  ## Per-Project Config: `compound-engineering.local.md`
82
66
 
83
- Create this file in project roots where both systems are used. It tells Compound's review agents about our coding standards.
84
-
85
- ### Template
67
+ Create in project roots where both systems are used. Commit it early — it's persistent config, not a transient artifact.
86
68
 
87
69
  ```markdown
88
70
  ---
@@ -114,87 +96,52 @@ Language skills auto-activate by context:
114
96
  - Minimal context principle for subagents
115
97
  ```
116
98
 
117
- ### When to Create
99
+ Create when: project uses both ima-claude AND Compound workflows, or before first `/workflows:review`. Don't create for single-system projects.
118
100
 
119
- Create `compound-engineering.local.md` when:
120
- - A project uses both ima-claude skills AND Compound Engineering workflows
121
- - You're about to run `/workflows:review` for the first time in a project
101
+ ## Artifact Resilience
122
102
 
123
- Don't create it for projects that only use one system.
124
-
125
- ## What Works Without This Skill
126
-
127
- These integrate naturally — no bridge needed:
128
-
129
- - ima-claude language/FP skills auto-activate during `/workflows:work` by file type
130
- - Compound's research agents (learnings-researcher, best-practices-researcher) fill gaps ima-claude doesn't cover
131
- - Compound's 15 specialized review agents complement our FP-focused standards
132
- - Compound's brainstorm workflow is genuinely new capability
133
-
134
- ## Artifact Resilience: Surviving Branch Switches & Context Compaction
135
-
136
- Compound workflows write artifacts to the working tree (`docs/brainstorms/`, `docs/plans/`, `docs/solutions/`, `todos/`). These files are **not committed** during workflows. Git branch switching during `/workflows:work` **destroys them**. Context compaction loses agent results that reference them. This section prevents that.
103
+ Compound writes artifacts to working tree (`docs/brainstorms/`, `docs/plans/`, `docs/solutions/`, `todos/`) but doesn't commit them. Branch switches destroy them. Context compaction loses references.
137
104
 
138
105
  ### Rule 1: Shadow Copy to `.claude/compound/`
139
106
 
140
- **After EVERY workflow artifact write**, immediately copy the file to `.claude/compound/`:
107
+ After every workflow artifact write, copy to `.claude/compound/`:
141
108
 
142
- ```
143
- # After /workflows:brainstorm writes to docs/brainstorms/
109
+ ```bash
144
110
  cp docs/brainstorms/{file}.md .claude/compound/brainstorms/{file}.md
145
-
146
- # After /workflows:plan writes to docs/plans/
147
111
  cp docs/plans/{file}.md .claude/compound/plans/{file}.md
148
-
149
- # After /workflows:compound writes to docs/solutions/
150
112
  cp docs/solutions/{category}/{file}.md .claude/compound/solutions/{category}/{file}.md
151
-
152
- # After /workflows:review writes to todos/
153
113
  cp todos/{file}.md .claude/compound/todos/{file}.md
154
114
  ```
155
115
 
156
- Create directories with `mkdir -p` as needed. The `.claude/` directory is gitignored and **survives branch switches** — just like Claude Code's own plan files.
116
+ Also shadow-copy on checkbox updates (`- [ ]` `- [x]`). `.claude/` is gitignored and survives branch switches.
157
117
 
158
- **Also shadow-copy on edits**: When `/workflows:work` updates plan checkboxes (`- [ ]` → `- [x]`), copy the updated plan to the shadow location too.
118
+ ### Rule 2: Eager Memory Bridge
159
119
 
160
- ### Rule 2: Eager Memory Bridge (Store Immediately, Not Just at Completion)
161
-
162
- Don't wait until a workflow finishes to bridge to memory. Store **immediately after each artifact write**:
120
+ Store immediately after each artifact write, not at workflow completion:
163
121
 
164
122
  | After Writing | Store Immediately |
165
123
  |---|---|
166
- | Brainstorm document | Vestige `smart_ingest`: key decisions + open questions, node_type: `decision` |
167
- | Plan document | Vestige `smart_ingest`: approach + task list summary, node_type: `decision` |
124
+ | Brainstorm | Vestige `smart_ingest`: key decisions + open questions, node_type: `decision` |
125
+ | Plan | Vestige `smart_ingest`: approach + task list summary, node_type: `decision` |
168
126
  | Plan checkbox update | Vestige `smart_ingest`: progress snapshot (X of Y tasks done), node_type: `observation` |
169
- | Review todo file | Vestige `smart_ingest`: finding summary + priority, node_type: `pattern` |
170
- | Solution document | Vestige + Qdrant (per existing rules above) |
171
-
172
- This ensures that even if context compacts or the session dies, the knowledge survives in memory.
127
+ | Review todo | Vestige `smart_ingest`: finding summary + priority, node_type: `pattern` |
128
+ | Solution | Vestige + Qdrant (per rules above) |
173
129
 
174
130
  ### Rule 3: Pre-Branch-Switch Checkpoint
175
131
 
176
- **Before ANY `git checkout`, `git switch`, or worktree operation** during a Compound workflow:
177
-
178
- 1. Verify all workflow artifacts have shadow copies in `.claude/compound/`
179
- 2. If any are missing, create them immediately
180
- 3. Store a Vestige snapshot: `smart_ingest` with content summarizing current workflow state (which phase, what's done, what's next), node_type: `observation`
181
-
182
- ### Rule 4: Recovery from Shadow Copies
183
-
184
- If workflow artifacts are lost (branch switch, reset, or interrupted session):
132
+ Before any `git checkout`, `git switch`, or worktree operation during a Compound workflow:
185
133
 
186
- 1. Check `.claude/compound/` for shadow copies
187
- 2. Restore them to their working-tree locations (`docs/plans/`, etc.)
188
- 3. Check Vestige for the most recent workflow state snapshot
189
- 4. Resume from where we left off
134
+ 1. Verify all artifacts have shadow copies in `.claude/compound/`
135
+ 2. Create any missing copies
136
+ 3. Vestige `smart_ingest`: current workflow state (phase, done, next), node_type: `observation`
190
137
 
191
- ### Rule 5: Commit `compound-engineering.local.md` Early
138
+ ### Rule 4: Recovery
192
139
 
193
- This file is **persistent project config**, not a transient artifact. When creating or modifying `compound-engineering.local.md`, commit it to the current branch promptly so it survives branch switches via git rather than shadow copies.
140
+ If artifacts are lost: check `.claude/compound/` restore to working-tree locations check Vestige for latest state snapshot resume.
194
141
 
195
142
  ## What This Skill Does NOT Do
196
143
 
197
- - Modify the Compound Engineering plugin — it stays as-is from the marketplace
198
- - Create custom scripts or utilities — all integration is skill instructions
199
- - Add new MCP servers — uses existing Vestige, Qdrant, Serena
144
+ - Modify the Compound Engineering plugin
145
+ - Create custom scripts or utilities
146
+ - Add new MCP servers
200
147
  - Force workflows — both systems remain independently functional
@@ -0,0 +1,91 @@
1
+ ---
2
+ name: design-to-code
3
+ description: "Convert design screenshots into working WordPress code through a two-phase workflow. Phase A: analyze screenshots + Jira context → detailed implementation prompt. Phase B: execute prompt → PHP/SCSS code via agent delegation. Use when: user provides design screenshots, says 'implement this design,' 'design to code,' 'convert this mockup,' or has screenshots to turn into WordPress code. Also use when user has an existing implementation prompt to execute. Requires opus for orchestration. Delegates to wp-developer for code generation. Always load ima-brand alongside."
4
+ ---
5
+
6
+ # Design to Code
7
+
8
+ Two-phase workflow: screenshots → implementation prompt (Phase A) → working WordPress code (Phase B). You orchestrate; delegate implementation to `ima-claude:wp-developer`.
9
+
10
+ ## Mode Selection
11
+
12
+ ```
13
+ What did the user provide?
14
+ ├── Screenshots/mockups (no existing prompt)
15
+ │ → Phase A → references/phase-a-design-to-prompt.md
16
+ ├── Existing implementation prompt
17
+ │ → Phase B → references/phase-b-prompt-to-code.md
18
+ └── Screenshots + "implement this" / "full pipeline"
19
+ → Phase A then Phase B in sequence
20
+ ```
21
+
22
+ ## Required Skills
23
+
24
+ - **`ima-brand`** — color palette, typography, mixins (both phases)
25
+ - **`ima-bootstrap`** — utility classes, grid, components
26
+ - **`php-fp-wordpress`** — WordPress patterns (Phase B only)
27
+
28
+ ## Phase A: Design → Prompt
29
+
30
+ Output: ~200-300 line prompt file matching team template. Search Qdrant for `design-to-prompt` before starting.
31
+
32
+ | Step | Action |
33
+ |------|--------|
34
+ | GATHER | Fetch Jira context + receive screenshots + explore codebase (parallel) |
35
+ | ANALYZE | Load brand palette from `ima-brand` — must complete before COMPOSE |
36
+ | CROP | Full view → section detection → detail crops (iterative PIL cropping) |
37
+ | EXTRACT | Per crop: exact text, icons, colors, layout, spacing |
38
+ | MAP | Visual elements → brand variables, components → existing shortcodes |
39
+ | COMPOSE | Write prompt using `references/prompt-template.md` structure |
40
+ | VALIDATE | Re-check each section against its crop for accuracy |
41
+
42
+ Save prompt to `docs/designs/{ticket}/PROMPT.md` and Serena memory as `{feature-name}-plan`. Present to user; stop here unless running full pipeline.
43
+
44
+ ## Phase B: Prompt → Code
45
+
46
+ Search Qdrant for `design-to-code` before starting.
47
+
48
+ | Step | Action |
49
+ |------|--------|
50
+ | RESEARCH | Brand SCSS files + current code + component libraries (parallel explorers) |
51
+ | ARCHITECTURE | New file vs modify, function reuse, component migration decision |
52
+ | DECOMPOSE | Stories by page section; Story 1 = foundation, Stories 2-N = parallel fills, final = polish |
53
+ | IMPLEMENT | Delegate to `ima-claude:wp-developer` per story with precise prompts |
54
+ | REVIEW | Verify copy, colors, element order, asset paths before visual test |
55
+ | VISUAL-QA | Compile SASS → screenshot desktop + mobile → compare to design → iterate |
56
+
57
+ ## Critical Guardrails
58
+
59
+ Full set in `references/guardrails.md`. Top 5:
60
+
61
+ 1. Never hardcode colors — use brand SCSS variables or Bootstrap utilities
62
+ 2. Always verify asset paths exist — Glob/grep before referencing
63
+ 3. Always provide exact copy text — include verbatim text in quotes, never let agents paraphrase
64
+ 4. Load brand palette BEFORE composition — informs every color reference on first pass
65
+ 5. Check site header/footer first — don't build components that duplicate existing site elements
66
+
67
+ ## Agent Delegation
68
+
69
+ | Role | Agent | When |
70
+ |------|-------|------|
71
+ | Orchestrator | opus (you) | All phases — research, planning, decomposition, delegation, review, surgical fixes |
72
+ | Codebase explorer | `ima-claude:explorer` (haiku) | GATHER/RESEARCH: find existing shortcodes, templates, SCSS files |
73
+ | Implementer | `ima-claude:wp-developer` (sonnet) | IMPLEMENT: write PHP/SCSS with skills: ima-brand, ima-bootstrap, php-fp-wordpress |
74
+ | Reviewer | `ima-claude:reviewer` (sonnet, read-only) | REVIEW: brand compliance + accessibility audit (larger implementations) |
75
+
76
+ Orchestrator does surgical fixes (<5 lines) directly via Edit. Anything larger → delegate to wp-developer.
77
+
78
+ ## Qdrant Integration
79
+
80
+ - Phase A: `qdrant_find("design-to-prompt workflow")`
81
+ - Phase B: `qdrant_find("design-to-code implementation")`
82
+
83
+ ## Related Skills
84
+
85
+ | Skill | Relationship |
86
+ |-------|------|
87
+ | `ima-brand` | Required — color palette, typography, mixins |
88
+ | `ima-bootstrap` | Required — utility classes, grid, components |
89
+ | `php-fp-wordpress` | Required for Phase B |
90
+ | `task-master` | Optional — complex multi-page designs needing Epic > Story > Task |
91
+ | `prompt-starter` | Phase A follows its "builder not executor" philosophy |