Specification Toolkit for Marketing Operations - Transform marketing chaos into structured, AI-driven workflows.
A Spec-Driven Toolkit that enables marketing teams to:
β
Define marketing operations as structured YAML specifications
β
Validate plans, campaigns, and content against 45 business rules
β
Execute with 22 AI Agent Slash Commands for automated workflows
β
Analyze performance with AI-generated insights and optimization recommendations
v2.0.0 introduces a complete 5-phase marketing workflow system:
Strategic Planning β Campaign Design β Content Creation β Execution β Analytics & Optimization
# Using pip
pip install marketing-spec-kit
# Using uv (recommended)
uv pip install marketing-spec-kit# Initialize a new specification
marketing_spec_kit init my-marketing-spec.yaml
# Validate the specification
marketing_spec_kit validate my-marketing-spec.yaml# Create a marketing plan (interactive)
/marketing.plan.create
# Design a campaign based on the plan
/marketing.campaign.design q4-2025-growth-plan awareness
# Generate content calendar
/marketing.content.plan q4-awareness-launch
# Analyze campaign performance
/marketing.analytics.campaign q4-awareness-launchmarketing-spec-kit v2.0.0 manages 9 marketing entities:
| Entity | Purpose | Fields | New in v2.0 |
|---|---|---|---|
| Project | Brand identity and core values | 9 | |
| Product | Feature offerings and positioning | 8 | |
| MarketingPlan | Strategic marketing plan | 14 | β |
| Campaign | Time-bound marketing activities | 15 | β¨ Updated |
| Channel | Distribution platforms | 9 | |
| Tool | Integration automation | 7 | |
| ContentTemplate | Brand guidelines and constraints | 9 | |
| Milestone | Timeline markers and events | 9 | |
| Analytics | Performance analytics report | 9 | β |
New in v2.0.0:
- MarketingPlan: Strategic planning with objectives, budget, KPIs
- Analytics: AI-powered performance analysis and optimization
- Campaign.plan_id: Now REQUIRED (links campaigns to plans)
/marketing.plan.create # Create plan with objectives, budget, KPIs
/marketing.plan.validate # Validate against 5 rules
/marketing.plan.analyze # AI strategic analysis/marketing.campaign.design # AI-assisted campaign design
/marketing.campaign # Get campaign details/marketing.content.plan # Generate content calendar
/marketing.generate.post # Generate social media post
/marketing.generate.article # Generate blog article
/marketing.generate.email # Generate email campaign
/marketing.generate.landing_page # Generate landing page copy/marketing.execute.schedule # Schedule content for future publication
/marketing.execute.publish # Publish content immediately/marketing.analytics.campaign # Campaign performance report
/marketing.analytics.plan # Plan-level analytics
/marketing.optimize.suggest # AI optimization suggestions| Command | Description |
|---|---|
init <file> |
Create a new marketing specification from template |
validate <file> |
Validate specification against 45 rules |
info |
Show toolkit version and statistics |
/marketing.project- Get brand identity/marketing.product- Get product features/marketing.plan.get- Get plan details [NEW]/marketing.campaign- Get campaign goals/marketing.channel- Get channel details/marketing.tool- Get tool integrations/marketing.milestone- Get milestone events
/marketing.plan.create- Create marketing plan/marketing.plan.validate- Validate plan/marketing.plan.analyze- AI strategic analysis
/marketing.campaign.design- AI-assisted campaign design [NEW]/marketing.content_template- Get content guidelines/marketing.content.plan- Generate content calendar [NEW]
/marketing.generate.post- Generate social media post/marketing.generate.article- Generate blog article/marketing.generate.email- Generate email campaign/marketing.generate.landing_page- Generate landing page copy
/marketing.execute.schedule- Schedule content/marketing.execute.publish- Publish content
/marketing.analytics.campaign- Campaign analytics report/marketing.analytics.plan- Plan-level analytics/marketing.optimize.suggest- AI optimization suggestions
marketing-spec-kit enforces 45 business rules across all entities:
| Entity | Rules | Key Validations |
|---|---|---|
| Project | 6 | Brand voice, website HTTPS, target audience |
| Product | 5 | Pricing, launch date, feature list |
| MarketingPlan | 5 | Budget balance, approval, objectives [NEW] |
| Campaign | 11 | Budget, dates, channels, plan linkage [UPDATED] |
| Channel | 6 | Platform, constraints, tool integration |
| Tool | 6 | Credentials, rate limits, integration |
| ContentTemplate | 5 | Brand compliance, format, examples |
| Milestone | 5 | Date validity, product/campaign links |
| Analytics | 1 | Entity reference validation [NEW] |
Performance: Validation completes in <250ms for typical specifications.
# my-marketing-spec.yaml
project:
name: "AwesomeApp"
tagline: "Ship faster with AI"
brand_voice: "Technical"
website: "https://awesomeapp.com"
target_audience:
- "Developers"
- "DevOps Engineers"
value_propositions:
- "10x faster deployment"
- "AI-powered automation"
plans:
- id: "q4-2025-growth"
name: "Q4 2025 Growth Plan"
project_id: "awesomeapp"
period:
start_date: "2025-10-01"
end_date: "2025-12-31"
duration_weeks: 13
objectives:
- "Increase brand awareness by 50%"
- "Drive 10,000 new signups"
- "Achieve $100K revenue"
budget:
total: 5000
currency: "USD"
allocation:
content_creation: 2000
paid_promotion: 2500
tools: 300
contingency: 200
kpis:
- name: "Brand Awareness"
target: 50000
unit: "impressions"
measurement: "Social media + website"
priority: "P0"
status: "draft"
created_at: "2025-11-15T10:00:00Z"
updated_at: "2025-11-15T10:00:00Z"
campaigns:
- id: "q4-awareness-launch"
name: "Product Launch Campaign"
goal: "awareness"
plan_id: "q4-2025-growth" # REQUIRED in v2.0.0
project_id: "awesomeapp"
target_audience: ["Developers"]
budget: 2000
start_date: "2025-10-01"
end_date: "2025-10-21"
channels: ["twitter", "dev-to", "reddit"]
expected_kpis:
impressions: 30000
engagement_rate: 0.03
status: "draft"See examples/ for complete examples.
marketing-spec-kit/
βββ README.md # This file
βββ CHANGELOG.md # Version history
βββ AGENTS.md # AI Agent guide (v2.0.0 workflow)
βββ pyproject.toml # Python project config
β
βββ memory/
β βββ constitution.md # Core principles (v1.3.0)
β
βββ specs/
β βββ domain/
β β βββ 001-marketing-operations-spec/
β β βββ spec.md # Domain specification (v2.0.0)
β β βββ workflow-redesign.md
β βββ toolkit/
β βββ 001-marketing-spec-kit-implementation/
β βββ spec.md # Toolkit specification
β
βββ changes/
β βββ 2025-11-15-add-workflow-system/ # v2.0.0 evolution
β βββ proposal.md
β βββ tasks.md
β βββ impact.md
β βββ specs/spec-delta.md
β
βββ examples/
β βββ metaspec-marketing.yaml # Complete v2.0.0 example
β βββ metaspec-marketing-plan.md # Plan documentation
β
βββ templates/
β βββ entity_templates/ # Init templates (minimal/default/full)
β βββ custom/
β βββ commands/ # 22 Slash Command definitions
β
βββ src/marketing_spec_kit/
βββ __init__.py # Package exports (v2.0.0)
βββ models.py # 9 entities + 11 nested models
βββ parser.py # YAML/JSON parser
βββ validator.py # 45 validation rules
βββ cli.py # CLI commands
βββ exceptions.py # Custom exceptions
| Feature | v1.0.0 | v2.0.0 | Change |
|---|---|---|---|
| Entities | 7 | 9 | +2 (Plan, Analytics) |
| Slash Commands | 13 | 22 | +9 |
| Validation Rules | 42 | 45 | +3 |
| Workflow Phases | β None | β 5 phases | NEW |
| Strategic Planning | β | β Plan entity | NEW |
| Performance Analytics | β | β Analytics entity | NEW |
| AI Campaign Design | β | β campaign.design | NEW |
| Content Calendar | β | β content.plan | NEW |
Breaking Changes:
Campaign.plan_idis now REQUIRED (was not present in v1.x)- All campaigns must belong to a MarketingPlan
See MIGRATION.md for upgrade guide.
- AGENTS.md - Complete AI Agent workflow guide
- CHANGELOG.md - Version history and changes
- memory/constitution.md - Core principles (v1.3.0)
- specs/domain/ - Domain specification (v2.0.0)
- changes/ - Evolution proposals
This project follows Spec-Driven Development using MetaSpec:
- Specify First: Define changes in
specs/before coding - Validate Early: Run validation before implementation
- Document Changes: Use Evolution Proposals for breaking changes
- Test Thoroughly: Validate against all 45 rules
See .metaspec/README.md for development guide.
- β Standardize marketing operations across campaigns
- β Ensure brand consistency with validated templates
- β Track performance with built-in analytics
- β Structured access to marketing context via 22 Slash Commands
- β Generate on-brand content with brand guidelines
- β Automate campaign execution and scheduling
- β Integrate marketing data into apps via validated specs
- β Build marketing automation tools on top of spec-kit
- β Extend with custom entities and validation rules
MIT License - see LICENSE for details.
Built with:
- MetaSpec - Spec-Driven Development framework
- Pydantic - Data validation
- Typer - CLI framework
- Rich - Terminal formatting
Generated by: MetaSpec 0.6.2
Version: 2.0.0
Release Date: 2025-11-15
For questions or issues, please open an issue.