@rune-kit/rune 2.2.6 → 2.3.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 (91) hide show
  1. package/README.md +395 -389
  2. package/compiler/__tests__/tier-override.test.js +158 -0
  3. package/compiler/adapters/antigravity.js +3 -8
  4. package/compiler/adapters/codex.js +3 -8
  5. package/compiler/adapters/cursor.js +3 -8
  6. package/compiler/adapters/generic.js +3 -8
  7. package/compiler/adapters/openclaw.js +4 -9
  8. package/compiler/adapters/opencode.js +3 -8
  9. package/compiler/adapters/windsurf.js +3 -8
  10. package/compiler/bin/rune.js +34 -1
  11. package/compiler/emitter.js +94 -5
  12. package/compiler/transforms/branding.js +10 -3
  13. package/docs/ARCHITECTURE.md +3 -3
  14. package/docs/SKILL-TEMPLATE.md +15 -0
  15. package/docs/VISION.md +3 -3
  16. package/docs/guides/index.html +14 -14
  17. package/docs/index.html +82 -13
  18. package/docs/script.js +33 -6
  19. package/docs/skills/index.html +832 -832
  20. package/docs/style.css +62 -0
  21. package/extensions/ai-ml/PACK.md +7 -0
  22. package/extensions/content/PACK.md +7 -0
  23. package/extensions/mobile/PACK.md +9 -9
  24. package/extensions/zalo/PACK.md +9 -0
  25. package/package.json +8 -6
  26. package/skills/adversary/SKILL.md +12 -0
  27. package/skills/audit/SKILL.md +526 -467
  28. package/skills/autopsy/SKILL.md +12 -0
  29. package/skills/ba/SKILL.md +349 -342
  30. package/skills/brainstorm/SKILL.md +11 -0
  31. package/skills/completion-gate/SKILL.md +260 -249
  32. package/skills/context-engine/SKILL.md +77 -1
  33. package/skills/context-pack/SKILL.md +160 -0
  34. package/skills/cook/SKILL.md +648 -958
  35. package/skills/cook/references/deviation-rules.md +19 -0
  36. package/skills/cook/references/error-recovery.md +37 -0
  37. package/skills/cook/references/exit-conditions.md +31 -0
  38. package/skills/cook/references/loop-detection.md +39 -0
  39. package/skills/cook/references/mid-run-signals.md +31 -0
  40. package/skills/cook/references/output-format.md +40 -0
  41. package/skills/cook/references/pack-detection.md +82 -0
  42. package/skills/cook/references/pause-resume-template.md +38 -0
  43. package/skills/cook/references/rfc-template.md +52 -0
  44. package/skills/cook/references/sharp-edges.md +24 -0
  45. package/skills/cook/references/subagent-status.md +38 -0
  46. package/skills/db/SKILL.md +12 -0
  47. package/skills/debug/SKILL.md +392 -362
  48. package/skills/deploy/SKILL.md +10 -0
  49. package/skills/deploy/references/post-deploy-integration.md +192 -0
  50. package/skills/design/SKILL.md +9 -0
  51. package/skills/docs/SKILL.md +12 -0
  52. package/skills/docs-seeker/SKILL.md +11 -0
  53. package/skills/fix/SKILL.md +281 -249
  54. package/skills/incident/SKILL.md +10 -0
  55. package/skills/launch/SKILL.md +12 -0
  56. package/skills/logic-guardian/SKILL.md +11 -0
  57. package/skills/marketing/SKILL.md +13 -0
  58. package/skills/mcp-builder/SKILL.md +13 -0
  59. package/skills/onboard/SKILL.md +50 -2
  60. package/skills/perf/SKILL.md +11 -0
  61. package/skills/plan/SKILL.md +342 -688
  62. package/skills/plan/references/completeness-scoring.md +36 -0
  63. package/skills/plan/references/outcome-block.md +40 -0
  64. package/skills/plan/references/plan-templates.md +193 -0
  65. package/skills/plan/references/wave-planning.md +44 -0
  66. package/skills/plan/references/workflow-registry.md +52 -0
  67. package/skills/preflight/SKILL.md +360 -280
  68. package/skills/rescue/SKILL.md +11 -0
  69. package/skills/research/SKILL.md +149 -150
  70. package/skills/retro/SKILL.md +11 -0
  71. package/skills/review/SKILL.md +489 -396
  72. package/skills/review-intake/SKILL.md +11 -0
  73. package/skills/safeguard/SKILL.md +12 -0
  74. package/skills/scaffold/SKILL.md +10 -0
  75. package/skills/scope-guard/SKILL.md +11 -0
  76. package/skills/scout/SKILL.md +9 -0
  77. package/skills/sentinel/SKILL.md +296 -425
  78. package/skills/sentinel/references/config-protection.md +52 -0
  79. package/skills/sentinel/references/destructive-commands.md +39 -0
  80. package/skills/sentinel/references/domain-hooks.md +73 -0
  81. package/skills/sentinel/references/framework-patterns.md +46 -0
  82. package/skills/sentinel/references/owasp-patterns.md +69 -0
  83. package/skills/sentinel/references/secret-patterns.md +40 -0
  84. package/skills/sentinel/references/skill-content-guard.md +54 -0
  85. package/skills/session-bridge/SKILL.md +56 -2
  86. package/skills/skill-forge/SKILL.md +47 -2
  87. package/skills/skill-router/{SKILL.md → skill.md} +446 -365
  88. package/skills/surgeon/SKILL.md +12 -0
  89. package/skills/team/SKILL.md +34 -1
  90. package/skills/test/SKILL.md +585 -427
  91. package/skills/watchdog/references/webhook-health-checks.md +243 -0
