@every-env/compound-plugin 0.3.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/{plugins/compound-engineering → .claude}/commands/release-docs.md +0 -1
  2. package/.claude-plugin/marketplace.json +2 -2
  3. package/.github/workflows/ci.yml +1 -1
  4. package/.github/workflows/deploy-docs.yml +3 -3
  5. package/.github/workflows/publish.yml +37 -0
  6. package/README.md +12 -3
  7. package/docs/index.html +13 -13
  8. package/docs/pages/changelog.html +39 -0
  9. package/docs/plans/2026-02-08-feat-convert-local-md-settings-for-opencode-codex-plan.md +143 -0
  10. package/docs/plans/2026-02-08-feat-simplify-plugin-settings-plan.md +195 -0
  11. package/docs/plans/2026-02-09-refactor-dspy-ruby-skill-update-plan.md +104 -0
  12. package/docs/plans/2026-02-12-feat-add-cursor-cli-target-provider-plan.md +306 -0
  13. package/docs/specs/cursor.md +85 -0
  14. package/package.json +1 -1
  15. package/plugins/compound-engineering/.claude-plugin/plugin.json +2 -2
  16. package/plugins/compound-engineering/CHANGELOG.md +38 -0
  17. package/plugins/compound-engineering/README.md +5 -3
  18. package/plugins/compound-engineering/commands/workflows/brainstorm.md +6 -1
  19. package/plugins/compound-engineering/commands/workflows/compound.md +1 -0
  20. package/plugins/compound-engineering/commands/workflows/review.md +23 -21
  21. package/plugins/compound-engineering/commands/workflows/work.md +29 -15
  22. package/plugins/compound-engineering/skills/dspy-ruby/SKILL.md +539 -396
  23. package/plugins/compound-engineering/skills/dspy-ruby/assets/config-template.rb +159 -331
  24. package/plugins/compound-engineering/skills/dspy-ruby/assets/module-template.rb +210 -236
  25. package/plugins/compound-engineering/skills/dspy-ruby/assets/signature-template.rb +173 -95
  26. package/plugins/compound-engineering/skills/dspy-ruby/references/core-concepts.md +552 -143
  27. package/plugins/compound-engineering/skills/dspy-ruby/references/observability.md +366 -0
  28. package/plugins/compound-engineering/skills/dspy-ruby/references/optimization.md +440 -460
  29. package/plugins/compound-engineering/skills/dspy-ruby/references/providers.md +305 -225
  30. package/plugins/compound-engineering/skills/dspy-ruby/references/toolsets.md +502 -0
  31. package/plugins/compound-engineering/skills/setup/SKILL.md +168 -0
  32. package/src/commands/convert.ts +10 -5
  33. package/src/commands/install.ts +18 -10
  34. package/src/converters/claude-to-codex.ts +7 -2
  35. package/src/converters/claude-to-cursor.ts +166 -0
  36. package/src/converters/claude-to-droid.ts +174 -0
  37. package/src/converters/claude-to-opencode.ts +8 -2
  38. package/src/targets/cursor.ts +48 -0
  39. package/src/targets/droid.ts +50 -0
  40. package/src/targets/index.ts +18 -0
  41. package/src/types/cursor.ts +29 -0
  42. package/src/types/droid.ts +20 -0
  43. package/tests/cli.test.ts +62 -0
  44. package/tests/codex-converter.test.ts +62 -0
  45. package/tests/converter.test.ts +61 -0
  46. package/tests/cursor-converter.test.ts +347 -0
  47. package/tests/cursor-writer.test.ts +137 -0
  48. package/tests/droid-converter.test.ts +277 -0
  49. package/tests/droid-writer.test.ts +100 -0
  50. package/plugins/compound-engineering/commands/technical_review.md +0 -8
@@ -59,25 +59,25 @@ The following paths are compound-engineering pipeline artifacts and must never b
59
59
  If a review agent flags any file in these directories for cleanup or removal, discard that finding during synthesis. Do not create a todo for it.
60
60
  </protected_artifacts>
61
61
 
