@tidyfactor/marketing 1.3.0 → 1.6.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 (40) hide show
  1. package/.tidyfactor +53 -52
  2. package/CHANGELOG.md +47 -0
  3. package/README.ar.md +20 -9
  4. package/README.md +20 -9
  5. package/SKILL.md +46 -30
  6. package/bin/add-skill.js +65 -50
  7. package/brand.json +67 -67
  8. package/brand.yaml +55 -0
  9. package/manifest.json +256 -0
  10. package/package.json +5 -1
  11. package/references/commands/audit.md +34 -0
  12. package/references/commands/brief.md +7 -5
  13. package/references/memory/20-brain-baas-integration.md +89 -0
  14. package/references/memory/ad-copy-templates.md +94 -93
  15. package/references/memory/arabic-writing.md +1 -1
  16. package/references/memory/campaign-mindmap.md +85 -0
  17. package/references/memory/decision-points.md +74 -73
  18. package/references/memory/frameworks.md +87 -86
  19. package/references/memory/lifecycle-flows.md +107 -106
  20. package/references/memory/metrics-benchmarks.md +71 -70
  21. package/references/memory/naming-conventions.md +75 -0
  22. package/references/memory/philosophy.md +2 -0
  23. package/references/memory/platform-specs.md +76 -75
  24. package/references/memory/promotions-math.md +57 -56
  25. package/references/memory/quality-bar.md +56 -55
  26. package/references/workflows/brief.md +74 -35
  27. package/references/workflows/campaign-launch.md +1 -1
  28. package/references/workflows/content-engine.md +1 -1
  29. package/references/workflows/email-lifecycle.md +1 -1
  30. package/references/workflows/paid-acquisition.md +1 -1
  31. package/references/workflows/promo-conversion.md +1 -1
  32. package/references/workflows/social-growth.md +1 -1
  33. package/references/workflows/viral-retention.md +1 -1
  34. package/scripts/audit_copy.py +112 -0
  35. package/scripts/calc_promo_math.py +69 -0
  36. package/scripts/clean_orphaned_assets.py +108 -0
  37. package/tests/scenarios.md +87 -0
  38. package/tools/build-skill.js +4 -0
  39. package/tools/validate_skill.py +265 -112
  40. package/assets/og-default.png +0 -0
