一键导入
marketing-workflows
Marketing campaign planning — campaign documents, content calendars, cross-channel coordination, and marketing-specific phase decomposition
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Marketing campaign planning — campaign documents, content calendars, cross-channel coordination, and marketing-specific phase decomposition
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
DEPRECATED compatibility shim; workflow-common-core is canonical for all conventions referenced here
Interprets --just-* and --skip-* command flags for /legion:build and /legion:review, validates flag combinations against rules, and resolves the matching team template from intent-teams.yaml. Use when the user passes intent flags to build or review commands, asks about flag combinations, or needs to filter agent teams by intent.
Dev-QA loop engine with structured feedback, fix routing, and user escalation for /legion:review
Executes wave-structured plans with personality-injected agents — parallel or sequential per CLI adapter
Maps all 48 Legion agents by division, capability, and task type for intelligent team assembly
Engine for /legion:map. Analyzes an existing codebase, generates CODEBASE.md for backward-compatible architecture context, and writes .planning/codebase/ index artifacts consumed by /legion:start, /plan, /build, /review, /status, and /quick.
| name | marketing-workflows |
| description | Marketing campaign planning — campaign documents, content calendars, cross-channel coordination, and marketing-specific phase decomposition |
| triggers | ["marketing","campaign","content","social","channel","audience"] |
| token_cost | high |
| summary | Domain-specific workflows for marketing phases. Covers campaign planning, content calendars, cross-channel coordination across 8 marketing agents. Activates when MKT-* requirements or marketing keywords detected. |
Structured marketing campaign engine for Legion. Provides domain-specific decomposition for marketing-focused phases — campaign planning with guided questioning, content calendar generation, and cross-channel coordination across 8 marketing specialist agents. All operations produce human-readable markdown artifacts at .planning/campaigns/.
References:
workflow-common.md (state paths, degradation pattern)workflow-common.md (lifecycle, paths, wave pattern)agent-registry.md Section 4 (Strategy + Content + Channel specialists)phase-decomposer.md (marketing domain detection trigger)/legion:plan in plan.md (campaign questioning and document generation entry point)/legion:build in build.md (marketing wave execution with core messaging handoff)Core rules governing marketing workflows and the detection heuristic that determines when marketing-specific decomposition activates.
Marketing-specific decomposition activates when ANY of the canonical triggers below matches — no other triggers. Keyword matches against the phase description are NOT authoritative (they may be used as a non-blocking hint to prompt the user, never as automatic activation).
Canonical triggers (mirror of workflow-common/SKILL.md § Marketing Phase Detection):
^MKT-\d+ in ROADMAP.md or REQUIREMENTS.mdworkflow_type: marketing--domain=marketing to /legion:planSingle source of truth for keywords: .planning/config/intent-teams.yaml under teams.marketing.keywords[]. Keywords are used only as prompt hints, never for silent activation. When adding a keyword, edit the YAML — do NOT inline keyword lists in this file.
When detected: use marketing-specific wave patterns (Section 6) and offer campaign document generation during planning. When not detected: standard phase decomposition applies -- no impact.
CAMPAIGN_DIR = '.planning/campaigns'
CAMPAIGN_FILE_PATTERN = '{CAMPAIGN_DIR}/{campaign-slug}.md'
DEFAULT_CHANNELS = ['twitter', 'instagram', 'tiktok', 'reddit', 'blog', 'email']
CONTENT_TYPES = ['social-post', 'thread', 'reel', 'story', 'blog-post', 'email',
'video-script', 'infographic', 'ama', 'poll']
| Channel | Primary Agent | Backup Agent |
|---|---|---|
| marketing-twitter-engager | marketing-social-media-strategist | |
| marketing-instagram-curator | marketing-content-social-strategist | |
| TikTok | marketing-tiktok-strategist | marketing-instagram-curator |
| marketing-reddit-community-builder | marketing-content-social-strategist | |
| Blog/Web | marketing-content-social-strategist | marketing-social-media-strategist |
| marketing-content-social-strategist | marketing-growth-hacker | |
| App Store | marketing-app-store-optimizer | marketing-growth-hacker |
| Growth/Funnel | marketing-growth-hacker | marketing-social-media-strategist |
.planning/campaigns/ directory does not exist: create it when the first campaign is plannedStructured campaign creation with guided questioning, document generation, agent team assembly, and lifecycle management. This section drives the campaign planning flow triggered by /legion:plan when a marketing phase is detected.
When a marketing phase is detected during /legion:plan, gather campaign parameters using AskUserQuestion. This replaces the generic decomposition questioning for marketing phases.
Key questions (adapt based on responses -- do not ask all if answers imply others):
Q1: "What's the primary objective for this campaign?"
Options:
- "Brand awareness / Launch announcement"
- "User acquisition / Growth"
- "Community building / Engagement"
- "Product promotion / Conversion"
Q2: "Who is your target audience?"
Free text -- capture demographics, interests, platforms they use
Q3: "Which channels should we target?" (multi-select)
Options from DEFAULT_CHANNELS, filtered to those with available agents
Show the Channel-Agent Mapping so the user knows who handles each
Q4: "What's the campaign timeline?"
Options:
- "Sprint (1-2 weeks)" -- high intensity, few channels
- "Standard (4-6 weeks)" -- full campaign cycle
- "Ongoing (3+ months)" -- sustained presence
Q5: "What's the key message or value proposition?"
Free text -- this becomes the core message for cross-channel coordination (Section 4)
If the user has already provided campaign details in the phase description or CONTEXT.md, extract answers from existing context rather than re-asking. Only ask for missing parameters.
After brief questioning, generate the campaign document at:
{CAMPAIGN_DIR}/{campaign-slug}.md
The slug is derived from the campaign name: lowercase, spaces to hyphens, strip non-alphanumeric (except hyphens), max 40 characters.
Example: "Product Launch Q2" becomes product-launch-q2
Use the format from Section 5. Populate all sections from the brief answers:
For marketing campaigns, use the agent-registry Section 4 Marketing Campaign team assembly pattern:
Required roles (always included):
| Role | Agent | Responsibilities |
|---|---|---|
| Strategy Lead | marketing-social-media-strategist | Overall strategy, cross-channel alignment, campaign brief ownership, Wave 1 leadership |
| Content Lead | marketing-content-social-strategist | Core content production, editorial calendar, brand voice consistency, long-form assets |
Channel-specific roles (1 per selected channel):
Optional roles (add based on campaign objectives):
| Condition | Role | Agent | Division |
|---|---|---|---|
| Objectives include "acquisition" or "conversion" | Growth/Analytics | marketing-growth-hacker | marketing |
| Campaign is visually intensive (Instagram, TikTok focus) | Visual Design | design-visual-storyteller | design |
| Campaign requires detailed performance tracking | Analytics | data-analytics-engineer | specialized |
Each campaign follows this lifecycle:
Planning --> Active --> Measuring --> Complete
PlanningActiveMeasuringCompleteCampaign status is tracked in the campaign document header, not in STATE.md. The campaign document is the source of truth for campaign lifecycle.
Time-based content planning with channel assignments, content type taxonomy, scheduling patterns, and assignment rules.
Content calendars live inside the campaign document (## Content Calendar section). Format is a weekly grid with channel assignments and content types.
| Week | Phase | Key Theme | Content Items |
|------|-------|-----------|---------------|
| W1 | Pre-launch | Teaser/Anticipation | Twitter thread, Instagram teaser, Blog draft |
| W2 | Launch | Core announcement | All channels: coordinated launch burst |
| W3-4 | Sustain | Engagement/Value | Regular cadence per channel |
| W5+ | Optimize | Best performers | Double down on top-performing content |
Calendar detail level: specify content TYPE and responsible AGENT per slot. Do NOT write actual content -- content creation happens during Wave 2 execution.
Each content item maps to a type, channel, and responsible agent:
| Type | Channels | Typical Agent | Cadence |
|---|---|---|---|
| Thread/Carousel | Twitter, LinkedIn | marketing-twitter-engager | 2-3x/week |
| Short-form Video | TikTok, Instagram Reels | marketing-tiktok-strategist | 2-3x/week |
| Stories | marketing-instagram-curator | Daily during active phase | |
| Long-form Post | Blog, Medium | marketing-content-social-strategist | 1-2x/week |
| Email Newsletter | Email list | marketing-content-social-strategist | Weekly |
| Community Post | marketing-reddit-community-builder | 2-3x/week | |
| Poll/Interactive | Twitter, Instagram | Platform-specific agent | Weekly |
| AMA/Q&A | marketing-reddit-community-builder | 1x per campaign | |
| Infographic | All visual channels | design-visual-storyteller (cross-div) | As needed |
| App Store Update | App Store, Play Store | marketing-app-store-optimizer | Per release cycle |
Three standard patterns based on campaign timeline (from Q4 in brief questioning):
Sprint (1-2 weeks):
Standard (4-6 weeks):
Ongoing (3+ months):
Ensuring consistent messaging across all channels through core message derivation, channel adaptation, consistency validation, and structured handoff patterns.
Every campaign has ONE core message. All channel content derives from this single source of truth. Derived from:
Core Messaging Format (included in campaign document):
Core Message: {one sentence that captures the campaign's central idea}
Supporting Points:
1. {rational benefit -- what the audience gains}
2. {emotional benefit -- how it makes them feel}
3. {social proof -- why others trust/use it}
Campaign Hashtags: {2-3 consistent hashtags used across all channels}
Primary CTA: {the single action we want the audience to take}
The Strategy Lead (marketing-social-media-strategist) owns core message derivation. This is produced in Wave 1 before any content creation begins.
Same core message, adapted for each channel's norms and audience expectations:
| Channel | Tone | Format | Length | CTA Style |
|---|---|---|---|---|
| Conversational, punchy | Thread or single tweet | 280 chars or 5-7 tweet thread | "Reply with..." or link | |
| Aspirational, visual | Caption + visual | 150-300 words | "Link in bio" or "DM us" | |
| TikTok | Casual, authentic | Script + visual notes | 15-60 second script | "Follow for more" or link in bio |
| Informative, value-first | Text post or comment | 200-500 words | Subtle, never salesy | |
| Blog | Authoritative, detailed | Article structure | 800-2000 words | In-text CTA or end CTA |
| Personal, direct | Newsletter format | 200-400 words | Button CTA |
Adaptation rule: The core message stays the same. Only the format, tone, length, and CTA style change per channel. If a channel adaptation contradicts the core message, the adaptation is wrong -- fix the adaptation, not the core message.
Before Wave 2 (content creation) begins, the Strategy Lead verifies:
During /legion:review for marketing phases, the review agent checks this list against produced content.
The handoff between waves ensures all agents work from shared context:
Strategy Lead (marketing-social-media-strategist) produces in Wave 1:
Each Channel Agent receives in Wave 2:
Content Creator (marketing-content-social-strategist) produces in Wave 2:
During /legion:build for marketing phases:
/legion:review for marketing phases uses the Consistency Validation Checklist (Section 4.3) as a review criterionFull format specification for campaign documents produced at .planning/campaigns/{campaign-slug}.md. This is the canonical output artifact of marketing workflows.
# Campaign: {Campaign Name}
**Created:** {YYYY-MM-DD}
**Status:** Planning | Active | Measuring | Complete
**Timeline:** {start_date} to {end_date}
**Owner:** {primary marketing agent -- typically marketing-social-media-strategist}
## Objectives
- **Primary**: {main campaign goal -- e.g., "Launch product X awareness"}
- **Secondary**: {supporting goals -- e.g., "Build email list to 5K subscribers"}
- **Success Metrics**:
| Metric | Target | Measurement |
|--------|--------|-------------|
| Reach | {target} | Platform analytics |
| Engagement | {target} | Platform analytics |
| Conversions | {target} | Landing page tracking |
## Target Audience
- **Primary**: {demographic, psychographic, behavioral description}
- **Secondary**: {adjacent audience segment}
- **Channels where they live**: {platform list with rationale}
## Core Messaging
- **Key Message**: {one-sentence core message}
- **Supporting Messages**:
1. {rational benefit}
2. {emotional benefit}
3. {social proof}
- **Tone**: {brand voice for this campaign}
- **Hashtags**: {campaign-specific hashtags}
- **CTA**: {primary call-to-action}
## Channel Strategy
| Channel | Agent | Role | Content Types | Frequency |
|---------|-------|------|---------------|-----------|
| {channel} | {agent-id} | {role description} | {content types} | {frequency} |
## Content Calendar
| Week | Phase | Key Theme | Content Items |
|------|-------|-----------|---------------|
| W1 | {phase} | {theme} | {type: agent, type: agent, ...} |
| W2 | {phase} | {theme} | {content items} |
## Agent Assignments
| Agent | Role | Responsibilities | Deliverables |
|-------|------|-----------------|--------------|
| {agent-id} | {role} | {what they do} | {what they produce} |
## Cross-Channel Consistency
- All channels use the same core message (adapted for platform format per Section 4.2)
- Visual assets: consistent color palette, typography, imagery style
- Hashtag usage: campaign hashtags on all platforms
- Timing: coordinated launch across channels (staggered by 2-4 hours)
- Voice: consistent brand tone, adapted for platform norms
## Timeline
| Phase | Dates | Activities |
|-------|-------|-----------|
| Pre-launch | {dates} | Teasers, audience building, content creation |
| Launch | {dates} | Coordinated multi-channel launch |
| Sustain | {dates} | Regular content, engagement, optimization |
| Measure | {dates} | Performance analysis, learnings capture |
| Status | Meaning | Set When |
|---|---|---|
| Planning | Campaign document being drafted, not yet approved | During /legion:plan campaign questioning |
| Active | Campaign is live, content being produced/distributed | When /legion:build begins marketing phase execution |
| Measuring | Campaign ended, collecting results | After all content waves complete |
| Complete | Final learnings captured, campaign archived | After review and outcome recording |
A single phase may produce multiple campaign documents. Each gets its own file:
.planning/campaigns/product-launch-q2.md.planning/campaigns/community-growth-summer.mdThe phase plan references all campaign documents in its @context block.
How callers consume this skill. Each integration point follows the same contract: detect marketing phase, use marketing patterns if detected, skip silently if not.
In phase-decomposer, after reading ROADMAP phase details:
1. Run Marketing Domain Detection (Section 1 heuristic)
- Check for MKT-* requirement IDs in the phase
- Check for marketing keywords in the phase description
- Check if agent-registry recommends majority marketing agents
2. If marketing phase detected:
a. Read marketing-workflows skill for domain-specific patterns
b. Run Campaign Brief Questioning (Section 2.1) via AskUserQuestion
c. Generate campaign document (Section 2.2) at .planning/campaigns/{slug}.md
d. Use marketing-specific wave pattern for plan decomposition:
Wave 1: Strategy & Planning
Agents: marketing-social-media-strategist + marketing-growth-hacker
Produces: campaign strategy brief, success metrics, audience analysis
Wave 2: Content Creation
Agents: marketing-content-social-strategist + channel specialists (in parallel)
Produces: content assets per channel, adapted from core messaging
Wave 3 (optional, if phase scope includes execution):
Agents: all channel agents in parallel
Produces: published content, engagement reports
e. Generate plan files with marketing-aware task descriptions
f. Reference campaign document in plan context: @.planning/campaigns/{slug}.md
3. If not marketing phase:
Standard decomposition proceeds (no impact from this skill)
During wave-executor for marketing phases:
1. Wave 1 agents receive campaign document as context
- Campaign doc path: .planning/campaigns/{slug}.md
- Agent personality is injected per standard personality injection pattern
2. Wave 1 SUMMARY.md includes the core messaging brief
- This is the key handoff artifact between Wave 1 and Wave 2
- Strategy Lead ensures core message is explicit in their summary
3. Wave 2 agents receive:
- Campaign document (from .planning/campaigns/)
- Wave 1 SUMMARY.md (contains core messaging brief)
- Their channel-specific assignments from the content calendar
- Channel adaptation guidelines for their platform
4. If Wave 3 exists:
- Distribution agents receive all prior summaries
- Focus is on publishing and engagement, not content creation
During review-loop for marketing phases, review agents check:
Every command that integrates with marketing workflows MUST follow this contract:
1. Check if phase is marketing (Section 1 heuristic)
2. If yes: use marketing-specific patterns for that operation
3. If no: standard behavior, skip silently
4. Never error, never block, never require marketing workflows for non-marketing phases
5. If a marketing operation fails mid-way: log the error, continue the workflow
6. Campaign documents are supplementary artifacts -- workflow completion does not depend on them
This is identical to the GitHub Conventions, Memory Conventions, and Codebase Map Conventions degradation pattern -- all optional integrations follow the same contract.
This skill is consumed by:
| Consumer | Operation | Section |
|---|---|---|
phase-decomposer.md | Marketing domain detection, campaign-aware decomposition | Sections 1, 6.1 |
plan.md | Campaign brief questioning, document generation | Sections 2, 6.1 |
build.md | Marketing wave execution, core messaging handoff | Sections 4, 6.2 |
review.md | Cross-channel consistency review | Sections 4.3, 6.3 |
workflow-common.md | Marketing Workflow Conventions, campaign paths | Section 1 (constants) |
agent-registry.md | Marketing Campaign team assembly pattern | Section 2.3 (team assembly) |
Campaign document format is defined in Section 5. Marketing domain detection is defined in Section 1 and must be checked before applying marketing patterns. All consumers should handle non-marketing phases silently per Section 6.4 caller contract.
This skill completes when ALL conditions are met (for marketing phases only; non-marketing phases no-op silently and return immediately):
.planning/campaigns/{phase-slug}/ directory exists for the target phasecompletedcompleted.planning/campaigns/{phase-slug}/REPORT.md AND measuring window elapsed per settings.marketing.measuring_duration_days (default 14)SUMMARY.md Files Modified sectionIf ANY condition is unmet, the skill is NOT complete — continue working or escalate via <escalation> block.