@miranda0808/maya-codex 0.1.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.
- package/README.md +30 -0
- package/bin/maya-codex.js +36 -0
- package/package.json +19 -0
- package/payload/.agents/skills/ab-test-setup/SKILL.md +266 -0
- package/payload/.agents/skills/ab-test-setup/evals/evals.json +105 -0
- package/payload/.agents/skills/ab-test-setup/references/sample-size-guide.md +263 -0
- package/payload/.agents/skills/ab-test-setup/references/test-templates.md +277 -0
- package/payload/.agents/skills/ad-creative/SKILL.md +362 -0
- package/payload/.agents/skills/ad-creative/evals/evals.json +90 -0
- package/payload/.agents/skills/ad-creative/references/generative-tools.md +637 -0
- package/payload/.agents/skills/ad-creative/references/platform-specs.md +213 -0
- package/payload/.agents/skills/ai-seo/SKILL.md +398 -0
- package/payload/.agents/skills/ai-seo/evals/evals.json +90 -0
- package/payload/.agents/skills/ai-seo/references/content-patterns.md +285 -0
- package/payload/.agents/skills/ai-seo/references/platform-ranking-factors.md +152 -0
- package/payload/.agents/skills/analytics-tracking/SKILL.md +309 -0
- package/payload/.agents/skills/analytics-tracking/evals/evals.json +90 -0
- package/payload/.agents/skills/analytics-tracking/references/event-library.md +260 -0
- package/payload/.agents/skills/analytics-tracking/references/ga4-implementation.md +300 -0
- package/payload/.agents/skills/analytics-tracking/references/gtm-implementation.md +390 -0
- package/payload/.agents/skills/churn-prevention/SKILL.md +424 -0
- package/payload/.agents/skills/churn-prevention/evals/evals.json +93 -0
- package/payload/.agents/skills/churn-prevention/references/cancel-flow-patterns.md +316 -0
- package/payload/.agents/skills/churn-prevention/references/dunning-playbook.md +408 -0
- package/payload/.agents/skills/cold-email/SKILL.md +158 -0
- package/payload/.agents/skills/cold-email/evals/evals.json +94 -0
- package/payload/.agents/skills/cold-email/references/benchmarks.md +83 -0
- package/payload/.agents/skills/cold-email/references/follow-up-sequences.md +81 -0
- package/payload/.agents/skills/cold-email/references/frameworks.md +90 -0
- package/payload/.agents/skills/cold-email/references/personalization.md +79 -0
- package/payload/.agents/skills/cold-email/references/subject-lines.md +53 -0
- package/payload/.agents/skills/competitor-alternatives/SKILL.md +256 -0
- package/payload/.agents/skills/competitor-alternatives/evals/evals.json +93 -0
- package/payload/.agents/skills/competitor-alternatives/references/content-architecture.md +271 -0
- package/payload/.agents/skills/competitor-alternatives/references/templates.md +223 -0
- package/payload/.agents/skills/content-strategy/SKILL.md +359 -0
- package/payload/.agents/skills/content-strategy/evals/evals.json +90 -0
- package/payload/.agents/skills/copy-editing/SKILL.md +447 -0
- package/payload/.agents/skills/copy-editing/evals/evals.json +89 -0
- package/payload/.agents/skills/copy-editing/references/plain-english-alternatives.md +394 -0
- package/payload/.agents/skills/copywriting/SKILL.md +252 -0
- package/payload/.agents/skills/copywriting/evals/evals.json +111 -0
- package/payload/.agents/skills/copywriting/references/copy-frameworks.md +344 -0
- package/payload/.agents/skills/copywriting/references/natural-transitions.md +272 -0
- package/payload/.agents/skills/email-sequence/SKILL.md +309 -0
- package/payload/.agents/skills/email-sequence/evals/evals.json +93 -0
- package/payload/.agents/skills/email-sequence/references/copy-guidelines.md +113 -0
- package/payload/.agents/skills/email-sequence/references/email-types.md +515 -0
- package/payload/.agents/skills/email-sequence/references/sequence-templates.md +168 -0
- package/payload/.agents/skills/form-cro/SKILL.md +429 -0
- package/payload/.agents/skills/form-cro/evals/evals.json +90 -0
- package/payload/.agents/skills/free-tool-strategy/SKILL.md +178 -0
- package/payload/.agents/skills/free-tool-strategy/evals/evals.json +90 -0
- package/payload/.agents/skills/free-tool-strategy/references/tool-types.md +217 -0
- package/payload/.agents/skills/launch-strategy/SKILL.md +353 -0
- package/payload/.agents/skills/launch-strategy/evals/evals.json +91 -0
- package/payload/.agents/skills/marketing-ideas/SKILL.md +167 -0
- package/payload/.agents/skills/marketing-ideas/evals/evals.json +90 -0
- package/payload/.agents/skills/marketing-ideas/references/ideas-by-category.md +366 -0
- package/payload/.agents/skills/marketing-psychology/SKILL.md +455 -0
- package/payload/.agents/skills/marketing-psychology/evals/evals.json +88 -0
- package/payload/.agents/skills/onboarding-cro/SKILL.md +220 -0
- package/payload/.agents/skills/onboarding-cro/evals/evals.json +92 -0
- package/payload/.agents/skills/onboarding-cro/references/experiments.md +258 -0
- package/payload/.agents/skills/page-cro/SKILL.md +182 -0
- package/payload/.agents/skills/page-cro/evals/evals.json +111 -0
- package/payload/.agents/skills/page-cro/references/experiments.md +248 -0
- package/payload/.agents/skills/paid-ads/SKILL.md +315 -0
- package/payload/.agents/skills/paid-ads/evals/evals.json +90 -0
- package/payload/.agents/skills/paid-ads/references/ad-copy-templates.md +207 -0
- package/payload/.agents/skills/paid-ads/references/audience-targeting.md +243 -0
- package/payload/.agents/skills/paid-ads/references/platform-setup-checklists.md +277 -0
- package/payload/.agents/skills/paywall-upgrade-cro/SKILL.md +227 -0
- package/payload/.agents/skills/paywall-upgrade-cro/evals/evals.json +93 -0
- package/payload/.agents/skills/paywall-upgrade-cro/references/experiments.md +164 -0
- package/payload/.agents/skills/popup-cro/SKILL.md +453 -0
- package/payload/.agents/skills/popup-cro/evals/evals.json +94 -0
- package/payload/.agents/skills/pricing-strategy/SKILL.md +231 -0
- package/payload/.agents/skills/pricing-strategy/evals/evals.json +90 -0
- package/payload/.agents/skills/pricing-strategy/references/research-methods.md +152 -0
- package/payload/.agents/skills/pricing-strategy/references/tier-structure.md +232 -0
- package/payload/.agents/skills/product-marketing-context/SKILL.md +27 -0
- package/payload/.agents/skills/product-marketing-context/evals/evals.json +40 -0
- package/payload/.agents/skills/programmatic-seo/SKILL.md +238 -0
- package/payload/.agents/skills/programmatic-seo/evals/evals.json +94 -0
- package/payload/.agents/skills/programmatic-seo/references/playbooks.md +308 -0
- package/payload/.agents/skills/referral-program/SKILL.md +255 -0
- package/payload/.agents/skills/referral-program/evals/evals.json +89 -0
- package/payload/.agents/skills/referral-program/references/affiliate-programs.md +164 -0
- package/payload/.agents/skills/referral-program/references/program-examples.md +143 -0
- package/payload/.agents/skills/revops/SKILL.md +343 -0
- package/payload/.agents/skills/revops/evals/evals.json +91 -0
- package/payload/.agents/skills/revops/references/automation-playbooks.md +290 -0
- package/payload/.agents/skills/revops/references/lifecycle-definitions.md +278 -0
- package/payload/.agents/skills/revops/references/routing-rules.md +203 -0
- package/payload/.agents/skills/revops/references/scoring-models.md +247 -0
- package/payload/.agents/skills/sales-enablement/SKILL.md +349 -0
- package/payload/.agents/skills/sales-enablement/evals/evals.json +91 -0
- package/payload/.agents/skills/sales-enablement/references/deck-frameworks.md +263 -0
- package/payload/.agents/skills/sales-enablement/references/demo-scripts.md +355 -0
- package/payload/.agents/skills/sales-enablement/references/objection-library.md +270 -0
- package/payload/.agents/skills/sales-enablement/references/one-pager-templates.md +208 -0
- package/payload/.agents/skills/schema-markup/SKILL.md +179 -0
- package/payload/.agents/skills/schema-markup/evals/evals.json +87 -0
- package/payload/.agents/skills/schema-markup/references/schema-examples.md +398 -0
- package/payload/.agents/skills/seo-audit/SKILL.md +412 -0
- package/payload/.agents/skills/seo-audit/evals/evals.json +136 -0
- package/payload/.agents/skills/seo-audit/references/ai-writing-detection.md +200 -0
- package/payload/.agents/skills/signup-flow-cro/SKILL.md +359 -0
- package/payload/.agents/skills/signup-flow-cro/evals/evals.json +88 -0
- package/payload/.agents/skills/site-architecture/SKILL.md +357 -0
- package/payload/.agents/skills/site-architecture/evals/evals.json +88 -0
- package/payload/.agents/skills/site-architecture/references/mermaid-templates.md +216 -0
- package/payload/.agents/skills/site-architecture/references/navigation-patterns.md +305 -0
- package/payload/.agents/skills/site-architecture/references/site-type-templates.md +293 -0
- package/payload/.agents/skills/social-content/SKILL.md +278 -0
- package/payload/.agents/skills/social-content/evals/evals.json +92 -0
- package/payload/.agents/skills/social-content/references/platforms.md +170 -0
- package/payload/.agents/skills/social-content/references/post-templates.md +177 -0
- package/payload/.agents/skills/social-content/references/reverse-engineering.md +195 -0
- package/payload/.maya/executor.md +79 -0
- package/payload/.maya/meta-api-agent.md +48 -0
- package/payload/.maya/modes/consult.md +63 -0
- package/payload/.maya/modes/task.md +97 -0
- package/payload/.maya/planner.md +69 -0
- package/payload/.maya/researcher.md +51 -0
- package/payload/.maya/templates/plan.md +77 -0
- package/payload/.maya/templates/state.md +87 -0
- package/payload/.maya/templates/task-packet.md +75 -0
- package/payload/MAYA-CATALOG.md +115 -0
- package/payload/MAYA-DEPENDENCIES.md +58 -0
- package/payload/MAYA.md +151 -0
- package/payload/campaigns/README.md +14 -0
- package/payload/commands/maya-consult.md +28 -0
- package/payload/commands/maya-task.md +38 -0
- package/payload/commands/product.md +55 -0
- package/payload/research/README.md +14 -0
- package/payload/templates/README.md +15 -0
- package/payload/templates/plan.md +77 -0
- package/payload/templates/state.md +87 -0
- package/payload/templates/task-packet.md +75 -0
- package/payload/tools/REGISTRY.md +368 -0
- package/payload/tools/clis/README.md +187 -0
- package/payload/tools/clis/activecampaign.js +435 -0
- package/payload/tools/clis/adobe-analytics.js +161 -0
- package/payload/tools/clis/ahrefs.js +192 -0
- package/payload/tools/clis/amplitude.js +182 -0
- package/payload/tools/clis/apollo.js +142 -0
- package/payload/tools/clis/beehiiv.js +245 -0
- package/payload/tools/clis/brevo.js +368 -0
- package/payload/tools/clis/buffer.js +260 -0
- package/payload/tools/clis/calendly.js +253 -0
- package/payload/tools/clis/clearbit.js +163 -0
- package/payload/tools/clis/customer-io.js +205 -0
- package/payload/tools/clis/dataforseo.js +257 -0
- package/payload/tools/clis/demio.js +149 -0
- package/payload/tools/clis/dub.js +158 -0
- package/payload/tools/clis/g2.js +186 -0
- package/payload/tools/clis/ga4.js +194 -0
- package/payload/tools/clis/google-ads.js +189 -0
- package/payload/tools/clis/google-search-console.js +166 -0
- package/payload/tools/clis/hotjar.js +167 -0
- package/payload/tools/clis/hunter.js +249 -0
- package/payload/tools/clis/instantly.js +270 -0
- package/payload/tools/clis/intercom.js +399 -0
- package/payload/tools/clis/keywords-everywhere.js +185 -0
- package/payload/tools/clis/kit.js +232 -0
- package/payload/tools/clis/klaviyo.js +348 -0
- package/payload/tools/clis/lemlist.js +221 -0
- package/payload/tools/clis/linkedin-ads.js +185 -0
- package/payload/tools/clis/livestorm.js +292 -0
- package/payload/tools/clis/mailchimp.js +220 -0
- package/payload/tools/clis/mention-me.js +161 -0
- package/payload/tools/clis/meta-ads.js +181 -0
- package/payload/tools/clis/mixpanel.js +248 -0
- package/payload/tools/clis/onesignal.js +241 -0
- package/payload/tools/clis/optimizely.js +233 -0
- package/payload/tools/clis/paddle.js +385 -0
- package/payload/tools/clis/partnerstack.js +382 -0
- package/payload/tools/clis/plausible.js +249 -0
- package/payload/tools/clis/postmark.js +375 -0
- package/payload/tools/clis/resend.js +370 -0
- package/payload/tools/clis/rewardful.js +160 -0
- package/payload/tools/clis/savvycal.js +223 -0
- package/payload/tools/clis/segment.js +192 -0
- package/payload/tools/clis/semrush.js +207 -0
- package/payload/tools/clis/sendgrid.js +211 -0
- package/payload/tools/clis/snov.js +237 -0
- package/payload/tools/clis/tiktok-ads.js +190 -0
- package/payload/tools/clis/tolt.js +153 -0
- package/payload/tools/clis/trustpilot.js +276 -0
- package/payload/tools/clis/typeform.js +269 -0
- package/payload/tools/clis/wistia.js +256 -0
- package/payload/tools/clis/zapier.js +160 -0
- package/payload/tools/integrations/activecampaign.md +337 -0
- package/payload/tools/integrations/adobe-analytics.md +156 -0
- package/payload/tools/integrations/ahrefs.md +142 -0
- package/payload/tools/integrations/amplitude.md +135 -0
- package/payload/tools/integrations/apollo.md +148 -0
- package/payload/tools/integrations/beehiiv.md +157 -0
- package/payload/tools/integrations/brevo.md +268 -0
- package/payload/tools/integrations/buffer.md +138 -0
- package/payload/tools/integrations/calendly.md +161 -0
- package/payload/tools/integrations/clearbit.md +142 -0
- package/payload/tools/integrations/customer-io.md +187 -0
- package/payload/tools/integrations/dataforseo.md +165 -0
- package/payload/tools/integrations/demio.md +182 -0
- package/payload/tools/integrations/dub-co.md +160 -0
- package/payload/tools/integrations/g2.md +179 -0
- package/payload/tools/integrations/ga4.md +126 -0
- package/payload/tools/integrations/google-ads.md +159 -0
- package/payload/tools/integrations/google-search-console.md +147 -0
- package/payload/tools/integrations/hotjar.md +147 -0
- package/payload/tools/integrations/hubspot.md +178 -0
- package/payload/tools/integrations/hunter.md +90 -0
- package/payload/tools/integrations/instantly.md +104 -0
- package/payload/tools/integrations/intercom.md +292 -0
- package/payload/tools/integrations/keywords-everywhere.md +207 -0
- package/payload/tools/integrations/kit.md +167 -0
- package/payload/tools/integrations/klaviyo.md +228 -0
- package/payload/tools/integrations/lemlist.md +110 -0
- package/payload/tools/integrations/linkedin-ads.md +164 -0
- package/payload/tools/integrations/livestorm.md +313 -0
- package/payload/tools/integrations/mailchimp.md +150 -0
- package/payload/tools/integrations/mention-me.md +160 -0
- package/payload/tools/integrations/meta-ads.md +147 -0
- package/payload/tools/integrations/mixpanel.md +137 -0
- package/payload/tools/integrations/onesignal.md +229 -0
- package/payload/tools/integrations/optimizely.md +171 -0
- package/payload/tools/integrations/paddle.md +212 -0
- package/payload/tools/integrations/partnerstack.md +222 -0
- package/payload/tools/integrations/plausible.md +177 -0
- package/payload/tools/integrations/posthog.md +151 -0
- package/payload/tools/integrations/postmark.md +234 -0
- package/payload/tools/integrations/resend.md +168 -0
- package/payload/tools/integrations/rewardful.md +147 -0
- package/payload/tools/integrations/salesforce.md +150 -0
- package/payload/tools/integrations/savvycal.md +181 -0
- package/payload/tools/integrations/segment.md +159 -0
- package/payload/tools/integrations/semrush.md +121 -0
- package/payload/tools/integrations/sendgrid.md +161 -0
- package/payload/tools/integrations/shopify.md +176 -0
- package/payload/tools/integrations/snov.md +94 -0
- package/payload/tools/integrations/stripe.md +148 -0
- package/payload/tools/integrations/tiktok-ads.md +161 -0
- package/payload/tools/integrations/tolt.md +144 -0
- package/payload/tools/integrations/trustpilot.md +191 -0
- package/payload/tools/integrations/typeform.md +190 -0
- package/payload/tools/integrations/webflow.md +198 -0
- package/payload/tools/integrations/wistia.md +164 -0
- package/payload/tools/integrations/wordpress.md +175 -0
- package/payload/tools/integrations/zapier.md +150 -0
- package/payload/tools/meta/README.md +55 -0
- package/payload/tools/meta/meta-cache-schema.md +65 -0
- package/payload/tools/meta/meta-fetch.ps1 +324 -0
- package/payload/tools/meta/meta-fetch.test.ps1 +38 -0
- package/vendor/shared-installer/manifests/claude-files.json +13 -0
- package/vendor/shared-installer/manifests/codex-files.json +13 -0
- package/vendor/shared-installer/manifests/common-files.json +13 -0
- package/vendor/shared-installer/package.json +15 -0
- package/vendor/shared-installer/src/bootstrap.js +12 -0
- package/vendor/shared-installer/src/cli-options.js +53 -0
- package/vendor/shared-installer/src/fs.js +105 -0
- package/vendor/shared-installer/src/index.js +44 -0
- package/vendor/shared-installer/src/install.js +157 -0
- package/vendor/shared-installer/src/manifest.js +52 -0
- package/vendor/shared-installer/templates/claude/.claude/skills/.gitkeep +1 -0
- package/vendor/shared-installer/templates/claude/CLAUDE.md +27 -0
- package/vendor/shared-installer/templates/codex/.agent/skills/.gitkeep +1 -0
- package/vendor/shared-installer/templates/codex/AGENTS.md +27 -0
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# Post Format Templates
|
|
2
|
+
|
|
3
|
+
Ready-to-use templates for different platforms and content types.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
- LinkedIn Post Templates (The Story Post, The Contrarian Take, The List Post, The How-To)
|
|
7
|
+
- Twitter/X Thread Templates (The Tutorial Thread, The Story Thread, The Breakdown Thread)
|
|
8
|
+
- Instagram Templates (The Carousel Hook, The Reel Script)
|
|
9
|
+
- Hook Formulas (Curiosity Hooks, Story Hooks, Value Hooks, Contrarian Hooks, Social Proof Hooks)
|
|
10
|
+
|
|
11
|
+
## LinkedIn Post Templates
|
|
12
|
+
|
|
13
|
+
### The Story Post
|
|
14
|
+
```
|
|
15
|
+
[Hook: Unexpected outcome or lesson]
|
|
16
|
+
|
|
17
|
+
[Set the scene: When/where this happened]
|
|
18
|
+
|
|
19
|
+
[The challenge you faced]
|
|
20
|
+
|
|
21
|
+
[What you tried / what happened]
|
|
22
|
+
|
|
23
|
+
[The turning point]
|
|
24
|
+
|
|
25
|
+
[The result]
|
|
26
|
+
|
|
27
|
+
[The lesson for readers]
|
|
28
|
+
|
|
29
|
+
[Question to prompt engagement]
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### The Contrarian Take
|
|
33
|
+
```
|
|
34
|
+
[Unpopular opinion stated boldly]
|
|
35
|
+
|
|
36
|
+
Here's why:
|
|
37
|
+
|
|
38
|
+
[Reason 1]
|
|
39
|
+
[Reason 2]
|
|
40
|
+
[Reason 3]
|
|
41
|
+
|
|
42
|
+
[What you recommend instead]
|
|
43
|
+
|
|
44
|
+
[Invite discussion: "Am I wrong?"]
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### The List Post
|
|
48
|
+
```
|
|
49
|
+
[X things I learned about [topic] after [credibility builder]:
|
|
50
|
+
|
|
51
|
+
1. [Point] — [Brief explanation]
|
|
52
|
+
|
|
53
|
+
2. [Point] — [Brief explanation]
|
|
54
|
+
|
|
55
|
+
3. [Point] — [Brief explanation]
|
|
56
|
+
|
|
57
|
+
[Wrap-up insight]
|
|
58
|
+
|
|
59
|
+
Which resonates most with you?
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### The How-To
|
|
63
|
+
```
|
|
64
|
+
How to [achieve outcome] in [timeframe]:
|
|
65
|
+
|
|
66
|
+
Step 1: [Action]
|
|
67
|
+
↳ [Why this matters]
|
|
68
|
+
|
|
69
|
+
Step 2: [Action]
|
|
70
|
+
↳ [Key detail]
|
|
71
|
+
|
|
72
|
+
Step 3: [Action]
|
|
73
|
+
↳ [Common mistake to avoid]
|
|
74
|
+
|
|
75
|
+
[Result you can expect]
|
|
76
|
+
|
|
77
|
+
[CTA or question]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Twitter/X Thread Templates
|
|
83
|
+
|
|
84
|
+
### The Tutorial Thread
|
|
85
|
+
```
|
|
86
|
+
Tweet 1: [Hook + promise of value]
|
|
87
|
+
|
|
88
|
+
"Here's exactly how to [outcome] (step-by-step):"
|
|
89
|
+
|
|
90
|
+
Tweet 2-7: [One step per tweet with details]
|
|
91
|
+
|
|
92
|
+
Final tweet: [Summary + CTA]
|
|
93
|
+
|
|
94
|
+
"If this was helpful, follow me for more on [topic]"
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### The Story Thread
|
|
98
|
+
```
|
|
99
|
+
Tweet 1: [Intriguing hook]
|
|
100
|
+
|
|
101
|
+
"[Time] ago, [unexpected thing happened]. Here's the full story:"
|
|
102
|
+
|
|
103
|
+
Tweet 2-6: [Story beats, building tension]
|
|
104
|
+
|
|
105
|
+
Tweet 7: [Resolution and lesson]
|
|
106
|
+
|
|
107
|
+
Final tweet: [Takeaway + engagement ask]
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### The Breakdown Thread
|
|
111
|
+
```
|
|
112
|
+
Tweet 1: [Company/person] just [did thing].
|
|
113
|
+
|
|
114
|
+
Here's why it's genius (and what you can learn):
|
|
115
|
+
|
|
116
|
+
Tweet 2-6: [Analysis points]
|
|
117
|
+
|
|
118
|
+
Tweet 7: [Your key takeaway]
|
|
119
|
+
|
|
120
|
+
"[Related insight + follow CTA]"
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Instagram Templates
|
|
126
|
+
|
|
127
|
+
### The Carousel Hook
|
|
128
|
+
```
|
|
129
|
+
[Slide 1: Bold statement or question]
|
|
130
|
+
[Slides 2-9: One point per slide, visual + text]
|
|
131
|
+
[Slide 10: Summary + CTA]
|
|
132
|
+
|
|
133
|
+
Caption: [Expand on the topic, add context, include CTA]
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### The Reel Script
|
|
137
|
+
```
|
|
138
|
+
Hook (0-2 sec): [Pattern interrupt or bold claim]
|
|
139
|
+
Setup (2-5 sec): [Context for the tip]
|
|
140
|
+
Value (5-25 sec): [The actual advice/content]
|
|
141
|
+
CTA (25-30 sec): [Follow, comment, share, link]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Hook Formulas
|
|
147
|
+
|
|
148
|
+
The first line determines whether anyone reads the rest.
|
|
149
|
+
|
|
150
|
+
### Curiosity Hooks
|
|
151
|
+
- "I was wrong about [common belief]."
|
|
152
|
+
- "The real reason [outcome] happens isn't what you think."
|
|
153
|
+
- "[Impressive result] — and it only took [surprisingly short time]."
|
|
154
|
+
- "Nobody talks about [insider knowledge]."
|
|
155
|
+
|
|
156
|
+
### Story Hooks
|
|
157
|
+
- "Last week, [unexpected thing] happened."
|
|
158
|
+
- "I almost [big mistake/failure]."
|
|
159
|
+
- "3 years ago, I [past state]. Today, [current state]."
|
|
160
|
+
- "[Person] told me something I'll never forget."
|
|
161
|
+
|
|
162
|
+
### Value Hooks
|
|
163
|
+
- "How to [desirable outcome] (without [common pain]):"
|
|
164
|
+
- "[Number] [things] that [outcome]:"
|
|
165
|
+
- "The simplest way to [outcome]:"
|
|
166
|
+
- "Stop [common mistake]. Do this instead:"
|
|
167
|
+
|
|
168
|
+
### Contrarian Hooks
|
|
169
|
+
- "Unpopular opinion: [bold statement]"
|
|
170
|
+
- "[Common advice] is wrong. Here's why:"
|
|
171
|
+
- "I stopped [common practice] and [positive result]."
|
|
172
|
+
- "Everyone says [X]. The truth is [Y]."
|
|
173
|
+
|
|
174
|
+
### Social Proof Hooks
|
|
175
|
+
- "We [achieved result] in [timeframe]. Here's the full story:"
|
|
176
|
+
- "[Number] people asked me about [topic]. Here's my answer:"
|
|
177
|
+
- "[Authority figure] taught me [lesson]."
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
# Reverse Engineering Viral Content
|
|
2
|
+
|
|
3
|
+
Instead of guessing what works, systematically analyze top-performing content in your niche and extract proven patterns.
|
|
4
|
+
|
|
5
|
+
## Contents
|
|
6
|
+
- The 6-Step Framework (Niche ID, Scrape, Analyze, Playbook, Layer Voice, Convert)
|
|
7
|
+
- The Formula
|
|
8
|
+
- Reverse Engineering Checklist
|
|
9
|
+
|
|
10
|
+
## The 6-Step Framework
|
|
11
|
+
|
|
12
|
+
### 1. NICHE ID — Find Top Creators
|
|
13
|
+
|
|
14
|
+
Identify 10-20 creators in your space who consistently get high engagement:
|
|
15
|
+
|
|
16
|
+
**Selection criteria:**
|
|
17
|
+
- Posting consistently (3+ times/week)
|
|
18
|
+
- High engagement rate relative to follower count
|
|
19
|
+
- Audience overlap with your target market
|
|
20
|
+
- Mix of established and rising creators
|
|
21
|
+
|
|
22
|
+
**Where to find them:**
|
|
23
|
+
- LinkedIn: Search by industry keywords, check "People also viewed"
|
|
24
|
+
- Twitter/X: Check who your target audience follows and engages with
|
|
25
|
+
- Use tools like SparkToro, Followerwonk, or manual research
|
|
26
|
+
- Look at who gets featured in industry newsletters
|
|
27
|
+
|
|
28
|
+
### 2. SCRAPE — Collect Posts at Scale
|
|
29
|
+
|
|
30
|
+
Gather 500-1000+ posts from your identified creators for analysis:
|
|
31
|
+
|
|
32
|
+
**Tools:**
|
|
33
|
+
- **Apify** — LinkedIn scraper, Twitter scraper actors
|
|
34
|
+
- **Phantom Buster** — Multi-platform automation
|
|
35
|
+
- **Export tools** — Platform-specific export features
|
|
36
|
+
- **Manual collection** — For smaller datasets, copy/paste into spreadsheet
|
|
37
|
+
|
|
38
|
+
**Data to collect:**
|
|
39
|
+
- Post text/content
|
|
40
|
+
- Engagement metrics (likes, comments, shares, saves)
|
|
41
|
+
- Post format (text-only, carousel, video, image)
|
|
42
|
+
- Posting time/day
|
|
43
|
+
- Hook/first line
|
|
44
|
+
- CTA used
|
|
45
|
+
- Topic/theme
|
|
46
|
+
|
|
47
|
+
### 3. ANALYZE — Extract What Actually Works
|
|
48
|
+
|
|
49
|
+
Sort and analyze the data to find patterns:
|
|
50
|
+
|
|
51
|
+
**Quantitative analysis:**
|
|
52
|
+
- Rank posts by engagement rate
|
|
53
|
+
- Identify top 10% performers
|
|
54
|
+
- Look for format patterns (do carousels outperform?)
|
|
55
|
+
- Check timing patterns (best days/times)
|
|
56
|
+
- Compare topic performance
|
|
57
|
+
|
|
58
|
+
**Qualitative analysis:**
|
|
59
|
+
- What hooks do top posts use?
|
|
60
|
+
- How long are high-performing posts?
|
|
61
|
+
- What emotional triggers appear?
|
|
62
|
+
- What formats repeat?
|
|
63
|
+
- What topics consistently perform?
|
|
64
|
+
|
|
65
|
+
**Questions to answer:**
|
|
66
|
+
- What's the average length of top posts?
|
|
67
|
+
- Which hook types appear most in top 10%?
|
|
68
|
+
- What CTAs drive most comments?
|
|
69
|
+
- What topics get saved/shared most?
|
|
70
|
+
|
|
71
|
+
### 4. PLAYBOOK — Codify Patterns
|
|
72
|
+
|
|
73
|
+
Document repeatable patterns you can use:
|
|
74
|
+
|
|
75
|
+
**Hook patterns to codify:**
|
|
76
|
+
```
|
|
77
|
+
Pattern: "I [unexpected action] and [surprising result]"
|
|
78
|
+
Example: "I stopped posting daily and my engagement doubled"
|
|
79
|
+
Why it works: Curiosity gap + contrarian
|
|
80
|
+
|
|
81
|
+
Pattern: "[Specific number] [things] that [outcome]:"
|
|
82
|
+
Example: "7 pricing mistakes that cost me $50K:"
|
|
83
|
+
Why it works: Specificity + loss aversion
|
|
84
|
+
|
|
85
|
+
Pattern: "[Controversial take]"
|
|
86
|
+
Example: "Cold outreach is dead."
|
|
87
|
+
Why it works: Pattern interrupt + invites debate
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Format patterns:**
|
|
91
|
+
- Carousel: Hook slide → Problem → Solution steps → CTA
|
|
92
|
+
- Thread: Hook → Promise → Deliver → Recap → CTA
|
|
93
|
+
- Story post: Hook → Setup → Conflict → Resolution → Lesson
|
|
94
|
+
|
|
95
|
+
**CTA patterns:**
|
|
96
|
+
- Question: "What would you add?"
|
|
97
|
+
- Agreement: "Agree or disagree?"
|
|
98
|
+
- Share: "Tag someone who needs this"
|
|
99
|
+
- Save: "Save this for later"
|
|
100
|
+
|
|
101
|
+
### 5. LAYER VOICE — Apply Direct Response Principles
|
|
102
|
+
|
|
103
|
+
Take proven patterns and make them yours with these voice principles:
|
|
104
|
+
|
|
105
|
+
**"Smart friend who figured something out"**
|
|
106
|
+
- Write like you're texting advice to a friend
|
|
107
|
+
- Share discoveries, not lectures
|
|
108
|
+
- Use "I found that..." not "You should..."
|
|
109
|
+
- Be helpful, not preachy
|
|
110
|
+
|
|
111
|
+
**Specific > Vague**
|
|
112
|
+
```
|
|
113
|
+
❌ "I made good revenue"
|
|
114
|
+
✅ "I made $47,329"
|
|
115
|
+
|
|
116
|
+
❌ "It took a while"
|
|
117
|
+
✅ "It took 47 days"
|
|
118
|
+
|
|
119
|
+
❌ "A lot of people"
|
|
120
|
+
✅ "2,847 people"
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
**Short. Breathe. Land.**
|
|
124
|
+
- One idea per sentence
|
|
125
|
+
- Use line breaks liberally
|
|
126
|
+
- Let important points stand alone
|
|
127
|
+
- Create rhythm: short, short, longer explanation
|
|
128
|
+
|
|
129
|
+
```
|
|
130
|
+
❌ "I spent three years building my business the wrong way before I finally realized that the key to success was focusing on fewer things and doing them exceptionally well."
|
|
131
|
+
|
|
132
|
+
✅ "I built wrong for 3 years.
|
|
133
|
+
|
|
134
|
+
Then I figured it out.
|
|
135
|
+
|
|
136
|
+
Focus on less.
|
|
137
|
+
Do it exceptionally well.
|
|
138
|
+
|
|
139
|
+
Everything changed."
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
**Write from emotion**
|
|
143
|
+
- Start with how you felt, not what you did
|
|
144
|
+
- Use emotional words: frustrated, excited, terrified, obsessed
|
|
145
|
+
- Show vulnerability when authentic
|
|
146
|
+
- Connect the feeling to the lesson
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
❌ "Here's what I learned about pricing"
|
|
150
|
+
|
|
151
|
+
✅ "I was terrified to raise my prices.
|
|
152
|
+
|
|
153
|
+
My hands were shaking when I sent the email.
|
|
154
|
+
|
|
155
|
+
Here's what happened..."
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
### 6. CONVERT — Turn Attention into Action
|
|
159
|
+
|
|
160
|
+
Bridge from engagement to business results:
|
|
161
|
+
|
|
162
|
+
**Soft conversions:**
|
|
163
|
+
- Newsletter signups in bio/comments
|
|
164
|
+
- Free resource offers in follow-up comments
|
|
165
|
+
- DM triggers ("Comment X and I'll send you...")
|
|
166
|
+
- Profile visits → optimized profile with clear CTA
|
|
167
|
+
|
|
168
|
+
**Direct conversions:**
|
|
169
|
+
- Link in comments (not post body on LinkedIn)
|
|
170
|
+
- Contextual product mentions within valuable content
|
|
171
|
+
- Case study posts that naturally showcase your work
|
|
172
|
+
- "If you want help with this, DM me" (sparingly)
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## The Formula
|
|
177
|
+
|
|
178
|
+
```
|
|
179
|
+
1. Find what's already working (don't guess)
|
|
180
|
+
2. Extract the patterns (hooks, formats, CTAs)
|
|
181
|
+
3. Layer your authentic voice on top
|
|
182
|
+
4. Test and iterate based on your own data
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
## Reverse Engineering Checklist
|
|
186
|
+
|
|
187
|
+
- [ ] Identified 10-20 top creators in niche
|
|
188
|
+
- [ ] Collected 500+ posts for analysis
|
|
189
|
+
- [ ] Ranked by engagement rate
|
|
190
|
+
- [ ] Documented top 10 hook patterns
|
|
191
|
+
- [ ] Documented top 5 format patterns
|
|
192
|
+
- [ ] Documented top 5 CTA patterns
|
|
193
|
+
- [ ] Created voice guidelines (specificity, brevity, emotion)
|
|
194
|
+
- [ ] Built template library from patterns
|
|
195
|
+
- [ ] Set up tracking for your own content performance
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# maya-executor
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
|
|
5
|
+
`maya-executor` turns an approved plan into ordered execution, resumes approved campaigns, creates task packets, enforces chain boundaries, and owns state updates.
|
|
6
|
+
|
|
7
|
+
## Responsibilities
|
|
8
|
+
|
|
9
|
+
- read the approved plan and approved chain
|
|
10
|
+
- create or update `campaigns/<campaign-id>/STATE.md` immediately after approval
|
|
11
|
+
- resume from `campaigns/<campaign-id>/PLAN.md` and `campaigns/<campaign-id>/STATE.md` when an approved campaign is already in progress
|
|
12
|
+
- record the latest approved chain, approval status, handoff verification status, current packet id, current packet status, next approved pending task, output verification result, downstream readiness, resume point, and next action in state
|
|
13
|
+
- select the next approved pending task from state before any packet runs
|
|
14
|
+
- create or load `campaigns/<campaign-id>/task-packets/<task-id>.md` for one approved packet at a time
|
|
15
|
+
- package the relevant approved `PRODUCT.md` slices into each approved specialist handoff
|
|
16
|
+
- mark whether direct specialist `PRODUCT.md` reads are approved or not in each packet
|
|
17
|
+
- run only the assigned specialist for the loaded packet
|
|
18
|
+
- verify required handoff artifacts exist before each downstream step
|
|
19
|
+
- verify packet done criteria, output paths, and verification checklist results before marking a task complete
|
|
20
|
+
- update `campaigns/<campaign-id>/STATE.md` as work advances
|
|
21
|
+
- create the next approved packet only after the current packet is verified and the downstream dependency is ready
|
|
22
|
+
- stop execution on missing approval, missing artifacts, broken handoffs, failed verification, approval drift, or required reapproval
|
|
23
|
+
- keep the executed chain aligned with what Justin approved
|
|
24
|
+
- route Meta-backed work only through `tools/meta/meta-fetch.ps1`
|
|
25
|
+
- stay inside the task mode selected upstream by the command layer
|
|
26
|
+
|
|
27
|
+
## Reads
|
|
28
|
+
|
|
29
|
+
- `MAYA.md`
|
|
30
|
+
- `MAYA-CATALOG.md`
|
|
31
|
+
- `MAYA-DEPENDENCIES.md`
|
|
32
|
+
- approved `campaigns/<campaign-id>/PLAN.md`
|
|
33
|
+
- current `campaigns/<campaign-id>/STATE.md`
|
|
34
|
+
- full `PRODUCT.md` when needed to package an approved specialist handoff
|
|
35
|
+
- required `campaigns/<campaign-id>/task-packets/<task-id>.md` inputs
|
|
36
|
+
- relevant outputs from upstream steps
|
|
37
|
+
- `tools/meta/meta-cache-schema.md` when a task consumes sanitized Meta outputs
|
|
38
|
+
|
|
39
|
+
## May Invoke
|
|
40
|
+
|
|
41
|
+
- approved specialists listed in the plan
|
|
42
|
+
- `meta-api-agent` when the approved chain requires sanitized Meta data
|
|
43
|
+
- repo-local tools only through approved wrappers and documented boundaries
|
|
44
|
+
|
|
45
|
+
## Approval Requirements
|
|
46
|
+
|
|
47
|
+
- may not start without task mode already selected by the command layer
|
|
48
|
+
- may not start without an approved chain from Justin
|
|
49
|
+
- may not add new downstream steps without returning for approval
|
|
50
|
+
- may not continue when a changed downstream step, new specialist, broader direct `PRODUCT.md` read, or API-backed requirement would change the approved chain
|
|
51
|
+
- may not decide entry or switch modes on its own authority
|
|
52
|
+
- must warn before broad chains execute
|
|
53
|
+
- must stop if a required artifact is missing
|
|
54
|
+
- must stop when the plan is complete
|
|
55
|
+
|
|
56
|
+
## Response Marker
|
|
57
|
+
|
|
58
|
+
- every major executor response, resume summary, blocker summary, and completion summary should begin with `Mode: task`
|
|
59
|
+
|
|
60
|
+
## Output Contract
|
|
61
|
+
|
|
62
|
+
Executor outputs must capture:
|
|
63
|
+
- campaign-local file paths for plan, state, packets, deliverables, and research artifacts
|
|
64
|
+
- the latest approved chain and approval status
|
|
65
|
+
- the current packet id, current packet status, next approved pending task, resume point, and next action
|
|
66
|
+
- handoff verification status before downstream execution
|
|
67
|
+
- output verification results, completion timestamps, and downstream readiness for the active packet
|
|
68
|
+
- clear stop reasons when execution cannot continue
|
|
69
|
+
- packet-first specialist context rules
|
|
70
|
+
- direct `PRODUCT.md` read approval flags for each specialist packet
|
|
71
|
+
- Meta cache metadata requirements when a task consumes sanitized Meta outputs
|
|
72
|
+
- any Justin-facing resume, blocker, or completion summary derived from state should begin with `Mode: task`
|
|
73
|
+
Executor outputs may include:
|
|
74
|
+
- `campaigns/<campaign-id>/task-packets/<task-id>.md` artifacts
|
|
75
|
+
- updated `campaigns/<campaign-id>/STATE.md`
|
|
76
|
+
- handoff verification notes
|
|
77
|
+
- completed deliverable references
|
|
78
|
+
- recorded verification results for exactly one approved packet
|
|
79
|
+
- clear stop reasons when execution cannot continue
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# meta-api-agent
|
|
2
|
+
|
|
3
|
+
## Role
|
|
4
|
+
|
|
5
|
+
`meta-api-agent` is the only Maya role allowed to touch the Meta data boundary. It provides read-only, sanitized Meta artifacts for approved downstream work.
|
|
6
|
+
|
|
7
|
+
## Responsibilities
|
|
8
|
+
|
|
9
|
+
- validate approved Meta read requests
|
|
10
|
+
- use the Maya-owned wrapper to fetch or reuse safe Meta data
|
|
11
|
+
- preserve cache freshness and completeness semantics already defined by the Meta boundary
|
|
12
|
+
- pass sanitized outputs downstream without exposing credentials
|
|
13
|
+
- stop and report safe errors when validation or boundary checks fail
|
|
14
|
+
- operate only inside an already-selected task flow and never choose or change mode
|
|
15
|
+
|
|
16
|
+
## Reads
|
|
17
|
+
|
|
18
|
+
- `MAYA.md`
|
|
19
|
+
- `MAYA-DEPENDENCIES.md`
|
|
20
|
+
- `tools/meta/README.md`
|
|
21
|
+
- `tools/meta/meta-cache-schema.md`
|
|
22
|
+
- approved task inputs that justify the Meta read
|
|
23
|
+
|
|
24
|
+
## May Invoke
|
|
25
|
+
|
|
26
|
+
- `tools/meta/meta-fetch.ps1` only
|
|
27
|
+
|
|
28
|
+
## Boundary Rules
|
|
29
|
+
|
|
30
|
+
- must use `tools/meta/meta-fetch.ps1` instead of direct API calls
|
|
31
|
+
- must not call raw Meta credentials from prompts, logs, state, or task packets
|
|
32
|
+
- must not place tokens, headers, or unsafe debug output into files
|
|
33
|
+
- downstream roles receive sanitized cache artifacts or safe summaries only
|
|
34
|
+
- same-day analytics should not be treated as final by default
|
|
35
|
+
|
|
36
|
+
## Approval Requirements
|
|
37
|
+
|
|
38
|
+
- task-mode Meta reads must appear in Justin's approved chain
|
|
39
|
+
- the requested resource, action, and expected downstream use must be clear before execution
|
|
40
|
+
- missing approval or unsafe parameters stop the request
|
|
41
|
+
|
|
42
|
+
## Output Contract
|
|
43
|
+
|
|
44
|
+
Meta API agent outputs may include:
|
|
45
|
+
- sanitized cache-backed artifacts
|
|
46
|
+
- safe summaries for downstream specialists
|
|
47
|
+
- validation or failure messages that do not disclose secrets
|
|
48
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Maya Consult Mode
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Consult mode is Maya's advisory path for Justin.
|
|
6
|
+
|
|
7
|
+
Expected entrypoint:
|
|
8
|
+
- `/maya:consult`
|
|
9
|
+
|
|
10
|
+
## Mode Ownership
|
|
11
|
+
|
|
12
|
+
- the command layer selects consult mode before this contract runs
|
|
13
|
+
- this file defines consult behavior after command entry is complete
|
|
14
|
+
- consult mode must not silently switch into task mode
|
|
15
|
+
|
|
16
|
+
## Response Marker
|
|
17
|
+
|
|
18
|
+
- every major Maya response in consult mode should begin with `Mode: consult`
|
|
19
|
+
|
|
20
|
+
## Allowed Reads
|
|
21
|
+
|
|
22
|
+
Consult mode may read:
|
|
23
|
+
- `MAYA.md`
|
|
24
|
+
- `MAYA-CATALOG.md`
|
|
25
|
+
- `MAYA-DEPENDENCIES.md`
|
|
26
|
+
- `PRODUCT.md` when it exists
|
|
27
|
+
- selected prior outputs, research notes, and approved reference docs needed for the advisory answer
|
|
28
|
+
|
|
29
|
+
## Allowed Outputs
|
|
30
|
+
|
|
31
|
+
Consult mode may produce:
|
|
32
|
+
- advice
|
|
33
|
+
- options and trade-offs
|
|
34
|
+
- suggested plans
|
|
35
|
+
- lightweight briefs or notes when Justin explicitly asks for them
|
|
36
|
+
|
|
37
|
+
## Disallowed Default Behavior
|
|
38
|
+
|
|
39
|
+
Consult mode must not, by default:
|
|
40
|
+
- create or update `STATE.md`
|
|
41
|
+
- create task packets for specialists
|
|
42
|
+
- start multi-step execution
|
|
43
|
+
- invoke API-backed operational work
|
|
44
|
+
- silently escalate into task mode
|
|
45
|
+
|
|
46
|
+
## Missing Product Context Rule
|
|
47
|
+
|
|
48
|
+
If `PRODUCT.md` is missing, consult mode may still respond, but it must clearly say the advice is not brand-calibrated.
|
|
49
|
+
|
|
50
|
+
If Justin wants brand-calibrated future work, consult mode should point him to `/product` to create or expand `PRODUCT.md`.
|
|
51
|
+
|
|
52
|
+
If `PRODUCT.md` exists but is not read, consult mode should avoid implying that the answer is fully brand-aligned.
|
|
53
|
+
|
|
54
|
+
## Escalation To Task Mode
|
|
55
|
+
|
|
56
|
+
Escalation from consult mode to task mode must be explicit.
|
|
57
|
+
|
|
58
|
+
Before switching, Maya should:
|
|
59
|
+
- say that the work is moving from advisory mode to execution mode
|
|
60
|
+
- point Justin to `/maya:task` as the execution entrypoint
|
|
61
|
+
- explain that task mode requires `PRODUCT.md`, a proposed chain, and approval before execution
|
|
62
|
+
|
|
63
|
+
Consult mode may suggest a task-mode chain, but it must not run that chain on its own authority.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Maya Task Mode
|
|
2
|
+
|
|
3
|
+
## Purpose
|
|
4
|
+
|
|
5
|
+
Task mode is Maya's approval-gated execution path for Justin.
|
|
6
|
+
|
|
7
|
+
Expected entrypoint:
|
|
8
|
+
- `/maya:task`
|
|
9
|
+
|
|
10
|
+
## Mode Ownership
|
|
11
|
+
|
|
12
|
+
- the command layer selects task mode before this contract runs
|
|
13
|
+
- this file defines task behavior after command entry is complete
|
|
14
|
+
- orchestrators and specialists execute inside task mode; they do not decide it
|
|
15
|
+
|
|
16
|
+
## Response Marker
|
|
17
|
+
|
|
18
|
+
- every major Maya response in task mode should begin with `Mode: task`
|
|
19
|
+
|
|
20
|
+
## Required Reads
|
|
21
|
+
|
|
22
|
+
Task mode should read:
|
|
23
|
+
- `MAYA.md`
|
|
24
|
+
- `MAYA-CATALOG.md`
|
|
25
|
+
- `MAYA-DEPENDENCIES.md`
|
|
26
|
+
- `PRODUCT.md` for orchestrator planning, research, and packet preparation
|
|
27
|
+
- the active plan artifact at `campaigns/<campaign-id>/PLAN.md` when one exists
|
|
28
|
+
- the current `campaigns/<campaign-id>/STATE.md` when continuing an active effort
|
|
29
|
+
- upstream outputs and task inputs required by the approved chain
|
|
30
|
+
- the approved `campaigns/<campaign-id>/task-packets/<task-id>.md` before any specialist step runs
|
|
31
|
+
|
|
32
|
+
## Required Writes
|
|
33
|
+
|
|
34
|
+
Task mode may create or update:
|
|
35
|
+
- plan artifacts at `campaigns/<campaign-id>/PLAN.md`
|
|
36
|
+
- `campaigns/<campaign-id>/STATE.md`
|
|
37
|
+
- `campaigns/<campaign-id>/task-packets/<task-id>.md`
|
|
38
|
+
- downstream deliverables
|
|
39
|
+
- sanitized cache-backed references or summaries that stay inside approved boundaries
|
|
40
|
+
- campaign-specific research artifacts under `research/<campaign-id>/` when needed
|
|
41
|
+
|
|
42
|
+
## Entry Guards
|
|
43
|
+
|
|
44
|
+
Task mode is blocked when:
|
|
45
|
+
- `PRODUCT.md` is missing
|
|
46
|
+
- the requested work does not have enough detail to propose a safe chain
|
|
47
|
+
- Justin has not approved the proposed specialist chain
|
|
48
|
+
|
|
49
|
+
When task mode is blocked, Maya should stop and request the smallest missing detail instead of guessing.
|
|
50
|
+
|
|
51
|
+
If the blocker is a missing `PRODUCT.md`, Maya should point Justin to `/product` to create it before retrying task mode.
|
|
52
|
+
|
|
53
|
+
## Chain Approval Requirement
|
|
54
|
+
|
|
55
|
+
Before execution starts, Maya must show Justin:
|
|
56
|
+
- the proposed specialist and orchestrator chain
|
|
57
|
+
- the dependency and handoff order
|
|
58
|
+
- the expected outputs for each planned step
|
|
59
|
+
- any warnings for broad chains, API-backed steps, or context-specific deviations from the canonical dependency examples
|
|
60
|
+
|
|
61
|
+
The executor may run only the chain Justin approved.
|
|
62
|
+
|
|
63
|
+
Task mode may continue an approved campaign without replanning only when the approved chain, packet sequence, and required artifact paths still match the work that remains.
|
|
64
|
+
|
|
65
|
+
## State Update Rules
|
|
66
|
+
|
|
67
|
+
State belongs to the executor.
|
|
68
|
+
|
|
69
|
+
Task mode rules:
|
|
70
|
+
- `maya-executor` owns `campaigns/<campaign-id>/STATE.md` updates
|
|
71
|
+
- specialists provide outputs and handoff artifacts, but do not rewrite state arbitrarily
|
|
72
|
+
- state should record approvals, decisions, blockers, artifacts, packet status, output verification, resume point, next approved pending task, next action, and execution history
|
|
73
|
+
- Meta-backed artifacts recorded in state must use the existing cache metadata fields from `tools/meta/meta-cache-schema.md`
|
|
74
|
+
|
|
75
|
+
## Packet Execution Rules
|
|
76
|
+
|
|
77
|
+
- task mode runs one approved packet at a time
|
|
78
|
+
- the executor selects the next approved pending task from `campaigns/<campaign-id>/STATE.md`
|
|
79
|
+
- the executor loads exactly one approved packet before any specialist step runs
|
|
80
|
+
- specialists execute only the packet they were assigned and stop after producing the documented output
|
|
81
|
+
- the executor verifies the packet output and records the result before any downstream packet is created
|
|
82
|
+
- if output verification fails, task mode stops with a blocker instead of advancing the chain
|
|
83
|
+
- if the plan is complete, task mode stops cleanly and records that no further packet should run
|
|
84
|
+
|
|
85
|
+
## Artifact Handoff Rules
|
|
86
|
+
|
|
87
|
+
Before each downstream step:
|
|
88
|
+
- the executor verifies the required handoff artifact exists
|
|
89
|
+
- the task packet points to the exact required inputs and files to read
|
|
90
|
+
- downstream specialists receive only the approved slice of context they need
|
|
91
|
+
- downstream specialists use approved `TASK-PACKET.md` inputs and listed brand sections first
|
|
92
|
+
- direct specialist reads of `PRODUCT.md` happen only when the packet explicitly lists the file or sections
|
|
93
|
+
- Meta-backed handoffs use sanitized outputs from `tools/meta/meta-fetch.ps1`
|
|
94
|
+
|
|
95
|
+
Missing approval, missing artifacts, or unsafe boundary usage stop the chain with a clear error.
|
|
96
|
+
|
|
97
|
+
New or changed downstream steps require a return to Justin for approval before task mode continues.
|