Context Engine — Shared Marketing Intelligence
When to Use This Skill
- User is setting up a new brand or project for marketing
- User switches between brands/clients (agency use case)
- Any other marketing skill needs brand context, industry data, compliance rules, or platform specs
- User asks about industry benchmarks, platform requirements, or regulatory compliance
Required Context
This skill loads and manages:
- Brand Profile — identity, voice, audiences, competitors, goals (from
~/.claude-marketing/brands/)
- Industry Profiles — benchmarks, KPIs, channel effectiveness per industry (see
industry-profiles.md)
- Compliance Rules — geographic privacy laws + industry regulations (see
compliance-rules.md)
- Platform Specs — character limits, image sizes, algorithm signals per platform (see
platform-specs.md)
- Scoring Rubrics — standardized evaluation criteria for all content types (see
scoring-rubrics.md)
Brand Profile Management
Loading a Brand
- Check
~/.claude-marketing/brands/_active-brand.json for the currently active brand
- If active brand exists, load
~/.claude-marketing/brands/{slug}/profile.json
- If no active brand, prompt: "No active brand configured. Run /digital-marketing-pro:brand-setup to create one, or tell me about your brand and I'll help set it up."
Brand Profile Schema
{
"brand_name": "",
"brand_slug": "",
"created_at": "",
"updated_at": "",
"schema_version": "1.0.0",
"identity": {
"tagline": "",
"mission": "",
"vision": "",
"values": [],
"unique_selling_proposition": "",
"positioning_statement": "",
"elevator_pitch": ""
},
"business_model": {
"type": "",
"revenue_model": "",
"price_range": "",
"sales_cycle_length": "",
"average_deal_size": "",
"customer_lifetime_value": ""
},
"industry": {
"primary": "",
"secondary": [],
"regulated": false,
"regulation_codes": [],
"compliance_notes": ""
},
"target_markets": [],
"brand_voice": {
"formality": 5,
"energy": 5,
"humor": 3,
"authority": 5,
"personality_traits": [],
"tone_keywords": [],
"avoid_words": [],
"prefer_words": [],
"this_not_that": [],
"sample_content": []
},
"channels": {
"active": [],
"primary": "",
"handles": {}
},
"competitors": [],
"goals": {
"primary_objective": "",
"kpis": [],
"budget_range": "",
"team_size": ""
}
}
Switching Brands
When user says "switch to [brand name]":
- Run:
python "scripts/setup.py" --switch-brand SLUG
- The script handles fuzzy matching, validation, and updates
_active-brand.json
- Confirm: "Switched to [brand_name]. All marketing outputs will now use this brand's voice, compliance rules, and context."
Or use: /digital-marketing-pro:switch-brand
How Other Modules Use This Skill
Every module should:
- Check if an active brand exists before producing marketing outputs
- Load relevant industry profile for benchmarks and channel recommendations
- Auto-apply compliance rules based on brand's
target_markets and industry.regulation_codes
- Reference platform specs when creating platform-specific content
- Use scoring rubrics when evaluating or grading content quality
- Use adaptive scoring — run
adaptive-scorer.py to get brand-specific weights before content scoring
- Save campaign data — use
campaign-tracker.py to persist plans, performance, and insights
- Check past campaigns — before making recommendations, check if similar campaigns exist in brand history
Business Model Types
The following types trigger different funnel models, KPI frameworks, and channel strategies:
B2B_SaaS — MRR/ARR focused, product-led or sales-led growth
B2C_eCommerce — ROAS focused, product catalog marketing
B2C_DTC — Direct-to-consumer brand building + performance
B2B_Services — Thought leadership, long sales cycles
Local_Business — Google Business Profile, local SEO, reviews
Agency — Multi-client management, white-label outputs
Creator — Personal brand, audience building, monetization
Enterprise — ABM, buying committees, complex sales
Non_Profit — Donor acquisition, awareness, advocacy
Marketplace — Two-sided acquisition, liquidity, trust
Brand Voice Scoring
The brand voice scorer (brand-voice-scorer.py) automatically normalizes profile data:
- Reads
brand_voice.formality (1-10 int scale) → converts to 0.0-1.0 float internally
- Maps
brand_voice.prefer_words → preferred_words, brand_voice.avoid_words → avoided_words
- Supports both the full profile schema (from brand-setup) and legacy direct schemas
Data Persistence
Campaign data, performance snapshots, and marketing insights persist across sessions:
~/.claude-marketing/brands/{slug}/
├── campaigns/ # Campaign plans and post-mortems
│ ├── _index.json # Campaign index for quick lookup
│ └── {id}.json # Individual campaign data
├── performance/ # Performance snapshots over time
│ └── {campaign}-{date}.json
├── insights.json # Marketing learnings (last 200)
├── content-library/ # Saved content pieces
└── voice-samples/ # Brand voice reference content
Use campaign-tracker.py for all persistence operations.
MCP Integrations
When MCP servers are configured (in .mcp.json), modules can pull real data:
- Google Analytics → actual traffic/conversion data for performance reports
- Google Search Console → real ranking data for SEO audits
- Google Ads / Meta → live campaign performance for paid advertising
- HubSpot → CRM data for funnel analysis
- Mailchimp → email campaign metrics
- Google Sheets → export reports and calendars
All MCP servers connect to the USER'S OWN accounts via their API keys.
Reference Files
- industry-profiles.md — 20+ industry profiles with benchmarks, channels, compliance, content types
- compliance-rules.md — Geographic privacy laws (16 jurisdictions) + industry regulations (10+ sectors)
- platform-specs.md — Social media, email, and ad platform specifications
- scoring-rubrics.md — Content quality, ad creative, email, and landing page scoring criteria
- intelligence-layer.md — How the adaptive intelligence system works (scoring, learning, persistence)
1---2name: context-engine3description: Load brand context for marketing tasks. Use when: setting up brands, switching context, or needing industry benchmarks.4---56# Context Engine — Shared Marketing Intelligence78## When to Use This Skill910- User is setting up a new brand or project for marketing11- User switches between brands/clients (agency use case)12- Any other marketing skill needs brand context, industry data, compliance rules, or platform specs13- User asks about industry benchmarks, platform requirements, or regulatory compliance1415## Required Context1617This skill loads and manages:181. **Brand Profile** — identity, voice, audiences, competitors, goals (from `~/.claude-marketing/brands/`)192. **Industry Profiles** — benchmarks, KPIs, channel effectiveness per industry (see `industry-profiles.md`)203. **Compliance Rules** — geographic privacy laws + industry regulations (see `compliance-rules.md`)214. **Platform Specs** — character limits, image sizes, algorithm signals per platform (see `platform-specs.md`)225. **Scoring Rubrics** — standardized evaluation criteria for all content types (see `scoring-rubrics.md`)2324## Brand Profile Management2526### Loading a Brand27281. Check `~/.claude-marketing/brands/_active-brand.json` for the currently active brand292. If active brand exists, load `~/.claude-marketing/brands/{slug}/profile.json`303. If no active brand, prompt: "No active brand configured. Run /digital-marketing-pro:brand-setup to create one, or tell me about your brand and I'll help set it up."3132### Brand Profile Schema3334```json35{36 "brand_name": "",37 "brand_slug": "",38 "created_at": "",39 "updated_at": "",40 "schema_version": "1.0.0",41 "identity": {42 "tagline": "",43 "mission": "",44 "vision": "",45 "values": [],46 "unique_selling_proposition": "",47 "positioning_statement": "",48 "elevator_pitch": ""49 },50 "business_model": {51 "type": "",52 "revenue_model": "",53 "price_range": "",54 "sales_cycle_length": "",55 "average_deal_size": "",56 "customer_lifetime_value": ""57 },58 "industry": {59 "primary": "",60 "secondary": [],61 "regulated": false,62 "regulation_codes": [],63 "compliance_notes": ""64 },65 "target_markets": [],66 "brand_voice": {67 "formality": 5,68 "energy": 5,69 "humor": 3,70 "authority": 5,71 "personality_traits": [],72 "tone_keywords": [],73 "avoid_words": [],74 "prefer_words": [],75 "this_not_that": [],76 "sample_content": []77 },78 "channels": {79 "active": [],80 "primary": "",81 "handles": {}82 },83 "competitors": [],84 "goals": {85 "primary_objective": "",86 "kpis": [],87 "budget_range": "",88 "team_size": ""89 }90}91```9293### Switching Brands9495When user says "switch to [brand name]":961. Run: `python "scripts/setup.py" --switch-brand SLUG`972. The script handles fuzzy matching, validation, and updates `_active-brand.json`983. Confirm: "Switched to [brand_name]. All marketing outputs will now use this brand's voice, compliance rules, and context."99100Or use: `/digital-marketing-pro:switch-brand`101102## How Other Modules Use This Skill103104Every module should:1051. Check if an active brand exists before producing marketing outputs1062. Load relevant industry profile for benchmarks and channel recommendations1073. Auto-apply compliance rules based on brand's `target_markets` and `industry.regulation_codes`1084. Reference platform specs when creating platform-specific content1095. Use scoring rubrics when evaluating or grading content quality1106. Use **adaptive scoring** — run `adaptive-scorer.py` to get brand-specific weights before content scoring1117. **Save campaign data** — use `campaign-tracker.py` to persist plans, performance, and insights1128. **Check past campaigns** — before making recommendations, check if similar campaigns exist in brand history113114## Business Model Types115116The following types trigger different funnel models, KPI frameworks, and channel strategies:117118- `B2B_SaaS` — MRR/ARR focused, product-led or sales-led growth119- `B2C_eCommerce` — ROAS focused, product catalog marketing120- `B2C_DTC` — Direct-to-consumer brand building + performance121- `B2B_Services` — Thought leadership, long sales cycles122- `Local_Business` — Google Business Profile, local SEO, reviews123- `Agency` — Multi-client management, white-label outputs124- `Creator` — Personal brand, audience building, monetization125- `Enterprise` — ABM, buying committees, complex sales126- `Non_Profit` — Donor acquisition, awareness, advocacy127- `Marketplace` — Two-sided acquisition, liquidity, trust128129## Brand Voice Scoring130131The brand voice scorer (`brand-voice-scorer.py`) automatically normalizes profile data:132- Reads `brand_voice.formality` (1-10 int scale) → converts to 0.0-1.0 float internally133- Maps `brand_voice.prefer_words` → `preferred_words`, `brand_voice.avoid_words` → `avoided_words`134- Supports both the full profile schema (from brand-setup) and legacy direct schemas135136## Data Persistence137138Campaign data, performance snapshots, and marketing insights persist across sessions:139```140~/.claude-marketing/brands/{slug}/141├── campaigns/ # Campaign plans and post-mortems142│ ├── _index.json # Campaign index for quick lookup143│ └── {id}.json # Individual campaign data144├── performance/ # Performance snapshots over time145│ └── {campaign}-{date}.json146├── insights.json # Marketing learnings (last 200)147├── content-library/ # Saved content pieces148└── voice-samples/ # Brand voice reference content149```150151Use `campaign-tracker.py` for all persistence operations.152153## MCP Integrations154155When MCP servers are configured (in `.mcp.json`), modules can pull real data:156- **Google Analytics** → actual traffic/conversion data for performance reports157- **Google Search Console** → real ranking data for SEO audits158- **Google Ads / Meta** → live campaign performance for paid advertising159- **HubSpot** → CRM data for funnel analysis160- **Mailchimp** → email campaign metrics161- **Google Sheets** → export reports and calendars162163All MCP servers connect to the USER'S OWN accounts via their API keys.164165## Reference Files166167- **industry-profiles.md** — 20+ industry profiles with benchmarks, channels, compliance, content types168- **compliance-rules.md** — Geographic privacy laws (16 jurisdictions) + industry regulations (10+ sectors)169- **platform-specs.md** — Social media, email, and ad platform specifications170- **scoring-rubrics.md** — Content quality, ad creative, email, and landing page scoring criteria171- **intelligence-layer.md** — How the adaptive intelligence system works (scoring, learning, persistence)