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:
- Scrape deepstack.trade for brand analysis (colors, typography, UI style)
- Research competitor visuals (trading platforms, fintech)
- Capture reference screenshots from Dribbble/Behance
- Output: Visual moodboard + direction document
2.2 research-market.md
MCPs: Perplexity, Firecrawl
Process:
- Research AI trading platform market
- Analyze competitor positioning
- Identify visual trends in fintech ads
- Output: Market insights document
2.3 research-audience.md
MCPs: Perplexity, Firecrawl
Process:
- Profile target users (traders, quants, retail investors)
- Extract language patterns from trading communities
- Identify emotional triggers
- Output: Audience profile with vocabulary
Phase 3: Brief Layer
3.1 brief-creative.md
MCPs: Memory, Perplexity
Process:
- Synthesize all research outputs
- Generate messaging framework (avoid generic AI slop)
- Define visual direction for ads
- Create asset specification (sizes, formats)
Human Gate: Brief approval before generation
3.2 brief-prompt.md
MCPs: Memory
Process:
- Transform creative brief into platform-specific prompts
- Generate Midjourney prompts (with --ar, --style, --v params)
- Generate Grok prompts
- Generate Runway prompts (if video needed)
- Create A/B variations
Phase 4: Generate Layer
4.1 Browser Automation Setup
Discovery Phase (run once per platform):
browser_navigate()to each platformbrowser_snapshot()to map UI elements- Document element refs for automation
4.2 generate-image.md
MCPs: Playwright, Memory
Platform Priority:
- Midjourney (alpha.midjourney.com) - Most automation-friendly
- Grok (x.com/i/grok) - Quick iterations
- 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:
- Generate ad headlines (multiple angles)
- Generate body copy variations
- Generate CTAs
- Apply brand voice from guidelines
Phase 5: Iterate Layer
5.1 iterate-feedback.md
Process:
- Capture structured feedback on assets
- Identify what to keep vs change
- Update state with refinement direction
5.2 iterate-variations.md
MCPs: Playwright
Process:
- Generate variations based on feedback
- Create size variants (1:1, 9:16, 16:9)
- Ad platform-specific crops
Phase 6: Deploy Layer
6.1 deploy-assets.md
MCPs: GitHub, Memory
Process:
- Organize final assets with consistent naming
- Create asset manifest with metadata
- Generate README documentation
- Push to GitHub repo
- 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
- Create
.factory/directory structure - Build orchestrator skill
- Implement state schema
- Build research-visual (with Firecrawl/Playwright)
- Build research-market (with Perplexity)
- Build research-audience (with Perplexity)
- Test: Run research on deepstack.trade
Week 2: Brief + Generate
- Build brief-creative
- Build brief-prompt
- Browser Recon: Map Midjourney UI elements
- Build generate-image (Midjourney first)
- Test: Generate first DeepStack ad images
- Add Grok automation
- Build generate-copy
Week 3: Iterate + Deploy + Polish
- Build iterate-feedback
- Build iterate-variations
- Build deploy-assets
- End-to-end test: Full pipeline for DeepStack ad
- Create brand-id8labs reference doc
- 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
.factory/skills/_pipeline/orchestrator.md- Pipeline coordinator.factory/skills/_pipeline/state-schema.json- State validation.factory/skills/research/research-visual.md- Visual research.factory/skills/brief/brief-creative.md- Brief generator.factory/skills/brief/brief-prompt.md- Prompt engineering.factory/skills/generate/generate-image.md- Image generation.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:
- Run
/pipeline start deepstack ad-creative - Get research automatically synthesized
- Review and approve brief
- Generate images via browser automation
- Select and refine assets
- Deploy to GitHub with proper documentation
- 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