@rune-kit/rune 2.18.1 → 2.21.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 (46) hide show
  1. package/README.md +31 -12
  2. package/compiler/__tests__/comprehension.test.js +916 -0
  3. package/compiler/__tests__/governance-collector.test.js +376 -0
  4. package/compiler/__tests__/setup.test.js +5 -0
  5. package/compiler/analytics.js +5 -0
  6. package/compiler/bin/rune.js +165 -1
  7. package/compiler/comprehension-client.js +2348 -0
  8. package/compiler/comprehension.js +1254 -0
  9. package/compiler/governance-collector.js +382 -0
  10. package/compiler/schemas/comprehension.schema.json +87 -0
  11. package/compiler/schemas/governance.schema.json +78 -0
  12. package/compiler/transforms/branding.js +1 -1
  13. package/hooks/context-watch/index.cjs +24 -13
  14. package/hooks/hooks.json +2 -2
  15. package/hooks/lib/context-key.cjs +37 -0
  16. package/hooks/metrics-collector/index.cjs +37 -8
  17. package/hooks/pre-tool-guard/index.cjs +44 -0
  18. package/hooks/session-start/index.cjs +4 -10
  19. package/package.json +1 -1
  20. package/skills/adversary/SKILL.md +36 -3
  21. package/skills/adversary/references/cross-model-escalation.md +85 -0
  22. package/skills/adversary/references/reasoning-modes.md +95 -0
  23. package/skills/autopsy/SKILL.md +41 -0
  24. package/skills/ba/SKILL.md +106 -27
  25. package/skills/ba/references/ears-format.md +91 -0
  26. package/skills/brainstorm/SKILL.md +32 -7
  27. package/skills/completion-gate/SKILL.md +21 -10
  28. package/skills/converge/SKILL.md +178 -0
  29. package/skills/converge/references/eval-fixtures.md +59 -0
  30. package/skills/cook/SKILL.md +41 -6
  31. package/skills/debug/SKILL.md +4 -2
  32. package/skills/deploy/SKILL.md +23 -2
  33. package/skills/deploy/references/observability.md +146 -0
  34. package/skills/design/SKILL.md +15 -1
  35. package/skills/graft/SKILL.md +24 -8
  36. package/skills/onboard/SKILL.md +45 -0
  37. package/skills/perf/SKILL.md +4 -1
  38. package/skills/plan/SKILL.md +70 -7
  39. package/skills/plan/references/boundary-artifacts.md +127 -0
  40. package/skills/plan/references/plan-templates.md +28 -9
  41. package/skills/plan/references/vertical-slice.md +8 -6
  42. package/skills/preflight/SKILL.md +9 -3
  43. package/skills/review/SKILL.md +4 -2
  44. package/skills/skill-router/SKILL.md +2 -0
  45. package/skills/test/SKILL.md +15 -8
  46. package/skills/verification/SKILL.md +39 -7
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  <p align="center">
6
6
  <strong>Less skills. Deeper connections.</strong><br>
7
7
  A lean, interconnected skill ecosystem for AI coding assistants.<br>
8
- 64 skills · 203 connections · 40 signals · 13 platforms · MIT
8
+ 65 skills · 204 connections · 43 signals · 13 platforms · MIT
9
9
  </p>
10
10
 
11
11
  <p align="center">
@@ -23,7 +23,7 @@
23
23
 
