Skip to content
Shell
8.4 KB
Raw Blame

ID8Labs Creative Stack - Implementation Plan

Overview

Build a modular creative production pipeline as Claude Code skills for generating marketing assets. First use case: DeepStack Ad Creative (AI-Powered Trading Research Platform).

Reference: deepstack.trade Output: Ad creative visuals Storage: GitHub repo Platforms: Midjourney, Grok Imagine, Runway


Phase 1: Foundation (Skills Infrastructure)

1.1 Create Directory Structure

/Users/eddiebelaval/Development/id8/.factory/
├── skills/
│   ├── _pipeline/
│   │   ├── README.md
│   │   ├── orchestrator.md
│   │   └── state-schema.json
│   ├── research/
│   ├── brief/
│   ├── generate/
│   ├── iterate/
│   └── deploy/
├── state/
├── templates/
└── output/

Files to create:

  • .factory/skills/_pipeline/orchestrator.md - Master coordinator skill
  • .factory/skills/_pipeline/state-schema.json - Campaign state validation
  • .factory/skills/_pipeline/README.md - Pipeline documentation

1.2 Skill File Format

YAML frontmatter + markdown body (matches existing Claude Code skills):

---
name: skill-name
description: Brief description
layer: research | brief | generate | iterate | deploy
requires_human_approval: true | false
inputs: [list]
outputs: [list]
mcps: [Playwright, Perplexity, etc.]
---

# Skill Content...

1.3 State Management

JSON state file per campaign: .factory/state/{campaign-id}.json

{
  "campaign_id": "deepstack-ad-001",
  "product": "DeepStack",
  "stage": "research",
  "research": {},
  "brief": {},
  "assets": [],
  "decisions": [],
  "next_skill": "research-visual"
}

Phase 2: Research Layer

2.1 research-visual.md

MCPs: Playwright, Firecrawl, Perplexity

Process:

  1. Scrape deepstack.trade for brand analysis (colors, typography, UI style)
  2. Research competitor visuals (trading platforms, fintech)
  3. Capture reference screenshots from Dribbble/Behance
  4. Output: Visual moodboard + direction document

2.2 research-market.md

MCPs: Perplexity, Firecrawl

Process:

  1. Research AI trading platform market
  2. Analyze competitor positioning
  3. Identify visual trends in fintech ads
  4. Output: Market insights document

2.3 research-audience.md

MCPs: Perplexity, Firecrawl

Process:

  1. Profile target users (traders, quants, retail investors)
  2. Extract language patterns from trading communities
  3. Identify emotional triggers
  4. Output: Audience profile with vocabulary

Phase 3: Brief Layer

3.1 brief-creative.md

MCPs: Memory, Perplexity

Process:

  1. Synthesize all research outputs
  2. Generate messaging framework (avoid generic AI slop)
  3. Define visual direction for ads
  4. Create asset specification (sizes, formats)

Human Gate: Brief approval before generation

3.2 brief-prompt.md

MCPs: Memory

Process:

  1. Transform creative brief into platform-specific prompts
  2. Generate Midjourney prompts (with --ar, --style, --v params)
  3. Generate Grok prompts
  4. Generate Runway prompts (if video needed)
  5. Create A/B variations

Phase 4: Generate Layer

4.1 Browser Automation Setup

Discovery Phase (run once per platform):

  1. browser_navigate() to each platform
  2. browser_snapshot() to map UI elements
  3. Document element refs for automation

4.2 generate-image.md

MCPs: Playwright, Memory

Platform Priority:

  1. Midjourney (alpha.midjourney.com) - Most automation-friendly
  2. Grok (x.com/i/grok) - Quick iterations
  3. Runway (if photorealistic needed)

Automation Flow (Midjourney):

1. Navigate to alpha.midjourney.com
2. Locate prompt input via browser_snapshot()
3. browser_type() prompt
4. Submit and wait (up to 5 min for Relax mode)
5. Click upscale (U1-U4)
6. Download upscaled image
7. Save with metadata

Automation Flow (Grok):

1. Navigate to x.com/i/grok
2. Locate chat input
3. browser_type() image prompt
4. Wait for image in response
5. Extract and download
6. Note: 3 images/day limit on free tier

Output: Generated images saved to .factory/output/{campaign}/assets/