package/README.md CHANGED
@@ -1,389 +1,395 @@
1
- <p align="center">
2
- <img src="assets/banner.svg" alt="Rune — Skill Mesh for AI Coding Assistants" width="100%">
3
- </p>
4
-
5
- <p align="center">
6
- <strong>Less skills. Deeper connections.</strong><br>
7
- A lean, interconnected skill ecosystem for AI coding assistants.<br>
8
- 58 skills · 200+ mesh connections · 8 platforms · MIT
9
- </p>
10
-
11
- <p align="center">
12
- <strong>Claude Code</strong> (native plugin) · <strong>Cursor</strong> · <strong>Windsurf</strong> · <strong>Google Antigravity</strong> · <strong>OpenAI Codex</strong> · <strong>OpenCode</strong> · any AI IDE
13
- </p>
14
-
15
- ## Why Rune?
16
-
17
- 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).
18
-
19
- Rune is a **mesh** — 58 skills with 200+ connections across a 5-layer architecture. Skills call each other bidirectionally, forming resilient workflows that adapt when things go wrong.
20
-
21
- ```
22
- Pipeline: A → B → C → D (B fails = stuck)
23
- Hub-Spoke: A → HUB → C (HUB fails = stuck)
24
- Mesh: A ↔ B ↔ C (B fails = A reaches C via D→E)
25
- ↕ ↕
26
- D ↔ E ↔ F
27
- ```
28
-
29
- ## What's New (v2.2.2)
30
-
31
- - **UI/UX Pro Max Integration** — 161 palettes, 84 styles, 73 font pairings, 161 reasoning rules from [UI/UX Pro Max](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) (MIT, 42.8k★) meshed into `design` skill + `@rune/ui` pack
32
- - **11 Core Skill Enrichments** — deviation rules, repair operators, evidence quality gate, decision classification, debug knowledge base, CSO discipline, YAGNI pushback, formal pause/resume
33
- - **Enforcement Upgrade** — Antigravity-level IDE compliance: 5-type Request Classifier, File Ownership Matrix, Self-Verification HARD-GATE, Routing Proof, Clarification Gate, Phase Transition Protocol
34
- - **All 14 Free Packs Deep** — every L4 extension pack now exceeds 500 lines of production-ready patterns and code examples
35
- - **8 Platform Adapters** — Claude Code, Cursor, Windsurf, Google Antigravity, OpenAI Codex, OpenCode, OpenClaw, Generic
36
- - **58 Core Skills** — +3 since v2.1.0: adversary (red team), sentinel-env (env validation), chrome-ext pack
37
- - **Rune Pro** — 4 premium packs (product, sales, data-science, support) in private repo. $49 lifetime
38
-
39
- ## What Rune Is (and Isn't)
40
-
41
- Rune started as a **Claude Code plugin** and now compiles to **every major AI IDE**. Same 58 skills, same mesh connections, same workflows — zero knowledge loss across platforms.
42
-
43
- | | Rune Provides | Claude Code Provides |
44
- |---|---|---|
45
- | **Workflows** | 8-phase TDD cycle (cook), parallel DAG execution (team), rescue pipelines | Basic tool calling |
46
- | **Quality Gates** | preflight + sentinel + review + completion-gate (parallel) | None built-in |
47
- | **Domain Knowledge** | 14 extension packs (trading, SaaS, mobile, etc.) | General-purpose |
48
- | **Cross-Session State** | .rune/ directory (decisions, conventions, progress) | Conversation only |
49
- | **Mesh Resilience** | 200+ skill connections, fail-loud-route-around | Linear execution |
50
- | **Cost Optimization** | Auto model selection (haiku/sonnet/opus per task) | Single model |
51
- | | | |
52
- | **Sandbox & Permissions** | | Claude Code handles this |
53
- | **Agent Spawning** | | Claude Code's Task/Agent system |
54
- | **MCP Integration** | | Claude Code's MCP protocol |
55
- | **File System Access** | | Claude Code's tool permissions |
56
-
57
- ### Common Misconceptions
58
-
59
- | "Rune doesn't have..." | Reality |
60
- |---|---|
61
- | Task graph / DAG | `team` skill: DAG decomposition parallel worktree agents → merge coordination |
62
- | CI quality gates | `verification` skill: lint + typecheck + tests + build (actual commands, not LLM review) |
63
- | Memory / state | `session-bridge` + `journal`: cross-session decisions, conventions, ADRs, module health |
64
- | Multi-model strategy | Every skill has assigned model: haiku (scan), sonnet (code), opus (architecture) |
65
- | Agent specialization | 58 specialized skills with dedicated roles (architect, coder, reviewer, scanner, researcher, BA, scaffolder) — each runs as a Task agent via Claude Code |
66
- | Security scanning | `sentinel`: OWASP patterns, secret scanning, dependency audit. `sast`: static analysis |
67
-
68
- ## Install
69
-
70
- ### Claude Code (Native Plugin)
71
-
72
- ```bash
73
- # Install via Claude Code CLI
74
- claude plugin add rune-kit/rune
75
- ```
76
-
77
- Or add manually in `~/.claude/settings.json` under `installed_plugins`.
78
-
79
- Full mesh: subagents, hooks, adaptive routing, mesh analytics.
80
-
81
- ### Cursor / Windsurf / Antigravity / Any IDE
82
-
83
- ```bash
84
- # Compile Rune skills for your platform
85
- npx @rune-kit/rune init
86
-
87
- # Or specify platform explicitly
88
- npx @rune-kit/rune init --platform cursor
89
- npx @rune-kit/rune init --platform windsurf
90
- npx @rune-kit/rune init --platform antigravity
91
- ```
92
-
93
- This compiles all 58 skills into your IDE's rules format. Same knowledge, same workflows.
94
-
95
- ### Platform Comparison
96
-
97
- | Feature | Claude Code | Cursor / Windsurf / Others |
98
- |---------|-------------|---------------------------|
99
- | Skills available | 58/58 | 58/58 |
100
- | Mesh connections | 200+ (programmatic) | 200+ (rule references) |
101
- | Workflows & HARD-GATEs | Full | Full |
102
- | Extension packs | 14 | 14 |
103
- | Subagent parallelism | Native | Sequential fallback |
104
- | Lifecycle hooks | 8 hooks (JS runtime) | Inline MUST/NEVER constraints |
105
- | Adaptive model routing | haiku/sonnet/opus | Single model |
106
- | Mesh analytics | Real-time metrics | Not available |
107
-
108
- **Same power, different delivery.** Claude Code gets execution efficiency; other IDEs get the same knowledge and workflows.
109
-
110
- ## Quick Start
111
-
112
- ```bash
113
- # Onboard any project (generates CLAUDE.md + .rune/ context)
114
- /rune onboard
115
-
116
- # Build a feature (full TDD cycle)
117
- /rune cook "add user authentication with JWT"
118
-
119
- # Debug an issue
120
- /rune debug "login returns 401 for valid credentials"
121
-
122
- # Security scan before commit
123
- /rune sentinel
124
-
125
- # Refactor legacy code safely
126
- /rune rescue
127
-
128
- # Full project health audit
129
- /rune audit
130
-
131
- # Respond to a production incident
132
- /rune incident "login service returning 503 for 30% of users"
133
-
134
- # Generate design system before building UI
135
- /rune design "trading dashboard with real-time data"
136
-
137
- # Bootstrap a new project from scratch (v2.1.0)
138
- /rune scaffold "REST API with auth, payments, and Docker"
139
-
140
- # Deep requirement analysis before building
141
- /rune ba "integrate Telegram bot with trading signals"
142
-
143
- # Auto-generate project documentation
144
- /rune docs init
145
-
146
- # Build an MCP server
147
- /rune mcp-builder "weather API with forecast tools"
148
- ```
149
-
150
- ## Architecture
151
-
152
- ### 5-Layer Model
153
-
154
- ```
155
- ╔══════════════════════════════════════════════════════╗
156
- ║ L0: ROUTER (1) ║
157
- ║ Meta-enforcement — routes every action ║
158
- ║ skill-router ║
159
- ╠══════════════════════════════════════════════════════╣
160
- ║ L1: ORCHESTRATORS (5) ║
161
- ║ Full lifecycle workflows ║
162
- cook team │ launch │ rescue │ scaffold
163
- ╠══════════════════════════════════════════════════════╣
164
- L2: WORKFLOW HUBS (27)
165
- ║ Cross-hub mesh — the key differentiator ║
166
-
167
- Creation: plan scout │ brainstorm │ design │
168
- skill-forgebamcp-builder
169
- ║ Development: debug │ fix │ test │ review │ db ║
170
- Quality: sentinel preflight │ onboard │
171
- audit perf review-intake
172
- logic-guardian
173
- Delivery: deploymarketingincidentdocs
174
- Rescue: autopsysafeguardsurgeon
175
- Security: adversary
176
- ╠══════════════════════════════════════════════════════╣
177
- L3: UTILITIES (25)
178
- Stateless, pure capabilities
179
-
180
- Knowledge: researchdocs-seekertrend-scout
181
- Reasoning: problem-solver │ sequential-thinking
182
- ║ Validation: verification │ hallucination-guard │ ║
183
- completion-gate constraint-check │
184
- sast integrity-check
185
- State: context-engine │ journal │
186
- session-bridge
187
- Monitoring: watchdogscope-guard
188
- Media: browser-pilotasset-creator
189
- video-creator
190
- Deps: dependency-doctor
191
- Workspace: worktree
192
- Git: git
193
- Documents: doc-processor
194
- Security: sentinel-env
195
- Memory: neural-memory
196
- ╠══════════════════════════════════════════════════════╣
197
- L4: EXTENSION PACKS (14)
198
- Domain-specific, install what you need
199
-
200
- @rune/ui │ @rune/backend │ @rune/devops │
201
- @rune/mobile │ @rune/security │ @rune/trading │
202
- ║ @rune/saas │ @rune/ecommerce │ @rune/ai-ml │ ║
203
- @rune/gamedev @rune/content │ @rune/analytics │
204
- @rune/chrome-ext @rune/zalo
205
- ╚══════════════════════════════════════════════════════╝
206
- ```
207
-
208
- ### Layer Rules
209
-
210
- | Layer | Can Call | Called By | State |
211
- |-------|---------|----------|-------|
212
- | L0 Router | L1-L3 (routing) | Every message | Stateless |
213
- | L1 Orchestrators | L2, L3 | L0, User | Stateful (workflow) |
214
- | L2 Workflow Hubs | L2 (cross-hub), L3 | L1, L2 | Stateful (task) |
215
- | L3 Utilities | Nothing (pure)* | L1, L2 | Stateless |
216
- | L4 Extensions | L3 | L2 (domain match) | Config-based |
217
-
218
- \*L3→L3 exceptions: `context-engine`→`session-bridge`, `hallucination-guard`→`research`, `session-bridge`→`integrity-check`
219
-
220
- ### Cost Intelligence
221
-
222
- Every skill has an auto-selected model for optimal cost:
223
-
224
- | Task Type | Model | Cost |
225
- |-----------|-------|------|
226
- | Scan, search, validate | Haiku | Cheapest |
227
- | Write code, fix bugs, review | Sonnet | Default |
228
- | Architecture, security audit | Opus | Deep reasoning |
229
-
230
- Typical feature: ~$0.05-0.15 (vs ~$0.60 all-opus).
231
-
232
- ## Key Workflows
233
-
234
- ### `/rune cook` Build a Feature
235
-
236
- ```
237
- Phase 0 RESUME → detect existing .rune/plan-*.md, load active phase
238
- Phase 1 UNDERSTAND → scout scans codebase, ba elicits requirements
239
- Phase 2 PLAN → plan creates master plan + phase files
240
- Phase 3 TEST → test writes failing tests (TDD red)
241
- Phase 4 IMPLEMENT → fix writes code (TDD green)
242
- Phase 5 QUALITY → preflight + sentinel + review (parallel)
243
- Phase 6 VERIFYverification + hallucination-guard
244
- Phase 7 COMMIT git creates semantic commit
245
- Phase 8 BRIDGE session-bridge saves state, announce next phase
246
- ```
247
-
248
- Multi-session: Phase 0 detects existing plans and resumes from the current phase. One phase per session = small context = better code.
249
-
250
- ### `/rune rescue` Refactor Legacy Code
251
-
252
- ```
253
- Phase 0 RECON → autopsy assesses damage (health score)
254
- Phase 1 SAFETY NET safeguard writes characterization tests
255
- Phase 2-N SURGERY → surgeon refactors 1 module per session
256
- Phase N+1 CLEANUP → remove @legacy markers
257
- Phase N+2 VERIFY → health score comparison (before vs after)
258
- ```
259
-
260
- ### `/rune launch` Deploy + Market
261
-
262
- ```
263
- Phase 1 PRE-FLIGHT full test suite
264
- Phase 2 DEPLOY → push to platform
265
- Phase 3 VERIFY → live site checks + monitoring
266
- Phase 4 MARKET → landing copy, social, SEO
267
- Phase 5 ANNOUNCE → publish content
268
- ```
269
-
270
- ## Mesh Resilience
271
-
272
- If a skill fails, the mesh adapts:
273
-
274
- | If this fails... | Rune tries... |
275
- |---|---|
276
- | debug can't find cause | problem-solver (different reasoning) |
277
- | docs-seeker can't find docs | research (broader web search) |
278
- | scout can't find files | research + docs-seeker |
279
- | test can't run | deploy fix env, then test again |
280
-
281
- Loop prevention: max 2 visits per skill, max chain depth 8.
282
-
283
- ## Cross-Session Persistence
284
-
285
- Rune preserves context across sessions via `.rune/`:
286
-
287
- ```
288
- .rune/
289
- ├── decisions.md — architectural decisions log
290
- ├── conventions.md — established patterns & style
291
- ├── progress.md — task progress tracker
292
- └── session-log.md — brief session history
293
- ```
294
-
295
- Every new session loads `.rune/` automatically zero context loss.
296
-
297
- ## Extension Packs
298
-
299
- Domain-specific skills that plug into the core mesh:
300
-
301
- | Pack | Skills | For |
302
- |------|--------|-----|
303
- | @rune/ui | design-system, components, a11y, animation | Frontend |
304
- | @rune/backend | api, auth, database, middleware | Backend |
305
- | @rune/devops | docker, ci-cd, monitoring, server, ssl | DevOps |
306
- | @rune/mobile | react-native, flutter, app-store, native | Mobile |
307
- | @rune/security | owasp, pentest, secrets, compliance | Security |
308
- | @rune/trading | fintech, realtime, charts, indicators | Fintech |
309
- | @rune/saas | multi-tenant, billing, subscription, onboarding | SaaS |
310
- | @rune/ecommerce | shopify, payment, cart, inventory | E-commerce |
311
- | @rune/ai-ml | llm, rag, embeddings, fine-tuning | AI/ML |
312
- | @rune/gamedev | threejs, webgl, game-loops, physics | Games |
313
- | @rune/content | blog, cms, mdx, i18n, seo | Content |
314
- | @rune/analytics | tracking, a/b testing, funnels, dashboards | Growth |
315
-
316
- ### Rune Pro (Premium)
317
-
318
- Business department packs for product, sales, and data teams. Same PACK.md format, plugs into the core mesh.
319
-
320
- | Pack | Skills | For |
321
- |------|--------|-----|
322
- | @rune-pro/product | feature-spec, roadmap, metrics, release-comms, user-research, competitive | Product Management |
323
- | @rune-pro/sales | account-research, call-prep, outreach, pipeline-review, competitive-intel | Sales Enablement |
324
- | @rune-pro/data-science | data-exploration, sql-advanced, visualization, statistical-testing, dashboards | Data Science |
325
- | @rune-pro/support | ticket-triage, response-drafting, knowledge-base, escalation, faq, metrics | Customer Support |
326
-
327
- **$49 lifetime** — [rune-kit/rune-pro](https://github.com/rune-kit/rune-pro)
328
-
329
- ### Rune Business (Enterprise)
330
-
331
- Department packs for finance, legal, HR, and cross-system search. Requires Rune Free core.
332
-
333
- | Pack | Skills | For |
334
- |------|--------|-----|
335
- | @rune-pro/finance | budget-planning, expense-analysis, revenue-forecasting, financial-reporting, compliance, invoicing, cash-flow | Finance Ops |
336
- | @rune-pro/legal | contract-review, compliance-check, policy-generator, nda-triage, ip-protection, incident-legal | Legal & Compliance |
337
- | @rune-pro/hr | jd-writer, resume-screener, interview-planner, scorecard, onboarding, comp-benchmarker, policy-writer | HR & Recruiting |
338
- | @rune-pro/enterprise-search | query-planner, source-connector, result-merger, permission-guard, knowledge-graph, search-analytics | Knowledge Retrieval |
339
-
340
- **$149 lifetime** — [rune-kit/rune-business](https://github.com/rune-kit/rune-business)
341
-
342
- ## Multi-Platform Compiler
343
-
344
- Rune includes a 3-stage compiler that transforms SKILL.md files into platform-native rule formats:
345
-
346
- ```
347
- skills/*.md → PARSE → TRANSFORM → EMIT → platform rules
348
- ```
349
-
350
- **8 transforms applied per platform:**
351
- 1. Frontmatter: strip Claude Code-specific directives
352
- 2. Cross-references: `rune:cook` → `@rune-cook.mdc` (Cursor) / prose ref (Windsurf)
353
- 3. Tool names: `Read`, `Edit`, `Bash`generic language
354
- 4. Subagents: parallel → sequential workflow
355
- 5. Compliance: inject enforcement preamble (non-Claude platforms)
356
- 6. Hooks: runtime hooks → inline MUST/NEVER constraints
357
- 7. Branding: Rune attribution footer
358
-
359
- ```bash
360
- # Build for any platform
361
- npx @rune-kit/rune build --platform cursor
362
- npx @rune-kit/rune build --platform windsurf
363
-
364
- # Validate compiled output
365
- npx @rune-kit/rune doctor
366
- ```
367
-
368
- See [docs/MULTI-PLATFORM.md](docs/MULTI-PLATFORM.md) for the full architecture.
369
-
370
- ## Numbers
371
-
372
- ```
373
- Core Skills: 58 (L0: 1 │ L1: 5 │ L2: 27 │ L3: 25)
374
- Extension Packs: 14 free + 4 pro + 4 business
375
- Mesh Connections: 200+ cross-references
376
- Connections/Skill: 3.4 avg
377
- Platforms: 8 (Claude Code, Cursor, Windsurf, Antigravity, Codex, OpenCode, OpenClaw, Generic)
378
- Compiler: ~1400 LOC (parser + 8 transforms + 8 adapters + CLI)
379
- Quality: 58/58 skills with Output Format, Sharp Edges, Done When, Cost Profile
380
- Pack Depth: 22 packs total (14 free + 4 pro + 4 business, all free packs rated Deep)
381
- ```
382
-
383
- ## Acknowledgments
384
-
385
- - **[UI/UX Pro Max](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill)** (MIT, 42.8k★) — Design intelligence databases powering Rune's `design` skill and `@rune/ui` pack: 161 color palettes, 84 UI styles, 73 font pairings, 99 UX guidelines, 161 industry reasoning rules.
386
-
387
- ## License
388
-
389
- MIT
1
+ <p align="center">
2
+ <img src="assets/banner.svg" alt="Rune — Skill Mesh for AI Coding Assistants" width="100%">
3
+ </p>
4
+
5
+ <p align="center">
6
+ <strong>Less skills. Deeper connections.</strong><br>
7
+ A lean, interconnected skill ecosystem for AI coding assistants.<br>
8
+ 59 skills · 200+ mesh connections · 8 platforms · MIT
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://rune-kit.github.io/rune"><img src="https://img.shields.io/badge/Landing_Page-rune--kit.github.io-blue?style=for-the-badge" alt="Landing Page"></a>
13
+ <a href="https://rune-kit.github.io/rune#pricing"><img src="https://img.shields.io/badge/Pro_%2449-lifetime-blueviolet?style=for-the-badge" alt="Rune Pro $49"></a>
14
+ <a href="https://rune-kit.github.io/rune#pricing"><img src="https://img.shields.io/badge/Business_%24149-lifetime-orange?style=for-the-badge" alt="Rune Business $149"></a>
15
+ </p>
16
+
17
+ <p align="center">
18
+ <strong>Claude Code</strong> (native plugin) · <strong>Cursor</strong> · <strong>Windsurf</strong> · <strong>Google Antigravity</strong> · <strong>OpenAI Codex</strong> · <strong>OpenCode</strong> · any AI IDE
19
+ </p>
20
+
21
+ ## Why Rune?
22
+
23
+ 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).
24
+
25
+ Rune is a **mesh** — 59 skills with 200+ connections across a 5-layer architecture. Skills call each other bidirectionally, forming resilient workflows that adapt when things go wrong.
26
+
27
+ ```
28
+ Pipeline: A → B → C → D (B fails = stuck)
29
+ Hub-Spoke: A HUB → C (HUB fails = stuck)
30
+ Mesh: A ↔ B ↔ C (B fails = A reaches C via D→E)
31
+ ↕ ↕
32
+ D E F
33
+ ```
34
+
35
+ ## What's New (v2.3.1)
36
+
37
+ - **UI/UX Pro Max Integration** — 161 palettes, 84 styles, 73 font pairings, 161 reasoning rules from [UI/UX Pro Max](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill) (MIT, 42.8k★) meshed into `design` skill + `@rune/ui` pack
38
+ - **11 Core Skill Enrichments** — deviation rules, repair operators, evidence quality gate, decision classification, debug knowledge base, CSO discipline, YAGNI pushback, formal pause/resume
39
+ - **Enforcement Upgrade** Antigravity-level IDE compliance: 5-type Request Classifier, File Ownership Matrix, Self-Verification HARD-GATE, Routing Proof, Clarification Gate, Phase Transition Protocol
40
+ - **All 14 Free Packs Deep** — every L4 extension pack now exceeds 500 lines of production-ready patterns and code examples
41
+ - **8 Platform Adapters** Claude Code, Cursor, Windsurf, Google Antigravity, OpenAI Codex, OpenCode, OpenClaw, Generic
42
+ - **59 Core Skills** — +4 since v2.1.0: adversary, sentinel-env, chrome-ext pack, context-pack
43
+ - **Rune Pro** 4 premium packs (product, sales, data-science, support) in private repo. $49 lifetime
44
+
45
+ ## What Rune Is (and Isn't)
46
+
47
+ Rune started as a **Claude Code plugin** and now compiles to **every major AI IDE**. Same 59 skills, same mesh connections, same workflows zero knowledge loss across platforms.
48
+
49
+ | | Rune Provides | Claude Code Provides |
50
+ |---|---|---|
51
+ | **Workflows** | 8-phase TDD cycle (cook), parallel DAG execution (team), rescue pipelines | Basic tool calling |
52
+ | **Quality Gates** | preflight + sentinel + review + completion-gate (parallel) | None built-in |
53
+ | **Domain Knowledge** | 14 extension packs (trading, SaaS, mobile, etc.) | General-purpose |
54
+ | **Cross-Session State** | .rune/ directory (decisions, conventions, progress) | Conversation only |
55
+ | **Mesh Resilience** | 200+ skill connections, fail-loud-route-around | Linear execution |
56
+ | **Cost Optimization** | Auto model selection (haiku/sonnet/opus per task) | Single model |
57
+ | | | |
58
+ | **Sandbox & Permissions** | — | Claude Code handles this |
59
+ | **Agent Spawning** | | Claude Code's Task/Agent system |
60
+ | **MCP Integration** | — | Claude Code's MCP protocol |
61
+ | **File System Access** | | Claude Code's tool permissions |
62
+
63
+ ### Common Misconceptions
64
+
65
+ | "Rune doesn't have..." | Reality |
66
+ |---|---|
67
+ | Task graph / DAG | `team` skill: DAG decomposition → parallel worktree agents → merge coordination |
68
+ | CI quality gates | `verification` skill: lint + typecheck + tests + build (actual commands, not LLM review) |
69
+ | Memory / state | `session-bridge` + `journal`: cross-session decisions, conventions, ADRs, module health |
70
+ | Multi-model strategy | Every skill has assigned model: haiku (scan), sonnet (code), opus (architecture) |
71
+ | Agent specialization | 58 specialized skills with dedicated roles (architect, coder, reviewer, scanner, researcher, BA, scaffolder) — each runs as a Task agent via Claude Code |
72
+ | Security scanning | `sentinel`: OWASP patterns, secret scanning, dependency audit. `sast`: static analysis |
73
+
74
+ ## Install
75
+
76
+ ### Claude Code (Native Plugin)
77
+
78
+ ```bash
79
+ # Install via Claude Code CLI
80
+ claude plugin add rune-kit/rune
81
+ ```
82
+
83
+ Or add manually in `~/.claude/settings.json` under `installed_plugins`.
84
+
85
+ Full mesh: subagents, hooks, adaptive routing, mesh analytics.
86
+
87
+ ### Cursor / Windsurf / Antigravity / Any IDE
88
+
89
+ ```bash
90
+ # Compile Rune skills for your platform
91
+ npx @rune-kit/rune init
92
+
93
+ # Or specify platform explicitly
94
+ npx @rune-kit/rune init --platform cursor
95
+ npx @rune-kit/rune init --platform windsurf
96
+ npx @rune-kit/rune init --platform antigravity
97
+ ```
98
+
99
+ This compiles all 59 skills into your IDE's rules format. Same knowledge, same workflows.
100
+
101
+ ### Platform Comparison
102
+
103
+ | Feature | Claude Code | Cursor / Windsurf / Others |
104
+ |---------|-------------|---------------------------|
105
+ | Skills available | 59/59 | 59/59 |
106
+ | Mesh connections | 200+ (programmatic) | 200+ (rule references) |
107
+ | Workflows & HARD-GATEs | Full | Full |
108
+ | Extension packs | 14 | 14 |
109
+ | Subagent parallelism | Native | Sequential fallback |
110
+ | Lifecycle hooks | 8 hooks (JS runtime) | Inline MUST/NEVER constraints |
111
+ | Adaptive model routing | haiku/sonnet/opus | Single model |
112
+ | Mesh analytics | Real-time metrics | Not available |
113
+
114
+ **Same power, different delivery.** Claude Code gets execution efficiency; other IDEs get the same knowledge and workflows.
115
+
116
+ ## Quick Start
117
+
118
+ ```bash
119
+ # Onboard any project (generates CLAUDE.md + .rune/ context)
120
+ /rune onboard
121
+
122
+ # Build a feature (full TDD cycle)
123
+ /rune cook "add user authentication with JWT"
124
+
125
+ # Debug an issue
126
+ /rune debug "login returns 401 for valid credentials"
127
+
128
+ # Security scan before commit
129
+ /rune sentinel
130
+
131
+ # Refactor legacy code safely
132
+ /rune rescue
133
+
134
+ # Full project health audit
135
+ /rune audit
136
+
137
+ # Respond to a production incident
138
+ /rune incident "login service returning 503 for 30% of users"
139
+
140
+ # Generate design system before building UI
141
+ /rune design "trading dashboard with real-time data"
142
+
143
+ # Bootstrap a new project from scratch (v2.1.0)
144
+ /rune scaffold "REST API with auth, payments, and Docker"
145
+
146
+ # Deep requirement analysis before building
147
+ /rune ba "integrate Telegram bot with trading signals"
148
+
149
+ # Auto-generate project documentation
150
+ /rune docs init
151
+
152
+ # Build an MCP server
153
+ /rune mcp-builder "weather API with forecast tools"
154
+ ```
155
+
156
+ ## Architecture
157
+
158
+ ### 5-Layer Model
159
+
160
+ ```
161
+ ╔══════════════════════════════════════════════════════╗
162
+ L0: ROUTER (1)
163
+ ║ Meta-enforcement — routes every action ║
164
+ skill-router
165
+ ╠══════════════════════════════════════════════════════╣
166
+ L1: ORCHESTRATORS (5)
167
+ Full lifecycle workflows
168
+ cookteamlaunch │ rescue │ scaffold
169
+ ╠══════════════════════════════════════════════════════╣
170
+ L2: WORKFLOW HUBS (28)
171
+ Cross-hub mesh the key differentiator
172
+
173
+ Creation: planscoutbrainstormdesign │
174
+ skill-forgebamcp-builder
175
+ Development: debug │ fix │ test │ review │ db
176
+ ║ Quality: sentinel │ preflight │ onboard │ ║
177
+ audit perf │ review-intake │
178
+ logic-guardian
179
+ Delivery: deploy │ marketing │ incident │ docs
180
+ Rescue: autopsysafeguardsurgeon
181
+ Security: adversary
182
+ ╠══════════════════════════════════════════════════════╣
183
+ L3: UTILITIES (26)
184
+ Stateless, pure capabilities
185
+
186
+ Knowledge: research │ docs-seeker │ trend-scout
187
+ Reasoning: problem-solversequential-thinking
188
+ Validation: verificationhallucination-guard
189
+ completion-gate │ constraint-check │
190
+ sast │ integrity-check
191
+ State: context-engine │ journal │
192
+ session-bridge
193
+ Monitoring: watchdog │ scope-guard
194
+ Media: browser-pilot │ asset-creator │
195
+ video-creator
196
+ ║ Deps: dependency-doctor ║
197
+ Workspace: worktree
198
+ Git: git
199
+ Documents: doc-processor
200
+ Security: sentinel-env
201
+ Memory: neural-memory
202
+ ╠══════════════════════════════════════════════════════╣
203
+ L4: EXTENSION PACKS (14)
204
+ Domain-specific, install what you need
205
+ ║ ║
206
+ ║ @rune/ui │ @rune/backend │ @rune/devops │ ║
207
+ ║ @rune/mobile │ @rune/security │ @rune/trading │ ║
208
+ ║ @rune/saas @rune/ecommerce │ @rune/ai-ml │ ║
209
+ ║ @rune/gamedev │ @rune/content │ @rune/analytics │ ║
210
+ ║ @rune/chrome-ext @rune/zalo ║
211
+ ╚══════════════════════════════════════════════════════╝
212
+ ```
213
+
214
+ ### Layer Rules
215
+
216
+ | Layer | Can Call | Called By | State |
217
+ |-------|---------|----------|-------|
218
+ | L0 Router | L1-L3 (routing) | Every message | Stateless |
219
+ | L1 Orchestrators | L2, L3 | L0, User | Stateful (workflow) |
220
+ | L2 Workflow Hubs | L2 (cross-hub), L3 | L1, L2 | Stateful (task) |
221
+ | L3 Utilities | Nothing (pure)* | L1, L2 | Stateless |
222
+ | L4 Extensions | L3 | L2 (domain match) | Config-based |
223
+
224
+ \*L3→L3 exceptions: `context-engine`→`session-bridge`, `hallucination-guard`→`research`, `session-bridge`→`integrity-check`
225
+
226
+ ### Cost Intelligence
227
+
228
+ Every skill has an auto-selected model for optimal cost:
229
+
230
+ | Task Type | Model | Cost |
231
+ |-----------|-------|------|
232
+ | Scan, search, validate | Haiku | Cheapest |
233
+ | Write code, fix bugs, review | Sonnet | Default |
234
+ | Architecture, security audit | Opus | Deep reasoning |
235
+
236
+ Typical feature: ~$0.05-0.15 (vs ~$0.60 all-opus).
237
+
238
+ ## Key Workflows
239
+
240
+ ### `/rune cook` Build a Feature
241
+
242
+ ```
243
+ Phase 0 RESUMEdetect existing .rune/plan-*.md, load active phase
244
+ Phase 1 UNDERSTAND scout scans codebase, ba elicits requirements
245
+ Phase 2 PLAN plan creates master plan + phase files
246
+ Phase 3 TEST → test writes failing tests (TDD red)
247
+ Phase 4 IMPLEMENT → fix writes code (TDD green)
248
+ Phase 5 QUALITY → preflight + sentinel + review (parallel)
249
+ Phase 6 VERIFY → verification + hallucination-guard
250
+ Phase 7 COMMIT → git creates semantic commit
251
+ Phase 8 BRIDGE → session-bridge saves state, announce next phase
252
+ ```
253
+
254
+ Multi-session: Phase 0 detects existing plans and resumes from the current phase. One phase per session = small context = better code.
255
+
256
+ ### `/rune rescue` Refactor Legacy Code
257
+
258
+ ```
259
+ Phase 0 RECON → autopsy assesses damage (health score)
260
+ Phase 1 SAFETY NET safeguard writes characterization tests
261
+ Phase 2-N SURGERY → surgeon refactors 1 module per session
262
+ Phase N+1 CLEANUP → remove @legacy markers
263
+ Phase N+2 VERIFY health score comparison (before vs after)
264
+ ```
265
+
266
+ ### `/rune launch` Deploy + Market
267
+
268
+ ```
269
+ Phase 1 PRE-FLIGHT → full test suite
270
+ Phase 2 DEPLOY → push to platform
271
+ Phase 3 VERIFY → live site checks + monitoring
272
+ Phase 4 MARKET → landing copy, social, SEO
273
+ Phase 5 ANNOUNCE → publish content
274
+ ```
275
+
276
+ ## Mesh Resilience
277
+
278
+ If a skill fails, the mesh adapts:
279
+
280
+ | If this fails... | Rune tries... |
281
+ |---|---|
282
+ | debug can't find cause | problem-solver (different reasoning) |
283
+ | docs-seeker can't find docs | research (broader web search) |
284
+ | scout can't find files | research + docs-seeker |
285
+ | test can't run | deploy fix env, then test again |
286
+
287
+ Loop prevention: max 2 visits per skill, max chain depth 8.
288
+
289
+ ## Cross-Session Persistence
290
+
291
+ Rune preserves context across sessions via `.rune/`:
292
+
293
+ ```
294
+ .rune/
295
+ ├── decisions.md architectural decisions log
296
+ ├── conventions.md — established patterns & style
297
+ ├── progress.md — task progress tracker
298
+ └── session-log.md — brief session history
299
+ ```
300
+
301
+ Every new session loads `.rune/` automatically — zero context loss.
302
+
303
+ ## Extension Packs
304
+
305
+ Domain-specific skills that plug into the core mesh:
306
+
307
+ | Pack | Skills | For |
308
+ |------|--------|-----|
309
+ | @rune/ui | design-system, components, a11y, animation | Frontend |
310
+ | @rune/backend | api, auth, database, middleware | Backend |
311
+ | @rune/devops | docker, ci-cd, monitoring, server, ssl | DevOps |
312
+ | @rune/mobile | react-native, flutter, app-store, native | Mobile |
313
+ | @rune/security | owasp, pentest, secrets, compliance | Security |
314
+ | @rune/trading | fintech, realtime, charts, indicators | Fintech |
315
+ | @rune/saas | multi-tenant, billing, subscription, onboarding | SaaS |
316
+ | @rune/ecommerce | shopify, payment, cart, inventory | E-commerce |
317
+ | @rune/ai-ml | llm, rag, embeddings, fine-tuning | AI/ML |
318
+ | @rune/gamedev | threejs, webgl, game-loops, physics | Games |
319
+ | @rune/content | blog, cms, mdx, i18n, seo | Content |
320
+ | @rune/analytics | tracking, a/b testing, funnels, dashboards | Growth |
321
+
322
+ ### Rune Pro (Premium)
323
+
324
+ Business department packs for product, sales, and data teams. Same PACK.md format, plugs into the core mesh.
325
+
326
+ | Pack | Skills | For |
327
+ |------|--------|-----|
328
+ | @rune-pro/product | feature-spec, roadmap, metrics, release-comms, user-research, competitive | Product Management |
329
+ | @rune-pro/sales | account-research, call-prep, outreach, pipeline-review, competitive-intel | Sales Enablement |
330
+ | @rune-pro/data-science | data-exploration, sql-advanced, visualization, statistical-testing, dashboards | Data Science |
331
+ | @rune-pro/support | ticket-triage, response-drafting, knowledge-base, escalation, faq, metrics | Customer Support |
332
+
333
+ **$49 lifetime** [rune-kit/rune-pro](https://github.com/rune-kit/rune-pro)
334
+
335
+ ### Rune Business (Enterprise)
336
+
337
+ Department packs for finance, legal, HR, and cross-system search. Requires Rune Free core.
338
+
339
+ | Pack | Skills | For |
340
+ |------|--------|-----|
341
+ | @rune-business/finance | budget-planning, expense-analysis, revenue-forecasting, financial-reporting, compliance, invoicing, cash-flow | Finance Ops |
342
+ | @rune-business/legal | contract-review, compliance-check, policy-generator, nda-triage, ip-protection, incident-legal | Legal & Compliance |
343
+ | @rune-business/hr | jd-writer, resume-screener, interview-planner, scorecard, onboarding, comp-benchmarker, policy-writer | HR & Recruiting |
344
+ | @rune-business/enterprise-search | query-planner, source-connector, result-merger, permission-guard, knowledge-graph, search-analytics | Knowledge Retrieval |
345
+
346
+ **$149 lifetime** — [rune-kit/rune-business](https://github.com/rune-kit/rune-business)
347
+
348
+ ## Multi-Platform Compiler
349
+
350
+ Rune includes a 3-stage compiler that transforms SKILL.md files into platform-native rule formats:
351
+
352
+ ```
353
+ skills/*.md PARSE TRANSFORM EMIT platform rules
354
+ ```
355
+
356
+ **8 transforms applied per platform:**
357
+ 1. Frontmatter: strip Claude Code-specific directives
358
+ 2. Cross-references: `rune:cook` → `@rune-cook.mdc` (Cursor) / prose ref (Windsurf)
359
+ 3. Tool names: `Read`, `Edit`, `Bash` → generic language
360
+ 4. Subagents: parallel sequential workflow
361
+ 5. Compliance: inject enforcement preamble (non-Claude platforms)
362
+ 6. Hooks: runtime hooks → inline MUST/NEVER constraints
363
+ 7. Branding: Rune attribution footer
364
+
365
+ ```bash
366
+ # Build for any platform
367
+ npx @rune-kit/rune build --platform cursor
368
+ npx @rune-kit/rune build --platform windsurf
369
+
370
+ # Validate compiled output
371
+ npx @rune-kit/rune doctor
372
+ ```
373
+
374
+ See [docs/MULTI-PLATFORM.md](docs/MULTI-PLATFORM.md) for the full architecture.
375
+
376
+ ## Numbers
377
+
378
+ ```
379
+ Core Skills: 59 (L0: 1 L1: 5 L2: 28 L3: 26)
380
+ Extension Packs: 14 free + 4 pro + 4 business
381
+ Mesh Connections: 200+ cross-references
382
+ Connections/Skill: 3.4 avg
383
+ Platforms: 8 (Claude Code, Cursor, Windsurf, Antigravity, Codex, OpenCode, OpenClaw, Generic)
384
+ Compiler: ~1400 LOC (parser + 8 transforms + 8 adapters + CLI)
385
+ Quality: 59/59 skills with Output Format, Sharp Edges, Done When, Cost Profile
386
+ Pack Depth: 22 packs total (14 free + 4 pro + 4 business, all free packs rated Deep)
387
+ ```
388
+
389
+ ## Acknowledgments
390
+
391
+ - **[UI/UX Pro Max](https://github.com/nextlevelbuilder/ui-ux-pro-max-skill)** (MIT, 42.8k★) — Design intelligence databases powering Rune's `design` skill and `@rune/ui` pack: 161 color palettes, 84 UI styles, 73 font pairings, 99 UX guidelines, 161 industry reasoning rules.
392
+
393
+ ## License
394
+
395
+ MIT