24
24
  Most skill ecosystems are either **too many isolated skills** (540+ that don't talk to each other) or **rigid pipelines** (A → B → C, if B fails everything stops).
25
25
 
26
- Rune is a **mesh** — 64 skills with 203 connections + 40 signals across a 5-layer architecture. Skills call each other bidirectionally, forming resilient workflows that adapt when things go wrong.
26
+ Rune is a **mesh** — 65 skills with 204 connections + 43 signals across a 5-layer architecture. Skills call each other bidirectionally, forming resilient workflows that adapt when things go wrong.
27
27
 
28
28
  ```
29
29
  Pipeline: A → B → C → D (B fails = stuck)
@@ -83,7 +83,17 @@ _Methodology: Claude Code CLI headless mode (`claude -p --output-format json`),
83
83
 
84
84
  ---
85
85
 
86
- ## What's New (v2.18.1Setup Installs Tier Skills, Not Just Hooks)
86
+ ## What's New (v2.21.0Convergence)
87
+
88
+ > **v2.21.0 (2026-07-03):** Kills the most expensive silent failure in AI-built apps: **the dead button** — UI renders, click does nothing, backend never existed. New `converge` skill (65th) re-reads your spec/plan/contracts as the sole source of intent and scans the ACTUAL code for `missing` / `partial` / `contradicts` / `unrequested` gaps, appending remediation tasks until spec and code converge (`cook` Phase 6.5, max 2 rounds then honest escalation). The whole chain got teeth: `ba` v1.2.0 emits story-sliced specs (P1/P2/P3 priorities, per-story **Independent Test**, **Key Entities**), `plan` v1.7.0 emits **contracts-first boundary artifacts** (`data-model.md` + `contracts/` + `quickstart.md`) with a P1 zero-coverage HARD-GATE and a Data→Logic→Endpoint→UI ordering law (UI is structurally last), `verification` v0.6.0 adds **Level 3.5 INTERACTION WIRED** (traces button → handler → route across React/Svelte/Vue syntax), `completion-gate` v1.9.0 makes the E2E flow trace mandatory for UI+data diffs (single-phase included), and `deploy` v0.8.0 warns before shipping UI+data changes with no wiring evidence. 3 new mesh signals (`convergence.gaps`, `convergence.clean`, `integration.verified`). Every gate is diff-scoped — legacy debt warns, new work fails.
89
+
90
+ ### Previous (v2.20.0 — Spec Discipline)
91
+
92
+ > **v2.20.0 (2026-07-02):** Closes the "plan without spec" gap — a `brainstorm → plan → cook` chain no longer skips `ba`. Two new gates (`brainstorm` spec-presence + `cook` Phase 0 **Spec-Backfill Gate**) force requirements before code on every bypass path, not just brainstorm's. Batch also lands `ba` v1.1.0 (EARS `FR-n` functional-requirements layer), `adversary` v0.4.0 (reasoning-mode catalog + steelman-first), and a context-hook fix (session_id keying — no more false "100% compact"). Mesh **204 connections**, 1,559 tests.
93
+
94
+ > **v2.19.0 (2026-06-20):** New `rune dashboard` verb renders Rune's flagship **human-visible artifact** — a self-contained HTML "Codebase Briefing + Governance Scorecard" you can open in a meeting with no server, no CDN, no telemetry, nothing leaving the machine. The headline is the governance/value **verdict** (0-100 score with honest `—` empty-state), not a code graph — the buyer's codebase graph lives in the **Understand** tab (node/edge filters, domain view with flow steps, guided tour, node inspector, PNG/SVG/JSON export, keyboard-accessible canvas). Five-tab IA: Verdict → Govern / Measure / Understand / Improve. **Tier-aware** — Free sees verdict + measure, **Pro** adds a "My Lens" cost/ROI persona, **Business** unlocks the full Governance Scorecard (gate-outcome ledger + compliance coverage). Honest by design: empty states render `—` not fabricated numbers, and Free/Pro see an upsell that *describes* value rather than fake data. XSS-hardened + 100% self-contained. Internals: `comprehension.js` split 3584 → 1255 LOC (browser app extracted to `comprehension-client.js`, byte-identical output). Built on existing onboard / autopsy / analytics / mesh generators — original work, no external dependency. CI 1558/1558.
95
+
96
+ ### Previous (v2.18.1 — Setup Installs Tier Skills, Not Just Hooks)
87
97
 
88
98
  > **v2.18.1 (2026-05-17):** Bug fix — `rune setup --tier pro|business` now copies the tier's `skills/` directories into the Free plugin's `skills/` folder. Before this fix, paid tiers shipped hooks only, so `rune:autopilot` (Pro) returned `Unknown skill: rune:autopilot` because the SKILL.md was at `Pro/skills/autopilot/` but invisible to the Claude Code plugin runtime. New `installTierSkills` in `compiler/commands/setup.js` runs after `installHooks`, copies each `<tierRoot>/skills/<name>/` into `<runeRoot>/skills/`, idempotent (skips existing — protects Free skills from clobber and user-edited Pro skills from stomp), with path-traversal guard + symlink rejection + partial-copy cleanup + version-drift detection. Paired with Pro `autopilot-v1.5.0` (Step 0 LOAD now reads user-message context for plan path — same pattern cook uses). 25/26 setup tests pass (1 skipped on Windows — symlink test needs admin/dev-mode). Full CI 1444 tests.
89
99
 
@@ -209,7 +219,7 @@ cook ───emit:phase.complete────→ session-bridge
209
219
 
210
220
  ## What Rune Is (and Isn't)
211
221
 
212
- Rune started as a **Claude Code plugin** and now compiles to **every major AI IDE**. Same 64 skills, same mesh connections, same workflows — zero knowledge loss across platforms.
222
+ Rune started as a **Claude Code plugin** and now compiles to **every major AI IDE**. Same 65 skills, same mesh connections, same workflows — zero knowledge loss across platforms.
213
223
 
214
224
  | | Rune Provides | Claude Code Provides |
215
225
  |---|---|---|
@@ -301,14 +311,14 @@ npx @rune-kit/rune init --platform windsurf
301
311
  npx @rune-kit/rune init --platform antigravity
302
312
  ```
303
313
 
304
- This compiles all 64 skills into your IDE's rules format. Same knowledge, same workflows.
314
+ This compiles all 65 skills into your IDE's rules format. Same knowledge, same workflows.
305
315
 
306
316
  ### Platform Comparison
307
317
 
308
318
  | Feature | Claude Code | Cursor / Windsurf / Others |
309
319
  |---------|-------------|---------------------------|
310
320
  | Skills available | 64/64 | 64/64 |
311
- | Mesh connections | 203 sync + 40 signals (programmatic) | 203 sync + 40 signals (rule references) |
321
+ | Mesh connections | 204 sync + 43 signals (programmatic) | 204 sync + 43 signals (rule references) |
312
322
  | Workflows & HARD-GATEs | Full | Full |
313
323
  | Extension packs | 14 | 14 |
314
324
  | Subagent parallelism | Native | Sequential fallback |
@@ -588,7 +598,7 @@ How it works: `rune-pulse` (statusline) reads `context_window.used_percentage` f
588
598
 
589
599
  **Autopilot** — approve a plan, walk away. Autonomous multi-session execution with zero-HIGH-tolerance quality gates, baseline regression checks, cross-phase coherence review, and structured completion reports. `cook` gets the job done. `autopilot` gets it done while you sleep.
590
600
 
591
- **Department Packs** — 34 skills across 5 domains:
601
+ **Pro Packs** — 9 domain packs:
592
602
 
593
603
  | Pack | What it does |
594
604
  |------|-------------|
@@ -596,7 +606,11 @@ How it works: `rune-pulse` (statusline) reads `context_window.used_percentage` f
596
606
  | **Sales** | Account research briefs, call prep with objection handling, outreach sequences, pipeline health review |
597
607
  | **Data Science** | SQL exploration → visualization → statistical testing → ML eval, all in one flow |
598
608
  | **Support** | Ticket triage with SLA routing, KB article generation, escalation playbooks, support metrics |
599
- | **Growth** | Niche research, content scouting, SEO architecture, landing page generation, content health monitoring, data moats, content quality scoring, CRO psychology analysis, 74 marketing mental models |
609
+ | **Growth** | Niche research, content scouting, SEO architecture, landing pages, content health, data moats, quality scoring, CRO psychology, engagement ops (client intake + monthly retainer cycle), 74 marketing mental models |
610
+ | **Media** | Raster image generation across 5 providers (Codex/DALL-E/Replicate/Stability/local SD), prompt-safety gates, batch asset pipeline with multi-resolution + WebP/AVIF |
611
+ | **Personal Brand** | The operating system for founders/coaches/creators — brand identity → 12-month strategy → content engine (AI avatar video, podcast, long-form) → monetization ladder → community moat |
612
+ | **E-commerce** | Full dropshipping pipeline — winning-product scorecard, supplier sourcing, Shopify + 10-ads/week creative, BE-ROAS pricing gate, scaling playbook, FTC/EU compliance |
613
+ | **Vietnam** | VN market layer — Zalo/TikTok Shop/Shopee channel strategy, COD-dominant commerce + logistics (MoMo/VNPay/GHN/GHTK), content localization for the Tết-anchored sale calendar |
600
614
 
601
615
  All Pro packs plug into the core mesh — `cook` orchestrates them, `sentinel` gates them, `team` parallelizes them.
602
616
 
@@ -643,8 +657,13 @@ npx @rune-kit/rune build --platform windsurf
643
657
 
644
658
  # Validate compiled output
645
659
  npx @rune-kit/rune doctor
660
+
661
+ # Open comprehension dashboard (human-readable project health)
662
+ npx @rune-kit/rune dashboard
646
663
  ```
647
664
 
665
+ `rune dashboard` generates a self-contained HTML file (`.rune/comprehension.html`) with five tabs — Verdict, Govern, Measure, Understand, Improve — driven by real session, gate, and mesh data. No external requests, no CDN. Tier-aware: Pro unlocks My Lens persona; Business unlocks the full Govern panel (compliance, gate ledger, decision provenance).
666
+
648
667
  See [docs/MULTI-PLATFORM.md](docs/MULTI-PLATFORM.md) for the full architecture.
649
668
 
650
669
  ## Documentation
@@ -652,7 +671,7 @@ See [docs/MULTI-PLATFORM.md](docs/MULTI-PLATFORM.md) for the full architecture.
652
671
  | Doc | What's inside |
653
672
  |-----|---------------|
654
673
  | [`docs/GETTING_STARTED.md`](docs/GETTING_STARTED.md) | Your first 5 minutes with Rune — install to first `/rune cook` |
655
- | [`docs/SKILLS.md`](docs/SKILLS.md) | All 64 skills, searchable by intent and layer |
674
+ | [`docs/SKILLS.md`](docs/SKILLS.md) | All 65 skills, searchable by intent and layer |
656
675
  | [`docs/SIGNALS.md`](docs/SIGNALS.md) | Canonical signal inventory — 25 events, emit/listen graph |
657
676
  | [`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) | 5-layer mesh architecture reference |
