@rune-kit/rune 2.8.0 → 2.11.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 (287) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +68 -34
  3. package/agents/adversary.md +27 -0
  4. package/agents/architect.md +19 -29
  5. package/agents/asset-creator.md +18 -4
  6. package/agents/audit.md +25 -4
  7. package/agents/autopsy.md +19 -4
  8. package/agents/ba.md +35 -0
  9. package/agents/brainstorm.md +31 -4
  10. package/agents/browser-pilot.md +21 -4
  11. package/agents/coder.md +21 -29
  12. package/agents/completion-gate.md +20 -4
  13. package/agents/constraint-check.md +18 -4
  14. package/agents/context-engine.md +22 -4
  15. package/agents/context-pack.md +32 -0
  16. package/agents/cook.md +41 -4
  17. package/agents/db.md +19 -4
  18. package/agents/debug.md +33 -4
  19. package/agents/dependency-doctor.md +20 -4
  20. package/agents/deploy.md +27 -4
  21. package/agents/design.md +22 -4
  22. package/agents/doc-processor.md +27 -0
  23. package/agents/docs-seeker.md +19 -4
  24. package/agents/docs.md +31 -0
  25. package/agents/fix.md +37 -4
  26. package/agents/git.md +29 -0
  27. package/agents/hallucination-guard.md +20 -4
  28. package/agents/incident.md +21 -4
  29. package/agents/integrity-check.md +18 -4
  30. package/agents/journal.md +19 -4
  31. package/agents/launch.md +32 -4
  32. package/agents/logic-guardian.md +26 -11
  33. package/agents/marketing.md +23 -4
  34. package/agents/mcp-builder.md +26 -0
  35. package/agents/neural-memory.md +30 -0
  36. package/agents/onboard.md +22 -4
  37. package/agents/perf.md +21 -4
  38. package/agents/plan.md +29 -4
  39. package/agents/preflight.md +22 -4
  40. package/agents/problem-solver.md +20 -4
  41. package/agents/rescue.md +23 -4
  42. package/agents/research.md +19 -4
  43. package/agents/researcher.md +19 -29
  44. package/agents/retro.md +32 -0
  45. package/agents/review-intake.md +20 -4
  46. package/agents/review.md +32 -4
  47. package/agents/reviewer.md +20 -28
  48. package/agents/safeguard.md +19 -4
  49. package/agents/sast.md +18 -4
  50. package/agents/scaffold.md +41 -0
  51. package/agents/scanner.md +19 -28
  52. package/agents/scope-guard.md +18 -4
  53. package/agents/scout.md +23 -4
  54. package/agents/sentinel-env.md +26 -0
  55. package/agents/sentinel.md +33 -4
  56. package/agents/sequential-thinking.md +20 -4
  57. package/agents/session-bridge.md +24 -4
  58. package/agents/skill-forge.md +22 -4
  59. package/agents/skill-router.md +26 -4
  60. package/agents/slides.md +24 -0
  61. package/agents/surgeon.md +19 -4
  62. package/agents/team.md +30 -4
  63. package/agents/test.md +36 -4
  64. package/agents/trend-scout.md +17 -4
  65. package/agents/verification.md +20 -4
  66. package/agents/video-creator.md +20 -4
  67. package/agents/watchdog.md +19 -4
  68. package/agents/worktree.md +17 -4
  69. package/commands/rune.md +168 -168
  70. package/compiler/__tests__/analytics.test.js +370 -0
  71. package/compiler/adapters/openclaw.js +2 -2
  72. package/compiler/analytics.js +385 -0
  73. package/compiler/bin/rune.js +68 -2
  74. package/compiler/dashboard.js +883 -0
  75. package/compiler/transforms/branding.js +1 -1
  76. package/contexts/dev.md +34 -34
  77. package/contexts/research.md +43 -43
  78. package/contexts/review.md +55 -55
  79. package/extensions/ai-ml/PACK.md +88 -88
  80. package/extensions/ai-ml/skills/ai-agents.md +172 -172
  81. package/extensions/ai-ml/skills/code-sandbox.md +187 -187
  82. package/extensions/ai-ml/skills/deep-research.md +146 -146
  83. package/extensions/ai-ml/skills/embedding-search.md +66 -66
  84. package/extensions/ai-ml/skills/fine-tuning-guide.md +74 -74
  85. package/extensions/ai-ml/skills/llm-architect.md +125 -125
  86. package/extensions/ai-ml/skills/llm-integration.md +64 -64
  87. package/extensions/ai-ml/skills/prompt-patterns.md +72 -72
  88. package/extensions/ai-ml/skills/rag-patterns.md +66 -66
  89. package/extensions/ai-ml/skills/web-extraction.md +114 -114
  90. package/extensions/analytics/PACK.md +92 -92
  91. package/extensions/analytics/skills/ab-testing.md +72 -72
  92. package/extensions/analytics/skills/dashboard-patterns.md +83 -83
  93. package/extensions/analytics/skills/data-validation.md +68 -68
  94. package/extensions/analytics/skills/funnel-analysis.md +81 -81
  95. package/extensions/analytics/skills/sql-patterns.md +57 -57
  96. package/extensions/analytics/skills/statistical-analysis.md +79 -79
  97. package/extensions/analytics/skills/tracking-setup.md +71 -71
  98. package/extensions/backend/PACK.md +104 -104
  99. package/extensions/backend/skills/api-patterns.md +84 -84
  100. package/extensions/backend/skills/async-pipeline.md +193 -193
  101. package/extensions/backend/skills/auth-patterns.md +97 -97
  102. package/extensions/backend/skills/background-jobs.md +133 -133
  103. package/extensions/backend/skills/caching-patterns.md +108 -108
  104. package/extensions/backend/skills/cli-generation.md +133 -133
  105. package/extensions/backend/skills/database-patterns.md +87 -87
  106. package/extensions/backend/skills/middleware-patterns.md +104 -104
  107. package/extensions/chrome-ext/PACK.md +93 -93
  108. package/extensions/chrome-ext/skills/cws-preflight.md +143 -143
  109. package/extensions/chrome-ext/skills/cws-publish.md +104 -104
  110. package/extensions/chrome-ext/skills/ext-ai-integration.md +251 -251
  111. package/extensions/chrome-ext/skills/ext-messaging.md +139 -139
  112. package/extensions/chrome-ext/skills/ext-storage.md +133 -133
  113. package/extensions/chrome-ext/skills/mv3-scaffold.md +164 -164
  114. package/extensions/content/PACK.md +96 -96
  115. package/extensions/content/skills/blog-patterns.md +88 -88
  116. package/extensions/content/skills/cms-integration.md +131 -131
  117. package/extensions/content/skills/content-scoring.md +107 -107
  118. package/extensions/content/skills/i18n.md +83 -83
  119. package/extensions/content/skills/mdx-authoring.md +137 -137
  120. package/extensions/content/skills/reference.md +1014 -1014
  121. package/extensions/content/skills/seo-patterns.md +67 -67
  122. package/extensions/content/skills/video-repurpose.md +153 -153
  123. package/extensions/devops/PACK.md +101 -101
  124. package/extensions/devops/skills/chaos-testing.md +67 -67
  125. package/extensions/devops/skills/ci-cd.md +75 -75
  126. package/extensions/devops/skills/docker.md +58 -58
  127. package/extensions/devops/skills/edge-serverless.md +163 -163
  128. package/extensions/devops/skills/infra-as-code.md +158 -158
  129. package/extensions/devops/skills/kubernetes.md +110 -110
  130. package/extensions/devops/skills/monitoring.md +57 -57
  131. package/extensions/devops/skills/server-setup.md +64 -64
  132. package/extensions/devops/skills/ssl-domain.md +42 -42
  133. package/extensions/ecommerce/PACK.md +116 -116
  134. package/extensions/ecommerce/skills/cart-system.md +79 -79
  135. package/extensions/ecommerce/skills/inventory-mgmt.md +102 -102
  136. package/extensions/ecommerce/skills/order-management.md +126 -126
  137. package/extensions/ecommerce/skills/payment-integration.md +472 -472
  138. package/extensions/ecommerce/skills/shopify-dev.md +69 -69
  139. package/extensions/ecommerce/skills/subscription-billing.md +93 -93
  140. package/extensions/ecommerce/skills/tax-compliance.md +117 -117
  141. package/extensions/gamedev/PACK.md +142 -142
  142. package/extensions/gamedev/skills/asset-pipeline.md +74 -74
  143. package/extensions/gamedev/skills/audio-system.md +129 -129
  144. package/extensions/gamedev/skills/camera-system.md +87 -87
  145. package/extensions/gamedev/skills/ecs.md +98 -98
  146. package/extensions/gamedev/skills/game-loops.md +72 -72
  147. package/extensions/gamedev/skills/input-system.md +199 -199
  148. package/extensions/gamedev/skills/multiplayer.md +180 -180
  149. package/extensions/gamedev/skills/particles.md +105 -105
  150. package/extensions/gamedev/skills/physics-engine.md +89 -89
  151. package/extensions/gamedev/skills/scene-management.md +146 -146
  152. package/extensions/gamedev/skills/threejs-patterns.md +90 -90
  153. package/extensions/gamedev/skills/webgl.md +71 -71
  154. package/extensions/mobile/PACK.md +106 -106
  155. package/extensions/mobile/skills/app-store-connect.md +152 -152
  156. package/extensions/mobile/skills/app-store-prep.md +66 -66
  157. package/extensions/mobile/skills/deep-linking.md +109 -109
  158. package/extensions/mobile/skills/flutter.md +60 -60
  159. package/extensions/mobile/skills/ios-build-pipeline.md +142 -142
  160. package/extensions/mobile/skills/native-bridge.md +66 -66
  161. package/extensions/mobile/skills/ota-updates.md +97 -97
  162. package/extensions/mobile/skills/push-notifications.md +111 -111
  163. package/extensions/mobile/skills/react-native.md +82 -82
  164. package/extensions/saas/PACK.md +116 -116
  165. package/extensions/saas/skills/billing-integration.md +200 -200
  166. package/extensions/saas/skills/feature-flags.md +130 -130
  167. package/extensions/saas/skills/multi-tenant.md +103 -103
  168. package/extensions/saas/skills/onboarding-flow.md +139 -139
  169. package/extensions/saas/skills/subscription-flow.md +95 -95
  170. package/extensions/saas/skills/team-management.md +144 -144
  171. package/extensions/security/PACK.md +99 -99
  172. package/extensions/security/skills/api-security.md +140 -140
  173. package/extensions/security/skills/compliance.md +68 -68
  174. package/extensions/security/skills/owasp-audit.md +64 -64
  175. package/extensions/security/skills/pentest-patterns.md +77 -77
  176. package/extensions/security/skills/secret-mgmt.md +65 -65
  177. package/extensions/security/skills/supply-chain.md +65 -65
  178. package/extensions/trading/PACK.md +80 -80
  179. package/extensions/trading/skills/chart-components.md +55 -55
  180. package/extensions/trading/skills/experiment-loop.md +125 -125
  181. package/extensions/trading/skills/fintech-patterns.md +47 -47
  182. package/extensions/trading/skills/indicator-library.md +58 -58
  183. package/extensions/trading/skills/quant-analysis.md +111 -111
  184. package/extensions/trading/skills/realtime-data.md +58 -58
  185. package/extensions/trading/skills/trade-logic.md +104 -104
  186. package/extensions/ui/PACK.md +130 -130
  187. package/extensions/ui/skills/a11y-audit.md +91 -91
  188. package/extensions/ui/skills/animation-patterns.md +127 -106
  189. package/extensions/ui/skills/component-patterns.md +100 -75
  190. package/extensions/ui/skills/design-decision.md +108 -108
  191. package/extensions/ui/skills/design-system.md +68 -68
  192. package/extensions/ui/skills/landing-patterns.md +155 -155
  193. package/extensions/ui/skills/palette-picker.md +173 -173
  194. package/extensions/ui/skills/react-health.md +90 -90
  195. package/extensions/ui/skills/type-system.md +125 -125
  196. package/extensions/ui/skills/web-vitals.md +153 -153
  197. package/extensions/zalo/PACK.md +145 -145
  198. package/extensions/zalo/skills/zalo-oa-mcp.md +317 -317
  199. package/extensions/zalo/skills/zalo-oa-messaging.md +429 -429
  200. package/extensions/zalo/skills/zalo-oa-setup.md +236 -236
  201. package/extensions/zalo/skills/zalo-oa-webhook.md +189 -189
  202. package/extensions/zalo/skills/zalo-personal-messaging.md +194 -194
  203. package/extensions/zalo/skills/zalo-personal-setup.md +153 -153
  204. package/extensions/zalo/skills/zalo-rate-guard.md +219 -219
  205. package/hooks/auto-format/index.cjs +48 -48
  206. package/hooks/context-watch/index.cjs +95 -68
  207. package/hooks/hooks.json +111 -111
  208. package/hooks/metrics-collector/index.cjs +86 -42
  209. package/hooks/post-session-reflect/index.cjs +189 -153
  210. package/hooks/pre-compact/index.cjs +95 -95
  211. package/hooks/run-hook.cmd +1 -1
  212. package/hooks/secrets-scan/index.cjs +100 -100
  213. package/hooks/session-start/index.cjs +71 -65
  214. package/hooks/typecheck/index.cjs +65 -65
  215. package/package.json +63 -63
  216. package/references/ui-pro-max-data/LICENSE-UI-PRO-MAX +21 -21
  217. package/references/ui-pro-max-data/charts.csv +26 -26
  218. package/references/ui-pro-max-data/colors.csv +161 -161
  219. package/references/ui-pro-max-data/styles.csv +68 -68
  220. package/references/ui-pro-max-data/typography.csv +74 -74
  221. package/references/ui-pro-max-data/ui-reasoning.csv +162 -162
  222. package/references/ui-pro-max-data/ux-guidelines.csv +99 -99
  223. package/skills/adversary/SKILL.md +283 -283
  224. package/skills/asset-creator/SKILL.md +157 -157
  225. package/skills/audit/SKILL.md +148 -2
  226. package/skills/autopsy/SKILL.md +335 -259
  227. package/skills/autopsy/references/repo-analysis-patterns.md +113 -0
  228. package/skills/ba/SKILL.md +72 -2
  229. package/skills/brainstorm/SKILL.md +342 -341
  230. package/skills/browser-pilot/SKILL.md +168 -168
  231. package/skills/constraint-check/SKILL.md +165 -165
  232. package/skills/context-engine/SKILL.md +404 -404
  233. package/skills/cook/SKILL.md +917 -834
  234. package/skills/cook/references/output-format.md +33 -0
  235. package/skills/db/SKILL.md +273 -272
  236. package/skills/debug/SKILL.md +465 -443
  237. package/skills/dependency-doctor/SKILL.md +265 -235
  238. package/skills/deploy/SKILL.md +274 -231
  239. package/skills/design/DESIGN-REFERENCE.md +365 -365
  240. package/skills/design/SKILL.md +589 -482
  241. package/skills/doc-processor/SKILL.md +254 -254
  242. package/skills/docs/SKILL.md +374 -373
  243. package/skills/docs-seeker/SKILL.md +177 -177
  244. package/skills/fix/SKILL.md +330 -308
  245. package/skills/git/SKILL.md +339 -339
  246. package/skills/graft/SKILL.md +352 -0
  247. package/skills/graft/references/challenge-framework.md +98 -0
  248. package/skills/graft/references/mode-decision.md +44 -0
  249. package/skills/hallucination-guard/SKILL.md +219 -219
  250. package/skills/incident/SKILL.md +254 -251
  251. package/skills/integrity-check/SKILL.md +169 -169
  252. package/skills/journal/SKILL.md +240 -238
  253. package/skills/launch/SKILL.md +344 -342
  254. package/skills/logic-guardian/SKILL.md +251 -251
  255. package/skills/marketing/SKILL.md +290 -245
  256. package/skills/mcp-builder/SKILL.md +425 -423
  257. package/skills/mcp-builder/references/auto-discovery-pattern.md +169 -0
  258. package/skills/neural-memory/SKILL.md +362 -362
  259. package/skills/onboard/SKILL.md +404 -403
  260. package/skills/perf/SKILL.md +346 -346
  261. package/skills/plan/SKILL.md +433 -370
  262. package/skills/plan/references/feature-map.md +84 -0
  263. package/skills/preflight/SKILL.md +415 -396
  264. package/skills/problem-solver/SKILL.md +380 -284
  265. package/skills/rescue/SKILL.md +474 -450
  266. package/skills/retro/SKILL.md +5 -1
  267. package/skills/review/SKILL.md +612 -535
  268. package/skills/review-intake/SKILL.md +249 -249
  269. package/skills/safeguard/SKILL.md +200 -200
  270. package/skills/sast/SKILL.md +190 -190
  271. package/skills/scaffold/SKILL.md +328 -286
  272. package/skills/scope-guard/SKILL.md +180 -162
  273. package/skills/scout/SKILL.md +263 -263
  274. package/skills/sentinel/SKILL.md +382 -353
  275. package/skills/sentinel-env/SKILL.md +254 -254
  276. package/skills/sequential-thinking/SKILL.md +234 -234
  277. package/skills/session-bridge/SKILL.md +543 -397
  278. package/skills/skill-forge/SKILL.md +581 -539
  279. package/skills/skill-router/{skill.md → SKILL.md} +30 -2
  280. package/skills/surgeon/SKILL.md +215 -215
  281. package/skills/team/SKILL.md +556 -514
  282. package/skills/test/SKILL.md +614 -587
  283. package/skills/trend-scout/SKILL.md +145 -145
  284. package/skills/verification/SKILL.md +326 -325
  285. package/skills/video-creator/SKILL.md +201 -201
  286. package/skills/watchdog/SKILL.md +168 -168
  287. package/skills/worktree/SKILL.md +140 -140
