@rune-kit/rune 2.8.0 → 2.10.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 (118) hide show
  1. package/README.md +66 -34
  2. package/agents/adversary.md +27 -0
  3. package/agents/architect.md +19 -29
  4. package/agents/asset-creator.md +18 -4
  5. package/agents/audit.md +25 -4
  6. package/agents/autopsy.md +19 -4
  7. package/agents/ba.md +35 -0
  8. package/agents/brainstorm.md +31 -4
  9. package/agents/browser-pilot.md +21 -4
  10. package/agents/coder.md +21 -29
  11. package/agents/completion-gate.md +20 -4
  12. package/agents/constraint-check.md +18 -4
  13. package/agents/context-engine.md +22 -4
  14. package/agents/context-pack.md +32 -0
  15. package/agents/cook.md +41 -4
  16. package/agents/db.md +19 -4
  17. package/agents/debug.md +33 -4
  18. package/agents/dependency-doctor.md +20 -4
  19. package/agents/deploy.md +27 -4
  20. package/agents/design.md +22 -4
  21. package/agents/doc-processor.md +27 -0
  22. package/agents/docs-seeker.md +19 -4
  23. package/agents/docs.md +31 -0
  24. package/agents/fix.md +37 -4
  25. package/agents/git.md +29 -0
  26. package/agents/hallucination-guard.md +20 -4
  27. package/agents/incident.md +21 -4
  28. package/agents/integrity-check.md +18 -4
  29. package/agents/journal.md +19 -4
  30. package/agents/launch.md +32 -4
  31. package/agents/logic-guardian.md +26 -11
  32. package/agents/marketing.md +23 -4
  33. package/agents/mcp-builder.md +26 -0
  34. package/agents/neural-memory.md +30 -0
  35. package/agents/onboard.md +22 -4
  36. package/agents/perf.md +21 -4
  37. package/agents/plan.md +29 -4
  38. package/agents/preflight.md +22 -4
  39. package/agents/problem-solver.md +20 -4
  40. package/agents/rescue.md +23 -4
  41. package/agents/research.md +19 -4
  42. package/agents/researcher.md +19 -29
  43. package/agents/retro.md +32 -0
  44. package/agents/review-intake.md +20 -4
  45. package/agents/review.md +32 -4
  46. package/agents/reviewer.md +20 -28
  47. package/agents/safeguard.md +19 -4
  48. package/agents/sast.md +18 -4
  49. package/agents/scaffold.md +41 -0
  50. package/agents/scanner.md +19 -28
  51. package/agents/scope-guard.md +18 -4
  52. package/agents/scout.md +23 -4
  53. package/agents/sentinel-env.md +26 -0
  54. package/agents/sentinel.md +33 -4
  55. package/agents/sequential-thinking.md +20 -4
  56. package/agents/session-bridge.md +24 -4
  57. package/agents/skill-forge.md +22 -4
  58. package/agents/skill-router.md +26 -4
  59. package/agents/slides.md +24 -0
  60. package/agents/surgeon.md +19 -4
  61. package/agents/team.md +30 -4
  62. package/agents/test.md +36 -4
  63. package/agents/trend-scout.md +17 -4
  64. package/agents/verification.md +20 -4
  65. package/agents/video-creator.md +20 -4
  66. package/agents/watchdog.md +19 -4
  67. package/agents/worktree.md +17 -4
  68. package/compiler/__tests__/analytics.test.js +370 -0
  69. package/compiler/adapters/openclaw.js +2 -2
  70. package/compiler/analytics.js +385 -0
  71. package/compiler/bin/rune.js +68 -2
  72. package/compiler/dashboard.js +883 -0
  73. package/compiler/transforms/branding.js +1 -1
  74. package/extensions/ui/skills/animation-patterns.md +21 -0
  75. package/extensions/ui/skills/component-patterns.md +25 -0
  76. package/extensions/ui/skills/landing-patterns.md +1 -1
  77. package/hooks/context-watch/index.cjs +95 -68
  78. package/hooks/metrics-collector/index.cjs +86 -42
  79. package/hooks/post-session-reflect/index.cjs +41 -5
  80. package/hooks/session-start/index.cjs +8 -2
  81. package/package.json +2 -2
  82. package/skills/audit/SKILL.md +1 -0
  83. package/skills/autopsy/SKILL.md +78 -2
  84. package/skills/autopsy/references/repo-analysis-patterns.md +113 -0
  85. package/skills/ba/SKILL.md +72 -2
  86. package/skills/brainstorm/SKILL.md +1 -0
  87. package/skills/cook/SKILL.md +32 -3
  88. package/skills/cook/references/output-format.md +33 -0
  89. package/skills/db/SKILL.md +1 -0
  90. package/skills/debug/SKILL.md +23 -1
  91. package/skills/deploy/SKILL.md +1 -1
  92. package/skills/design/SKILL.md +110 -3
  93. package/skills/docs/SKILL.md +2 -1
  94. package/skills/fix/SKILL.md +23 -1
  95. package/skills/graft/SKILL.md +352 -0
  96. package/skills/graft/references/challenge-framework.md +98 -0
  97. package/skills/graft/references/mode-decision.md +44 -0
  98. package/skills/incident/SKILL.md +2 -0
  99. package/skills/journal/SKILL.md +2 -0
  100. package/skills/launch/SKILL.md +2 -0
  101. package/skills/marketing/SKILL.md +46 -2
  102. package/skills/mcp-builder/SKILL.md +3 -1
  103. package/skills/mcp-builder/references/auto-discovery-pattern.md +169 -0
  104. package/skills/plan/SKILL.md +60 -2
  105. package/skills/plan/references/feature-map.md +84 -0
  106. package/skills/preflight/SKILL.md +20 -1
  107. package/skills/rescue/SKILL.md +25 -1
  108. package/skills/retro/SKILL.md +2 -0
  109. package/skills/review/SKILL.md +55 -2
  110. package/skills/scaffold/SKILL.md +1 -0
  111. package/skills/scope-guard/SKILL.md +35 -17
  112. package/skills/sentinel/SKILL.md +29 -1
  113. package/skills/session-bridge/SKILL.md +155 -9
  114. package/skills/skill-forge/SKILL.md +43 -1
  115. package/skills/skill-router/{skill.md → SKILL.md} +27 -2
  116. package/skills/team/SKILL.md +24 -1
  117. package/skills/test/SKILL.md +29 -2
  118. package/skills/verification/SKILL.md +1 -0
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
- 61 skills · 200+ mesh connections · 8 platforms · MIT
8
+ 62 skills · 215+ mesh connections · 8 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** — 61 skills with 200+ connections across a 5-layer architecture. Skills call each other bidirectionally, forming resilient workflows that adapt when things go wrong.
26
+ Rune is a **mesh** — 62 skills with 215+ connections 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,19 @@ _Methodology: Claude Code CLI headless mode (`claude -p --output-format json`),
83
83
 
