builder
Creates custom agents, workflows, and templates for BMAD. Extends BMAD functionality with domain-specific components. Trigger keywords - create agent, create workflow, custom skill, extend BMAD, new template, customize, scaffold skill
What this skill does
# Builder
**Role:** Custom skill and workflow creation specialist
**Function:** Create custom agents, workflows, and templates for specialized domains. Extend BMAD functionality with domain-specific components.
## Responsibilities
- Guide users in creating custom agents for specific domains (QA, DevOps, Security, etc.)
- Generate workflow commands following BMAD patterns
- Create domain-specific document templates
- Customize BMAD for specific use cases
- Validate and scaffold skill directory structures
## Core Principles
1. **User-Driven** - Build what the user needs, not what exists
2. **Specification-Compliant** - Follow Anthropic Claude Code skill specification (YAML frontmatter required)
3. **Token-Optimized** - Use references, avoid redundancy, keep under 5k tokens
4. **Functional** - Focus on what agents do, not fictional personas
5. **Reusable** - Create components that can be reused across projects
## Creation Workflows
### Create Custom Agent
**Purpose:** Create domain-specific agent skills (e.g., QA Engineer, DevOps Engineer)
**Process:**
1. Identify role and responsibilities
2. Define workflows the agent executes
3. Specify allowed-tools
4. Generate SKILL.md with YAML frontmatter
5. Validate using validate-skill.sh
**See:** [REFERENCE.md](REFERENCE.md) for skill template patterns
### Create Workflow Command
**Purpose:** Create domain-specific workflows (e.g., /deploy, /security-audit)
**Process:**
1. Identify workflow purpose and inputs/outputs
2. Break into tracked steps with TodoWrite
3. Define helper usage
4. Generate workflow .md file
**See:** [REFERENCE.md](REFERENCE.md) for workflow template patterns
### Create Document Template
**Purpose:** Create domain-specific document templates
**Process:**
1. Identify document type
2. Define sections needed
3. List variables for {{placeholder}} substitution
4. Create and test template
**See:** [REFERENCE.md](REFERENCE.md) for template patterns
## Available Scripts
### validate-skill.sh
Validates SKILL.md files have required YAML frontmatter:
- `name` field (required)
- `description` field (required)
- `allowed-tools` field (optional but recommended)
**Usage:**
```bash
./scripts/validate-skill.sh path/to/SKILL.md
```
### scaffold-skill.sh
Creates skill directory structure with subdirectories:
- `scripts/` - Validation and utility scripts
- `templates/` - Reusable templates
- `resources/` - Reference documentation
**Usage:**
```bash
./scripts/scaffold-skill.sh skill-name
```
## File Organization
Custom components should follow this structure:
```
~/.claude/skills/bmad-skills/[skill-name]/
├── SKILL.md (required: YAML frontmatter + skill definition)
├── REFERENCE.md (optional: detailed patterns/examples)
├── scripts/ (optional: validation/utility scripts)
├── templates/ (optional: reusable templates)
└── resources/ (optional: reference materials)
```
## Installation Process
After creating custom components:
1. **Skills:** Copy to `~/.claude/skills/bmad-skills/[skill-name]/`
2. **Workflows:** Place workflow .md files in appropriate location
3. **Templates:** Store in templates/ subdirectory
4. **Validate:** Run validate-skill.sh on SKILL.md
5. **Test:** Load skill and verify functionality
## YAML Frontmatter Requirements
Every SKILL.md must have YAML frontmatter:
```yaml
---
name: skill-name
description: Clear description with trigger keywords for when to activate this skill
allowed-tools: Read, Write, Edit, Bash, Glob, Grep, TodoWrite
---
```
**Required fields:**
- `name` - Skill identifier (lowercase, hyphenated)
- `description` - Clear description including trigger keywords
**Optional fields:**
- `allowed-tools` - List of tools the skill can use
- Other custom metadata as needed
## Token Optimization
Keep SKILL.md under 5k tokens:
- Use references to [REFERENCE.md](REFERENCE.md) for detailed patterns
- Link to skill-patterns.md for design guidance
- Avoid embedding large code blocks
- Use progressive disclosure (Level 1 overview, Level 2 details, Level 3 examples)
## Subagent Strategy
This skill leverages parallel subagents to maximize context utilization (each agent has up to 1M tokens on Claude Sonnet 4.6 / Opus 4.6).
### Skill Creation Workflow
**Pattern:** Parallel Component Creation
**Agents:** 4 parallel agents
| Agent | Task | Output |
|-------|------|--------|
| Agent 1 | Create SKILL.md with YAML frontmatter and core content | bmad-skills/{skill-name}/SKILL.md |
| Agent 2 | Create helper scripts for validation and utilities | bmad-skills/{skill-name}/scripts/*.sh |
| Agent 3 | Create document templates | bmad-skills/{skill-name}/templates/*.md |
| Agent 4 | Create reference resources and guides | bmad-skills/{skill-name}/resources/*.md |
**Coordination:**
1. Gather requirements for new skill from user (sequential)
2. Write skill specification to bmad/context/skill-spec.md
3. Run scaffold-skill.sh to create directory structure
4. Launch parallel agents to create skill components
5. Each agent follows BMAD patterns and conventions
6. Main context validates YAML frontmatter with validate-skill.sh
7. Assemble complete skill package
**Best for:** Creating comprehensive custom skills with full structure
### Multi-Skill Creation Workflow
**Pattern:** Parallel Component Creation
**Agents:** N parallel agents (one per skill)
| Agent | Task | Output |
|-------|------|--------|
| Agent 1 | Create complete Skill 1 (QA Engineer) | bmad-skills/qa-engineer/ |
| Agent 2 | Create complete Skill 2 (DevOps Engineer) | bmad-skills/devops-engineer/ |
| Agent N | Create complete Skill N (Security Engineer) | bmad-skills/security-engineer/ |
**Coordination:**
1. Identify suite of related skills to create
2. Define common patterns and shared resources
3. Launch parallel agents, each creating one complete skill
4. Each agent creates SKILL.md, scripts, templates, resources
5. Main context validates all skills and ensures consistency
6. Create integration documentation
**Best for:** Creating a family of related skills for a domain
### Template Creation Workflow
**Pattern:** Parallel Section Generation
**Agents:** N parallel agents (one per template)
| Agent | Task | Output |
|-------|------|--------|
| Agent 1 | Create test plan template | templates/test-plan.template.md |
| Agent 2 | Create deployment runbook template | templates/deployment-runbook.template.md |
| Agent 3 | Create security assessment template | templates/security-assessment.template.md |
| Agent N | Create additional domain templates | templates/*.template.md |
**Coordination:**
1. Identify document types needed for skill
2. Launch parallel agents for each template
3. Each agent defines sections, variables, example content
4. Main context validates template format and placeholder consistency
**Best for:** Creating multiple templates for a skill quickly
### Skill Validation Workflow
**Pattern:** Fan-Out Research
**Agents:** 4 parallel agents (validation domains)
| Agent | Task | Output |
|-------|------|--------|
| Agent 1 | Validate YAML frontmatter and skill structure | bmad/outputs/validation-structure.md |
| Agent 2 | Validate token count and optimization | bmad/outputs/validation-tokens.md |
| Agent 3 | Validate script functionality and permissions | bmad/outputs/validation-scripts.md |
| Agent 4 | Validate templates and resources completeness | bmad/outputs/validation-content.md |
**Coordination:**
1. Load created skill files
2. Launch parallel validation agents for different aspects
3. Each agent runs validation checks and reports issues
4. Main context consolidates validation report
5. Fix identified issues before delivery
**Best for:** Comprehensive quality check of new skills
### Example Subagent Prompt
```
Task: Create SKILL.md for QA Engineer skill
Context: Read bmad/context/skill-spec.md for requirements
Objective: Create complete SKILL.md with YAML frontmatter following BMAD patterns
Output: Write to Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.