658
677
  | [`docs/VISION.md`](docs/VISION.md) | Philosophy — what Rune is and isn't |
@@ -666,14 +685,14 @@ See [docs/MULTI-PLATFORM.md](docs/MULTI-PLATFORM.md) for the full architecture.
666
685
 
667
686
  ```
668
687
  Core Skills: 64 (L0: 1 │ L1: 5 │ L2: 30 │ L3: 28)
669
- Extension Packs: 14 free + 6 pro + 4 business
688
+ Extension Packs: 14 free + 9 pro + 4 business
670
689
  Mesh Connections: 203 sync calls (rune doctor)
671
- Mesh Signals: 40 signals · 50 emit/listen edges (rune doctor)
690
+ Mesh Signals: 43 signals · 55 emit/listen edges (rune doctor)
672
691
  Connections/Skill: 3.2 avg
673
692
  Platforms: 8 (Claude Code, Cursor, Windsurf, Antigravity, Codex, OpenCode, OpenClaw, Generic)
674
693
  Compiler: ~1400 LOC (parser + 8 transforms + 8 adapters + CLI)
675
694
  Tests: 1,152+ (compiler + signals + status + visualizer + hooks + scripts + tier-hooks)
676
- Pack Depth: 23 packs total (14 free + 5 pro + 4 business, all free packs rated Deep)
695
+ Pack Depth: 27 packs total (14 free + 9 pro + 4 business, all free packs rated Deep)
677
696
  ```
678
697
 
679
698
  ## Acknowledgments