Content Type Router for Openclaw

A sophisticated routing engine that transforms natural language descriptions into structured visual configurations for automated image generation.

phy041
v1.0.0
Mar 7, 2026
0
113
1

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install phy-content-type-router

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install phy-content-type-router using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Content Type Router?

The Content Type Router is a powerful classification system designed to bridge the gap between abstract text descriptions and concrete visual layout rules. By analyzing user intent and industry context, it maps requests to one of 17 predefined content types, such as hero shots, infographics, or lifestyle photography. This Openclaw Skills component ensures that downstream image generation models receive precise instructions regarding focal points, subject coverage, and typography constraints.

Built for developers and creative technologists, this skill provides a robust Python-based API to automate the selection of visual modes—ranging from pure photography to text-heavy call-to-action graphics. By integrating this into your creative workflow, you can maintain brand consistency and technical accuracy across diverse visual assets without manual intervention, leveraging the power of Openclaw Skills to streamline production.

Content Type Router Use Cases

  • Automating product listing imagery for e-commerce platforms like Amazon or Shopify using standardized hero shots.
  • Generating structured social media assets with specific typography and CTA requirements for digital marketing campaigns.
  • Creating educational infographics and process guides from simple text explanations with predefined data label zones.
  • Routing marketing requests to the correct visual layout based on industry-specific best practices for SaaS, Travel, or Beauty sectors.

How Content Type Router Works

  1. The system receives a natural language description and an optional industry hint through the provided Python registry.
  2. A detection logic engine performs keyword scoring and multi-match analysis against a corpus of registered content types.
  3. The router calculates a confidence score, automatically applying industry-based fallbacks if the score falls below the 0.3 threshold.
  4. A structured ContentTypeConfig object is returned, containing specific layout rules, camera angles, and typography constraints.
  5. These technical specifications and generation hints are injected into downstream LLM or diffusion model prompts to ensure visual accuracy and composition.

Content Type Router Setup

To get started with this component of Openclaw Skills, install the package and configure your environment:

# Install the content type router package
pip install content-type-router

# Optional: Enable database-backed content types for brand-specific overrides
export USE_DB_CONTENT_TYPES=true

Initialize the detection in your Python script:

from content_types.registry import detect_content_type

# Detect the best fit for your content
slug, confidence = detect_content_type(
    description="A top-down flat lay of coffee and a laptop",
    industry="food"
)

Content Type Router Data Schema & Taxonomy

The skill organizes its output into a highly structured metadata taxonomy designed for programmatic consumption. It uses two primary data structures to define visual intent:

Structure Key Attributes
ContentTypeConfig slug, visual_mode, generation_hints, negative_prompts, aspect_ratios
LayoutRules focal_point, text_zone, subject_coverage_min/max, camera_angle, background

Each content type is mapped to a Visual Mode: pure_visual (no text), educational (limited labels), or cta (text required), which dictates how the Openclaw Skills router handles typographic overlays.

Content Type Router Advanced Features

  • Database-backed mode using Supabase for persistent, per-brand content type overrides and custom layout rules.
  • Dynamic cache invalidation for real-time updates to routing logic without restarting the application.
  • Automated negative prompt string generation specifically formatted for stable diffusion and other image models.
  • Industry-specific recommendation engine providing tailored content types for diverse sectors including SaaS, Luxury, and DTC.
  • Multi-match bonus scoring to improve classification accuracy for complex, multi-intent natural language descriptions within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*