Human Gate: Asset selection from variations

4.3 generate-copy.md

MCPs: Memory

Process:

  1. Generate ad headlines (multiple angles)
  2. Generate body copy variations
  3. Generate CTAs
  4. Apply brand voice from guidelines

Phase 5: Iterate Layer

5.1 iterate-feedback.md

Process:

  1. Capture structured feedback on assets
  2. Identify what to keep vs change
  3. Update state with refinement direction

5.2 iterate-variations.md

MCPs: Playwright

Process:

  1. Generate variations based on feedback
  2. Create size variants (1:1, 9:16, 16:9)
  3. Ad platform-specific crops

Phase 6: Deploy Layer

6.1 deploy-assets.md

MCPs: GitHub, Memory

Process:

  1. Organize final assets with consistent naming
  2. Create asset manifest with metadata
  3. Generate README documentation
  4. Push to GitHub repo
  5. Create PR for review

Storage Structure:

campaigns/deepstack-ad-001/
├── manifest.json
├── README.md
├── brief/
├── assets/
│   ├── full/
│   ├── web/
│   └── social/
└── metadata/

Human Gate: Deploy approval


Implementation Order

Week 1: Foundation + Research

  1. Create .factory/ directory structure
  2. Build orchestrator skill
  3. Implement state schema
  4. Build research-visual (with Firecrawl/Playwright)
  5. Build research-market (with Perplexity)
  6. Build research-audience (with Perplexity)
  7. Test: Run research on deepstack.trade

Week 2: Brief + Generate

  1. Build brief-creative
  2. Build brief-prompt
  3. Browser Recon: Map Midjourney UI elements
  4. Build generate-image (Midjourney first)
  5. Test: Generate first DeepStack ad images
  6. Add Grok automation
  7. Build generate-copy

Week 3: Iterate + Deploy + Polish

  1. Build iterate-feedback
  2. Build iterate-variations
  3. Build deploy-assets
  4. End-to-end test: Full pipeline for DeepStack ad
  5. Create brand-id8labs reference doc
  6. Document learnings

Human Decision Gates

Gate When Response Options
Research Synthesis After research complete approve / revise
Brief Approval After creative brief approve / revise
Asset Selection After generation select [1,3,5] / regenerate
Final Approval Before deploy approve / hold

MCP Assignment Matrix

Skill Playwright Perplexity Firecrawl GitHub Memory
orchestrator - - - - ✓
research-visual ✓ ✓ ✓ - -
research-market - ✓ ✓ - -
research-audience - ✓ ✓ - -
brief-creative - ✓ - - ✓
brief-prompt - - - - ✓
generate-image ✓ - - - ✓
generate-copy - - - - ✓
iterate-* ✓ - - - ✓
deploy-assets - - - ✓ ✓

Critical Files to Create

  1. .factory/skills/_pipeline/orchestrator.md - Pipeline coordinator
  2. .factory/skills/_pipeline/state-schema.json - State validation
  3. .factory/skills/research/research-visual.md - Visual research
  4. .factory/skills/brief/brief-creative.md - Brief generator
  5. .factory/skills/brief/brief-prompt.md - Prompt engineering
  6. .factory/skills/generate/generate-image.md - Image generation
  7. .factory/skills/deploy/deploy-assets.md - GitHub deployment

Risk Mitigation

Risk Mitigation
Dynamic UI selectors Use browser_snapshot() accessibility tree
Rate limits Track usage, implement cooldowns
Long generation times Extended timeouts (5-10 min), polling
reCAPTCHA (Runway) User pre-auth, consider official API
Anti-bot detection Random delays, human-like patterns

Success Criteria

Pipeline is complete when we can:

  1. Run /pipeline start deepstack ad-creative
  2. Get research automatically synthesized
  3. Review and approve brief
  4. Generate images via browser automation
  5. Select and refine assets
  6. Deploy to GitHub with proper documentation
  7. Total time: < 2 hours for full campaign

First Test: DeepStack Ad Creative

Product: DeepStack - AI-Powered Trading Research Platform Reference: deepstack.trade Asset Type: Ad creative (paid acquisition) Sizes: 1200x628 (Facebook), 1080x1080 (Instagram), 1200x675 (Twitter) Platforms: Start with Midjourney, compare with Grok