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."4argument-hint: "[brand-slug]"5metadata:6 source: https://skillmd.com/skills/zuoguyoupan2023/context-engine7---89# Context Engine — Shared Marketing Intelligence1011## When to Use This Skill1213- User is setting up a new brand or project for marketing14- User switches between brands/clients (agency use case)15- Any other marketing skill needs brand context, industry data, compliance rules, or platform specs16- User asks about industry benchmarks, platform requirements, or regulatory compliance1718## Required Context1920This skill loads and manages:211. **Brand Profile** — identity, voice, audiences, competitors, goals (from `~/.claude-marketing/brands/`)222. **Industry Profiles** — benchmarks, KPIs, channel effectiveness per industry (see `industry-profiles.md`)233. **Compliance Rules** — geographic privacy laws + industry regulations (see `compliance-rules.md`)244. **Platform Specs** — character limits, image sizes, algorithm signals per platform (see `platform-specs.md`)255. **Scoring Rubrics** — standardized evaluation criteria for all content types (see `scoring-rubrics.md`)2627## Brand Profile Management2829### Loading a Brand30311. Check `~/.claude-marketing/brands/_active-brand.json` for the currently active brand322. If active brand exists, load `~/.claude-marketing/brands/{slug}/profile.json`333. 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."3435### Brand Profile Schema3637```json38{39 "brand_name": "",40 "brand_slug": "",41 "created_at": "",42 "updated_at": "",43 "schema_version": "1.0.0",44 "identity": {45 "tagline": "",46 "mission": "",47 "vision": "",48 "values": [],49 "unique_selling_proposition": "",50 "positioning_statement": "",51 "elevator_pitch": ""52 },53 "business_model": {54 "type": "",55 "revenue_model": "",56 "price_range": "",57 "sales_cycle_length": "",58 "average_deal_size": "",59 "customer_lifetime_value": ""60 },61 "industry": {62 "primary": "",63 "secondary": [],64 "regulated": false,65 "regulation_codes": [],66 "compliance_notes": ""67 },68 "target_markets": [],69 "brand_voice": {70 "formality": 5,71 "energy": 5,72 "humor": 3,73 "authority": 5,74 "personality_traits": [],75 "tone_keywords": [],76 "avoid_words": [],77 "prefer_words": [],78 "this_not_that": [],79 "sample_content": []80 },81 "channels": {82 "active": [],83 "primary": "",84 "handles": {}85 },86 "competitors": [],87 "goals": {88 "primary_objective": "",89 "kpis": [],90 "budget_range": "",91 "team_size": ""92 }93}94```9596### Switching Brands9798When user says "switch to [brand name]":991. Run: `python "scripts/setup.py" --switch-brand SLUG`1002. The script handles fuzzy matching, validation, and updates `_active-brand.json`1013. Confirm: "Switched to [brand_name]. All marketing outputs will now use this brand's voice, compliance rules, and context."102103Or use: `/digital-marketing-pro:switch-brand`104105## How Other Modules Use This Skill106107Every module should:1081. Check if an active brand exists before producing marketing outputs1092. Load relevant industry profile for benchmarks and channel recommendations1103. Auto-apply compliance rules based on brand's `target_markets` and `industry.regulation_codes`1114. Reference platform specs when creating platform-specific content1125. Use scoring rubrics when evaluating or grading content quality1136. Use **adaptive scoring** — run `adaptive-scorer.py` to get brand-specific weights before content scoring1147. **Save campaign data** — use `campaign-tracker.py` to persist plans, performance, and insights1158. **Check past campaigns** — before making recommendations, check if similar campaigns exist in brand history116117## Business Model Types118119The following types trigger different funnel models, KPI frameworks, and channel strategies:120121- `B2B_SaaS` — MRR/ARR focused, product-led or sales-led growth122- `B2C_eCommerce` — ROAS focused, product catalog marketing123- `B2C_DTC` — Direct-to-consumer brand building + performance124- `B2B_Services` — Thought leadership, long sales cycles125- `Local_Business` — Google Business Profile, local SEO, reviews126- `Agency` — Multi-client management, white-label outputs127- `Creator` — Personal brand, audience building, monetization128- `Enterprise` — ABM, buying committees, complex sales129- `Non_Profit` — Donor acquisition, awareness, advocacy130- `Marketplace` — Two-sided acquisition, liquidity, trust131132## Brand Voice Scoring133134The brand voice scorer (`brand-voice-scorer.py`) automatically normalizes profile data:135- Reads `brand_voice.formality` (1-10 int scale) → converts to 0.0-1.0 float internally136- Maps `brand_voice.prefer_words` → `preferred_words`, `brand_voice.avoid_words` → `avoided_words`137- Supports both the full profile schema (from brand-setup) and legacy direct schemas138139## Data Persistence140141Campaign data, performance snapshots, and marketing insights persist across sessions:142```143~/.claude-marketing/brands/{slug}/144├── campaigns/ # Campaign plans and post-mortems145│ ├── _index.json # Campaign index for quick lookup146│ └── {id}.json # Individual campaign data147├── performance/ # Performance snapshots over time148│ └── {campaign}-{date}.json149├── insights.json # Marketing learnings (last 200)150├── content-library/ # Saved content pieces151└── voice-samples/ # Brand voice reference content152```153154Use `campaign-tracker.py` for all persistence operations.155156## MCP Integrations157158When MCP servers are configured (in `.mcp.json`), modules can pull real data:159- **Google Analytics** → actual traffic/conversion data for performance reports160- **Google Search Console** → real ranking data for SEO audits161- **Google Ads / Meta** → live campaign performance for paid advertising162- **HubSpot** → CRM data for funnel analysis163- **Mailchimp** → email campaign metrics164- **Google Sheets** → export reports and calendars165166All MCP servers connect to the USER'S OWN accounts via their API keys.167168## Reference Files169170- **industry-profiles.md** — 20+ industry profiles with benchmarks, channels, compliance, content types171- **compliance-rules.md** — Geographic privacy laws (16 jurisdictions) + industry regulations (10+ sectors)172- **platform-specs.md** — Social media, email, and ad platform specifications173- **scoring-rubrics.md** — Content quality, ad creative, email, and landing page scoring criteria174- **intelligence-layer.md** — How the adaptive intelligence system works (scoring, learning, persistence)