Context engine
Skill indranilbanerjee/digital-marketing-pro/skills/context-engine
Load brand context for marketing tasks. Use when: setting up brands, switching context, or needing industry benchmarks.From its SKILL.md
npx -y skills add indranilbanerjee/digital-marketing-pro --skill context-engineAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
6.6 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it
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.jsonfor 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 "${CLAUDE_PLUGIN_ROOT}/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_marketsandindustry.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.pyto get brand-specific weights before content scoring - Save campaign data — use
campaign-tracker.pyto 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 growthB2C_eCommerce— ROAS focused, product catalog marketingB2C_DTC— Direct-to-consumer brand building + performanceB2B_Services— Thought leadership, long sales cyclesLocal_Business— Google Business Profile, local SEO, reviewsAgency— Multi-client management, white-label outputsCreator— Personal brand, audience building, monetizationEnterprise— ABM, buying committees, complex salesNon_Profit— Donor acquisition, awareness, advocacyMarketplace— 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)
What ships with it: 56 files
849.9 KB alongside SKILL.md
- 30-60-90-framework.md8.2 KB
- actionable-persona-format.md7.0 KB
- advanced-reporting-guide.md20.7 KB
- agency-operations-guide.md15.6 KB
- approval-framework.md11.5 KB
- b2b-decision-making-unit.md9.1 KB
- channel-families.md7.7 KB
- competitive-monitoring-guide.md16.8 KB
- competitor-3-question-output.md8.0 KB
- compliance-rules.md70.0 KB
- compound-intelligence-guide.md15.5 KB
- creative-intelligence-guide.md13.9 KB
- crm-integration-guide.md33.2 KB
- custom-mcp-guide.md16.7 KB
- decision-framework.md7.4 KB
- decision-matrix-rerun.md4.9 KB
- engagement-flow-methodology.md11.4 KB
- eu-code-of-practice.md11.9 KB
- eval-framework-guide.md26.8 KB
- eval-rubrics.md16.8 KB
- execution-workflows.md22.3 KB
- five-digital-markets.md7.5 KB
- fixed-vs-variable-budget.md6.8 KB
- four-core-documents-spec.md14.2 KB
- geo-execution-guide.md19.9 KB
- google-seo-reference.md6.8 KB
- growth-plan-template.md9.5 KB
- guidelines-framework.md13.9 KB
- india-market-context.md13.6 KB
- industry-profiles.md64.0 KB
- in-market-out-market.md6.1 KB
- intelligence-layer.md3.7 KB
- journey-growth-guide.md19.8 KB
- living-instruction-file-spec.md7.2 KB
- marketing-science-guide.md14.0 KB
- market-intelligence-guide.md13.6 KB
- memory-architecture.md12.4 KB
- monthly-report-template.md7.0 KB
- multilingual-execution-guide.md30.3 KB
- narrative-warfare-guide.md17.9 KB
16 more files not listed here. See all 56 in the repository.