@rune-kit/rune 2.1.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 (155) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +357 -0
  3. package/agents/.gitkeep +0 -0
  4. package/agents/architect.md +29 -0
  5. package/agents/asset-creator.md +11 -0
  6. package/agents/audit.md +11 -0
  7. package/agents/autopsy.md +11 -0
  8. package/agents/brainstorm.md +11 -0
  9. package/agents/browser-pilot.md +11 -0
  10. package/agents/coder.md +29 -0
  11. package/agents/completion-gate.md +11 -0
  12. package/agents/constraint-check.md +11 -0
  13. package/agents/context-engine.md +11 -0
  14. package/agents/cook.md +11 -0
  15. package/agents/db.md +11 -0
  16. package/agents/debug.md +11 -0
  17. package/agents/dependency-doctor.md +11 -0
  18. package/agents/deploy.md +11 -0
  19. package/agents/design.md +11 -0
  20. package/agents/docs-seeker.md +11 -0
  21. package/agents/fix.md +11 -0
  22. package/agents/hallucination-guard.md +11 -0
  23. package/agents/incident.md +11 -0
  24. package/agents/integrity-check.md +11 -0
  25. package/agents/journal.md +11 -0
  26. package/agents/launch.md +11 -0
  27. package/agents/logic-guardian.md +11 -0
  28. package/agents/marketing.md +11 -0
  29. package/agents/onboard.md +11 -0
  30. package/agents/perf.md +11 -0
  31. package/agents/plan.md +11 -0
  32. package/agents/preflight.md +11 -0
  33. package/agents/problem-solver.md +11 -0
  34. package/agents/rescue.md +11 -0
  35. package/agents/research.md +11 -0
  36. package/agents/researcher.md +29 -0
  37. package/agents/review-intake.md +11 -0
  38. package/agents/review.md +11 -0
  39. package/agents/reviewer.md +28 -0
  40. package/agents/safeguard.md +11 -0
  41. package/agents/sast.md +11 -0
  42. package/agents/scanner.md +28 -0
  43. package/agents/scope-guard.md +11 -0
  44. package/agents/scout.md +11 -0
  45. package/agents/sentinel.md +11 -0
  46. package/agents/sequential-thinking.md +11 -0
  47. package/agents/session-bridge.md +11 -0
  48. package/agents/skill-forge.md +11 -0
  49. package/agents/skill-router.md +11 -0
  50. package/agents/surgeon.md +11 -0
  51. package/agents/team.md +11 -0
  52. package/agents/test.md +11 -0
  53. package/agents/trend-scout.md +11 -0
  54. package/agents/verification.md +11 -0
  55. package/agents/video-creator.md +11 -0
  56. package/agents/watchdog.md +11 -0
  57. package/agents/worktree.md +11 -0
  58. package/commands/.gitkeep +0 -0
  59. package/commands/rune.md +168 -0
  60. package/compiler/__tests__/openclaw-adapter.test.js +140 -0
  61. package/compiler/__tests__/parser.test.js +55 -0
  62. package/compiler/adapters/antigravity.js +59 -0
  63. package/compiler/adapters/claude.js +37 -0
  64. package/compiler/adapters/cursor.js +67 -0
  65. package/compiler/adapters/generic.js +60 -0
  66. package/compiler/adapters/index.js +45 -0
  67. package/compiler/adapters/openclaw.js +150 -0
  68. package/compiler/adapters/windsurf.js +60 -0
  69. package/compiler/bin/rune.js +288 -0
  70. package/compiler/doctor.js +153 -0
  71. package/compiler/emitter.js +240 -0
  72. package/compiler/parser.js +208 -0
  73. package/compiler/transformer.js +69 -0
  74. package/compiler/transforms/branding.js +27 -0
  75. package/compiler/transforms/cross-references.js +29 -0
  76. package/compiler/transforms/frontmatter.js +38 -0
  77. package/compiler/transforms/hooks.js +68 -0
  78. package/compiler/transforms/subagents.js +36 -0
  79. package/compiler/transforms/tool-names.js +60 -0
  80. package/contexts/dev.md +34 -0
  81. package/contexts/research.md +43 -0
  82. package/contexts/review.md +55 -0
  83. package/extensions/ai-ml/PACK.md +517 -0
  84. package/extensions/analytics/PACK.md +557 -0
  85. package/extensions/backend/PACK.md +678 -0
  86. package/extensions/chrome-ext/PACK.md +995 -0
  87. package/extensions/content/PACK.md +381 -0
  88. package/extensions/devops/PACK.md +520 -0
  89. package/extensions/ecommerce/PACK.md +280 -0
  90. package/extensions/gamedev/PACK.md +393 -0
  91. package/extensions/mobile/PACK.md +273 -0
  92. package/extensions/saas/PACK.md +805 -0
  93. package/extensions/security/PACK.md +536 -0
  94. package/extensions/trading/PACK.md +597 -0
  95. package/extensions/ui/PACK.md +947 -0
  96. package/package.json +47 -0
  97. package/skills/.gitkeep +0 -0
  98. package/skills/adversary/SKILL.md +271 -0
  99. package/skills/asset-creator/SKILL.md +157 -0
  100. package/skills/audit/SKILL.md +466 -0
  101. package/skills/autopsy/SKILL.md +200 -0
  102. package/skills/ba/SKILL.md +279 -0
  103. package/skills/brainstorm/SKILL.md +266 -0
  104. package/skills/browser-pilot/SKILL.md +168 -0
  105. package/skills/completion-gate/SKILL.md +151 -0
  106. package/skills/constraint-check/SKILL.md +165 -0
  107. package/skills/context-engine/SKILL.md +176 -0
  108. package/skills/cook/SKILL.md +636 -0
  109. package/skills/db/SKILL.md +256 -0
  110. package/skills/debug/SKILL.md +240 -0
  111. package/skills/dependency-doctor/SKILL.md +235 -0
  112. package/skills/deploy/SKILL.md +174 -0
  113. package/skills/design/DESIGN-REFERENCE.md +365 -0
  114. package/skills/design/SKILL.md +462 -0
  115. package/skills/doc-processor/SKILL.md +254 -0
  116. package/skills/docs/SKILL.md +336 -0
  117. package/skills/docs-seeker/SKILL.md +166 -0
  118. package/skills/fix/SKILL.md +192 -0
  119. package/skills/git/SKILL.md +285 -0
  120. package/skills/hallucination-guard/SKILL.md +204 -0
  121. package/skills/incident/SKILL.md +241 -0
  122. package/skills/integrity-check/SKILL.md +169 -0
  123. package/skills/journal/SKILL.md +190 -0
  124. package/skills/launch/SKILL.md +330 -0
  125. package/skills/logic-guardian/SKILL.md +240 -0
  126. package/skills/marketing/SKILL.md +229 -0
  127. package/skills/mcp-builder/SKILL.md +311 -0
  128. package/skills/onboard/SKILL.md +298 -0
  129. package/skills/perf/SKILL.md +297 -0
  130. package/skills/plan/SKILL.md +520 -0
  131. package/skills/preflight/SKILL.md +231 -0
  132. package/skills/problem-solver/SKILL.md +284 -0
  133. package/skills/rescue/SKILL.md +434 -0
  134. package/skills/research/SKILL.md +122 -0
  135. package/skills/review/SKILL.md +354 -0
  136. package/skills/review-intake/SKILL.md +222 -0
  137. package/skills/safeguard/SKILL.md +188 -0
  138. package/skills/sast/SKILL.md +190 -0
  139. package/skills/scaffold/SKILL.md +276 -0
  140. package/skills/scope-guard/SKILL.md +150 -0
  141. package/skills/scout/SKILL.md +232 -0
  142. package/skills/sentinel/SKILL.md +320 -0
  143. package/skills/sentinel-env/SKILL.md +226 -0
  144. package/skills/sequential-thinking/SKILL.md +234 -0
  145. package/skills/session-bridge/SKILL.md +287 -0
  146. package/skills/skill-forge/SKILL.md +317 -0
  147. package/skills/skill-router/SKILL.md +267 -0
  148. package/skills/surgeon/SKILL.md +203 -0
  149. package/skills/team/SKILL.md +397 -0
  150. package/skills/test/SKILL.md +271 -0
  151. package/skills/trend-scout/SKILL.md +145 -0
  152. package/skills/verification/SKILL.md +201 -0
  153. package/skills/video-creator/SKILL.md +201 -0
  154. package/skills/watchdog/SKILL.md +166 -0
  155. package/skills/worktree/SKILL.md +140 -0