@@ -1,93 +1,94 @@
1
- # Marketing Memory: Ad Copy Templates & Platform Matrices
2
-
3
- Operational plug-and-play ad copy architectures for Meta, Google Search, TikTok, and LinkedIn.
4
-
5
- ---
6
-
7
- ## 1. Meta Ads (Facebook & Instagram) Direct Response Matrix
8
-
9
- ### Format A: The 3-Part Micro-Story (Best for Cold TOFU & Warm MOFU)
10
- ```
11
- [HOOK / PATTERN INTERRUPT]:
12
- Stop [common painful action] to achieve [desired outcome]. Most [niche/target] think [myth], but here is the truth...
13
-
14
- [BODY / MECHANISM]:
15
- When we tested [method] with over [number/proof], we discovered:
16
- 👉 Benefit 1 (Speed/Simplicity)
17
- 👉 Benefit 2 (Cost/Efficiency)
18
- 👉 Benefit 3 (Risk Removal)
19
-
20
- [CALL TO ACTION / OFFER]:
21
- Get instant access to [Lead Magnet / Offer Name] today.
22
- Tap [Learn More / Shop Now] below before [scarcity/urgency trigger].
23
- 🔗 [Link URL]
24
- ```
25
-
26
- ### Format B: The Side-by-Side Comparison (Old Way vs. New Way)
27
- ```
28
- ❌ THE OLD WAY TO [GOAL]:
29
- Spend 15 hours a week on [painful task]
30
- Pay $2,500/mo to agencies with zero accountability
31
- Guess your numbers and hope for the best
32
-
33
- ✅ THE [BRAND/PRODUCT] WAY:
34
- Automated in under 5 minutes a day
35
- Predictable, transparent [key metric/result]
36
- 100% money-back guarantee if not thrilled in 30 days
37
-
38
- Ready to switch?
39
- 👉 Tap below to see how [Product] works in 90 seconds.
40
- ```
41
-
42
- ---
43
-
44
- ## 2. Google Responsive Search Ads (RSA) Matrix
45
-
46
- Google RSA requires up to **15 Headlines** (max 30 chars each) and **4 Descriptions** (max 90 chars each).
47
-
48
- ### Headline Distribution Rule (15 Headlines):
49
- - **Positions 1-4 (Keywords & Solution)**: Exact match search query & primary value (e.g. `Automate Your Invoicing`, `Fast Cloud Server Hosting`).
50
- - **Positions 5-8 (Benefits & Speed)**: Outcome & speed metrics (e.g. `Save 12+ Hours Every Week`, `Deploy in Under 60 Seconds`).
51
- - **Positions 9-12 (Social Proof & Authority)**: Numbers & credibility (e.g. `Trusted by 10,000+ Teams`, `Rated 4.9/5 by 800+ Users`).
52
- - **Positions 13-15 (Offers & CTAs)**: Immediacy & risk-free actions (e.g. `Start Free 14-Day Trial`, `Get 30% Off Today Only`, `No Credit Card Required`).
53
-
54
- ### Description Distribution Rule (4 Descriptions):
55
- - **Desc 1 (Problem -> Solution)**: Eliminate [pain point] with [Product]. Experience seamless [benefit] starting today.
56
- - **Desc 2 (Social Proof + Offer)**: Over [X] customers trust [Brand] for [outcome]. Sign up in 60 seconds with 0 setup fees.
57
- - **Desc 3 (Feature Breakdown)**: Includes [Feature 1], [Feature 2], and 24/7 dedicated support. Try risk-free for 30 days.
58
- - **Desc 4 (Direct CTA)**: Ready to double your [metric]? Discover why industry leaders choose [Product]. Get started now!
59
-
60
- ---
61
-
62
- ## 3. TikTok & Reels Short-Form Video Script Architecture
63
-
64
- ### Structure (15s to 45s Total Runtime):
65
- 1. **0:00 - 0:03 (Visual & Verbal Hook)**:
66
- - *Visual*: Show drastic before/after, unexpected movement, or screen recording.
67
- - *Verbal*: "If you're still doing [X] in 2026, you're losing money..."
68
- 2. **0:03 - 0:15 (The Problem & Insight)**:
69
- - Agitate why current tools/methods fail. "Here is what no one is telling you..."
70
- 3. **0:15 - 0:30 (The Demonstration / Proof)**:
71
- - Screen capture or hands-on walkthrough showing product solving problem in 3 clicks.
72
- 4. **0:30 - 0:40 (The Call to Action)**:
73
- - "Comment '[KEYWORD]' and I'll DM you the direct link" OR "Link in bio to test it completely free."
74
-
75
- ---
76
-
77
- ## 4. Arabic Ad Copy Variations (نماذج الإعلانات المباشرة بالعربية)
78
-
79
- ### نموذج إعلان تفاعلي (Direct Response Meta / TikTok):
80
- ```
81
- 🛑 توقف عن إهدار [المال / الوقت] على [المشكلة الشائعة]!
82
-
83
- أغلب [أصحاب الأعمال / المستقلين / رواد الأعمال] يظنون أن الحل هو [الاعتقاد الخاطئ]، لكن الحقيقة أسهل بكثير:
84
-
85
- مع [اسم المنتج / المنظومة] ستتمكن من:
86
- 🔹 [الميزة الأولى + النتيجة الرقمية الملموسة]
87
- 🔹 [الميزة الثانية + توفير الجهد أو الوقت]
88
- 🔹 [ضمان استرداد الأموال أو تجربة مجانية]
89
-
90
- ⚡ عرض خاص لفترة محدودة: احصل على [الخصم أو البونص] الآن!
91
- 👇 اضغط على الرابط بالأسفل وابدأ فوراً:
92
- [رابط العرض]
93
- ```
1
+ <!-- last-verified: 2026-09-02 -->
2
+ # Marketing Memory: Ad Copy Templates & Platform Matrices
3
+
4
+ Operational plug-and-play ad copy architectures for Meta, Google Search, TikTok, and LinkedIn.
5
+
6
+ ---
7
+
8
+ ## 1. Meta Ads (Facebook & Instagram) Direct Response Matrix
9
+
10
+ ### Format A: The 3-Part Micro-Story (Best for Cold TOFU & Warm MOFU)
11
+ ```
12
+ [HOOK / PATTERN INTERRUPT]:
13
+ Stop [common painful action] to achieve [desired outcome]. Most [niche/target] think [myth], but here is the truth...
14
+
15
+ [BODY / MECHANISM]:
16
+ When we tested [method] with over [number/proof], we discovered:
17
+ 👉 Benefit 1 (Speed/Simplicity)
18
+ 👉 Benefit 2 (Cost/Efficiency)
19
+ 👉 Benefit 3 (Risk Removal)
20
+
21
+ [CALL TO ACTION / OFFER]:
22
+ Get instant access to [Lead Magnet / Offer Name] today.
23
+ Tap [Learn More / Shop Now] below before [scarcity/urgency trigger].
24
+ 🔗 [Link URL]
25
+ ```
26
+
27
+ ### Format B: The Side-by-Side Comparison (Old Way vs. New Way)
28
+ ```
29
+ THE OLD WAY TO [GOAL]:
30
+ Spend 15 hours a week on [painful task]
31
+ Pay $2,500/mo to agencies with zero accountability
32
+ • Guess your numbers and hope for the best
33
+
34
+ THE [BRAND/PRODUCT] WAY:
35
+ Automated in under 5 minutes a day
36
+ Predictable, transparent [key metric/result]
37
+ • 100% money-back guarantee if not thrilled in 30 days
38
+
39
+ Ready to switch?
40
+ 👉 Tap below to see how [Product] works in 90 seconds.
41
+ ```
42
+
43
+ ---
44
+
45
+ ## 2. Google Responsive Search Ads (RSA) Matrix
46
+
47
+ Google RSA requires up to **15 Headlines** (max 30 chars each) and **4 Descriptions** (max 90 chars each).
48
+
49
+ ### Headline Distribution Rule (15 Headlines):
50
+ - **Positions 1-4 (Keywords & Solution)**: Exact match search query & primary value (e.g. `Automate Your Invoicing`, `Fast Cloud Server Hosting`).
51
+ - **Positions 5-8 (Benefits & Speed)**: Outcome & speed metrics (e.g. `Save 12+ Hours Every Week`, `Deploy in Under 60 Seconds`).
52
+ - **Positions 9-12 (Social Proof & Authority)**: Numbers & credibility (e.g. `Trusted by 10,000+ Teams`, `Rated 4.9/5 by 800+ Users`).
53
+ - **Positions 13-15 (Offers & CTAs)**: Immediacy & risk-free actions (e.g. `Start Free 14-Day Trial`, `Get 30% Off Today Only`, `No Credit Card Required`).
54
+
55
+ ### Description Distribution Rule (4 Descriptions):
56
+ - **Desc 1 (Problem -> Solution)**: Eliminate [pain point] with [Product]. Experience seamless [benefit] starting today.
57
+ - **Desc 2 (Social Proof + Offer)**: Over [X] customers trust [Brand] for [outcome]. Sign up in 60 seconds with 0 setup fees.
58
+ - **Desc 3 (Feature Breakdown)**: Includes [Feature 1], [Feature 2], and 24/7 dedicated support. Try risk-free for 30 days.
59
+ - **Desc 4 (Direct CTA)**: Ready to double your [metric]? Discover why industry leaders choose [Product]. Get started now!
60
+
61
+ ---
62
+
63
+ ## 3. TikTok & Reels Short-Form Video Script Architecture
64
+
65
+ ### Structure (15s to 45s Total Runtime):
66
+ 1. **0:00 - 0:03 (Visual & Verbal Hook)**:
67
+ - *Visual*: Show drastic before/after, unexpected movement, or screen recording.
68
+ - *Verbal*: "If you're still doing [X] in 2026, you're losing money..."
69
+ 2. **0:03 - 0:15 (The Problem & Insight)**:
70
+ - Agitate why current tools/methods fail. "Here is what no one is telling you..."
71
+ 3. **0:15 - 0:30 (The Demonstration / Proof)**:
72
+ - Screen capture or hands-on walkthrough showing product solving problem in 3 clicks.
73
+ 4. **0:30 - 0:40 (The Call to Action)**:
74
+ - "Comment '[KEYWORD]' and I'll DM you the direct link" OR "Link in bio to test it completely free."
75
+
76
+ ---
77
+
78
+ ## 4. Arabic Ad Copy Variations (نماذج الإعلانات المباشرة بالعربية)
79
+
80
+ ### نموذج إعلان تفاعلي (Direct Response Meta / TikTok):
81
+ ```
82
+ 🛑 توقف عن إهدار [المال / الوقت] على [المشكلة الشائعة]!
83
+
84
+ أغلب [أصحاب الأعمال / المستقلين / رواد الأعمال] يظنون أن الحل هو [الاعتقاد الخاطئ]، لكن الحقيقة أسهل بكثير:
85
+
86
+ مع [اسم المنتج / المنظومة] ستتمكن من:
87
+ 🔹 [الميزة الأولى + النتيجة الرقمية الملموسة]
88
+ 🔹 [الميزة الثانية + توفير الجهد أو الوقت]
89
+ 🔹 [ضمان استرداد الأموال أو تجربة مجانية]
90
+
91
+ عرض خاص لفترة محدودة: احصل على [الخصم أو البونص] الآن!
92
+ 👇 اضغط على الرابط بالأسفل وابدأ فوراً:
93
+ [رابط العرض]
94
+ ```
@@ -1,6 +1,6 @@
1
1
  # Arabic Direct-Response & Copywriting Engineering
