@rune-kit/rune 2.4.0 → 2.7.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 (49) hide show
  1. package/README.md +47 -17
  2. package/compiler/__tests__/executive-dashboards.test.js +285 -0
  3. package/compiler/__tests__/inject.test.js +128 -0
  4. package/compiler/__tests__/orchestrators.test.js +151 -0
  5. package/compiler/__tests__/org-templates.test.js +447 -0
  6. package/compiler/__tests__/pack-split.test.js +141 -1
  7. package/compiler/__tests__/parser.test.js +147 -1
  8. package/compiler/__tests__/scripts-bundling.test.js +10 -11
  9. package/compiler/__tests__/skill-index.test.js +218 -0
  10. package/compiler/__tests__/status.test.js +336 -0
  11. package/compiler/__tests__/templates.test.js +245 -0
  12. package/compiler/__tests__/visualizer.test.js +325 -0
  13. package/compiler/adapters/antigravity.js +18 -4
  14. package/compiler/bin/rune.js +90 -1
  15. package/compiler/doctor.js +283 -2
  16. package/compiler/emitter.js +490 -17
  17. package/compiler/parser.js +255 -4
  18. package/compiler/status.js +342 -0
  19. package/compiler/visualizer.js +622 -0
  20. package/hooks/hooks.json +12 -0
  21. package/hooks/intent-router/index.cjs +108 -0
  22. package/hooks/pre-tool-guard/index.cjs +177 -68
  23. package/package.json +63 -63
  24. package/skills/autopsy/SKILL.md +48 -1
  25. package/skills/brainstorm/SKILL.md +2 -0
  26. package/skills/completion-gate/SKILL.md +26 -1
  27. package/skills/context-engine/SKILL.md +93 -2
  28. package/skills/cook/SKILL.md +794 -648
  29. package/skills/debug/SKILL.md +409 -392
  30. package/skills/deploy/SKILL.md +2 -0
  31. package/skills/docs/SKILL.md +28 -3
  32. package/skills/fix/SKILL.md +284 -281
  33. package/skills/mcp-builder/SKILL.md +53 -1
  34. package/skills/onboard/SKILL.md +58 -1
  35. package/skills/perf/SKILL.md +34 -1
  36. package/skills/plan/SKILL.md +372 -342
  37. package/skills/preflight/SKILL.md +396 -360
  38. package/skills/retro/SKILL.md +95 -1
  39. package/skills/review/SKILL.md +535 -489
  40. package/skills/scope-guard/SKILL.md +1 -0
  41. package/skills/scout/SKILL.md +1 -0
  42. package/skills/sentinel/SKILL.md +353 -299
  43. package/skills/sentinel/references/policy-driven-constraints.md +424 -0
  44. package/skills/session-bridge/SKILL.md +58 -2
  45. package/skills/session-bridge/references/evolutionary-memory-patterns.md +312 -0
  46. package/skills/team/SKILL.md +16 -1
  47. package/skills/test/SKILL.md +587 -585
  48. package/skills/verification/SKILL.md +1 -0
  49. package/skills/watchdog/SKILL.md +2 -0
@@ -3,7 +3,7 @@ name: retro
3
3
  description: Engineering retrospective. Analyzes commit history, work patterns, and code quality metrics with trend tracking. Per-person breakdowns, shipping streaks, and actionable improvements. Use when asked for "retro", "weekly review", "what did we ship", or "engineering retrospective".
4
4
  metadata:
5
5
  author: runedev
6
- version: "0.1.0"
6
+ version: "0.3.0"
7
7
  layer: L2
8
8
  model: sonnet
9
9
  group: knowledge
@@ -28,6 +28,7 @@ Retro is ENCOURAGING but CANDID. Every critique is anchored in specific commits,
28
28
  - `/rune retro 14d` — sprint retro (2 weeks)
29
29
  - `/rune retro 30d` — monthly review
30
30
  - `/rune retro compare` — current vs previous period side-by-side
31
+ - `/rune retro --business` — cross-domain executive retrospective with HTML report (Business tier)
31
32
  - Called by `audit` (L2) for engineering health dimension
32
33
  - Auto-suggest: end of work week (Friday sessions)
33
34
 
@@ -226,6 +227,60 @@ Structure (~800-1500 words — concise, not a novel):
226
227
 
227
228
  **Tone**: Encouraging but candid. Specific and concrete. Anchored in actual commits, not vague impressions. Every critique paired with a specific suggestion.
228
229
 
