Guide that documents architecture, structure, and workflow for creating cs-* subagents that orchestrate 42 existing skills. Includes production examples and a reusable template.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
borghei-claude-skills-1:agents/claudeThe summary Claude sees when deciding whether to delegate to this agent
This guide provides comprehensive instructions for creating **cs-* prefixed agents** that seamlessly integrate with the 42 production skills in this repository. **cs-* agents** are specialized Claude Code agents that orchestrate the 42 existing skills. Each agent: - References skills via relative paths (`../../marketing/`) - Executes Python automation tools from skill packages - Follows establi...
This guide provides comprehensive instructions for creating cs- prefixed agents* that seamlessly integrate with the 42 production skills in this repository.
cs- agents* are specialized Claude Code agents that orchestrate the 42 existing skills. Each agent:
../../marketing/)Key Principle: Agents ORCHESTRATE skills, they don't replace them. Skills remain self-contained and portable.
5 Agents Currently Available (as of November 5, 2025):
| Agent | Domain | Description | Skills Used | Lines |
|---|---|---|---|---|
| cs-content-creator | Marketing | AI-powered content creation with brand voice consistency and SEO optimization | content-creator | 327 |
| cs-demand-gen-specialist | Marketing | Demand generation and customer acquisition specialist | marketing-demand-acquisition | 289 |
| cs-ceo-advisor | C-Level | Strategic leadership advisor for CEOs covering vision, strategy, board management | ceo-advisor | 360 |
| cs-cto-advisor | C-Level | Technical leadership advisor for CTOs covering tech strategy and team scaling | cto-advisor | 412 |
| cs-product-manager | Product | Product management agent for RICE prioritization and customer discovery | product-manager-toolkit | 407 |
Total: 1,795 lines of comprehensive agent documentation
Template Available: templates/agent-template.md (318 lines) - Use this to create new agents
| Aspect | Agent (cs-*) | Skill |
|---|---|---|
| Purpose | Orchestrate and execute workflows | Provide tools, knowledge, templates |
| Location | agents/domain/ | domain-skill/skill-name/ |
| Structure | Single .md file with YAML frontmatter | SKILL.md + scripts/ + references/ + assets/ |
| Integration | References skills via ../../ | Self-contained, no dependencies |
| Naming | cs-content-creator, cs-ceo-advisor | content-creator, ceo-advisor |
Every agent file must start with valid YAML frontmatter:
---
name: cs-agent-name
description: One-line description of what this agent does
skills: skill-folder-name
domain: domain-name
model: sonnet
tools: [Read, Write, Bash, Grep, Glob]
---
Field Definitions:
cs- prefix (e.g., cs-content-creator)marketing/content-creator)After YAML frontmatter, include these sections:
All skill references use the ../../ pattern:
**Skill Location:** `../../marketing/content-creator/`
### Python Tools
1. **Brand Voice Analyzer**
- **Path:** `../../marketing/content-creator/scripts/brand_voice_analyzer.py`
- **Usage:** `python ../../marketing/content-creator/scripts/brand_voice_analyzer.py content.txt`
2. **SEO Optimizer**
- **Path:** `../../marketing/content-creator/scripts/seo_optimizer.py`
- **Usage:** `python ../../marketing/content-creator/scripts/seo_optimizer.py article.md "keyword"`
../../?From agent location: agents/marketing/cs-content-creator.md
To skill location: marketing/content-creator/
Navigation: agents/marketing/ → ../../ (up to root) → marketing/content-creator/
Always test paths resolve correctly!
Agents execute Python tools from skill packages:
# From agent context
python ../../marketing/content-creator/scripts/brand_voice_analyzer.py input.txt
# With JSON output
python ../../marketing/content-creator/scripts/brand_voice_analyzer.py input.txt json
# With arguments
python ../../product-team/product-manager-toolkit/scripts/rice_prioritizer.py features.csv --capacity 20
All Python tools must:
--help flag with usage informationWhen Python tools fail:
--help outputEach workflow must include:
### Workflow 1: [Clear Descriptive Name]
**Goal:** One-sentence description
**Steps:**
1. **[Action]** - Description with specific commands/tools
2. **[Action]** - Description with specific commands/tools
3. **[Action]** - Description with specific commands/tools
**Expected Output:** What success looks like
**Time Estimate:** How long this workflow takes
**Example:**
\`\`\`bash
# Concrete example command
python ../../marketing/content-creator/scripts/seo_optimizer.py article.md "primary keyword"
\`\`\`
Each agent must document at least 3 workflows covering:
Use this template when creating new agents:
---
name: cs-agent-name
description: One-line description
skills: skill-folder-name
domain: domain-name
model: sonnet
tools: [Read, Write, Bash, Grep, Glob]
---
# Agent Name
## Purpose
[2-3 paragraphs describing what this agent does, why it exists, and who it serves]
## Skill Integration
**Skill Location:** \`../../domain-skill/skill-name/\`
### Python Tools
1. **Tool Name**
- **Purpose:** What it does
- **Path:** \`../../domain-skill/skill-name/scripts/tool.py\`
- **Usage:** \`python ../../domain-skill/skill-name/scripts/tool.py [args]\`
### Knowledge Bases
1. **Reference Name**
- **Location:** \`../../domain-skill/skill-name/references/file.md\`
- **Content:** What's inside
### Templates
1. **Template Name**
- **Location:** \`../../domain-skill/skill-name/assets/template.md\`
- **Use Case:** When to use
## Workflows
### Workflow 1: [Name]
**Goal:** Description
**Steps:**
1. Step 1
2. Step 2
3. Step 3
**Expected Output:** Success criteria
**Example:**
\`\`\`bash
python ../../domain-skill/skill-name/scripts/tool.py input.txt
\`\`\`
### Workflow 2: [Name]
[Same structure]
### Workflow 3: [Name]
[Same structure]
## Integration Examples
[Concrete examples with actual commands and expected outputs]
## Success Metrics
- Metric 1: How to measure
- Metric 2: How to measure
- Metric 3: How to measure
## Related Agents
- [cs-related-agent](../domain/cs-related-agent.md) - How they relate
## References
- [Skill Documentation](../../domain-skill/skill-name/SKILL.md)
- [Domain Roadmap](../../domain-skill/roadmap.md)
Before committing an agent:
Test these aspects:
1. Path Resolution
# From agent directory
cd agents/marketing/
ls ../../marketing/content-creator/ # Should list contents
2. Python Tool Execution
# Create test input
echo "Test content" > test-input.txt
# Execute tool
python ../../marketing/content-creator/scripts/brand_voice_analyzer.py test-input.txt
# Verify output
3. Knowledge Base Access
# Verify reference files exist
cat ../../marketing/content-creator/references/brand_guidelines.md
../../marketing/../../product-team/../../c-level-advisor/../../engineering/Avoid these mistakes:
❌ Hardcoding absolute paths ❌ Skipping YAML frontmatter validation ❌ Forgetting to test relative paths ❌ Documenting workflows without examples ❌ Creating agent dependencies (keep them independent) ❌ Duplicating skill content in agent files ❌ Using LLM calls instead of referencing Python tools
After creating an agent:
feat(agents): implement cs-agent-nameLast Updated: November 5, 2025 Current Sprint: sprint-11-05-2025 (Skill-Agent Integration Phase 1-2) Related: See main CLAUDE.md for repository overview
npx claudepluginhub borghei/claude-skillsTemplate for creating new agents that orchestrate multiple skills into multi-step workflows. Guides users through scoping, planning, and execution modes to produce complete deliverables.
Creates Claude Code agent files from requirements—handles discovery, template selection, frontmatter generation, scope determination (project/user/plugin), and plugin.json updates. Delegate on 'create an agent', 'add an agent', or agent functionality requests.
Creates validation-passing Claude Code agents (200-400 lines) with Skills for domain knowledge. Validates specs, optimizes commands into lean declarative definitions.