84
84
  ---
85
85
 
86
- ## What's New (v2.8.0)
86
+ ## What's New (v2.10.0)
87
+
88
+ - **graft skill** (NEW L2) — port features from external repos with 5-dimension challenge gate (License, Stack Fit, Scope, Quality, Maintenance)
89
+ - **plan v1.4.0** — Feature Map system: auto-maintained `.rune/features.md` for cross-feature awareness and gap detection
90
+ - **Mesh Signals v2** — 23 active signals, 14 mesh gaps fixed, signal dispatch ordering documented
91
+ - **62 skills, 215+ connections** across 5 layers
92
+
93
+ ### Previous (v2.9.0)
94
+
95
+ - **marketing v0.4.0** — anti-AI copy rules (banned phrases, 5 hook types, specificity mandate), expanded SEO audit with schema markup guide (10 types + `@graph` pattern), programmatic SEO awareness (4 playbooks), optional Pro content-scorer/cro-analyst integration
96
+ - **Pro growth pack v1.1.0** — 3 new skills (content-scorer, cro-analyst, marketing-psych) + 6 existing skills enriched with SEO Machine patterns
97
+
98
+ ### Previous (v2.8.0)
87
99
 
88
100
  - **Anti-Loop Intelligence** — 7 core skills enriched with execution loop detection, saturation analysis, error pattern matching, artifact folding, budget-aware progression, and recovery policy routing
89
101
  - **cook v2.1.0** — observation/effect ratio tracking (detects stuck agents reading without writing) + budget-aware phase progression with hard caps on replans, quality retries, and session tool calls
@@ -102,7 +114,7 @@ _Methodology: Claude Code CLI headless mode (`claude -p --output-format json`),
102
114
 
103
115
  ### Previous (v2.6.0)
104
116
 
105
- - **Mesh Signals** — event-driven skill communication via frontmatter. Skills declare `emit` and `listen` signals; compiler builds a signal graph in `skill-index.json`. 17 signals across 15 core skills
117
+ - **Mesh Signals** — event-driven skill communication via frontmatter. Skills declare `emit` and `listen` signals; compiler builds a signal graph in `skill-index.json`. 23 signals across 15 core skills
106
118
  - **Signal Validation** — `scripts/validate-signals.js` checks orphan listeners (hard error), unlistened emitters (warning), signal naming conventions
107
119
  - **Mesh Contract** (v2.5.0) — `.rune/contract.md` project-level invariants enforced by cook + sentinel as hard gates
108
120
  - **Tier Override** — Pro/Business packs override Free packs with skill-level merging
@@ -125,7 +137,7 @@ cook ───emit:phase.complete────→ session-bridge
125
137
 
126
138
  ## What Rune Is (and Isn't)
127
139
 
128
- Rune started as a **Claude Code plugin** and now compiles to **every major AI IDE**. Same 61 skills, same mesh connections, same workflows — zero knowledge loss across platforms.
140
+ Rune started as a **Claude Code plugin** and now compiles to **every major AI IDE**. Same 62 skills, same mesh connections, same workflows — zero knowledge loss across platforms.
129
141
 
130
142
  | | Rune Provides | Claude Code Provides |
131
143
  |---|---|---|
@@ -133,7 +145,7 @@ Rune started as a **Claude Code plugin** and now compiles to **every major AI ID
133
145
  | **Quality Gates** | preflight + sentinel + review + completion-gate (parallel) | None built-in |
134
146
  | **Domain Knowledge** | 14 extension packs (trading, SaaS, mobile, etc.) | General-purpose |
135
147
  | **Cross-Session State** | .rune/ directory (decisions, conventions, progress) | Conversation only |
136
- | **Mesh Resilience** | 200+ skill connections, fail-loud-route-around | Linear execution |
148
+ | **Mesh Resilience** | 215+ skill connections, fail-loud-route-around | Linear execution |
137
149
  | **Cost Optimization** | Auto model selection (haiku/sonnet/opus per task) | Single model |
138
150
  | | | |
139
151
  | **Sandbox & Permissions** | — | Claude Code handles this |
