Overview
Context files are the configuration layer that ensures all generated content matches your brand, follows your style, targets your keywords, and serves your audience. Every command and agent references these files for guidance.What Are Context Files?
Context files are markdown documents in thecontext/ directory that define:
- Brand voice and messaging
- Editorial standards and style rules
- SEO requirements and keyword targets
- Internal linking strategy
- Product features and benefits
- Competitive positioning
- CRO best practices
~/workspace/source/context/
Why Context Files Matter
Without properly configured context files:- Content won’t sound like your brand
- Keyword targeting will be inconsistent
- Internal links won’t align with strategy
- Product mentions will feel forced
- Style will vary across articles
- Every article maintains consistent voice
- Keywords are targeted strategically
- Internal links support your site architecture
- Product integration feels natural
- Quality remains high across all content
Core Context Files
brand-voice.md
Purpose: Defines your brand voice, tone, and messaging framework Used by: All commands, especially/write, /rewrite, /article
Must include:
Voice Pillars
Voice Pillars
The core characteristics of your brand voice:
- Expert but approachable - How to balance authority with accessibility
- Data-driven yet human - When to use statistics vs. stories
- Empowering and practical - Focus on actionable advice
Tone Guidelines by Content Type
Tone Guidelines by Content Type
How tone varies based on content:
- How-to guides: Direct, instructional, step-by-step
- Strategy articles: Thought leadership, analytical
- News/updates: Informative, timely, concise
- Product content: Benefits-focused, solution-oriented
Core Brand Messages
Core Brand Messages
Key themes to reinforce:
- Your unique value proposition
- Main differentiators from competitors
- Problems you solve
- Audience benefits
Writing Style Guidelines
Writing Style Guidelines
Specific style rules:
- Use contractions (don’t vs. do not)
- Second person (you) vs. first person (we)
- Sentence length preferences
- Paragraph structure
- Active vs. passive voice
Terminology Preferences
Terminology Preferences
Your preferred terms:
- Industry terminology choices
- Product/feature names
- Terms to avoid
- Competitor references
style-guide.md
Purpose: Editorial and formatting standards for consistency Used by: All writing commands and the editor agent Must include:- Grammar and mechanics rules (Oxford comma, em-dash usage)
- Capitalization conventions (title case rules, product names)
- Formatting standards (bold, italics, lists, quotes)
- Number and date formatting (“10 ways” vs. “ten ways”)
- Abbreviation rules (when to spell out acronyms)
- Link formatting (when to use inline vs. reference links)
- Quote and citation style
seo-guidelines.md
Purpose: SEO best practices and requirements for all content Used by: All writing commands, seo-optimizer agent, content-analyzer agent Must include:- Content length requirements (minimum/target word counts)
- Keyword optimization rules (density targets, placement)
- Meta element standards (title/description length, format)
- Heading structure requirements (H1/H2/H3 hierarchy)
- Link strategy guidelines (internal/external link counts)
- Readability requirements (grade level, sentence length)
- Image optimization (alt text, file naming)
target-keywords.md
Purpose: Keyword research organized by topic cluster Used by:/research, /write, keyword-mapper agent
Must include:
- Topic clusters (pillar topics and subtopics)
- Pillar keywords (main keywords per cluster)
- Cluster keywords (subtopic keywords)
- Long-tail variations (specific phrases)
- Search intent classification (informational/commercial/transactional)
- Current rankings (if tracking existing content)
- Priority levels (high/medium/low importance)
internal-links-map.md
Purpose: Catalog of key pages from your site for strategic internal linking Used by: All writing commands, internal-linker agent Must include:- Product pages and features (URLs, descriptions, when to link)
- Pillar content URLs (comprehensive guides)
- Top performing blog articles (high-traffic posts)
- Topic cluster mapping (how content connects)
- Recommended anchor text (for each page)
- Priority levels (must-link vs. optional)
features.md
Purpose: Product features and benefits for natural integration Used by: All writing commands when discussing solutions Must include:- Feature list (what your product does)
- Benefit statements (why it matters to users)
- Use cases (when/how to use each feature)
- Differentiation (what makes your features unique)
- Integration tips (how to mention naturally in content)
competitor-analysis.md
Purpose: Competitive intelligence and content gap identification Used by:/research, /analyze-existing commands
Must include:
- Primary competitors (who you compete against)
- Their content strategies (what they cover, how they position)
- Keyword gaps (terms they rank for that you don’t)
- Content gaps (topics they cover that you don’t)
- Differentiation opportunities (where you can stand out)
- Weakness analysis (what they’re missing)
writing-examples.md
Purpose: Example articles demonstrating your ideal writing style Used by:/write, /rewrite commands, editor agent
Must include:
- 3-5 exemplary articles (full content)
- What makes each example great (specific elements)
- Key style takeaways (patterns to emulate)
- Voice characteristics (how brand voice shows through)
cro-best-practices.md
Purpose: Conversion optimization guidelines for landing pages Used by:/landing-write, /landing-audit commands, cro-analyst agent
Must include:
- Above-the-fold requirements (headline, value prop, CTA)
- CTA best practices (placement, copy, design)
- Trust signal guidelines (testimonials, social proof, guarantees)
- Page structure standards (sections, flow, length)
- Copy frameworks (AIDA, PAS, etc.)
- Mobile optimization (responsive considerations)
How Context Files Are Used
In Commands
Commands reference context files using@context/filename.md syntax:
In Agents
Agents reference context files for evaluation criteria:In Python Modules
Some Python modules can access context files:Setting Up Context Files
Initial Setup
- Copy examples - See
examples/castos/for complete examples - Customize for your brand - Replace with your information
- Start with core files - Focus on brand-voice, style-guide, seo-guidelines first
- Add as you go - Build out target-keywords, internal-links-map over time
Maintenance Schedule
| Frequency | Tasks |
|---|---|
| Weekly | Update target-keywords.md with new opportunities |
| Monthly | Add new pages to internal-links-map.md |
| Monthly | Update competitor-analysis.md with new insights |
| Quarterly | Review and refresh all context files |
| As needed | Update features.md when product changes |
| As needed | Revise seo-guidelines.md for algorithm updates |
Best Practices
Be Specific
Do: “Use contractions in all content except legal/technical docs”
Provide Examples
Do: Show before/after examples of good vs. bad
Keep Current
Do: Update context files as your brand evolves
Make Actionable
Do: “Link to pricing page when discussing cost comparisons”
Common Issues
Issue: Content doesn’t match brand voice
Cause: Vague guidelines in brand-voice.md Fix: Add specific examples of good vs. bad, voice do’s and don’tsIssue: Keyword targeting inconsistent
Cause: target-keywords.md not organized by priority/cluster Fix: Group keywords by topic cluster, add priority levelsIssue: Internal links aren’t relevant
Cause: internal-links-map.md lacks context on when to link Fix: Add “Link when” guidance and topic cluster mappingIssue: Product mentions feel forced
Cause: features.md focuses on features, not benefits/use cases Fix: Add use case examples and natural integration tipsContext File Templates
SEO Machine includes template context files: Location:~/workspace/source/context/
All files are provided as templates with placeholder content. You must customize them with your actual:
- Brand voice and messaging
- Product features and benefits
- Target keywords and clusters
- Internal pages and URLs
- Competitor information
- Style preferences
examples/castos/ for fully filled-out examples.
Well-configured context files are the difference between generic AI content and on-brand, strategic content that serves your business goals.