230
+ ## Milestone Progressive Analysis
231
+
232
+ At specific project milestones, retro automatically generates a **deeper analysis** with a different focal point per milestone. This goes beyond the standard weekly retro — it's a reflective checkpoint on the project's evolution.
233
+
234
+ ### Milestone Detection
235
+
236
+ Count total retro snapshots in `.rune/retros/` (each represents ~1 retro session). Trigger milestone analysis when count reaches:
237
+
238
+ | Milestone | Retro Count | Focal Point | Depth |
239
+ |-----------|------------|-------------|-------|
240
+ | First Month | 4 | **Foundations** — Are conventions solid? Is the architecture scaling? Are early decisions holding? | Standard + foundation review |
241
+ | Quarter | 12 | **Patterns** — What recurring themes emerged? Which areas churn most? Is technical debt growing or shrinking? | Standard + theme extraction |
242
+ | Half Year | 24 | **Growth** — How has the codebase evolved? Are the original architectural bets paying off? What would you do differently? | Standard + architecture review |
243
+ | One Year | 50 | **Maturity** — Full project health assessment. Velocity trends over time. Team growth patterns. Knowledge distribution. | Standard + full evolution timeline |
244
+
245
+ ### Milestone Execution
246
+
247
+ When a milestone is detected (retro count matches a threshold for the first time):
248
+
249
+ 1. **Announce**: `"🏁 Milestone: [name] ([count] retros). Generating deep analysis..."`
250
+ 2. **Load history**: Read ALL `.rune/retros/*.json` snapshots (not just the most recent)
251
+ 3. **Compute evolution metrics**: Plot key metrics over time (commits/week, test ratio, fix ratio, session depth)
252
+ 4. **Focal analysis**: Generate the milestone-specific analysis based on the focal point column above
253
+ 5. **Trend narrative**: Write a 300-500 word narrative on how the project has evolved, anchored in actual data
254
+ 6. **Save**: Write milestone report to `.rune/retros/{YYYY-MM-DD}-milestone-{name}.md`
255
+
256
+ ### Milestone Report Structure
257
+
258
+ ```markdown
259
+ ## Milestone: [name] — [date]
260
+
261
+ ### Evolution Timeline
262
+ [ASCII chart or table showing key metrics across all retro snapshots]
263
+
264
+ ### [Focal Point] Analysis
265
+ [300-500 words anchored in data — specific commits, files, metrics]
266
+
267
+ ### What's Working
268
+ - [pattern that's improving, with evidence]
269
+
270
+ ### What Needs Attention
271
+ - [pattern that's degrading, with evidence]
272
+
273
+ ### Recommendations
274
+ - [1-3 concrete actions based on the focal analysis]
275
+ ```
276
+
277
+ ### Rules
278
+
279
+ - Milestone analysis is **additive** — it runs ON TOP of the standard retro, not instead of it
280
+ - Each milestone triggers ONCE — check if `.rune/retros/*-milestone-{name}.md` already exists before generating
281
+ - If retro history is sparse (gaps >30 days), note this in the report — trends may be unreliable
282
+ - Milestone analysis does NOT count toward the retro's normal output — it's a separate artifact
283
+
229
284
  ## Compare Mode
230
285
 
231
286
  When invoked as `/rune retro compare`:
@@ -247,6 +302,45 @@ SELF-VALIDATION (run before emitting report):
247
302
  - [ ] No code was modified — retro is read-only
248
303
  ```
249
304
 
305
+ ## Business Mode (--business)
306
+
307
+ When invoked as `/rune retro --business`, generate a cross-domain executive retrospective with HTML output. Requires Business tier (`.rune/org/org.md` should exist).
308
+
309
+ ### Business Data Sources
310
+
311
+ Pull from all installed domain packs:
312
+ - **Engineering**: git history (commits, velocity, test ratio, fix ratio, hotspots)
313
+ - **Revenue** (@rune-pro/sales): pipeline metrics, deal velocity, churn risk
314
+ - **Support** (@rune-pro/support): ticket volume, SLA compliance, CSAT
315
+ - **Finance** (@rune-business/finance): burn rate, runway, budget variance
316
+ - **Compliance** (@rune-business/legal): framework status, audit dates, open items
317
+
318
+ ### Business Execution Steps
319
+
320
+ 1. **Gather**: Run standard retro Steps 1-10 for engineering data
321
+ 2. **Org Context**: Read `.rune/org/org.md` for team structure and governance level
322
+ 3. **Cross-Domain KPIs**: Aggregate metrics from domain signal history (`.rune/signals/`)
323
+ 4. **Team Health**: Score each team from org config on velocity, quality, morale
324
+ 5. **Compliance**: Check compliance frameworks from org security policies
325
+ 6. **HTML Render**: Load `report-templates/retro-business.html` from Business pack and populate all `{{placeholder}}` fields with computed data
326
+ 7. **Save**: Write HTML to `.rune/retros/{YYYY-MM-DD}-business.html`
327
+ 8. **Also save** JSON snapshot (same as standard retro) for trend tracking
328
+
329
+ ### Business Output
330
+
331
+ ```
332
+ .rune/retros/2026-03-30-business.html — Self-contained HTML report
333
+ .rune/retros/2026-03-30.json — Machine-readable metrics
334
+ ```
335
+
336
+ The HTML report includes: KPI cards with trend deltas, domain performance bars (engineering, revenue, support, finance), team health table, compliance status, key insights (wins + risks), and is printable to PDF via Ctrl+P.
337
+
338
+ ### Graceful Degradation
339
+
340
+ - If no Business pack installed: skip business mode, fall back to standard retro
341
+ - If domain data unavailable: show "No data" for that domain, don't fail
342
+ - If `.rune/org/org.md` missing: use generic team structure, WARN in report
343
+
250
344
  ## Constraints
251
345
 
252
346
  1. MUST NOT modify any code — retro is read-only analysis