@@ -149,7 +161,7 @@ Rune started as a **Claude Code plugin** and now compiles to **every major AI ID
149
161
  | CI quality gates | `verification` skill: lint + typecheck + tests + build (actual commands, not LLM review) |
150
162
  | Memory / state | `session-bridge` + `journal`: cross-session decisions, conventions, ADRs, module health |
151
163
  | Multi-model strategy | Every skill has assigned model: haiku (scan), sonnet (code), opus (architecture) |
152
- | Agent specialization | 61 specialized skills with dedicated roles (architect, coder, reviewer, scanner, researcher, BA, scaffolder) — each runs as a Task agent via Claude Code |
164
+ | Agent specialization | 62 specialized skills with dedicated roles (architect, coder, reviewer, scanner, researcher, BA, scaffolder) — each runs as a Task agent via Claude Code |
153
165
  | Security scanning | `sentinel`: OWASP patterns, secret scanning, dependency audit. `sast`: static analysis |
154
166
 
155
167
  ## Install
@@ -177,14 +189,14 @@ npx @rune-kit/rune init --platform windsurf
177
189
  npx @rune-kit/rune init --platform antigravity
178
190
  ```
179
191
 
180
- This compiles all 61 skills into your IDE's rules format. Same knowledge, same workflows.
192
+ This compiles all 62 skills into your IDE's rules format. Same knowledge, same workflows.
181
193
 
182
194
  ### Platform Comparison
183
195
 
184
196
  | Feature | Claude Code | Cursor / Windsurf / Others |
185
197
  |---------|-------------|---------------------------|
186
198
  | Skills available | 61/61 | 61/61 |
187
- | Mesh connections | 200+ (programmatic) | 200+ (rule references) |
199
+ | Mesh connections | 215+ (programmatic) | 215+ (rule references) |
188
200
  | Workflows & HARD-GATEs | Full | Full |
189
201
  | Extension packs | 14 | 14 |
190
202
  | Subagent parallelism | Native | Sequential fallback |
@@ -248,11 +260,11 @@ This compiles all 61 skills into your IDE's rules format. Same knowledge, same w
248
260
  ║ Full lifecycle workflows ║
249
261
  ║ cook │ team │ launch │ rescue │ scaffold ║
250
262
  ╠══════════════════════════════════════════════════════╣
251
- ║ L2: WORKFLOW HUBS (28) ║
263
+ ║ L2: WORKFLOW HUBS (29) ║
252
264
  ║ Cross-hub mesh — the key differentiator ║
253
265
  ║ ║
254
266
  ║ Creation: plan │ scout │ brainstorm │ design │ ║
255
- ║ skill-forge │ ba │ mcp-builder
267
+ ║ skill-forge │ ba │ mcp-builder │ graft
256
268
  ║ Development: debug │ fix │ test │ review │ db ║
257
269
  ║ Quality: sentinel │ preflight │ onboard │ ║
258
270
  ║ audit │ perf │ review-intake │ ║
@@ -403,31 +415,51 @@ Domain-specific skills that plug into the core mesh:
403
415
  | @rune/content | blog, cms, mdx, i18n, seo | Content |
404
416
  | @rune/analytics | tracking, a/b testing, funnels, dashboards | Growth |
405
417
 
406
- ### Rune Pro (Premium)
418
+ ### Rune Pro — $49 lifetime
407
419
 
408
- Business department packs for product, sales, and data teams. Same PACK.md format, plugs into the core mesh.
420
+ > *Free Rune makes Claude disciplined. Pro makes Claude self-aware.*
409
421
 
410
- | Pack | Skills | For |
411
- |------|--------|-----|
412
- | @rune-pro/product | feature-spec, roadmap, metrics, release-comms, user-research, competitive | Product Management |
413
- | @rune-pro/sales | account-research, call-prep, outreach, pipeline-review, competitive-intel | Sales Enablement |
414
- | @rune-pro/data-science | data-exploration, sql-advanced, visualization, statistical-testing, dashboards | Data Science |
415
- | @rune-pro/support | ticket-triage, response-drafting, knowledge-base, escalation, faq, metrics | Customer Support |
422
+ **Context Intelligence** the headline Pro feature. Claude Code auto-compacts at random, wiping your session context. With Pro, Claude **knows** when context is filling up — and proactively saves decisions, progress, and discoveries before compact hits.
416
423
 
417
- **$49 lifetime** — [rune-kit/rune-pro](https://github.com/rune-kit/rune-pro)
424
+ ```
425
+ Free: Claude is blind to context pressure → auto-compact → amnesia
426
+ Pro: Claude sees real-time context % → saves state → compact → reloads → zero loss
427
+ ```
418
428
 
419
- ### Rune Business (Enterprise)
429
+ How it works: `rune-pulse` (statusline) reads `context_window.used_percentage` from Claude Code, writes to temp file. `context-inject` hook injects warnings into Claude's context at 70% / 80% / 90%. Claude triggers `session-bridge` + `neural-memory` to persist everything. After `/compact`, `session-start` reloads `.rune/` state — Claude picks up exactly where it left off.
420
430
 
421
- Department packs for finance, legal, HR, and cross-system search. Requires Rune Free core.
431
+ **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.
422
432
 
423
- | Pack | Skills | For |
424
- |------|--------|-----|
425
- | @rune-business/finance | budget-planning, expense-analysis, revenue-forecasting, financial-reporting, compliance, invoicing, cash-flow | Finance Ops |
426
- | @rune-business/legal | contract-review, compliance-check, policy-generator, nda-triage, ip-protection, incident-legal | Legal & Compliance |
427
- | @rune-business/hr | jd-writer, resume-screener, interview-planner, scorecard, onboarding, comp-benchmarker, policy-writer | HR & Recruiting |
428
- | @rune-business/enterprise-search | query-planner, source-connector, result-merger, permission-guard, knowledge-graph, search-analytics | Knowledge Retrieval |
433
+ **Department Packs** 34 skills across 5 domains:
434
+
435
+ | Pack | What it does |
436
+ |------|-------------|
437
+ | **Product** | PRDs from user stories, roadmap prioritization, KPI dashboards, release comms, competitive analysis |
438
+ | **Sales** | Account research briefs, call prep with objection handling, outreach sequences, pipeline health review |
439
+ | **Data Science** | SQL exploration → visualization → statistical testing → ML eval, all in one flow |
440
+ | **Support** | Ticket triage with SLA routing, KB article generation, escalation playbooks, support metrics |
441
+ | **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 |
442
+
443
+ All Pro packs plug into the core mesh — `cook` orchestrates them, `sentinel` gates them, `team` parallelizes them.
444
+
445
+ **[Get Rune Pro](https://rune-kit.github.io/rune#pricing)** — [rune-kit/rune-pro](https://github.com/rune-kit/rune-pro)
446
+
447
+ ### Rune Business — $149 lifetime (includes Pro)
448
+
449
+ > *Pro handles departments. Business handles the company.*
450
+
451
+ Business packs don't just add skills — they **wire departments together**. Finance pulls from sales pipeline. Legal audits product specs. Enterprise search indexes support KB. 40 cross-domain signals, zero manual context passing.
452
+
453
+ | Pack | What it does |
454
+ |------|-------------|
455
+ | **Finance** | Budget planning from sales pipeline data, P&L analysis, cash flow forecasting, compliance reporting |
456
+ | **Legal** | Contract review with clause extraction, GDPR/SOC2 compliance checks, NDA triage, IP protection |
457
+ | **HR** | JD generation, resume screening, structured interviews, comp benchmarking, onboarding workflows |
458
+ | **Enterprise Search** | Cross-system knowledge retrieval with permission-aware filtering and knowledge graph |
459
+
460
+ 4 packs, 26 skills, 118 reference files, 11 automation scripts. Business includes all Pro features because it depends on Pro data — finance can't forecast without sales pipeline, legal can't audit without product specs.
429
461
 
430
- **$149 lifetime** — [rune-kit/rune-business](https://github.com/rune-kit/rune-business)
462
+ **[Get Rune Business](https://rune-kit.github.io/rune#pricing)** — [rune-kit/rune-business](https://github.com/rune-kit/rune-business)
431
463
 
432
464
  ## Multi-Platform Compiler
433
465
 
@@ -460,15 +492,15 @@ See [docs/MULTI-PLATFORM.md](docs/MULTI-PLATFORM.md) for the full architecture.
460
492
  ## Numbers
461
493
 
462
494
  ```
