Scaffold — AI Toolkit Generator
Internal utility for the AI Toolkit repository. Creates new agents, new skills, and
validates existing plugins against marketplace conventions.
Invocation
This is NOT a plugin skill. It is invoked as a repo-level command:
/scaffold agent <description>
/scaffold skill <description>
/scaffold validate <path>
The input after the action keyword is free-form natural language. The skill parses
the intent (agent / skill / validate) from the first word after /scaffold, then
treats everything else as the description of what to create or validate.
Workflow Routing
| Intent |
Trigger Words |
Workflow |
| Create Agent |
"agent", "agente", "new agent" |
workflows/create-agent.md |
| Create Skill |
"skill", "new skill" |
workflows/create-skill.md |
| Validate |
"validate", "audit", "check", "validar" |
workflows/validate.md |
Routing Logic
- Read the user's input after
/scaffold
- Extract the first significant word to determine intent
- If ambiguous, ask the user using
ask_user:
- "Do you want to create an agent, a skill, or validate a plugin?"
- Choices: ["Create an agent", "Create a skill", "Validate a plugin"]
- Pass the full description text to the selected workflow
How It Works
Agent Creation (/scaffold agent ...)
- Parses the description to understand the desired agent
- Asks clarifying questions: target plugin, domain, role, specialization
- Reads existing agents as reference templates
- Generates the agent file following established conventions
- Places it in the correct
plugins/<plugin>/agents/ directory
- Updates affected catalogs (orchestrate.md, AGENTS.md)
Skill Creation (/scaffold skill ...)
- Parses the description to understand the desired skill
- Asks clarifying questions: target plugin, purpose, workflows needed
- Reads existing skills as reference templates
- Generates SKILL.md + workflow files
- Places them in
plugins/<plugin>/skills/<name>/
Plugin Validation (/scaffold validate ...)
- Reads the target plugin directory
- Checks against conventions from CONTRIBUTING.md
- Validates: required files, naming, size limits, guardrails, consistency
- Reports issues with severity levels
Principles
Always Confirm Understanding
Before generating anything:
- Restate what you understood from the user's input
- Present the plan (what files will be created, where)
- Ask for confirmation with
ask_user
- Only proceed after explicit approval
Never Overwrite
- If a file already exists at the target path, STOP and ask the user
- Offer: rename, skip, or replace (with explicit confirmation)
Template-Driven
- Always read at least one existing agent/skill as a reference template
- Match the established patterns: frontmatter, XML blocks, section order
- Adapt the template to the new agent/skill's specific role
Incremental Output
- Create files one at a time, confirming each before moving to the next
- After all files are created, offer to update catalogs
Context Files
- See workflows/create-agent.md for agent generation
- See workflows/create-skill.md for skill generation
- See workflows/validate.md for plugin validation
- See ../../CONTRIBUTING.md for marketplace conventions
Guardrails
This skill creates files in the repository structure. Safety rules:
- Scope: Only writes to
plugins/ directories and .github/ — never to system paths
- No overwrites: Never replaces existing files without explicit user confirmation
- No execution: Generated agents and skills are documentation — this skill never runs them
- No system modification: No
sudo, no package installs, no network requests
- Size limits: All generated files must be under 30,000 characters
- Validation first: Before writing, validate that the target plugin directory exists and follows conventions
- Dry run option: User can request a preview of what will be generated before writing
1---2name: scaffold3description: Repo-level utility for creating new agents, skills, and validating plugin structure. Not a marketplace plugin — internal tool for maintaining the AI Toolkit repository. Parses natural language input to determine intent and delegates to the appropriate workflow.4---56# Scaffold — AI Toolkit Generator78Internal utility for the AI Toolkit repository. Creates new agents, new skills, and9validates existing plugins against marketplace conventions.1011## Invocation1213This is NOT a plugin skill. It is invoked as a repo-level command:1415```16/scaffold agent <description>17/scaffold skill <description>18/scaffold validate <path>19```2021The input after the action keyword is **free-form natural language**. The skill parses22the intent (agent / skill / validate) from the first word after `/scaffold`, then23treats everything else as the description of what to create or validate.2425## Workflow Routing2627| Intent | Trigger Words | Workflow |28|--------|---------------|----------|29| **Create Agent** | "agent", "agente", "new agent" | `workflows/create-agent.md` |30| **Create Skill** | "skill", "new skill" | `workflows/create-skill.md` |31| **Validate** | "validate", "audit", "check", "validar" | `workflows/validate.md` |3233### Routing Logic34351. Read the user's input after `/scaffold`362. Extract the first significant word to determine intent373. If ambiguous, ask the user using `ask_user`:38 - "Do you want to create an agent, a skill, or validate a plugin?"39 - Choices: ["Create an agent", "Create a skill", "Validate a plugin"]404. Pass the full description text to the selected workflow4142## How It Works4344### Agent Creation (`/scaffold agent ...`)451. Parses the description to understand the desired agent462. Asks clarifying questions: target plugin, domain, role, specialization473. Reads existing agents as reference templates484. Generates the agent file following established conventions495. Places it in the correct `plugins/<plugin>/agents/` directory506. Updates affected catalogs (orchestrate.md, AGENTS.md)5152### Skill Creation (`/scaffold skill ...`)531. Parses the description to understand the desired skill542. Asks clarifying questions: target plugin, purpose, workflows needed553. Reads existing skills as reference templates564. Generates SKILL.md + workflow files575. Places them in `plugins/<plugin>/skills/<name>/`5859### Plugin Validation (`/scaffold validate ...`)601. Reads the target plugin directory612. Checks against conventions from CONTRIBUTING.md623. Validates: required files, naming, size limits, guardrails, consistency634. Reports issues with severity levels6465## Principles6667### Always Confirm Understanding68Before generating anything:691. Restate what you understood from the user's input702. Present the plan (what files will be created, where)713. Ask for confirmation with `ask_user`724. Only proceed after explicit approval7374### Never Overwrite75- If a file already exists at the target path, STOP and ask the user76- Offer: rename, skip, or replace (with explicit confirmation)7778### Template-Driven79- Always read at least one existing agent/skill as a reference template80- Match the established patterns: frontmatter, XML blocks, section order81- Adapt the template to the new agent/skill's specific role8283### Incremental Output84- Create files one at a time, confirming each before moving to the next85- After all files are created, offer to update catalogs8687## Context Files8889- See [workflows/create-agent.md](workflows/create-agent.md) for agent generation90- See [workflows/create-skill.md](workflows/create-skill.md) for skill generation91- See [workflows/validate.md](workflows/validate.md) for plugin validation92- See [../../CONTRIBUTING.md](../../CONTRIBUTING.md) for marketplace conventions9394## Guardrails9596This skill creates files in the repository structure. Safety rules:97981. **Scope**: Only writes to `plugins/` directories and `.github/` — never to system paths992. **No overwrites**: Never replaces existing files without explicit user confirmation1003. **No execution**: Generated agents and skills are documentation — this skill never runs them1014. **No system modification**: No `sudo`, no package installs, no network requests1025. **Size limits**: All generated files must be under 30,000 characters1036. **Validation first**: Before writing, validate that the target plugin directory exists and follows conventions1047. **Dry run option**: User can request a preview of what will be generated before writing