| name | component |
| description | Generate syntactically correct Claude Code configuration components (commands, subagents, skills, output styles) with optimal cross-component integration. Triggers on requests to create slash commands, agents, subagents, skills, output styles, Claude Code plugins, agentic workflows, or multi-agent pipelines. Ensures parameter validity per component type and semantic coherence across component references. |
Component: Claude Code Configuration Generator
Generate integrated Claude Code configuration with syntactically valid YAML frontmatter and semantically coherent cross-references.
Component Architecture
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CLAUDE CODE CONFIGURATION โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ โ
โ COMMANDS โโโโโโโโโinvokeโโโโโโโโโบ SUBAGENTS โ
โ (.claude/commands/*.md) (.claude/agents/*.md) โ
โ โข Entry points โข Specialized personas โ
โ โข Tool orchestration โข Persistent identity โ
โ โข User-facing /slash โ โ
โ โผ load โ
โ SKILLS โ
โ (.claude/skills/*/SKILL.md) โ
โ โข Procedural knowledge โ
โ โข Domain expertise โ
โ โ
โ STYLES โโโโโโโโโmodulateโโโโโโโโโบ SESSION BEHAVIOR โ
โ (.claude/styles/*.md) โข Autonomy level โ
โ โข Interaction patterns โข Output format โ
โ โข Checkpoint frequency โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Relationships:
- Commands invoke Subagents (via
Agent tool)
- Subagents load Skills (via
skills: array)
- Styles modulate session behavior (parallel to commands, not hierarchical)
Parameter Matrix
| Parameter | Commands | Subagents | Skills | Styles |
|---|
name | โ (filename) | โ (filename) | โ (required) | โ (required) |
description | โ (required) | โ (required) | โ (required) | โ (required) |
allowed-tools | โ | โ | โ | โ |
disallowed-tools | โ | โ | โ | โ |
model | โ | โ | โ | โ |
argument-hint | โ | โ | โ | โ |
disable-model-invocation | โ | โ | โ | โ |
permissionMode | โ | โ | โ | โ |
skills | โ | โ | โ | โ |
keep-coding-instructions | โ | โ | โ | โ |
Parameter Dependencies
allowed-tools + Agent โโโโโโโบ enables subagent spawning
skills โโโโโโโโโโโโโโโโโโโโโโโบ requires skill directories exist
permissionMode: allow โโโโโโโโบ full autonomy (no prompts)
permissionMode: ask โโโโโโโโโโบ checkpoint prompts (default)
permissionMode: deny โโโโโโโโโบ read-only operations
Component Specifications
Commands (.claude/commands/<name>.md)
Filename becomes /slash-command (no name field).
---
description: Execute [action] on [target]
allowed-tools: [Read, Write, Agent]
model: sonnet
argument-hint: <target>
---
[Procedural instructions for command execution]
[Can spawn subagents via Agent tool]
Example (/review):
---
description: Review code changes for quality and correctness
allowed-tools: [Read, Grep, Glob, Agent]
model: opus
argument-hint: <path>
---
1. Analyze target path for code changes
2. Spawn reviewer agent with file context
3. Synthesize findings into actionable feedback
Subagents (.claude/agents/<name>.md)
Specialized personas with tool access and skill mastery.
---
description: [Role] specializing in [domain]. [Key traits].
allowed-tools: [Read, Write]
disallowed-tools: [Bash]
model: sonnet
permissionMode: ask
skills: [skill-a, skill-b]
---
[Identity, decision heuristics, communication style]
Example (security-analyst.md):
---
description: Security analyst for vulnerability detection and threat modeling. Methodical, conservative.
allowed-tools: [Read, Grep, Glob]
disallowed-tools: [Write, Bash]
model: opus
permissionMode: ask
skills: [security-analysis, threat-modeling]
---
Identify vulnerabilities with CVSS scoring. Prioritize by exploitability.
Flag sensitive data exposure. Never modify production code directly.
Skills (.claude/skills/<name>/SKILL.md)
Procedural knowledge packages loaded by subagents.
---
name: skill-name
description: Procedures for [domain]. Trigger when [conditions].
allowed-tools: [Read]
---
[Step-by-step workflows, decision trees, domain knowledge]
Example (security-analysis/SKILL.md):
---
name: security-analysis
description: Static security analysis procedures. Trigger when reviewing code for vulnerabilities, secrets, or injection risks.
---
- API keys: `[A-Za-z0-9]{32,}`
- AWS keys: `AKIA[A-Z0-9]{16}`
- Private keys: `-----BEGIN.*PRIVATE KEY-----`
- SQL: Unparameterized queries with string concatenation
- XSS: Unescaped user input in HTML templates
- Command: Shell execution with user-controlled arguments
Styles (.claude/styles/<name>.md)
Interaction mode modulators for session behavior.
---
name: style-name
description: [Interaction pattern] for [use case].
keep-coding-instructions: true
---
[Output format, checkpoint frequency, autonomy level]
Supervision Gradient:
| Style | Behavior | Use Case |
|---|
autonomous | Execute without prompting, log decisions | Trusted automation |
supervised | Checkpoint at key decisions | Normal development |
collaborative | Explain reasoning, seek approval | Learning, auditing |
Tool Pattern Syntax
allowed-tools:
- Read
- Write
- Edit
- Glob
- Grep
- LS
- Agent
- WebFetch
- Bash(git status)
- Bash(git:*)
- Bash(npm run:*)
- mcp__server__tool
- mcp__github__*
Generation Workflow
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. ANALYZE โ
โ โโโบ Identify domain requirements, capabilities needed โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 2. DESIGN SKILLS โ
โ โโโบ Package domain procedures (security-analysis, code-review, etc.) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 3. CREATE SUBAGENTS โ
โ โโโบ Define personas that load skills, set tool access โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 4. BUILD COMMANDS โ
โ โโโบ Create /slash entry points that invoke agents โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 5. CONFIGURE STYLES โ
โ โโโบ Set supervision levels for different workflows โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ 6. VALIDATE โ
โ โโโบ Check syntax, cross-references, parameter validity โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Integration Patterns
Pattern 1: Skill-Backed Agent
skill: code-analysis โโโบ agent: analyst โโโบ command: /analyze
โ
skills: [code-analysis]
Agent loads procedural knowledge via skills, invoked by command.
Pattern 2: Multi-Agent Pipeline
command: /ship
โ
โโโบ Agent[planner] โโโโบ Plan
โโโบ Agent[implementer] โบ Code
โโโบ Agent[reviewer] โโโบ Review
โโโบ Agent[deployer] โโโบ Deploy
Sequential agent stages for complex workflows.
Pattern 3: Skill Composition
Agent loads multiple skills for comprehensive expertise:
---
description: Full-stack developer proficient across domains
skills:
- frontend-development
- backend-development
- security-guidelines
---
Pattern 4: Skill References Skill
Skills can reference procedures from other skills:
---
name: advanced-security
description: Advanced threat modeling. Extends security-analysis procedures.
---
Load base procedures from `security-analysis` skill, then apply:
- Supply chain attack vectors
- Dependency confusion risks
- CI/CD pipeline vulnerabilities
Validation Checklist
Commands
Subagents
Skills
Styles
Cross-References
Troubleshooting
| Symptom | Cause | Fix |
|---|
| Command not appearing | Missing .claude/commands/ path | Ensure file in correct directory |
| Agent can't access tool | allowed-tools missing tool | Add tool to agent's allowed-tools |
| Skill not loading | Skill name mismatch | Ensure name: matches directory name |
| Style not applying | Missing name field | Add required name parameter |
Alternatives Considered
JSON Configuration: Single .claude.json file is simpler but lacks prose instructions and becomes unwieldy at scale. Markdown files support rich documentation alongside configuration.
Flat Structure: All components in one directory sacrifices organization but works for small projects. Current structure scales to dozens of components.
References
Detailed documentation by topic:
references/syntax.md โ Complete YAML frontmatter schemas, all parameters
references/patterns.md โ Integration patterns, multi-agent pipelines
references/examples.md โ Full plugin examples with all component types