62
+ #### Load Review Agents
63
+
64
+ Read `compound-engineering.local.md` in the project root. If found, use `review_agents` from YAML frontmatter. If the markdown body contains review context, pass it to each agent as additional instructions.
65
+
66
+ If no settings file exists, invoke the `setup` skill to create one. Then read the newly created file and continue.
67
+
62
68
  #### Parallel Agents to review the PR:
63
69
 
64
70
  <parallel_tasks>
65
71
 
66
- Run ALL or most of these agents at the same time:
67
-
68
- 1. Task kieran-rails-reviewer(PR content)
69
- 2. Task dhh-rails-reviewer(PR title)
70
- 3. If turbo is used: Task rails-turbo-expert(PR content)
71
- 4. Task git-history-analyzer(PR content)
72
- 5. Task dependency-detective(PR content)
73
- 6. Task pattern-recognition-specialist(PR content)
74
- 7. Task architecture-strategist(PR content)
75
- 8. Task code-philosopher(PR content)
76
- 9. Task security-sentinel(PR content)
77
- 10. Task performance-oracle(PR content)
78
- 11. Task devops-harmony-analyst(PR content)
79
- 12. Task data-integrity-guardian(PR content)
80
- 13. Task agent-native-reviewer(PR content) - Verify new features are agent-accessible
72
+ Run all configured review agents in parallel using Task tool. For each agent in the `review_agents` list:
73
+
74
+ ```
75
+ Task {agent-name}(PR content + review context from settings body)
76
+ ```
77
+
78
+ Additionally, always run these regardless of settings:
79
+ - Task agent-native-reviewer(PR content) - Verify new features are agent-accessible
80
+ - Task learnings-researcher(PR content) - Search docs/solutions/ for past issues related to this PR's modules and patterns
81
81
 
82
82
  </parallel_tasks>
83
83
 
@@ -87,19 +87,20 @@ Run ALL or most of these agents at the same time:
87
87
 
88
88
  These agents are run ONLY when the PR matches specific criteria. Check the PR files list to determine if they apply:
89
89
 