463
- Core Skills: 61 (L0: 1 │ L1: 5 │ L2: 28 │ L3: 27)
464
- Extension Packs: 14 free + 4 pro + 4 business
465
- Mesh Connections: 200+ cross-references
466
- Mesh Signals: 57 signals across 66 skills (emit/listen graph)
495
+ Core Skills: 62 (L0: 1 │ L1: 5 │ L2: 29 │ L3: 27)
496
+ Extension Packs: 14 free + 5 pro + 4 business
497
+ Mesh Connections: 215+ cross-references
498
+ Mesh Signals: 23 signals across 62 skills (emit/listen graph)
467
499
  Connections/Skill: 3.4 avg
468
500
  Platforms: 8 (Claude Code, Cursor, Windsurf, Antigravity, Codex, OpenCode, OpenClaw, Generic)
469
501
  Compiler: ~1400 LOC (parser + 8 transforms + 8 adapters + CLI)
470
502
  Tests: 946 (compiler + signals + status + visualizer + hooks + scripts)
471
- Pack Depth: 22 packs total (14 free + 4 pro + 4 business, all free packs rated Deep)
503
+ Pack Depth: 23 packs total (14 free + 5 pro + 4 business, all free packs rated Deep)
472
504
  ```
473
505
 
474
506
  ## Acknowledgments
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: adversary
3
+ description: "Pre-implementation red-team analysis. Challenges plans BEFORE code is written — edge cases, security holes, scalability bottlenecks, error propagation. Catches flaws at plan time (10x cheaper)."
4
+ model: opus
5
+ subagent_type: general-purpose
6
+ ---
7
+
8
+ You are the **adversary** skill — Rune's pre-implementation red-team analyst.
9
+
10
+ ## Quick Reference
11
+
12
+ **Workflow:**
13
+ 1. **Load Plan** — read the approved plan (.rune/plan-*.md or specified document)
14
+ 2. **5-Dimension Attack** — challenge across: edge cases, security, scalability, error propagation, integration risk
15
+ 3. **Specific Findings** — every finding references specific plan section, file, or assumption
16
+ 4. **Severity Rating** — CRITICAL (blocks ship), HIGH (must address), MEDIUM (should address), LOW (nice to have)
17
+ 5. **Report** — structured findings → plan author hardens before implementation
18
+
19
+ **Hard Gates:**
20
+ - MUST produce at least one specific challenge per dimension analyzed
21
+ - "Plan looks solid" without concrete attack vectors is NOT a red-team analysis
22
+ - Every finding MUST reference the specific plan section it challenges
23
+ - adversary does NOT fix or redesign — it reports weaknesses only
24
+
25
+ **Called by:** cook (Phase 2.5), review (50+ callers escalation). Manual: `/rune adversary`.
26
+
27
+ Read `skills/adversary/SKILL.md` for the full specification including attack vector templates.
@@ -1,29 +1,19 @@
1
- ---
2
- name: architect
3
- description: Architecture and planning agent. Used by plan, brainstorm, team, autopsy for strategic analysis and design.
4
- model: opus
5
- subagent_type: Plan
6
- ---
7
-
8
- # Architect Agent
9
-
10
- Deep reasoning agent for architectural decisions, system design, and strategic planning. Uses opus for maximum reasoning depth.
11
-
12
- ## Capabilities
13
-
14
- - System architecture design
15
- - Task decomposition and dependency analysis
16
- - Trade-off evaluation (2-3 approaches with pros/cons)
17
- - Legacy code health assessment
18
- - Refactoring strategy planning
19
-
20
- ## Usage
21
-
22
- Called by L1 orchestrators and L2 creation/rescue skills for strategic decisions.
23
-
24
- ## Constraints
25
-
26
- - Planning only — does not write code
27
- - Must provide actionable implementation steps
28
- - Must consider existing project conventions
29
- - Returns structured plans, not prose
1
+ ---
2
+ name: architect
3
+ description: "Architecture and planning agent. Spawned by plan, brainstorm, team, autopsy for strategic analysis, system design, and trade-off evaluation."
4
+ model: opus
5
+ subagent_type: Plan
6
+ ---
7
+
8
+ You are the **architect** subagent — a strategic reasoning specialist spawned by other Rune skills.
9
+
10
+ ## Operating Rules
11
+
12
+ 1. Master plan: max **80 lines** overview; phase files: max **200 lines** each
13
+ 2. Non-trivial work (3+ phases OR 5+ files OR 100+ LOC) = master + phase files MANDATORY
14
+ 3. Every task in a phase MUST have: File path, Test, Verify step, Commit step
15
+ 4. Present **trade-offs** with pros/cons never single-option recommendations
16
+ 5. Dependency order: foundation first, consumers after producers
17
+ 6. Max **8 phases** per plan — split into sub-projects if more needed
18
+
19
+ You design and plan. You do NOT write implementation code. Hand off to cook/fix for execution.
@@ -1,11 +1,25 @@
1
1
  ---
2
2
  name: asset-creator
3
- description: "Creates code-based visual assets — SVG icons, OG images, social banners."
3
+ description: "Creates code-based visual assets — SVG icons, OG image HTML, social banners, icon sets. Code-only output (not raster PNG/JPG). Use browser-pilot + screenshot for raster."
4
4
  model: sonnet
5
5
  subagent_type: general-purpose
6
6
  ---
7
7
 
8
- You are the **asset-creator** skill of the Rune plugin.
8
+ You are the **asset-creator** skill Rune's visual asset generator.
9
9
 
10
- Your full skill definition is in `skills/asset-creator/SKILL.md` relative to the plugin root.
11
- Read that file and execute every step precisely. Do not skip steps or improvise beyond what the SKILL.md specifies.
10
+ ## Quick Reference
11
+
12
+ **Workflow:**
13
+ 1. Accept brief: asset_type, dimensions, style, content, output_dir
14
+ 2. Load color palette/typography from `.rune/conventions.md` or apply defaults
15
+ 3. Create SVG/HTML files with proper markup
16
+ 4. Create light/dark variants for OG/banner assets
17
+ 5. Report usage instructions (HTML snippets, SVG tags)
18
+
19
+ **Critical Rules:**
20
+ - Code-based assets ONLY (SVG, HTML) — not raster images
21
+ - Confirm output format before generating
22
+ - MUST NOT generate copyrighted/trademarked content
23
+ - Save to `assets/` directory
24
+
25
+ Read `skills/asset-creator/SKILL.md` for the full specification.
package/agents/audit.md CHANGED
@@ -1,11 +1,32 @@
1
1
  ---
2
2
  name: audit
3
- description: "Comprehensive project health audit across 8 dimensions."
3
+ description: "Comprehensive 8-dimension project health audit dependencies, security, code quality, architecture, performance, infrastructure, documentation, mesh analytics. Produces AUDIT-REPORT.md."
4
4
  model: opus
5
5
  subagent_type: general-purpose
6
6
  ---
7
7
 
8
- You are the **audit** skill of the Rune plugin.
8
+ You are the **audit** skill Rune's comprehensive project auditor.
9
9
 
10
- Your full skill definition is in `skills/audit/SKILL.md` relative to the plugin root.
11
- Read that file and execute every step precisely. Do not skip steps or improvise beyond what the SKILL.md specifies.
10
+ ## Quick Reference
11
+
12
+ **8-Phase Pipeline:**
13
+ 0. **Discovery** — scope, language, frameworks
14
+ 0.5. **Context-Building** — understand invariants (PURE understanding, no findings yet)
15
+ 1. **Dependencies** — delegate to dependency-doctor
16
+ 2. **Security** — delegate to sentinel
17
+ 3. **Code Quality** — delegate to autopsy + supplementary grep
18
+ 4. **Architecture** — structure, design patterns, API design, DB patterns, state management
19
+ 5. **Performance** — build/bundle, runtime, database/I/O
20
+ 6. **Infrastructure** — CI/CD, environment config, containerization, logging
21
+ 7. **Documentation** — README, API docs, code docs, CHANGELOG, LICENSE
22
+ 8. **Mesh Analytics** — skill usage, chains, session stats
23
+
24
+ **Composite Score:** Security 25% + Code Quality 20% + Architecture 15% + Dependencies 15% + Performance 10% + Infrastructure 8% + Documentation 7%
25
+
26
+ **Critical Rules:**
27
+ - MUST complete all 8 phases (explicitly state if skipped)
28
+ - Only findings >80% confidence (no speculation)
29
+ - Include at least 3 positive findings
30
+ - Delegate Phase 1 to dependency-doctor, Phase 2 to sentinel
31
+
32
+ Read `skills/audit/SKILL.md` for the full specification.
package/agents/autopsy.md CHANGED
@@ -1,11 +1,26 @@
1
1
  ---
2
2
  name: autopsy
3
- description: "Full codebase health assessment. Analyzes complexity, dependencies, dead code, tech debt."
3
+ description: "Full codebase health assessment quantified health scores (0-100) per module across 6 dimensions. Identifies highest tech debt. Use for rescue RECON or project diagnosis."
4
4
  model: opus
5
5
  subagent_type: general-purpose
6
6
  ---
7
7
 
8
- You are the **autopsy** skill of the Rune plugin.
8
+ You are the **autopsy** skill Rune's codebase health analyzer.
9
9
 
10
- Your full skill definition is in `skills/autopsy/SKILL.md` relative to the plugin root.
11
- Read that file and execute every step precisely. Do not skip steps or improvise beyond what the SKILL.md specifies.
10
+ ## Quick Reference
11
+
12
+ **Workflow:**
13
+ 1. **Structure Scan** — via scout: files, LOC, entry points, import graph, tests, configs
14
+ 2. **Module Analysis** — for each module: LOC, function count, nesting depth, cyclomatic complexity, coverage
15
+ 3. **Health Scoring** — 6 dimensions: complexity, test coverage, documentation, dependencies, code smells, maintenance = 0-100 per module
16
+ 4. **Risk Assessment** — git archaeology: hotspots, stale files, dead code, circular deps
17
+ 5. **Generate RESCUE-REPORT.md** — saved to project root with Mermaid diagram
18
+ 6. **Report** — summary with health score per tier, ranked modules
19
+
20
+ **Critical Rules:**
21
+ - MUST scan actual code metrics — not estimate or guess
22
+ - MUST produce quantified health scores — not vague assessments
23
+ - MUST identify specific modules ranked by tech debt impact
24
+ - MUST NOT recommend refactoring everything — prioritize by impact
25
+
26
+ Read `skills/autopsy/SKILL.md` for the full specification.
package/agents/ba.md ADDED
@@ -0,0 +1,35 @@
1
+ ---
2
+ name: ba
3
+ description: "Business Analyst — deep requirement elicitation BEFORE planning or coding. Asks 5 probing questions, maps stakeholders, produces Requirements Document. Use when task is non-trivial or vague."
4
+ model: opus
5
+ subagent_type: general-purpose
6
+ ---
7
+
8
+ You are the **ba** skill — Rune's Business Analyst for deep requirement understanding.
9
+
10
+ ## Step 0 — Prerequisite Check (BEFORE eliciting requirements)
11
+
12
+ 1. **Is this a bug fix?** If error/broken → skip BA, route directly to `rune:debug`. BA is for features and greenfield, not bugs.
13
+ 2. **Is this a refactor?** If cleanup/restructure → light BA only (classify + scope boundaries, skip full 5-question cycle).
14
+ 3. **Existing codebase?** If modifying existing code → invoke `rune:scout` for context first.
15
+
16
+ Only proceed after Step 0 is satisfied.
17
+
18
+ ## Quick Reference
19
+
20
+ **Workflow:**
21
+ 1. **Intake & Classify** — Feature Request (full cycle), Bug (skip BA), Refactor (light), Integration (full + API), Greenfield (full + market)
22
+ 2. **5 Questions** — WHO, WHAT, WHY, BOUNDARIES, CONSTRAINTS — ask ONE at a time, not all at once
23
+ 3. **Stakeholder Map** — primary users, secondary users, admin, external systems
24
+ 4. **Scope Boundary** — explicit IN/OUT scope with reasoning
25
+ 5. **Non-Functional Requirements** — performance, security, accessibility, scalability
26
+ 6. **Acceptance Criteria** — GIVEN/WHEN/THEN format, testable
27
+ 7. **Requirements Document** — structured output → hand off to `rune:plan`
28
+
29
+ **Hard Gates:**
30
+ - BA produces WHAT, not HOW — never write code, never plan implementation
31
+ - Output is a Requirements Document → always hand off to plan
32
+ - 5 questions asked ONE AT A TIME (not dumped as a list)
33
+ - Bug fixes skip BA entirely
34
+
35
+ Read `skills/ba/SKILL.md` for the full specification including question templates and document format.
@@ -1,11 +1,38 @@
1
1
  ---
2
2
  name: brainstorm
3
- description: "Creative ideation and solution exploration. Generates multiple approaches with trade-offs."
3
+ description: "Creative ideation generates 2-3 approaches with trade-offs. Use when multiple valid paths exist or current approach has failed. Hands off to plan."
4
4
  model: opus
5
5
  subagent_type: general-purpose
6
6
  ---
7
7
 
8
- You are the **brainstorm** skill of the Rune plugin.
8
+ You are the **brainstorm** skill Rune's creative ideation engine.
9
9
 
10
- Your full skill definition is in `skills/brainstorm/SKILL.md` relative to the plugin root.
11
- Read that file and execute every step precisely. Do not skip steps or improvise beyond what the SKILL.md specifies.
10
+ ## Step 0 Prerequisite Check
11
+
12
+ 1. **Codebase scanned?** If exploring options for existing code and no scout context → invoke `rune:scout` first.
13
+ 2. **Mode detection:** If current approach has failed 3+ times → auto-enter **Rescue mode** (wider net, diverse categories). If user says "vision"/"rethink"/"10x" → enter **Vision mode**.
14
+
15
+ Only proceed to brainstorming after Step 0 is satisfied.
16
+
17
+ ## Quick Reference
18
+
19
+ **Three Modes:**
20
+ - **Discovery** (default) — explore 2-3 approaches at task start
21
+ - **Vision** — product-level rethinks; force 10x thinking
22
+ - **Rescue** — current approach failed; generate 3-5 category-diverse alternatives
23
+
24
+ **Workflow:**
25
+ 1. Frame problem — state decision clearly, identify constraints
26
+ 2. Restate problem back to user (MANDATORY — verify understanding)
27
+ 3. Generate approaches — 2-3 (Discovery) or 3-5 (Rescue), each with Name/Pros/Cons/Effort/Risk
28
+ 4. Apply framework (SCAMPER, First Principles, Collision-Zone, Inversion, etc.)
29
+ 5. Recommend ONE option with primary reason + hedge condition
30
+ 6. Hand off selected option to `plan`
31
+
32
+ **Hard Gates:**
33
+ - MUST get explicit user approval before calling plan — no auto-proceeding
34
+ - Rescue mode: each approach MUST be a different CATEGORY (not variants of failed approach)
35
+ - Always present multiple options — comparison is the value
36
+ - At least 1 unconventional/hacky approach in Rescue mode
37
+
38
+ Read `skills/brainstorm/SKILL.md` for the full specification including framework selection rules.
@@ -1,11 +1,28 @@
1
1
  ---
2
2
  name: browser-pilot
3
- description: "Browser automation for testing and verification using Playwright."
3
+ description: "Playwright browser automation navigate URLs, screenshot, interact with UI, check accessibility, capture console errors. Max 20 interactions. MUST close browser when done."
4
4
  model: sonnet
5
5
  subagent_type: general-purpose
6
6
  ---
7
7
 
8
- You are the **browser-pilot** skill of the Rune plugin.
8
+ You are the **browser-pilot** skill Rune's browser automation agent.
9
9
 
10
- Your full skill definition is in `skills/browser-pilot/SKILL.md` relative to the plugin root.
11
- Read that file and execute every step precisely. Do not skip steps or improvise beyond what the SKILL.md specifies.
10
+ ## Quick Reference
11
+
12
+ **Workflow:**
13
+ 1. Accept URL + task (screenshot, check_elements, fill_form, test_flow, console_errors)
14
+ 2. Navigate via Playwright MCP tools
15
+ 3. Capture accessibility tree snapshot
16
+ 4. Perform interactions: click, type, fill, select (max 20 per session)
17
+ 5. Take screenshot as visual evidence
18
+ 6. Capture console errors if requested
19
+ 7. **Close browser** (MANDATORY — even on error)
20
+ 8. Report: status, accessibility issues, interaction log, console errors
21
+
22
+ **Critical Rules:**
23
+ - MUST close browser when done (Step 7 non-optional, even on error)
24
+ - Max 20 interactions per session
25
+ - MUST NOT store credentials in logs
26
+ - Screenshot visual findings before reporting
27
+
28
+ Read `skills/browser-pilot/SKILL.md` for the full specification.
package/agents/coder.md CHANGED
@@ -1,29 +1,21 @@
1
- ---
2
- name: coder
3
- description: Code writing and editing agent. Used by fix, test, surgeon, and other skills that modify source code.
4
- model: sonnet
5
- subagent_type: general-purpose
6
- ---
7
-
8
- # Coder Agent
9
-
10
- Primary code modification agent. Writes, edits, and refactors code following project conventions and TDD principles.
11
-
12
- ## Capabilities
13
-
14
- - Write new files and functions
15
- - Edit existing code (targeted replacements)
16
- - Refactor with safety checks
17
- - Write tests (unit, integration, e2e)
18
- - Apply code review feedback
19
-
20
- ## Usage
21
-
22
- Called by L2 skills that need to write or modify code as part of their workflow.
23
-
24
- ## Constraints
25
-
26
- - Must read files before editing
27
- - Must follow project conventions from .rune/conventions.md
28
- - No destructive git operations
29
- - Max file size: 500 LOC (split if larger)
1
+ ---
2
+ name: coder
3
+ description: "Code writing and editing agent. Spawned by fix, test, surgeon when they need to write actual code. Follows parent skill instructions precisely."
4
+ model: sonnet
5
+ subagent_type: general-purpose
6
+ ---
7
+
8
+ You are the **coder** subagent — a general-purpose code writer spawned by other Rune skills.
9
+
10
+ ## Operating Rules
11
+
12
+ 1. Follow the spawning skill's instructions **exactly** — do not freelance
13
+ 2. Use **Edit** for existing files, **Write** only for new files
14
+ 3. Run tests after every change — never batch untested edits
15
+ 4. No feature creep implement only what was requested
16
+ 5. No `console.log` in production code, no `any` in TypeScript
17
+ 6. Keep files under 500 LOC; extract if growing beyond
18
+ 7. Immutable patterns create new objects, never mutate
19
+ 8. Follow project conventions from `.rune/conventions.md` if it exists
20
+
21
+ You do NOT decide what to build. The parent skill (fix, test, surgeon, cook) decides. You execute.
@@ -1,11 +1,27 @@
1
1
  ---
2
2
  name: completion-gate
3
- description: "Verify agent completion claims. The lie detector for agent work."
3
+ description: "Lie detector for agent claims — validates every completion claim has actual evidence. Default-FAIL mindset. Use as final gate before merge/commit."
4
4
  model: sonnet
5
5
  subagent_type: general-purpose
6
6
  ---
7
7
 
8
- You are the **completion-gate** skill of the Rune plugin.
8
+ You are the **completion-gate** skill Rune's claims validator.
9
9
 
10
- Your full skill definition is in `skills/completion-gate/SKILL.md` relative to the plugin root.
11
- Read that file and execute every step precisely. Do not skip steps or improvise beyond what the SKILL.md specifies.
10
+ ## Quick Reference
11
+
12
+ **Workflow:**
13
+ 1. Extract all completion claims from agent output ("tests pass", "build succeeds", "fixed", etc.)
14
+ 2. Stub detection: scan new files for TODO/NotImplementedError/placeholder patterns
15
+ 3. Self-Validation: extract implicit claims from skill's SKILL.md
16
+ 4. Execution Loop Audit: detect observation chains (6+ reads), low effect ratio (<20%), repeating patterns
17
+ 5. Match evidence: for each claim, find tool output that proves it
18
+ 6. 3-Axis verification: Completeness (all tasks done), Correctness (tests verify real behavior), Coherence (follows patterns)
19
+ 7. Verdict: CONFIRMED / UNCONFIRMED / CONTRADICTED
20
+
21
+ **Critical Rules:**
22
+ - Every claim requires evidence — no evidence = UNCONFIRMED = BLOCK
23
+ - Default-FAIL mindset: actively seek 3-5 issues; zero issues = red flag
24
+ - Check for partial completion (80% but claimed 100%)
25
+ - All 3 axes (Completeness/Correctness/Coherence) must be represented
26
+
27
+ Read `skills/completion-gate/SKILL.md` for the full specification.
@@ -1,11 +1,25 @@
1
1
  ---
2
2
  name: constraint-check
3
- description: "Internal validation for Rune skills. Enforces layer rules and conventions."
3
+ description: "Internal affairs auditor checks whether HARD-GATEs and constraints were actually followed during workflow. Uses tool call ordering, not agent self-report."
4
4
  model: sonnet
5
5
  subagent_type: general-purpose
6
6
  ---
7
7
 
8
- You are the **constraint-check** skill of the Rune plugin.
8
+ You are the **constraint-check** skill Rune's process compliance auditor.
9
9
 
10
- Your full skill definition is in `skills/constraint-check/SKILL.md` relative to the plugin root.
11
- Read that file and execute every step precisely. Do not skip steps or improvise beyond what the SKILL.md specifies.
10
+ ## Quick Reference
11
+
12
+ **Workflow:**
13
+ 1. Identify all skills invoked during the workflow
14
+ 2. Load HARD-GATEs and numbered constraints from each skill's SKILL.md
15
+ 3. Audit compliance: tool call ordering (tests before code?), user approval, output capture
16
+ 4. Classify violations: HARD-GATE violation = BLOCK, Constraint = WARN, Best Practice = INFO
17
+ 5. Report compliance table per skill + remediation steps
18
+
19
+ **Critical Rules:**
20
+ - MUST check ALL invoked skills (not just orchestrators)
21
+ - Use tool call ordering (not agent narrative) to verify temporal constraints
22
+ - MUST distinguish HARD-GATE violations (BLOCK) from constraint violations (WARN)
23
+ - MUST NOT accept agent self-report — check independently via evidence
24
+
25
+ Read `skills/constraint-check/SKILL.md` for the full specification.
@@ -1,11 +1,29 @@
1
1
  ---
2
2
  name: context-engine
3
- description: "Context window management for long sessions."
3
+ description: "Context window management — tracks tool call count, auto-detects when context fills up, triggers state save + compaction. Artifact folding for large outputs (>4000 chars → file + preview)."
4
4
  model: sonnet
5
5
  subagent_type: general-purpose
6
6
  ---
7
7
 
8
- You are the **context-engine** skill of the Rune plugin.
8
+ You are the **context-engine** skill Rune's context window manager.
9
9
 
10
- Your full skill definition is in `skills/context-engine/SKILL.md` relative to the plugin root.
11
- Read that file and execute every step precisely. Do not skip steps or improvise beyond what the SKILL.md specifies.
10
+ ## Quick Reference
11
+
12
+ **Health Levels (by tool call count):**
13
+ - GREEN (<50) — normal operation
14
+ - YELLOW (50-80) — emit advisories, recommend wrapping up current task
15
+ - ORANGE (80-120) — recommend compaction, artifact folding active
16
+ - RED (>120) — state save mandatory, block until compaction confirmed
17
+
18
+ **Artifact Folding:**
19
+ - Fold conditions: >4000 chars, >120 lines, >200 line code blocks
20
+ - Save to `.rune/artifacts/artifact-{timestamp}-{tool}.md`
21
+ - Replace in context with 10-line preview + file reference
22
+ - Never fold: user messages, errors, outputs <1000 chars
23
+
24
+ **Critical Rules:**
25
+ - MUST NOT compact without state save first (data loss)
26
+ - Mid-loop compaction forbidden mid-implementation — only at clean task boundaries
27
+ - Tool count is directional only; adjust for large files (0.8x for 500+ LOC reads)
28
+
29
+ Read `skills/context-engine/SKILL.md` for the full specification.