@@ -1,342 +1,344 @@
1
- ---
2
- name: launch
3
- description: "Deploy + marketing orchestrator. Use when user says 'launch', 'ship to production', 'deploy and announce', or 'go live'. Runs the full pipeline — pre-flight tests, deployment, live verification, marketing asset creation, and announcement."
4
- context: fork
5
- agent: general-purpose
6
- disable-model-invocation: true
7
- metadata:
8
- author: runedev
9
- version: "0.3.0"
10
- layer: L1
11
- model: sonnet
12
- group: orchestrator
13
- tools: "Read, Write, Edit, Bash, Glob, Grep"
14
- ---
15
-
16
- # launch
17
-
18
- ## Purpose
19
-
20
- Orchestrate the full deployment and marketing pipeline. Launch coordinates testing, deployment, live site verification, marketing asset creation, and public announcement. One command to go from "code ready" to "product live and marketed."
21
-
22
- <HARD-GATE>
23
- - ALL tests must pass before any deploy attempt. Zero exceptions. Block deploy if any of: tests failing, TypeScript errors present, build fails, or sentinel CRITICAL issues detected.
24
- </HARD-GATE>
25
-
26
- ## Triggers
27
-
28
- - `/rune launch` — manual invocation
29
- - Called by `team` when delegating launch tasks
30
-
31
- ## Calls (outbound)
32
-
33
- - `test` (L2): pre-deployment full test suite
34
- - `audit` (L2): pre-launch health check — full 7-phase quality gate
35
- - `deploy` (L2): push to target platform
36
- - `incident` (L2): if post-launch health check fails → triage and contain
37
- - `browser-pilot` (L3): verify live site screenshots and performance
38
- - `marketing` (L2): create launch assets (landing copy, social, SEO)
39
- - `watchdog` (L3): setup post-deploy monitoring
40
- - `video-creator` (L3): create launch/demo video content
41
- - L4 extension packs: domain-specific launch patterns when context matches (e.g., @rune/devops for infrastructure, @rune/ecommerce for storefront)
42
-
43
- ## Called By (inbound)
44
-
45
- - User: `/rune launch` direct invocation
46
- - `team` (L1): when team delegates launch phase
47
-
48
- ---
49
-
50
- ## Execution
51
-
52
- ### Step 0 — Artifact Readiness Check
53
-
54
- Before starting the pipeline, verify that prerequisite artifacts exist. Scan using `Glob` do NOT hardcode paths, use discovery patterns.
55
-
56
- ```
57
- REQUIRED ARTIFACTS:
58
- Source code: Glob **/*.{ts,tsx,js,jsx,py,rs,go} — at least 1 match
59
- Build config: Glob {package.json,Cargo.toml,pyproject.toml,go.mod} — at least 1 match
60
- Tests: Glob **/*.{test,spec}.* OR **/test_*.* — at least 1 match
61
-
62
- RECOMMENDED ARTIFACTS (warn if missing, don't block):
63
- Design system: Glob .rune/design-system.md — if frontend project
64
- Deploy config: Glob {vercel.json,netlify.toml,Dockerfile,fly.toml,.github/workflows/*} any 1
65
- README: Glob README.md
66
- Environment: Glob .env.example OR .env.productionwarn about secrets if .env found
67
-
68
- BLOCKING CONDITIONS:
69
- ❌ No source code found → STOP: "Nothing to deploy"
70
- No build config found → STOP: "No project config detected — cannot determine build/deploy"
71
- ❌ No tests found → WARN: "No tests detected — pre-flight will run build-only verification"
72
- ```
73
-
74
- Report artifact status before proceeding:
75
- ```
76
- ## Artifact Check
77
- - Source: ✅ [N] files ([language])
78
- - Build config: ✅ [file]
79
- - Tests: ✅ [N] test files | ⚠️ No tests found
80
- - Deploy config: ✅ [platform] | ⚠️ Not found (will detect in Phase 2)
81
- - Design system: ✅ .rune/design-system.md | ⚠️ Not found (run /rune design first for UI projects)
82
- ```
83
-
84
- ### Step 1 — Initialize TodoWrite
85
-
86
- ```
87
- TodoWrite([
88
- { content: "PRE-FLIGHT: Run full test suite and verification", status: "pending", activeForm: "Running pre-flight checks" },
89
- { content: "DEPLOY: Detect platform and push to production", status: "pending", activeForm: "Deploying to production" },
90
- { content: "VERIFY LIVE: Check live URL and setup monitoring", status: "pending", activeForm: "Verifying live deployment" },
91
- { content: "MARKET: Generate landing copy and social assets", status: "pending", activeForm: "Generating marketing assets" },
92
- { content: "ANNOUNCE: Present all marketing assets to user", status: "pending", activeForm: "Preparing announcement" }
93
- ])
94
- ```
95
-
96
- ---
97
-
98
- ### Phase 1 — PRE-FLIGHT
99
-
100
- Mark todo[0] `in_progress`.
101
-
102
- ```
103
- REQUIRED SUB-SKILL: rune:verification
104
- → Invoke `verification` with scope: "full".
105
- verification runs: type check, lint, unit tests, integration tests, build.
106
- Capture: passed count, failed count, coverage %, build output.
107
- ```
108
-
109
- <HARD-GATE>
110
- Block deploy if ANY of:
111
- [ ] Tests failing (failed count > 0)
112
- [ ] TypeScript errors present
113
- [ ] Build fails
114
- [ ] sentinel CRITICAL issues detected (invoke rune:sentinel if not already run)
115
-
116
- If any check fails:
117
- → STOP immediately
118
- Report: "PRE-FLIGHT FAILED — deploy blocked"
119
- List all failures with file + line references
120
- Do NOT proceed to Phase 2
121
- </HARD-GATE>
122
-
123
- Mark todo[0] `completed` only when ALL checks pass.
124
-
125
- ---
126
-
127
- ### Phase 2 — DEPLOY
128
-
129
- Mark todo[1] `in_progress`.
130
-
131
- **2a. Detect deployment platform.**
132
-
133
- ```
134
- Bash: ls package.json
135
- Read: package.json (check "scripts" for deploy, build, start commands)
136
-
137
- Platform detection (in order):
138
- 1. Check package.json scripts for "vercel" → platform = Vercel
139
- 2. Check package.json scripts for "netlify" → platform = Netlify
140
- 3. Check for vercel.json or .vercel/ dir → platform = Vercel
141
- 4. Check for netlify.toml → platform = Netlify
142
- 5. Check for Dockerfile or fly.toml → platform = custom/fly.io
143
- 6. Fallback: ask user for deploy command before continuing
144
- ```
145
-
146
- **2b. Execute deploy command.**
147
-
148
- ```
149
- Vercel:
150
- Bash: npx vercel --prod
151
- Capture: deployment URL from stdout
152
-
153
- Netlify:
154
- Bash: npx netlify deploy --prod --dir=[build_output_dir]
155
- Capture: deployment URL from stdout
156
-
157
- Custom (package.json script):
158
- Bash: npm run deploy
159
- Capture: deployment URL or status from stdout
160
-
161
- Fly.io:
162
- Bash: flyctl deploy
163
- Capture: deployment URL from stdout
164
- ```
165
-
166
- ```
167
- Error recovery:
168
- If deploy command exits non-zero:
169
- Capture full stderr
170
- Report: "DEPLOY FAILED: [error summary]"
171
- Do NOT proceed to Phase 3
172
- Present raw error to user for diagnosis
173
- ```
174
-
175
- Mark todo[1] `completed` when deploy returns a live URL.
176
-
177
- ---
178
-
179
- ### Phase 3 — VERIFY LIVE
180
-
181
- Mark todo[2] `in_progress`.
182
-
183
- **3a. Verify live site.**
184
-
185
- ```
186
- REQUIRED SUB-SKILL: rune:browser-pilot
187
- → Invoke `browser-pilot` with the deployed URL.
188
- browser-pilot checks: page loads (HTTP 200), no console errors, critical UI elements visible.
189
- Capture: screenshot, status code, load time, any JS errors.
190
- ```
191
-
192
- ```
193
- Error recovery:
194
- If browser-pilot returns non-200 or JS errors:
195
- Report: "LIVE VERIFY FAILED: [details]"
196
- Do NOT proceed to Phase 4
197
- Present screenshot + error log to user
198
- ```
199
-
200
- **3b. Setup monitoring.**
201
-
202
- ```
203
- REQUIRED SUB-SKILL: rune:watchdog
204
- → Invoke `watchdog` with: url=[deployed URL], interval=5min, alert_on=[5xx, timeout].
205
- watchdog configures health check endpoint monitoring.
206
- Capture: monitoring confirmation + health endpoint path.
207
- ```
208
-
209
- Mark todo[2] `completed` when live verification passes and monitoring is active.
210
-
211
- ---
212
-
213
- ### Phase 4 — MARKET
214
-
215
- Mark todo[3] `in_progress`.
216
-
217
- **4a. Generate marketing assets.**
218
-
219
- ```
220
- REQUIRED SUB-SKILL: rune:marketing
221
- → Invoke `marketing` with: project context, deployed URL, key features.
222
- marketing generates:
223
- - Landing page hero copy (headline, subheadline, CTA)
224
- - Twitter/X announcement thread (3-5 tweets)
225
- - LinkedIn post
226
- - Product Hunt tagline + description
227
- - SEO meta tags (title, description, og:image alt)
228
- Capture: all generated copy as structured output.
229
- ```
230
-
231
- **4b. Optional — launch video.**
232
-
233
- ```
234
- If user requested video content:
235
- REQUIRED SUB-SKILL: rune:video-creator
236
- Invoke `video-creator` with: deployed URL, feature list, target platform.
237
- Capture: video script + asset manifest.
238
- ```
239
-
240
- Mark todo[3] `completed` when all requested assets are generated.
241
-
242
- ---
243
-
244
- ### Phase 5 — ANNOUNCE
245
-
246
- Mark todo[4] `in_progress`.
247
-
248
- Present all assets to user in structured format. Do not auto-publish — user approves before posting.
249
-
250
- ```
251
- Present:
252
- - Deployed URL (clickable)
253
- - Monitoring status
254
- - All marketing copy blocks (ready to copy-paste)
255
- - Video script (if generated)
256
- - Next steps checklist
257
- ```
258
-
259
- Mark todo[4] `completed`.
260
-
261
- ---
262
-
263
- ## Constraints
264
-
265
- 1. MUST pass ALL tests before any deploy attempt — zero exceptions
266
- 2. MUST pass sentinel security scan before deploy — no CRITICAL findings allowed
267
- 3. MUST have rollback plan documented before deploying to production
268
- 4. MUST NOT deploy and run marketing simultaneouslydeploy first, verify, then market
269
- 5. MUST verify deploy is live and healthy before triggering marketing skills
270
-
271
- ## Mesh Gates
272
-
273
- | Gate | Requires | If Missing |
274
- |------|----------|------------|
275
- | Test Gate | verification output showing all green | Run rune:verification first |
276
- | Security Gate | sentinel output with no CRITICAL findings | Run rune:sentinel first |
277
- | Deploy Gate | Successful deploy confirmation before marketing | Deploy first |
278
-
279
- ## Output Format
280
-
281
- ```
282
- ## Launch Report
283
- - **Status**: live | failed | partial
284
- - **URL**: [deployed URL]
285
- - **Tests**: [passed]/[total]
286
-
287
- ### Deployment
288
- - Platform: [Vercel | Netlify | custom]
289
- - Build: [success | failed]
290
- - URL: [live URL]
291
-
292
- ### Monitoring
293
- - Health endpoint: [path]
294
- - Check interval: 5min
295
- - Watchdog: active | failed
296
-
297
- ### Marketing Assets
298
- - Hero copy: [ready | skipped]
299
- - Twitter thread: [ready | skipped]
300
- - LinkedIn post: [ready | skipped]
301
- - Product Hunt: [ready | skipped]
302
- - SEO meta: [ready | skipped]
303
- - Launch video: [ready | skipped]
304
- ```
305
-
306
- ## Returns
307
-
308
- | Artifact | Format | Location |
309
- |----------|--------|----------|
310
- | Deploy status + live URL | Inline (Launch Report) | Emitted at session end |
311
- | Marketing assets (copy, social, SEO) | Markdown (inline) | Generated by `rune:marketing`, presented in Phase 5 |
312
- | Release checklist | Markdown (inline) | Shown in Announce phase |
313
- | Monitoring confirmation | Inline | Watchdog setup output |
314
- | Launch Report | Markdown (inline) | Emitted at end of session |
315
-
316
- ## Sharp Edges
317
-
318
- Known failure modes for this skill. Check these before declaring done.
319
-
320
- | Failure Mode | Severity | Mitigation |
321
- |---|---|---|
322
- | Attempting deploy with failing tests or TypeScript errors | CRITICAL | HARD-GATE blocks this — pre-flight must be 100% green |
323
- | Running marketing before deploy verified live | HIGH | Constraint 4: deploy → verify HTTP 200 → THEN market. Never simultaneous |
324
- | No rollback plan before production deploy | MEDIUM | Constraint 3: document rollback strategy before running deploy command |
325
- | Platform auto-detected incorrectly (wrong deploy command) | MEDIUM | Verify platform config files before running ask if ambiguous |
326
- | Marketing assets generated from assumptions rather than scout output | MEDIUM | Step 1 requires scout to run copy based on actual features, not assumptions |
327
-
328
- ## Done When
329
-
330
- - Pre-flight PASS: all tests, types, lint, build, and sentinel green
331
- - Deploy command succeeded with live URL captured
332
- - Live site returns HTTP 200 (curl or browser-pilot confirmed)
333
- - watchdog monitoring active on deployed URL
334
- - All requested marketing assets generated (or skipped with reason)
335
- - User presented with all assets before any publishing
336
- - Launch Report emitted with URL, monitoring status, and asset list
337
-
338
- ## Cost Profile
339
-
340
- ~$0.08-0.15 per launch. Sonnet for coordination, delegates to haiku for scanning.
341
-
342
- **Scope guardrail**: Do not publish marketing assets or trigger external announcements unless explicitly delegated by the parent agent.
1
+ ---
2
+ name: launch
3
+ description: "Deploy + marketing orchestrator. Use when user says 'launch', 'ship to production', 'deploy and announce', or 'go live'. Runs the full pipeline — pre-flight tests, deployment, live verification, marketing asset creation, and announcement."
4
+ context: fork
5
+ agent: general-purpose
6
+ disable-model-invocation: true
7
+ metadata:
8
+ author: runedev
9
+ version: "0.3.0"
10
+ layer: L1
11
+ model: sonnet
12
+ group: orchestrator
13
+ tools: "Read, Write, Edit, Bash, Glob, Grep"
14
+ listen: audit.complete
15
+ ---
16
+
17
+ # launch
18
+
19
+ ## Purpose
20
+
21
+ Orchestrate the full deployment and marketing pipeline. Launch coordinates testing, deployment, live site verification, marketing asset creation, and public announcement. One command to go from "code ready" to "product live and marketed."
22
+
23
+ <HARD-GATE>
24
+ - ALL tests must pass before any deploy attempt. Zero exceptions. Block deploy if any of: tests failing, TypeScript errors present, build fails, or sentinel CRITICAL issues detected.
25
+ </HARD-GATE>
26
+
27
+ ## Triggers
28
+
29
+ - `/rune launch` manual invocation
30
+ - Called by `team` when delegating launch tasks
31
+
32
+ ## Calls (outbound)
33
+
34
+ - `test` (L2): pre-deployment full test suite
35
+ - `audit` (L2): pre-launch health check — full 7-phase quality gate
36
+ - `deploy` (L2): push to target platform
37
+ - `incident` (L2): if post-launch health check fails → triage and contain
38
+ - `retro` (L2): post-launch retrospective what went well, what didn't
39
+ - `browser-pilot` (L3): verify live site screenshots and performance
40
+ - `marketing` (L2): create launch assets (landing copy, social, SEO)
41
+ - `watchdog` (L3): setup post-deploy monitoring
42
+ - `video-creator` (L3): create launch/demo video content
43
+ - L4 extension packs: domain-specific launch patterns when context matches (e.g., @rune/devops for infrastructure, @rune/ecommerce for storefront)
44
+
45
+ ## Called By (inbound)
46
+
47
+ - User: `/rune launch` direct invocation
48
+ - `team` (L1): when team delegates launch phase
49
+
50
+ ---
51
+
52
+ ## Execution
53
+
54
+ ### Step 0Artifact Readiness Check
55
+
56
+ Before starting the pipeline, verify that prerequisite artifacts exist. Scan using `Glob` — do NOT hardcode paths, use discovery patterns.
57
+
58
+ ```
59
+ REQUIRED ARTIFACTS:
60
+ Source code: Glob **/*.{ts,tsx,js,jsx,py,rs,go} — at least 1 match
61
+ Build config: Glob {package.json,Cargo.toml,pyproject.toml,go.mod} — at least 1 match
62
+ Tests: Glob **/*.{test,spec}.* OR **/test_*.* at least 1 match
63
+
64
+ RECOMMENDED ARTIFACTS (warn if missing, don't block):
65
+ Design system: Glob .rune/design-system.md — if frontend project
66
+ Deploy config: Glob {vercel.json,netlify.toml,Dockerfile,fly.toml,.github/workflows/*}any 1
67
+ README: Glob README.md
68
+ Environment: Glob .env.example OR .env.production — warn about secrets if .env found
69
+
70
+ BLOCKING CONDITIONS:
71
+ ❌ No source code found → STOP: "Nothing to deploy"
72
+ ❌ No build config found → STOP: "No project config detected — cannot determine build/deploy"
73
+ ❌ No tests found → WARN: "No tests detected — pre-flight will run build-only verification"
74
+ ```
75
+
76
+ Report artifact status before proceeding:
77
+ ```
78
+ ## Artifact Check
79
+ - Source: ✅ [N] files ([language])
80
+ - Build config: ✅ [file]
81
+ - Tests: ✅ [N] test files | ⚠️ No tests found
82
+ - Deploy config: ✅ [platform] | ⚠️ Not found (will detect in Phase 2)
83
+ - Design system: ✅ .rune/design-system.md | ⚠️ Not found (run /rune design first for UI projects)
84
+ ```
85
+
86
+ ### Step 1 — Initialize TodoWrite
87
+
88
+ ```
89
+ TodoWrite([
90
+ { content: "PRE-FLIGHT: Run full test suite and verification", status: "pending", activeForm: "Running pre-flight checks" },
91
+ { content: "DEPLOY: Detect platform and push to production", status: "pending", activeForm: "Deploying to production" },
92
+ { content: "VERIFY LIVE: Check live URL and setup monitoring", status: "pending", activeForm: "Verifying live deployment" },
93
+ { content: "MARKET: Generate landing copy and social assets", status: "pending", activeForm: "Generating marketing assets" },
94
+ { content: "ANNOUNCE: Present all marketing assets to user", status: "pending", activeForm: "Preparing announcement" }
95
+ ])
96
+ ```
97
+
98
+ ---
99
+
100
+ ### Phase 1 — PRE-FLIGHT
101
+
102
+ Mark todo[0] `in_progress`.
103
+
104
+ ```
105
+ REQUIRED SUB-SKILL: rune:verification
106
+ Invoke `verification` with scope: "full".
107
+ → verification runs: type check, lint, unit tests, integration tests, build.
108
+ → Capture: passed count, failed count, coverage %, build output.
109
+ ```
110
+
111
+ <HARD-GATE>
112
+ Block deploy if ANY of:
113
+ [ ] Tests failing (failed count > 0)
114
+ [ ] TypeScript errors present
115
+ [ ] Build fails
116
+ [ ] sentinel CRITICAL issues detected (invoke rune:sentinel if not already run)
117
+
118
+ If any check fails:
119
+ STOP immediately
120
+ Report: "PRE-FLIGHT FAILED deploy blocked"
121
+ → List all failures with file + line references
122
+ → Do NOT proceed to Phase 2
123
+ </HARD-GATE>
124
+
125
+ Mark todo[0] `completed` only when ALL checks pass.
126
+
127
+ ---
128
+
129
+ ### Phase 2 — DEPLOY
130
+
131
+ Mark todo[1] `in_progress`.
132
+
133
+ **2a. Detect deployment platform.**
134
+
135
+ ```
136
+ Bash: ls package.json
137
+ Read: package.json (check "scripts" for deploy, build, start commands)
138
+
139
+ Platform detection (in order):
140
+ 1. Check package.json scripts for "vercel" → platform = Vercel
141
+ 2. Check package.json scripts for "netlify" → platform = Netlify
142
+ 3. Check for vercel.json or .vercel/ dir → platform = Vercel
143
+ 4. Check for netlify.toml platform = Netlify
144
+ 5. Check for Dockerfile or fly.toml → platform = custom/fly.io
145
+ 6. Fallback: ask user for deploy command before continuing
146
+ ```
147
+
148
+ **2b. Execute deploy command.**
149
+
150
+ ```
151
+ Vercel:
152
+ Bash: npx vercel --prod
153
+ Capture: deployment URL from stdout
154
+
155
+ Netlify:
156
+ Bash: npx netlify deploy --prod --dir=[build_output_dir]
157
+ Capture: deployment URL from stdout
158
+
159
+ Custom (package.json script):
160
+ Bash: npm run deploy
161
+ Capture: deployment URL or status from stdout
162
+
163
+ Fly.io:
164
+ Bash: flyctl deploy
165
+ Capture: deployment URL from stdout
166
+ ```
167
+
168
+ ```
169
+ Error recovery:
170
+ If deploy command exits non-zero:
171
+ Capture full stderr
172
+ Report: "DEPLOY FAILED: [error summary]"
173
+ → Do NOT proceed to Phase 3
174
+ → Present raw error to user for diagnosis
175
+ ```
176
+
177
+ Mark todo[1] `completed` when deploy returns a live URL.
178
+
179
+ ---
180
+
181
+ ### Phase 3 — VERIFY LIVE
182
+
183
+ Mark todo[2] `in_progress`.
184
+
185
+ **3a. Verify live site.**
186
+
187
+ ```
188
+ REQUIRED SUB-SKILL: rune:browser-pilot
189
+ Invoke `browser-pilot` with the deployed URL.
190
+ → browser-pilot checks: page loads (HTTP 200), no console errors, critical UI elements visible.
191
+ → Capture: screenshot, status code, load time, any JS errors.
192
+ ```
193
+
194
+ ```
195
+ Error recovery:
196
+ If browser-pilot returns non-200 or JS errors:
197
+ Report: "LIVE VERIFY FAILED: [details]"
198
+ → Do NOT proceed to Phase 4
199
+ → Present screenshot + error log to user
200
+ ```
201
+
202
+ **3b. Setup monitoring.**
203
+
204
+ ```
205
+ REQUIRED SUB-SKILL: rune:watchdog
206
+ Invoke `watchdog` with: url=[deployed URL], interval=5min, alert_on=[5xx, timeout].
207
+ → watchdog configures health check endpoint monitoring.
208
+ → Capture: monitoring confirmation + health endpoint path.
209
+ ```
210
+
211
+ Mark todo[2] `completed` when live verification passes and monitoring is active.
212
+
213
+ ---
214
+
215
+ ### Phase 4 — MARKET
216
+
217
+ Mark todo[3] `in_progress`.
218
+
219
+ **4a. Generate marketing assets.**
220
+
221
+ ```
222
+ REQUIRED SUB-SKILL: rune:marketing
223
+ Invoke `marketing` with: project context, deployed URL, key features.
224
+ marketing generates:
225
+ - Landing page hero copy (headline, subheadline, CTA)
226
+ - Twitter/X announcement thread (3-5 tweets)
227
+ - LinkedIn post
228
+ - Product Hunt tagline + description
229
+ - SEO meta tags (title, description, og:image alt)
230
+ → Capture: all generated copy as structured output.
231
+ ```
232
+
233
+ **4b. Optional — launch video.**
234
+
235
+ ```
236
+ If user requested video content:
237
+ REQUIRED SUB-SKILL: rune:video-creator
238
+ → Invoke `video-creator` with: deployed URL, feature list, target platform.
239
+ → Capture: video script + asset manifest.
240
+ ```
241
+
242
+ Mark todo[3] `completed` when all requested assets are generated.
243
+
244
+ ---
245
+
246
+ ### Phase 5 — ANNOUNCE
247
+
248
+ Mark todo[4] `in_progress`.
249
+
250
+ Present all assets to user in structured format. Do not auto-publish — user approves before posting.
251
+
252
+ ```
253
+ Present:
254
+ - Deployed URL (clickable)
255
+ - Monitoring status
256
+ - All marketing copy blocks (ready to copy-paste)
257
+ - Video script (if generated)
258
+ - Next steps checklist
259
+ ```
260
+
261
+ Mark todo[4] `completed`.
262
+
263
+ ---
264
+
265
+ ## Constraints
266
+
267
+ 1. MUST pass ALL tests before any deploy attempt — zero exceptions
268
+ 2. MUST pass sentinel security scan before deployno CRITICAL findings allowed
269
+ 3. MUST have rollback plan documented before deploying to production
270
+ 4. MUST NOT deploy and run marketing simultaneously — deploy first, verify, then market
271
+ 5. MUST verify deploy is live and healthy before triggering marketing skills
272
+
273
+ ## Mesh Gates
274
+
275
+ | Gate | Requires | If Missing |
276
+ |------|----------|------------|
277
+ | Test Gate | verification output showing all green | Run rune:verification first |
278
+ | Security Gate | sentinel output with no CRITICAL findings | Run rune:sentinel first |
279
+ | Deploy Gate | Successful deploy confirmation before marketing | Deploy first |
280
+
281
+ ## Output Format
282
+
283
+ ```
284
+ ## Launch Report
285
+ - **Status**: live | failed | partial
286
+ - **URL**: [deployed URL]
287
+ - **Tests**: [passed]/[total]
288
+
289
+ ### Deployment
290
+ - Platform: [Vercel | Netlify | custom]
291
+ - Build: [success | failed]
292
+ - URL: [live URL]
293
+
294
+ ### Monitoring
295
+ - Health endpoint: [path]
296
+ - Check interval: 5min
297
+ - Watchdog: active | failed
298
+
299
+ ### Marketing Assets
300
+ - Hero copy: [ready | skipped]
301
+ - Twitter thread: [ready | skipped]
302
+ - LinkedIn post: [ready | skipped]
303
+ - Product Hunt: [ready | skipped]
304
+ - SEO meta: [ready | skipped]
305
+ - Launch video: [ready | skipped]
306
+ ```
307
+
308
+ ## Returns
309
+
310
+ | Artifact | Format | Location |
311
+ |----------|--------|----------|
312
+ | Deploy status + live URL | Inline (Launch Report) | Emitted at session end |
313
+ | Marketing assets (copy, social, SEO) | Markdown (inline) | Generated by `rune:marketing`, presented in Phase 5 |
314
+ | Release checklist | Markdown (inline) | Shown in Announce phase |
315
+ | Monitoring confirmation | Inline | Watchdog setup output |
316
+ | Launch Report | Markdown (inline) | Emitted at end of session |
317
+
318
+ ## Sharp Edges
319
+
320
+ Known failure modes for this skill. Check these before declaring done.
321
+
322
+ | Failure Mode | Severity | Mitigation |
323
+ |---|---|---|
324
+ | Attempting deploy with failing tests or TypeScript errors | CRITICAL | HARD-GATE blocks this pre-flight must be 100% green |
325
+ | Running marketing before deploy verified live | HIGH | Constraint 4: deploy verify HTTP 200 THEN market. Never simultaneous |
326
+ | No rollback plan before production deploy | MEDIUM | Constraint 3: document rollback strategy before running deploy command |
327
+ | Platform auto-detected incorrectly (wrong deploy command) | MEDIUM | Verify platform config files before running — ask if ambiguous |
328
+ | Marketing assets generated from assumptions rather than scout output | MEDIUM | Step 1 requires scout to run — copy based on actual features, not assumptions |
329
+
330
+ ## Done When
331
+
332
+ - Pre-flight PASS: all tests, types, lint, build, and sentinel green
333
+ - Deploy command succeeded with live URL captured
334
+ - Live site returns HTTP 200 (curl or browser-pilot confirmed)
335
+ - watchdog monitoring active on deployed URL
336
+ - All requested marketing assets generated (or skipped with reason)
337
+ - User presented with all assets before any publishing
338
+ - Launch Report emitted with URL, monitoring status, and asset list
339
+
340
+ ## Cost Profile
341
+
342
+ ~$0.08-0.15 per launch. Sonnet for coordination, delegates to haiku for scanning.
343
+
344
+ **Scope guardrail**: Do not publish marketing assets or trigger external announcements unless explicitly delegated by the parent agent.