90
- **If PR contains database migrations (db/migrate/*.rb files) or data backfills:**
90
+ **MIGRATIONS: If PR contains database migrations, schema.rb, or data backfills:**
91
91
 
92
- 14. Task data-migration-expert(PR content) - Validates ID mappings match production, checks for swapped values, verifies rollback safety
93
- 15. Task deployment-verification-agent(PR content) - Creates Go/No-Go deployment checklist with SQL verification queries
92
+ - Task schema-drift-detector(PR content) - Detects unrelated schema.rb changes by cross-referencing against included migrations (run FIRST)
93
+ - Task data-migration-expert(PR content) - Validates ID mappings match production, checks for swapped values, verifies rollback safety
94
+ - Task deployment-verification-agent(PR content) - Creates Go/No-Go deployment checklist with SQL verification queries
94
95
 
95
- **When to run migration agents:**
96
- - PR includes files matching `db/migrate/*.rb`
96
+ **When to run:**
97
+ - PR includes files matching `db/migrate/*.rb` or `db/schema.rb`
97
98
  - PR modifies columns that store IDs, enums, or mappings
98
99
  - PR includes data backfill scripts or rake tasks
99
- - PR changes how data is read/written (e.g., changing from FK to string column)
100
100
  - PR title/body mentions: migration, backfill, data transformation, ID mapping
101
101
 
102
102
  **What these agents check:**
103
+ - `schema-drift-detector`: Cross-references schema.rb changes against PR migrations to catch unrelated columns/indexes from local database state
103
104
  - `data-migration-expert`: Verifies hard-coded mappings match production reality (prevents swapped IDs), checks for orphaned associations, validates dual-write patterns
104
105
  - `deployment-verification-agent`: Produces executable pre/post-deploy checklists with SQL queries, rollback procedures, and monitoring plans
105
106
 
@@ -218,6 +219,7 @@ Remove duplicates, prioritize by severity and impact.
218
219
  <synthesis_tasks>
219
220
 
220
221
  - [ ] Collect findings from all parallel agents
222
+ - [ ] Surface learnings-researcher results: if past solutions are relevant, flag them as "Known Pattern" with links to docs/solutions/ files
221
223
  - [ ] Discard any findings that recommend deleting or gitignoring files in `docs/plans/` or `docs/solutions/` (see Protected Artifacts above)
222
224
  - [ ] Categorize by type: security, performance, architecture, quality, etc.
223
225
  - [ ] Assign severity levels: 🔴 CRITICAL (P1), 🟡 IMPORTANT (P2), 🔵 NICE-TO-HAVE (P3)
@@ -175,22 +175,9 @@ This command takes a work document (plan, specification, or todo file) and execu
175
175
 
176
176
  2. **Consider Reviewer Agents** (Optional)
177
177
 
178
- Use for complex, risky, or large changes:
178
+ Use for complex, risky, or large changes. Read agents from `compound-engineering.local.md` frontmatter (`review_agents`). If no settings file, invoke the `setup` skill to create one.
179
179
 
180
- - **code-simplicity-reviewer**: Check for unnecessary complexity
181
- - **kieran-rails-reviewer**: Verify Rails conventions (Rails projects)
182
- - **performance-oracle**: Check for performance issues
183
- - **security-sentinel**: Scan for security vulnerabilities
184
- - **cora-test-reviewer**: Review test quality (Rails projects with comprehensive test coverage)
185
-
186
- Run reviewers in parallel with Task tool:
187
-
188
- ```
189
- Task(code-simplicity-reviewer): "Review changes for simplicity"
190
- Task(kieran-rails-reviewer): "Check Rails conventions"
191
- ```
192
-
193
- Present findings to user and address critical issues.
180
+ Run configured agents in parallel with Task tool. Present findings and address critical issues.
194
181
 
195
182
  3. **Final Validation**
196
183
  - All TodoWrite tasks marked completed
@@ -200,6 +187,16 @@ This command takes a work document (plan, specification, or todo file) and execu
200
187
  - Figma designs match (if applicable)
201
188
  - No console errors or warnings
202
189
 
190
+ 4. **Prepare Operational Validation Plan** (REQUIRED)
191
+ - Add a `## Post-Deploy Monitoring & Validation` section to the PR description for every change.
192
+ - Include concrete:
193
+ - Log queries/search terms
194
+ - Metrics or dashboards to watch
195
+ - Expected healthy signals
196
+ - Failure signals and rollback/mitigation trigger
197
+ - Validation window and owner
198
+ - If there is truly no production/runtime impact, still include the section with: `No additional operational monitoring required` and a one-line reason.
199
+
203
200
  ### Phase 4: Ship It
204
201
 
205
202
  1. **Create Commit**
@@ -269,6 +266,22 @@ This command takes a work document (plan, specification, or todo file) and execu
269
266
  - Tests added/modified
270
267
  - Manual testing performed
271
268
 
269
+ ## Post-Deploy Monitoring & Validation
270
+ - **What to monitor/search**
271
+ - Logs:
272
+ - Metrics/Dashboards:
273
+ - **Validation checks (queries/commands)**
274
+ - `command or query here`
275
+ - **Expected healthy behavior**
276
+ - Expected signal(s)
277
+ - **Failure signal(s) / rollback trigger**
278
+ - Trigger + immediate action
279
+ - **Validation window & owner**
280
+ - Window:
281
+ - Owner:
282
+ - **If no operational impact**
283
+ - `No additional operational monitoring required: <reason>`
284
+
272
285
  ## Before / After Screenshots
273
286
  | Before | After |
274
287
  |--------|-------|
@@ -407,6 +420,7 @@ Before creating PR, verify:
407
420
  - [ ] Figma designs match implementation (if applicable)
408
421
  - [ ] Before/after screenshots captured and uploaded (for UI changes)
409
422
  - [ ] Commit messages follow conventional format
423
+ - [ ] PR description includes Post-Deploy Monitoring & Validation section (or explicit no-impact rationale)
410
424
  - [ ] PR description includes summary, testing notes, and screenshots
411
425
  - [ ] PR description includes Compound Engineered badge
412
426