2
2
 
3
- <!-- last-verified: 2026-08-29 -->
3
+ <!-- last-verified: 2026-09-02 -->
4
4
 
5
5
  Deterministic rules and linguistic frameworks for composing Arabic marketing, growth, and conversion copy natively without translation artifacts.
6
6
 
@@ -0,0 +1,85 @@
1
+ <!-- last-verified: 2026-09-09 -->
2
+ # Memory: campaign-mindmap
3
+
4
+ Mermaid visual architecture illustrating the 7 marketing pillars, audience progression, and conversion loops within the TidyFactor Marketing Engine.
5
+
6
+ ---
7
+
8
+ ## 1. 360° Growth & Pillar Architecture
9
+
10
+ ```mermaid
11
+ graph TD
12
+ classDef foundation fill:#0f172a,stroke:#38bdf8,stroke-width:2px,color:#f8fafc;
13
+ classDef topFunnel fill:#1e293b,stroke:#a855f7,stroke-width:2px,color:#f8fafc;
14
+ classDef midFunnel fill:#1e293b,stroke:#eab308,stroke-width:2px,color:#f8fafc;
15
+ classDef bottomFunnel fill:#1e293b,stroke:#22c55e,stroke-width:2px,color:#f8fafc;
16
+ classDef retention fill:#1e293b,stroke:#ec4899,stroke-width:2px,color:#f8fafc;
17
+
18
+ subgraph Pillar1["🏛️ Pillar 1: Strategy & Foundation"]
19
+ S1["Brand Positioning & Voice"]
20
+ S2["Competitive Differentiation"]
21
+ S3["Unit Economics & Margin Safety"]
22
+ end
23
+ class S1,S2,S3 foundation;
24
+
25
+ subgraph TopOfFunnel["🎯 Acquisition & Traffic (Pillars 2, 3, 5)"]
26
+ C1["Pillar 2: SEO Pillar-Cluster & Guides"]
27
+ SM1["Pillar 3: Social 0-3s Video Hooks & B2B"]
28
+ AD1["Pillar 5: 3-Angle Paid Ads (Pain / ROI / Proof)"]
29
+ end
30
+ class C1,SM1,AD1 topFunnel;
31
+
32
+ subgraph MiddleOfFunnel["⚡ Nurturing & Consideration (Pillars 2, 4)"]
33
+ N1["Pillar 2: Educational Newsletter Cadence"]
34
+ E1["Pillar 4: 5-Step Welcome Email Sequence"]
35
+ W1["Landing Page CRO Wireframe"]
36
+ end
37
+ class N1,E1,W1 midFunnel;
38
+
39
+ subgraph BottomOfFunnel["💰 Conversion & Transaction (Pillars 5, 6)"]
40
+ PR1["Pillar 6: 72h Flash Sale & Decoy Pricing"]
41
+ AD2["Pillar 5: Retargeting Ads (FOMO / Proof)"]
42
+ E2["Pillar 4: 3-Stage Abandoned Cart Flow"]
43
+ end
44
+ class PR1,AD2,E2 bottomFunnel;
45
+
46
+ subgraph RetentionLoop["🔄 Retention & Viral Growth (Pillar 7)"]
47
+ G1["Pillar 7: 2-Sided Viral Referral Program"]
48
+ G2["Pillar 7: Win-Back & Churn Intervention"]
49
+ G3["Pillar 7: VIP Loyalty & Micro-Influencers"]
50
+ end
51
+ class G1,G2,G3 retention;
52
+
53
+ %% Data flow connections
54
+ Pillar1 --> TopOfFunnel
55
+ TopOfFunnel --> MiddleOfFunnel
56
+ MiddleOfFunnel --> BottomOfFunnel
57
+ BottomOfFunnel --> RetentionLoop
58
+ RetentionLoop -.->|"Re-invest Margin & Referrals"| TopOfFunnel
59
+ ```
60
+
61
+ ---
62
+
63
+ ## 2. Lead Journey & Signal Progression
64
+
65
+ ```mermaid
66
+ sequenceDiagram
67
+ autonumber
68
+ actor User as Prospect / Visitor
69
+ participant Social as Social & Paid Ads
70
+ participant LP as CRO Landing Page
71
+ participant Email as Email Lifecycle Flow
72
+ participant Cart as Checkout & Payment
73
+
74
+ User->>Social: Stops scroll at 0-3s hook (Pain/ROI angle)
75
+ Social->>LP: Clicks standardized UTM link
76
+ LP->>User: Demonstrates mechanism & proof points
77
+ alt Takes Primary Offer
78
+ User->>Cart: Completes checkout with margin-safe offer
79
+ else Leaves without converting
80
+ LP->>Email: Captures lead via high-value lead magnet
81
+ Email->>User: Delivers 5-step nurture sequence
82
+ User->>Cart: Returns via cart recovery or flash sale discount
83
+ end
84
+ Cart->>User: Delivers product + triggers viral referral loop
85
+ ```
@@ -1,73 +1,74 @@
1
- # Marketing Contextual Decision Layer (CDL) — Thin Arbitration Protocol
2
-
3
- > **Purpose**: Governs pre-generation marketing elicitation. Resolves strategic, market, and copy ambiguities before campaign or copy emission without generating duplicate memory catalogs or conversational slop.
4
-
5
- ---
6
-
7
- ## 🏛️ Marketing Decision Matrix (M1 – M5)
8
-
9
- When a marketing workflow begins and the request contains ambiguous parameters, the agent arbitrates across 5 standardized decision points:
10
-
11
- | ID | Decision Dimension | Reference SSOT Catalog | Conservative Default |
12
- |:---|:---|:---|:---|
13
- | **M1** | **Target Market & Regional Calibration** | `memory/frameworks.md` & `platform-specs.md` | `Bilingual / MENA-Ready (GCC + Egypt)` |
14
- | **M2** | **Brand Voice Archetype & Tone** | `memory/frameworks.md` | `Authoritative Challenger (Direct, ROI-backed)` |
15
- | **M3** | **Funnel Stage & User Sophistication** | `memory/lifecycle-flows.md` & `ad-copy-templates.md` | `Middle-of-Funnel (Solution-Aware)` |
16
- | **M4** | **Conversion Model & Core Offer** | `memory/promotions-math.md` & `frameworks.md` | `Value-First / Discovery Call / Freemium` |
17
- | **M5** | **Output Density & Asset Depth** | `memory/frameworks.md` | `Full Campaign Blueprint (Multi-Channel)` |
18
-
19
- ---
20
-
21
- ## 🚦 Deterministic Boolean Skip Conditions
22
-
23
- The agent MUST skip asking questions and proceed directly to execution when any of the following conditions evaluate to `true`:
24
-
25
- ```text
26
- 1. Cached Brief Exists → .tidyfactor/marketing-brief.md exists on disk
27
- 2. Explicit Dimension in Prompt User prompt explicitly specifies Region, Tone, Audience, or Offer
28
- 3. Direct Command Invocation → User called specific sub-command (e.g. /email, /advertising, /promotions)
29
- 4. Copy Refresh / Optimization Existing copy or campaign is provided for iterative rewrite
30
- 5. Fast-Track Flag → User appended --yes, -y, or "do not ask questions"
31
- ```
32
-
33
- ---
34
-
35
- ## 🎯 Direct Invocation vs. Refresh Invariants
36
-
37
- 1. **Direct Invocation Invariant**: When a user explicitly runs `/advertising`, `/email`, `/promotions`, or `/strategy`, the agent skips general discovery and uses targeted command parameters immediately.
38
- 2. **Zero-Regression Copy Refresh Bias**: When auditing, refreshing, or rewriting existing campaigns, the agent silently preserves the established brand voice, regional calibration, and offer economics unless an overhaul is explicitly requested.
39
-
40
- ---
41
-
42
- ## ⚡ Single-Round Batching & Priority Hierarchy
43
-
44
- If multiple marketing dimensions remain ambiguous and no skip condition is met:
45
-
46
- 1. **Maximum Questions**: Present at most **3 focused questions in a single round**. Never conduct multi-round interrogations.
47
- 2. **Strict Priority Hierarchy**:
48
- $$\mathbf{M1 \text{ (Region/Market)}} > \mathbf{M2 \text{ (Brand Voice)}} > \mathbf{M3 \text{ (Funnel Stage)}} > \mathbf{M4 \text{ (Offer)}} > \mathbf{M5 \text{ (Depth)}}$$
49
- 3. **Priority Overflow**: If more than 3 dimensions are unknown, ask M1, M2, and M3; resolve M4 and M5 silently using the **Conservative Defaults**.
50
-
51
- ---
52
-
53
- ## 🛑 Terminal Hard-Stop Contract
54
-
55
- When presenting decision options to the user, the agent MUST end its turn immediately and await user selection. It MUST NOT output partial marketing plans, draft placeholder copy, or speculate on unconfirmed choices in the same turn.
56
-
57
- ---
58
-
59
- ## 💾 Brief Persistence Schema (`.tidyfactor/marketing-brief.md`)
60
-
61
- When `/brief` runs or decisions are confirmed, save them to `.tidyfactor/marketing-brief.md`:
62
-
63
- ```markdown
64
- # Marketing Brief Baseline
65
-
66
- - **Product / Brand**: [Name]
67
- - **Target Market (M1)**: [MENA-GCC | MENA-Egypt | Global-US]
68
- - **Brand Voice (M2)**: [Authoritative Challenger | Empathetic Guide | Luxury Premium | Direct Response]
69
- - **Funnel Stage (M3)**: [Problem-Aware | Solution-Aware | Product-Aware / Most Aware]
70
- - **Core Offer (M4)**: [Lead Magnet | Free Trial | Discovery Call | Direct Transaction]
71
- - **Deliverable Scope (M5)**: [Sprint Copy | Full Campaign Blueprint]
72
- - **Last Updated**: [YYYY-MM-DD]
73
- ```
1
+ <!-- last-verified: 2026-09-02 -->
2
+ # Marketing Contextual Decision Layer (CDL) — Thin Arbitration Protocol
3
+
4
+ > **Purpose**: Governs pre-generation marketing elicitation. Resolves strategic, market, and copy ambiguities before campaign or copy emission without generating duplicate memory catalogs or conversational slop.
5
+
6
+ ---
7
+
8
+ ## 🏛️ Marketing Decision Matrix (M1 – M5)
9
+
10
+ When a marketing workflow begins and the request contains ambiguous parameters, the agent arbitrates across 5 standardized decision points:
11
+
12
+ | ID | Decision Dimension | Reference SSOT Catalog | Conservative Default |
13
+ |:---|:---|:---|:---|
14
+ | **M1** | **Target Market & Regional Calibration** | `memory/frameworks.md` & `platform-specs.md` | `Bilingual / MENA-Ready (GCC + Egypt)` |
15
+ | **M2** | **Brand Voice Archetype & Tone** | `memory/frameworks.md` | `Authoritative Challenger (Direct, ROI-backed)` |
16
+ | **M3** | **Funnel Stage & User Sophistication** | `memory/lifecycle-flows.md` & `ad-copy-templates.md` | `Middle-of-Funnel (Solution-Aware)` |
17
+ | **M4** | **Conversion Model & Core Offer** | `memory/promotions-math.md` & `frameworks.md` | `Value-First / Discovery Call / Freemium` |
18
+ | **M5** | **Output Density & Asset Depth** | `memory/frameworks.md` | `Full Campaign Blueprint (Multi-Channel)` |
19
+
20
+ ---
21
+
22
+ ## 🚦 Deterministic Boolean Skip Conditions
23
+
24
+ The agent MUST skip asking questions and proceed directly to execution when any of the following conditions evaluate to `true`:
25
+
26
+ ```text
27
+ 1. Cached Brief Exists .tidyfactor/marketing-brief.md exists on disk
28
+ 2. Explicit Dimension in Prompt → User prompt explicitly specifies Region, Tone, Audience, or Offer
29
+ 3. Direct Command Invocation User called specific sub-command (e.g. /email, /advertising, /promotions)
30
+ 4. Copy Refresh / Optimization Existing copy or campaign is provided for iterative rewrite
31
+ 5. Fast-Track Flag → User appended --yes, -y, or "do not ask questions"
32
+ ```
33
+
34
+ ---
35
+
36
+ ## 🎯 Direct Invocation vs. Refresh Invariants
37
+
38
+ 1. **Direct Invocation Invariant**: When a user explicitly runs `/advertising`, `/email`, `/promotions`, or `/strategy`, the agent skips general discovery and uses targeted command parameters immediately.
39
+ 2. **Zero-Regression Copy Refresh Bias**: When auditing, refreshing, or rewriting existing campaigns, the agent silently preserves the established brand voice, regional calibration, and offer economics unless an overhaul is explicitly requested.
40
+
41
+ ---
42
+
43
+ ## ⚡ Single-Round Batching & Priority Hierarchy
44
+
45
+ If multiple marketing dimensions remain ambiguous and no skip condition is met:
46
+
47
+ 1. **Maximum Questions**: Present at most **3 focused questions in a single round**. Never conduct multi-round interrogations.
48
+ 2. **Strict Priority Hierarchy**:
49
+ $$\mathbf{M1 \text{ (Region/Market)}} > \mathbf{M2 \text{ (Brand Voice)}} > \mathbf{M3 \text{ (Funnel Stage)}} > \mathbf{M4 \text{ (Offer)}} > \mathbf{M5 \text{ (Depth)}}$$
50
+ 3. **Priority Overflow**: If more than 3 dimensions are unknown, ask M1, M2, and M3; resolve M4 and M5 silently using the **Conservative Defaults**.
51
+
52
+ ---
53
+
54
+ ## 🛑 Terminal Hard-Stop Contract
55
+
56
+ When presenting decision options to the user, the agent MUST end its turn immediately and await user selection. It MUST NOT output partial marketing plans, draft placeholder copy, or speculate on unconfirmed choices in the same turn.
57
+
58
+ ---
59
+
60
+ ## 💾 Brief Persistence Schema (`.tidyfactor/marketing-brief.md`)
61
+
62
+ When `/brief` runs or decisions are confirmed, save them to `.tidyfactor/marketing-brief.md`:
63
+
64
+ ```markdown
65
+ # Marketing Brief Baseline
66
+
67
+ - **Product / Brand**: [Name]
68
+ - **Target Market (M1)**: [MENA-GCC | MENA-Egypt | Global-US]
69
+ - **Brand Voice (M2)**: [Authoritative Challenger | Empathetic Guide | Luxury Premium | Direct Response]
70
+ - **Funnel Stage (M3)**: [Problem-Aware | Solution-Aware | Product-Aware / Most Aware]
71
+ - **Core Offer (M4)**: [Lead Magnet | Free Trial | Discovery Call | Direct Transaction]
72
+ - **Deliverable Scope (M5)**: [Sprint Copy | Full Campaign Blueprint]
73
+ - **Last Updated**: [YYYY-MM-DD]
74
+ ```