Back to Blog
Tutorials

Power User Guide: Custom YAML Topic Libraries

Unlock infinite content possibilities by mastering MyPosts' YAML-based topic configuration system.

David Childs
Share:

Beyond Built-in Libraries

While MyPosts includes 10+ topic libraries, the real power comes from creating custom YAML configurations tailored to your exact needs.

YAML Structure Basics

Essential Format

name: "Custom Marketing Topics"
description: "Specialized marketing content"
categories:
  - category: "Growth Hacking"
    topics:
      - "Viral loop strategies"
      - "Referral program design"
      - "Product-led growth"
    styles:
      - "Data-driven"
      - "Case study"
      - "Actionable"

Advanced Configurations

Multi-Level Nesting

name: "Enterprise SaaS"
categories:
  - category: "Sales"
    subcategories:
      - name: "Outbound"
        topics:
          - "Cold email templates"
          - "LinkedIn outreach"
        formats:
          - "Tutorial"
          - "Template"
      - name: "Inbound"
        topics:
          - "Content marketing"
          - "SEO strategies"

Conditional Content

topics:
  - topic: "Product updates"
    conditions:
      day_of_week: ["Tuesday", "Thursday"]
      time_range: "09:00-11:00"
      frequency: "weekly"

Variable Substitution

Dynamic Content

templates:
  - "How {company} increased {metric} by {percentage}%"
  - "The {number} {category} tools every {role} needs"
  
variables:
  company: ["Stripe", "Notion", "Figma"]
  metric: ["revenue", "retention", "activation"]
  percentage: [30, 50, 100, 200]

Industry-Specific Examples

E-commerce Configuration

name: "E-commerce Excellence"
categories:
  - category: "Conversion"
    topics:
      - "Cart abandonment"
      - "Checkout optimization"
      - "Product recommendations"
  - category: "Retention"
    topics:
      - "Email marketing"
      - "Loyalty programs"
      - "Win-back campaigns"

Developer Content

name: "Dev Content"
categories:
  - category: "Languages"
    items:
      - "Python tips"
      - "JavaScript tricks"
      - "Rust insights"
  - category: "Tools"
    items:
      - "VS Code extensions"
      - "Terminal commands"
      - "Git workflows"

Prompt Engineering Integration

Style Modifiers

styles:
  professional:
    tone: "formal"
    vocabulary: "industry-specific"
    structure: "logical"
  casual:
    tone: "conversational"
    vocabulary: "simple"
    structure: "story-based"

Output Formats

formats:
  thread:
    length: "5-7 tweets"
    style: "educational"
    cta: "follow for more"
  single:
    length: "200-250 chars"
    style: "punchy"
    cta: "implicit"

Weighted Randomization

Topic Priorities

topics:
  - name: "Product updates"
    weight: 30  # 30% chance
  - name: "Industry news"
    weight: 20  # 20% chance
  - name: "Tips and tricks"
    weight: 50  # 50% chance

Seasonal Configurations

Time-Based Topics

seasonal:
  Q1:
    - "New Year planning"
    - "Goal setting"
  Q2:
    - "Spring cleaning digital"
    - "Mid-year review"
  Q3:
    - "Summer productivity"
    - "Vacation planning"
  Q4:
    - "Holiday campaigns"
    - "Year-end reflection"

Import and Export

Sharing Configurations

# Export your config
myposts export-yaml my-config.yaml

# Import shared config
myposts import-yaml friend-config.yaml

# Merge configurations
myposts merge-yaml config1.yaml config2.yaml

Validation Rules

Required Fields

# Minimum valid configuration
name: "Required"  # mandatory
categories:       # mandatory
  - category: "Sample"  # at least one
    topics:      # at least one topic
      - "Topic"

Best Practices

  • Keep topics specific
  • Group logically
  • Test with small batches
  • Version control configs
  • Document custom fields

Performance Tips

Optimization Strategies

  • Limit nesting to 3 levels
  • Keep files under 1MB
  • Use references for repeated content
  • Cache processed configs
  • Validate before deployment

Master YAML configuration to unlock unlimited content possibilities with MyPosts!

Want more insights like this?

Subscribe to our newsletter for the latest MyPosts updates and tutorials

Subscribe Now