@@ -0,0 +1,240 @@
1
+ ---
2
+ name: logic-guardian
3
+ description: Protects complex business logic from accidental deletion or overwrite. Maintains a logic manifest, enforces pre-edit gates, and validates post-edit diffs.
4
+ metadata:
5
+ author: runedev
6
+ version: "0.1.0"
7
+ layer: L2
8
+ model: sonnet
9
+ group: quality
10
+ tools: "Read, Write, Edit, Glob, Grep"
11
+ ---
12
+
13
+ # logic-guardian
14
+
15
+ ## Purpose
16
+
17
+ Complex projects (trading bots, payment systems, game engines, state machines) contain interconnected logic that AI agents routinely destroy by accident. The pattern is always the same: new session starts, agent doesn't know existing logic, rewrites or deletes working code, project regresses. `logic-guardian` breaks this cycle by maintaining a machine-readable logic manifest, enforcing a pre-edit gate on logic files, and validating that edits don't silently remove existing logic. It is the "institutional memory" for business logic.
18
+
19
+ ## Triggers
20
+
21
+ - `/rune logic-guardian` — manual invocation (scan project, generate/update manifest)
22
+ - Auto-trigger: when `cook` or `fix` targets a file listed in `.rune/logic-manifest.json`
23
+ - Auto-trigger: when `surgeon` plans refactoring on logic-heavy modules
24
+ - Auto-trigger: when `.rune/logic-manifest.json` exists in project root
25
+
26
+ ## Calls (outbound connections)
27
+
28
+ - `scout` (L2): scan project to discover logic files and extract function signatures
29
+ - `verification` (L3): run tests after logic edits to confirm no regression
30
+ - `hallucination-guard` (L3): verify that referenced functions/imports actually exist after edit
31
+ - `journal` (L3): record logic changes as ADRs for cross-session persistence
32
+ - `session-bridge` (L3): save manifest state so next session loads it immediately
33
+
34
+ ## Called By (inbound connections)
35
+
36
+ - `cook` (L1): Phase 1.5 — when complex logic project detected, load manifest before planning
37
+ - `fix` (L2): pre-edit gate — before modifying any file in the manifest
38
+ - `surgeon` (L2): pre-refactor — before restructuring logic modules
39
+ - `team` (L1): validate logic integrity across parallel workstreams
40
+ - `review` (L2): check if reviewed diff removes or modifies manifested logic
41
+
42
+ ## Workflow
43
+
44
+ ### Phase 0 — Load or Initialize Manifest
45
+
46
+ 1. Use `Read` on `.rune/logic-manifest.json`
47
+ 2. If file exists:
48
+ - Parse manifest, display summary: "Loaded logic manifest: N components, M functions, K parameters"
49
+ - Proceed to Phase 1 (Validate)
50
+ 3. If file does NOT exist:
51
+ - Announce: "No logic manifest found. Scanning project to generate one."
52
+ - Proceed to Phase 3 (Generate)
53
+
54
+ ### Phase 1 — Validate Manifest Against Codebase
55
+
56
+ Ensure the manifest matches the actual code (detect drift):
57
+
58
+ 1. For each component in the manifest:
59
+ - Use `Read` on the component's `file_path`
60
+ - Verify each listed function exists (by name + signature match)
61
+ - Check if any NEW functions exist in the file that aren't in the manifest
62
+ 2. Report:
63
+ - `SYNCED` — manifest matches code perfectly
64
+ - `DRIFT_DETECTED` — list specific discrepancies (missing functions, new unlisted functions, changed signatures)
65
+ 3. If drift detected: ask user whether to update manifest or investigate changes
66
+
67
+ ### Phase 2 — Pre-Edit Gate (called by fix/surgeon/cook)
68
+
69
+ Before ANY edit to a manifested file:
70
+
71
+ 1. Load the manifest (Phase 0)
72
+ 2. Display the affected component's current spec:
73
+ ```
74
+ COMPONENT: [name]
75
+ STATUS: ACTIVE | TESTING | DEPRECATED
76
+ FUNCTIONS: [list with one-line descriptions]
77
+ PARAMETERS: [configurable values with current settings]
78
+ DEPENDENCIES: [what other components depend on this]
79
+ LAST_MODIFIED: [date]
80
+ ```
81
+ 3. Require the agent to explicitly state:
82
+ - What it intends to change
83
+ - What it will NOT change
84
+ - Which existing functions/logic will be preserved
85
+ 4. If the agent cannot list the existing functions → BLOCK the edit. Force a `Read` of the file first.
86
+
87
+ ### Phase 3 — Generate Manifest (first-time or rescan)
88
+
89
+ Scan the project and build the manifest:
90
+
91
+ 1. Use `scout` to find logic-heavy files:
92
+ - Search for files with complex conditionals, state machines, strategy patterns
93
+ - Look for files matching: `**/logic/**`, `**/strategy/**`, `**/engine/**`, `**/core/**`, `**/scenarios/**`, `**/rules/**`, `**/pipeline/**`, `**/trailing/**`, `**/signals/**`
94
+ - Also search for files with high cyclomatic complexity (many if/else/switch branches)
95
+ 2. For each discovered file:
96
+ - `Read` the file
97
+ - Extract: functions/methods, their parameters, return types, key conditionals
98
+ - Classify the component's role: ENTRY_LOGIC, EXIT_LOGIC, FILTER, VALIDATOR, STATE_MACHINE, PIPELINE, CALCULATOR, etc.
99
+ - Determine status: ACTIVE (has callers + tests), TESTING (no production callers), DEPRECATED (commented out or unused)
100
+ 3. Map dependencies between components:
101
+ - Which component calls which
102
+ - Which share state or config
103
+ - Which must be modified together (co-change groups)
104
+ 4. Write manifest to `.rune/logic-manifest.json`
105
+ 5. Save summary to neural memory via `session-bridge`
106
+
107
+ ### Phase 4 — Post-Edit Validation
108
+
109
+ After any edit to a manifested file:
110
+
111
+ 1. Re-read the edited file
112
+ 2. Compare against the manifest's function list:
113
+ - Any function REMOVED? → ALERT: "Function [name] was removed. Was this intentional?"
114
+ - Any function SIGNATURE changed? → WARN: "Signature of [name] changed. Check callers."
115
+ - Any PARAMETERS changed? → WARN: "Parameter [name] changed from [old] to [new]. Verify downstream."
116
+ 3. Run `verification` to execute tests
117
+ 4. If all checks pass: update the manifest with new state
118
+ 5. If function was removed unintentionally: offer to restore from git
119
+
120
+ ### Phase 5 — Cross-Session Handoff
121
+
122
+ Ensure the next session can pick up where this one left off:
123
+
124
+ 1. Update `.rune/logic-manifest.json` with:
125
+ - Current component states
126
+ - Last validation timestamp
127
+ - Any pending changes or known issues
128
+ 2. Save key decisions to `journal` as ADRs
129
+ 3. Save manifest summary to neural memory:
130
+ - "Project X has N active logic components: [list]. Last validated [date]."
131
+ - "Component Y was modified: [what changed and why]"
132
+
133
+ ## Output Format
134
+
135
+ ### Manifest Schema (`.rune/logic-manifest.json`)
136
+
137
+ ```json
138
+ {
139
+ "version": "1.0",
140
+ "project": "project-name",
141
+ "last_validated": "2026-03-05T10:00:00Z",
142
+ "components": [
143
+ {
144
+ "name": "rsi-entry-detector",
145
+ "file_path": "src/scenarios/rsi_entry/detect.py",
146
+ "role": "ENTRY_LOGIC",
147
+ "status": "ACTIVE",
148
+ "functions": [
149
+ {
150
+ "name": "detect_entry_signal",
151
+ "signature": "(df: DataFrame, ticket: Ticket, config: Settings) -> Signal | None",
152
+ "description": "3-step RSI entry detection: challenge -> zone check -> entry point",
153
+ "critical": true
154
+ }
155
+ ],
156
+ "parameters": [
157
+ { "name": "rsi_period", "value": 7, "source": "settings.py" },
158
+ { "name": "challenge_threshold_long", "value": 65, "source": "settings.py" }
159
+ ],
160
+ "dependencies": ["trend-pass-tracker", "indicator-calculator"],
161
+ "dependents": ["production-worker", "backtest-engine"],
162
+ "last_modified": "2026-03-01",
163
+ "last_modifier": "human",
164
+ "checksum": "sha256:abc123..."
165
+ }
166
+ ],
167
+ "co_change_groups": [
168
+ {
169
+ "name": "entry-pipeline",
170
+ "components": ["trend-pass-tracker", "rsi-entry-detector", "indicator-calculator"],
171
+ "reason": "These components share RSI parameters and must be modified together"
172
+ }
173
+ ]
174
+ }
175
+ ```
176
+
177
+ ### Validation Report
178
+
179
+ ```
180
+ ## Logic Guardian Report
181
+
182
+ ### Manifest Status: SYNCED | DRIFT_DETECTED
183
+ - Components: N active, M testing, K deprecated
184
+ - Last validated: [timestamp]
185
+
186
+ ### Pre-Edit Gate
187
+ - File: [path]
188
+ - Component: [name] (ACTIVE)
189
+ - Functions preserved: [list]
190
+ - Intended change: [description]
191
+ - Impact: [downstream effects]
192
+
193
+ ### Post-Edit Validation
194
+ - Functions removed: [none | list]
195
+ - Signatures changed: [none | list]
196
+ - Parameters changed: [none | list]
197
+ - Tests: PASS | FAIL
198
+ - Manifest: UPDATED | NEEDS_REVIEW
199
+ ```
200
+
201
+ ## Constraints
202
+
203
+ 1. MUST load manifest before ANY edit to a manifested file — the entire point is pre-edit awareness
204
+ 2. MUST NOT allow edits to ACTIVE logic without the agent explicitly listing what will be preserved — prevents silent overwrites
205
+ 3. MUST alert on function removal — the #1 failure mode is deleting working logic
206
+ 4. MUST run tests after editing manifested files — logic changes without test verification are blind
207
+ 5. MUST update manifest after validated edits — stale manifests provide false confidence
208
+ 6. MUST NOT auto-generate manifest for files the agent hasn't read — manifest must reflect actual understanding
209
+
210
+ ## Mesh Gates
211
+
212
+ | Gate | Requires | If Missing |
213
+ |------|----------|------------|
214
+ | PRE_EDIT | `.rune/logic-manifest.json` loaded + component spec displayed | BLOCK edit. Run Phase 0 + Phase 2 first. |
215
+ | POST_EDIT | All manifest functions still present OR removal explicitly acknowledged | ALERT + offer git restore |
216
+ | CROSS_SESSION | Manifest updated + summary saved to journal/nmem | WARN: next session will lack context |
217
+
218
+ ## Sharp Edges
219
+
220
+ | Failure Mode | Severity | Mitigation |
221
+ |---|---|---|
222
+ | Agent edits manifested file without loading manifest first | CRITICAL | Phase 2 gate: cook/fix MUST call logic-guardian before editing manifested files |
223
+ | Manifest drifts from actual code (manual edits not tracked) | HIGH | Phase 1 validation on every load — detect and reconcile drift |
224
+ | Agent acknowledges existing logic but still overwrites it | HIGH | Post-edit Phase 4 diff check catches removed functions regardless of agent claims |
225
+ | Manifest becomes too large (100+ components) | MEDIUM | Group related functions into composite components; track at module level not function level |
226
+ | False sense of security — manifest exists but is outdated | MEDIUM | Checksum comparison on every load; warn if file hash doesn't match manifest |
227
+ | Agent treats manifest generation as a one-time task | LOW | Phase 5 cross-session handoff ensures manifest stays alive across sessions |
228
+
229
+ ## Done When
230
+
231
+ - `.rune/logic-manifest.json` exists and passes Phase 1 validation (SYNCED)
232
+ - All manifested components have status (ACTIVE/TESTING/DEPRECATED) and function listings
233
+ - Pre-edit gate blocks edits without manifest awareness (Phase 2 enforced)
234
+ - Post-edit validation confirms no unintended function removal (Phase 4 passed)
235
+ - Manifest summary saved to journal + neural memory for cross-session handoff
236
+ - Tests pass after any logic edit
237
+
238
+ ## Cost Profile
239
+
240
+ ~1,000-2,000 tokens for manifest load + pre-edit gate. ~3,000-5,000 tokens for full project scan (Phase 3). Sonnet for code analysis; haiku for file scanning via scout.
@@ -0,0 +1,229 @@
1
+ ---
2
+ name: marketing
3
+ description: Create marketing assets and execute launch strategy. Generates landing copy, social banners, SEO meta, blog posts, and video scripts.
4
+ metadata:
5
+ author: runedev
6
+ version: "0.3.0"
7
+ layer: L2
8
+ model: sonnet
9
+ group: delivery
10
+ tools: "Read, Write, Edit, Glob, Grep, WebFetch, WebSearch"
11
+ ---
12
+
13
+ # marketing
14
+
15
+ ## Purpose
16
+
17
+ Create marketing assets and execute launch strategy. Marketing generates landing page copy, social media banners, SEO metadata, blog posts, and video scripts. Analyzes the project to create authentic, data-driven marketing content.
18
+
19
+ ## Called By (inbound)
20
+
21
+ - `launch` (L1): Phase 4 MARKET — marketing phase of launch pipeline
22
+ - User: `/rune marketing` direct invocation
23
+
24
+ ## Calls (outbound)
25
+
26
+ - `scout` (L2): scan codebase for features, README, value props
27
+ - `trend-scout` (L3): market trends, competitor positioning
28
+ - `research` (L3): competitor analysis, SEO keyword data
29
+ - `asset-creator` (L3): generate OG images, social cards, banners
30
+ - `video-creator` (L3): create demo/explainer video plan
31
+ - `browser-pilot` (L3): capture screenshots for marketing assets
32
+ - L4 extension packs: domain-specific content when context matches (e.g., @rune/content for blog posts, @rune/analytics for campaign measurement)
33
+
34
+ ## Execution Steps
35
+
36
+ ### Step 1 — Understand the product
37
+
38
+ Call `rune:scout` to scan the codebase. Ask scout to extract:
39
+ - Feature list (what the product actually does)
40
+ - README summary
41
+ - Target audience signals (from code, comments, config)
42
+ - Tech stack (relevant for developer marketing)
43
+
44
+ Read any existing `marketing/`, `docs/`, or `landing/` directories if present.
45
+
46
+ ### Step 2 — Research market
47
+
48
+ Call `rune:trend-scout` with the product category to identify:
49
+ - Top 3 competitors and their positioning
50
+ - Current market trends relevant to this product
51
+ - Differentiators to emphasize
52
+
53
+ Call `rune:research` for:
54
+ - SEO keyword opportunities (volume vs. competition)
55
+ - Competitor messaging patterns to avoid or counter
56
+
57
+ ### Step 2.5 — Establish Brand Voice
58
+
59
+ Before generating any copy, define the brand voice contract. This prevents inconsistent tone across marketing assets.
60
+
61
+ **Brand Voice Matrix** — answer these for the product:
62
+
63
+ | Dimension | Spectrum | This product |
64
+ |-----------|----------|--------------|
65
+ | Formality | Casual ←→ Formal | [position] |
66
+ | Humor | Serious ←→ Playful | [position] |
67
+ | Authority | Peer ←→ Expert | [position] |
68
+ | Warmth | Clinical ←→ Friendly | [position] |
69
+ | Urgency | Patient ←→ Urgent | [position] |
70
+
71
+ **Voice rules** (generate 3-5):
72
+ - "We say [X], never [Y]" — e.g., "We say 'start free', never 'sign up now'"
73
+ - "Our tone is [X] because our users are [Y]"
74
+ - "Avoid [specific words/phrases] because [reason]"
75
+
76
+ **Vocabulary list** (5-10 terms):
77
+ - Preferred terms: [words this brand uses]
78
+ - Forbidden terms: [words to avoid and why]
79
+ - Jargon policy: [use/avoid/explain technical terms]
80
+
81
+ Save voice contract to `marketing/brand-voice.md`. All subsequent copy MUST follow this voice.
82
+
83
+ If `marketing/brand-voice.md` already exists → Read it and apply. Do NOT regenerate without user request.
84
+
85
+ ### Step 3 — Generate copy
86
+
87
+ Using product understanding, market research, and **brand voice contract**, produce:
88
+
89
+ **Hero section**
90
+ - Headline (under 10 words, outcome-focused)
91
+ - Subheadline (1-2 sentences expanding the promise)
92
+ - Primary CTA button text
93
+
94
+ **Value propositions** (3 items)
95
+ - Icon/emoji, title, 1-sentence description each
96
+
97
+ **Feature list** (pulled from Step 1 scout output)
98
+ - Name + benefit phrasing for each feature
99
+
100
+ **Social proof section** (placeholder copy if no real testimonials)
101
+
102
+ **Secondary CTA** (bottom of page)
103
+
104
+ ### Step 4 — Social posts
105
+
106
+ Produce ready-to-post content:
107
+
108
+ **Twitter/X thread** (5-7 tweets)
109
+ - Tweet 1: hook (the big claim)
110
+ - Tweets 2-5: one feature or benefit per tweet with specifics
111
+ - Tweet 6: social proof or stat
112
+ - Tweet 7: CTA with link
113
+
114
+ **LinkedIn post** (150-300 words)
115
+ - Professional tone, problem-solution-proof structure
116
+
117
+ **Product Hunt tagline** (under 60 characters)
118
+
119
+ ### Step 5 — SEO metadata
120
+
121
+ Produce for the landing page:
122
+
123
+ ```html
124
+ <title>[Meta title — under 60 chars, primary keyword first]</title>
125
+ <meta name="description" content="[150-160 chars, includes CTA]">
126
+ <meta property="og:title" content="[OG title]">
127
+ <meta property="og:description" content="[OG description]">
128
+ <meta property="og:image" content="[OG image path]">
129
+ <link rel="canonical" href="[canonical URL]">
130
+ ```
131
+
132
+ Target keywords list (5-10 terms with rationale).
133
+
134
+ ### Step 5.5 — SEO Audit (if existing site)
135
+
136
+ If the project already has a deployed site or existing pages, run a technical SEO audit before generating new metadata.
137
+
138
+ **Automated checks** (use Grep + Read on codebase):
139
+
140
+ 1. **Meta tags completeness**: Every page has `<title>`, `<meta description>`, `og:title`, `og:description`, `og:image`. Flag pages missing any.
141
+ 2. **Heading hierarchy**: Every page has exactly one `<h1>`. No skipped levels (h1→h3 without h2). Use Grep for `<h1`, `<h2`, `<h3` patterns.
142
+ 3. **Image alt text**: Search for `<img` without `alt=` attribute. Every image needs descriptive alt text (not "image", not empty).
143
+ 4. **Canonical URLs**: Check for `<link rel="canonical"`. Missing canonical = duplicate content risk.
144
+ 5. **Structured data**: Check for `application/ld+json` or microdata. Recommend adding if missing (Product, Organization, Article schemas).
145
+ 6. **Performance signals**: Check for `next/image` or lazy loading on images. Flag `<img>` without `loading="lazy"` below fold.
146
+ 7. **Sitemap**: Check for `sitemap.xml` or sitemap generation in build config. Flag if missing.
147
+ 8. **Robots**: Check for `robots.txt`. Verify it doesn't accidentally block important pages.
148
+
149
+ **Output**: SEO Audit Report with pass/fail per check. Save to `marketing/seo-audit.md`.
150
+
151
+ Fix critical SEO issues (missing titles, broken heading hierarchy) in the implementation plan. Non-critical issues go to `marketing/seo-backlog.md`.
152
+
153
+ ### Step 6 — Visual assets
154
+
155
+ Call `rune:asset-creator` to generate:
156
+ - OG image (1200x630px) — product name, tagline, brand colors
157
+ - Twitter card image (1200x628px)
158
+ - Product Hunt thumbnail (240x240px)
159
+
160
+ Call `rune:video-creator` to produce:
161
+ - 60-second demo video script (screen recording plan)
162
+ - Shot list with timestamps
163
+
164
+ If `rune:browser-pilot` is available, capture screenshots of the running app to use as real product imagery.
165
+
166
+ ### Step 7 — Present for approval
167
+
168
+ Output all assets as structured markdown sections. Present to user for review before saving files.
169
+
170
+ After user approves, use `Write` to save:
171
+ - `marketing/brand-voice.md` — voice contract from Step 2.5
172
+ - `marketing/landing-copy.md` — all copy from Step 3
173
+ - `marketing/social-posts.md` — all posts from Step 4
174
+ - `marketing/seo-meta.json` — SEO data from Step 5
175
+ - `marketing/seo-audit.md` — SEO audit results from Step 5.5 (if existing site)
176
+ - `marketing/video-script.md` — video plan from Step 6
177
+
178
+ ## Constraints
179
+
180
+ 1. MUST base all claims on actual product capabilities — no aspirational features
181
+ 2. MUST verify deploy is live before generating marketing materials
182
+ 3. MUST NOT fabricate testimonials, stats, or benchmarks
183
+ 4. MUST include accurate technical details — wrong tech specs destroy credibility
184
+
185
+ ## Output Format
186
+
187
+ ```
188
+ ## Marketing Assets
189
+ - **Landing Copy**: [generated — headline, subheadline, value props, features, CTAs]
190
+ - **Social Posts**: Twitter thread (N tweets), LinkedIn post, PH tagline
191
+ - **SEO Metadata**: title, description, OG tags, N target keywords
192
+ - **Visuals**: OG image, Twitter card, PH thumbnail
193
+ - **Video**: 60s demo script with shot list
194
+
195
+ ### Generated Files
196
+ - marketing/landing-copy.md
197
+ - marketing/social-posts.md
198
+ - marketing/seo-meta.json
199
+ - marketing/video-script.md
200
+ ```
201
+
202
+ ## Sharp Edges
203
+
204
+ Known failure modes for this skill. Check these before declaring done.
205
+
206
+ | Failure Mode | Severity | Mitigation |
207
+ |---|---|---|
208
+ | Fabricating statistics, benchmarks, or testimonials | CRITICAL | Constraint 3: no fabrication — if no real stats exist, use honest placeholder copy |
209
+ | Generating copy before deploy verified live | HIGH | Constraint 2: deploy must be confirmed live before marketing runs |
210
+ | Copy not based on actual codebase features (invented value props) | HIGH | scout must run in Step 1 — features extracted from actual code, not assumptions |
211
+ | Missing SEO keyword analysis (no research call) | MEDIUM | Step 2: research call for keyword data is mandatory for SEO section |
212
+ | Files saved without user approval | MEDIUM | Step 7: present ALL assets to user, wait for approval before writing files |
213
+
214
+ ## Done When
215
+
216
+ - scout completed and actual feature list extracted
217
+ - Brand voice contract established (or existing one loaded)
218
+ - Competitor/trend analysis done via trend-scout + research
219
+ - Hero copy, value props, social posts, and SEO metadata generated (following brand voice)
220
+ - SEO audit completed (if existing site) with pass/fail results
221
+ - Visual assets requested from asset-creator
222
+ - Video script requested from video-creator (if requested)
223
+ - User has approved all content
224
+ - Files saved to marketing/ directory
225
+ - Marketing Assets report emitted with file list
226
+
227
+ ## Cost Profile
228
+
229
+ ~2000-5000 tokens input, ~1000-3000 tokens output. Sonnet for copywriting quality.