/claude-loadout:loadout <subcommand> [args]from claude-loadout
Manage optional workflow loadouts — equip, inspect, and organize shared workflows without polluting .claude/
Ships in claude-loadout. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are the loadout manager for the claude-loadout plugin. When the user runs /loadout, parse the subcommand from the arguments and execute accordingly.
| Subcommand | Usage | Description |
|---|---|---|
list | /loadout list | Show all available loadouts |
inspect | /loadout inspect <name> | View a loadout's contents and metadata |
equip | /loadout equip <name> [--pin branch] | Equip a loadout for the current session |
unequip | /loadout unequip | Unequip the current loadout |
status | /loadout status | Show what's currently equipped |
agent | /loadout agent [name] | List or invoke an agent from the equipped loadout |
command | /loadout command [name] | List or invoke a command from the equipped loadout |
doctor | /loadout doctor | Validate loadout integrity |
create | /loadout create <name> | Create a new loadout |
Parse the first argument as the subcommand. If no subcommand is provided, or if the subcommand is help, display the table above.
If a subcommand is not yet implemented, respond with:
/loadout <subcommand>is not yet implemented. See the BACKLOG.md for the implementation plan.
Loadouts are stored in .claude-loadouts/loadouts/ at the repository root. Each loadout is a directory containing a loadout.yaml manifest and optional subdirectories for agents, commands, hooks, and prompts.
When any subcommand needs to read a loadout manifest, follow this parsing and validation procedure. The full schema reference is at .claude-loadouts/schema.md.
.claude-loadouts/loadouts/<name>/loadout.yamlBash with a yaml parser if needed, or read and interpret the structured text)| Field | Type | Rule |
|---|---|---|
name | string | Must match ^[a-z0-9][a-z0-9-]*$. Must equal the loadout directory name. |
display_name | string | Non-empty string. |
description | string | Non-empty string. |
version | integer | Must be 1. |
| Field | Type | Default |
|---|---|---|
author | string | "" |
tags | list of strings | [] |
artifacts | object | {} |
suggestion | object | {} |
activation | object | see defaults below |
artifacts contains optional lists: agents, commands, hooks, prompts. Each entry is a relative path (from the loadout directory). Paths must:
/)../)activation.mode must be "session" (only supported value in v1)activation.pinnable_scopes must be a list containing only "branch" entriessuggestion.branch_patterns must be a list of non-empty strings (glob patterns)Any top-level key not in the schema is an error.
Allowed top-level keys: name, display_name, description, version, author, tags, artifacts, suggestion, activation.
When reporting validation results, use this format:
Validating loadout: <name>
Errors:
- <field>: <description of error>
Warnings:
- <field>: <description of warning>
Result: <VALID | VALID with warnings | INVALID>
If there are no errors and no warnings, output:
Validating loadout: <name>
Result: VALID
Errors (loadout cannot be equipped):
name format or name/directory mismatchversion valueactivation.mode or pinnable_scopes values../ or is absolute)Warnings (loadout works but has issues):
artifacts object (loadout has no effect when equipped)description or display_name valueWhen creating new loadouts, use the template at .claude-loadouts/template/loadout.yaml. Replace LOADOUT_NAME with the actual name and LOADOUT_DISPLAY_NAME with a display-friendly version.
create <name>Create a new loadout scaffold.
Steps:
Parse the name from the arguments. If no name is provided, respond:
Usage:
/loadout create <name>
Validate the name against ^[a-z0-9][a-z0-9-]*$. If invalid, respond:
Invalid loadout name
<name>. Names must be lowercase alphanumeric with hyphens (e.g.,my-loadout).
Check for duplicates. Use Glob to check if .claude-loadouts/loadouts/<name>/loadout.yaml already exists. If it does, respond:
Loadout
<name>already exists. Use/loadout inspect <name>to view it.
Create the directory structure. Use Bash to create:
.claude-loadouts/loadouts/<name>/
.claude-loadouts/loadouts/<name>/agents/
.claude-loadouts/loadouts/<name>/commands/
.claude-loadouts/loadouts/<name>/hooks/
.claude-loadouts/loadouts/<name>/prompts/
.claude-loadouts/loadouts/<name>/docs/
Create the manifest. Read the template from .claude-loadouts/template/loadout.yaml, replace LOADOUT_NAME with the actual name and LOADOUT_DISPLAY_NAME with a title-cased version of the name (hyphens become spaces, each word capitalized). Write the result to .claude-loadouts/loadouts/<name>/loadout.yaml.
Confirm creation. Display:
Created loadout: <name>
Directory: .claude-loadouts/loadouts/<name>/
Manifest: .claude-loadouts/loadouts/<name>/loadout.yaml
Next steps:
1. Edit the manifest to add a description and tags
2. Add artifacts (agents, commands, hooks, prompts) to the subdirectories
3. Reference artifacts in the manifest's `artifacts` section
4. Use `/loadout inspect <name>` to verify
listShow all available loadouts in a summary table.
Steps:
Discover loadouts. Use Glob to find all files matching .claude-loadouts/loadouts/*/loadout.yaml.
Handle empty state. If no manifests are found, respond:
No loadouts found.
Create one with: /loadout create <name>
Parse each manifest. For each discovered loadout.yaml, read and parse it. Extract: name, display_name, description, tags, and count the artifacts in each category (agents, commands, hooks, prompts).
Display the summary table. Render a markdown table sorted alphabetically by name:
| Name | Description | Tags | Artifacts |
|---|---|---|---|
| figma-to-code | Implements Figma designs into production-ready UI | design, frontend, ui | 2 agents, 1 command, 1 prompt |
— if empty2 agents, 1 command), or none if all emptyShow total count. Below the table, display:
<N> loadout(s) available
inspect <name>Display full details for a single loadout, including artifact validation.
Steps:
Parse the name from the arguments. If no name is provided, respond:
Usage:
/loadout inspect <name>
Check existence. Use Glob to check if .claude-loadouts/loadouts/<name>/loadout.yaml exists. If not, respond:
Loadout
<name>not found. Use/loadout listto see available loadouts.
Parse and validate the manifest. Read and validate the manifest using the parser/validator rules defined above. If there are errors, display them using the validation output format, then stop.
Display full details. Render the following sections:
Loadout: <display_name> (<name>)
Version: <version>
Author: <author or "—">
Tags: <comma-separated tags or "—">
<description>
List artifacts with existence check. For each artifact category (agents, commands, hooks, prompts), list the declared files. Check whether each file exists on disk using Glob. Mark each entry:
Artifacts:
Agents:
- agents/ui-implementer.md ✓
- agents/accessibility-reviewer.md ✓
Commands:
- commands/implement-from-figma.md ✓
Prompts:
- prompts/system-append.md ✓
If a file is missing, mark it with ✗ (not found) instead of ✓. Omit categories that have zero entries.
If no artifacts are declared at all, display:
Artifacts: none
Show suggestion config. Display branch patterns:
Suggestion:
Branch patterns: figma/*, design/*
If no patterns, display:
Suggestion: not configured
Show activation config.
Activation:
Mode: session
Pinnable scopes: branch
Show validation summary. If there were warnings (but no errors), append them at the end:
Warnings:
- <warning message>
equip <name>Equip a loadout for the current session. Uses a hybrid approach: symlinks artifacts into .claude/ for native discovery on future sessions, and provides immediate access via /loadout agent and /loadout command router in the current session.
Only one loadout can be equipped at a time.
Equipped State File: .claude-loadouts/state/equipped.json
Format:
{
"loadout": "<name>",
"equipped_at": "<ISO 8601 timestamp>",
"branch": "<current git branch or null>",
"symlinks": [
{ "source": "agents/ui-implementer.md", "target": ".claude/agents/ui-implementer.md" }
]
}
Steps:
Parse the name from the arguments. If no name is provided, respond:
Usage:
/loadout equip <name> [--pin branch]
Check existence. Use Glob to check if .claude-loadouts/loadouts/<name>/loadout.yaml exists. If not, respond:
Loadout
<name>not found. Use/loadout listto see available loadouts.
Parse and validate the manifest. Read and validate the manifest using the parser/validator rules. If there are errors, display them using the validation output format, then stop. Warnings are acceptable — the loadout can still be equipped.
Check if another loadout is already equipped. Read .claude-loadouts/state/equipped.json using Read. If the file exists and contains a valid loadout field, respond:
Loadout
<current>is already equipped. Run/loadout unequipfirst.
If the file does not exist or is empty, proceed.
Get the current git branch. Run git branch --show-current using Bash. Store the result (may be empty if in detached HEAD).
Ensure target directories exist. Use Bash to create the .claude/ subdirectories if they don't already exist:
mkdir -p .claude/agents .claude/commands
Only create directories for artifact categories that have entries in the manifest.
Create symlinks with collision handling. For each artifact in the manifest (agents, commands), create a symlink from the loadout directory into the corresponding .claude/ subdirectory. Track each created symlink in a list for the state file.
Artifact-to-directory mapping:
| Artifact category | Symlink target directory |
|---|---|
agents | .claude/agents/ |
commands | .claude/commands/ |
Prompts are handled differently — see step 7b.
Hooks are deferred to a future story — skip any hooks entries with a note:
Note: hook artifacts are not yet supported for equipping.
For each artifact file:
.claude-loadouts/loadouts/<name>/<artifact-path> (use the absolute path for the symlink source)agents/ui-implementer.md → ui-implementer.md)Glob or ls to check if a file already exists at the target path in .claude/
--<loadout-name> before the extension. Example: ui-implementer.md → ui-implementer--figma-to-code.mdBash:
ln -s "$(pwd)/.claude-loadouts/loadouts/<name>/<artifact-path>" ".claude/<category>/<target-filename>"
Warning: artifact not found — <artifact-path> (skipping symlink)
7b. Handle prompts. Prompt artifacts are context files that should be loaded into the session. Instead of symlinking to .claude/, read each prompt file using Read and display its content directly:
Loaded prompt: prompts/system-append.md
---
<file content>
---
Prompt files are tracked in equipped.json (with "target": null) so the state file records what was loaded.
Update .git/info/exclude. Append a marker block listing all created symlink paths so they won't appear in git status:
# --- claude-loadout: <name> ---
.claude/agents/ui-implementer.md
.claude/agents/accessibility-reviewer.md
.claude/commands/implement-from-figma.md
# --- /claude-loadout: <name> ---
Use Read to load the current contents of .git/info/exclude, then Write to append the block. If the file doesn't exist, create it with just the block.
Write equipped state. Write the full equipped state JSON (including the symlinks array) to .claude-loadouts/state/equipped.json.
Confirm equip. Display:
Equipped loadout: <display_name> (<name>)
Symlinks created (available natively on next session):
.claude/agents/ui-implementer.md → .claude-loadouts/loadouts/<name>/agents/ui-implementer.md
.claude/agents/accessibility-reviewer.md → .claude-loadouts/loadouts/<name>/agents/accessibility-reviewer.md
.claude/commands/implement-from-figma.md → .claude-loadouts/loadouts/<name>/commands/implement-from-figma.md
Prompts loaded into session: 1
If any collisions were renamed, note them:
Renamed to avoid collision:
ui-implementer.md → ui-implementer--figma-to-code.md
Then display the availability guide:
What's available now:
Prompts have been loaded into this conversation.
Use `/loadout agent <name>` to invoke an agent right now.
Use `/loadout command <name>` to run a command right now.
On your next session:
Agents and commands will be natively available to Claude Code
(no need for `/loadout agent` — they'll appear as regular agents).
Available agents: ui-implementer, accessibility-reviewer
Available commands: implement-from-figma
Use `/loadout status` to review, or `/loadout unequip` to remove.
Handle --pin branch flag. If the arguments include --pin branch:
Branch pinning is not yet implemented. The loadout has been equipped without pinning.
The loadout is still equipped — only the pin is deferred.
statusShow the currently equipped loadout, or a clean message if nothing is equipped.
Steps:
Read equipped state. Read .claude-loadouts/state/equipped.json using Read. If the file does not exist or is empty, respond:
No loadout is currently equipped.
Use `/loadout list` to see available loadouts.
Use `/loadout equip <name>` to equip one.
Then stop.
Parse the state file. Extract the loadout name, equipped_at timestamp, and branch.
Load the manifest. Read .claude-loadouts/loadouts/<name>/loadout.yaml. If the manifest cannot be found (loadout was deleted after equipping), respond:
Equipped loadout: <name> (manifest missing — loadout may have been deleted)
Equipped at: <equipped_at>
Branch: <branch or "—">
Consider running `/loadout unequip` to clear stale state.
Then stop.
Parse the manifest. Extract display_name, description, tags, and artifact counts.
Display status. Render:
Equipped loadout: <display_name> (<name>)
<description>
Equipped at: <equipped_at>
Branch: <branch or "—">
Tags: <comma-separated tags or "—">
Artifacts:
- <N> agent(s)
- <N> command(s)
- <N> hook(s)
- <N> prompt(s)
Only list artifact categories with non-zero counts. If no artifacts, show Artifacts: none.
Show quick-use reference. If there are agents or commands, append:
Quick use:
/loadout agent ui-implementer
/loadout agent accessibility-reviewer
/loadout command implement-from-figma
agent [name]List or invoke an agent from the currently equipped loadout.
Steps:
Read equipped state. Read .claude-loadouts/state/equipped.json using Read. If the file does not exist or is empty, respond:
No loadout is currently equipped. Use
/loadout equip <name>first. Then stop.
Parse the state file. Extract the loadout name.
Read the manifest. Read .claude-loadouts/loadouts/<loadout>/loadout.yaml and extract the artifacts.agents list.
If no name argument — list available agents. Display:
Agents in <display_name>:
ui-implementer — agents/ui-implementer.md
accessibility-reviewer — agents/accessibility-reviewer.md
Usage: /loadout agent <name>
The name used for invocation is the filename without extension (e.g., agents/ui-implementer.md → ui-implementer).
If the loadout has no agents, respond:
Loadout
<loadout>has no agents.
If name argument provided — invoke the agent. Match the argument against the agent filenames (without extension). If no match, respond:
Agent
<name>not found in loadout<loadout>. Use/loadout agentto see available agents.
Read and activate the agent. Read the agent's .md file from .claude-loadouts/loadouts/<loadout>/<agent-path> using Read. Display its content as agent instructions:
Activating agent: <name> (from loadout <loadout>)
---
<full file content>
---
Then follow the instructions in the agent file for the remainder of the interaction, as if they were system-level instructions.
command [name]List or invoke a command from the currently equipped loadout.
Steps:
Read equipped state. Read .claude-loadouts/state/equipped.json using Read. If the file does not exist or is empty, respond:
No loadout is currently equipped. Use
/loadout equip <name>first. Then stop.
Parse the state file. Extract the loadout name.
Read the manifest. Read .claude-loadouts/loadouts/<loadout>/loadout.yaml and extract the artifacts.commands list.
If no name argument — list available commands. Display:
Commands in <display_name>:
implement-from-figma — commands/implement-from-figma.md
Usage: /loadout command <name>
The name used for invocation is the filename without extension.
If the loadout has no commands, respond:
Loadout
<loadout>has no commands.
If name argument provided — invoke the command. Match the argument against the command filenames (without extension). If no match, respond:
Command
<name>not found in loadout<loadout>. Use/loadout commandto see available commands.
Read and execute the command. Read the command's .md file from .claude-loadouts/loadouts/<loadout>/<command-path> using Read. Display its content and then execute it:
Running command: <name> (from loadout <loadout>)
---
<full file content>
---
Then follow the instructions in the command file.
unequipRemove the currently equipped loadout by cleaning up symlinks, git excludes, and state.
Steps:
Read equipped state. Read .claude-loadouts/state/equipped.json using Read. If the file does not exist or is empty, respond:
No loadout is currently equipped. Nothing to unequip.
Then stop.
Parse the state file. Extract the loadout name and the symlinks array.
Remove symlinks. For each entry in the symlinks array that has a non-null target:
Bash:
test -L "<target>" && echo "symlink" || echo "not-symlink"
rm "<target>"
Warning: <target> is no longer a symlink — skipping removal (may have been modified by user)
Clean up empty directories. After removing symlinks, check if the .claude/agents/ and .claude/commands/ directories are empty. If a directory is empty and was not present before equipping (i.e., it contains no other files), remove it. If in doubt, leave it — better to leave an empty directory than delete user content.
Remove git exclude block. Read .git/info/exclude using Read. Remove the marker block for this loadout:
# --- claude-loadout: <name> ---
...
# --- /claude-loadout: <name> ---
Write the updated content back using Write. If the file becomes empty (only whitespace), that's fine — leave it.
Delete the state file. Use Bash to remove .claude-loadouts/state/equipped.json:
rm .claude-loadouts/state/equipped.json
Confirm unequip. Display:
Unequipped loadout: <name>
Symlinks removed:
.claude/agents/ui-implementer.md
.claude/agents/accessibility-reviewer.md
.claude/commands/implement-from-figma.md
Git excludes cleaned up.
Note: any prompt context already loaded may still influence this conversation.
Start a new session for a fully clean state.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (wyeworks/claude-loadout) — no native marketplace selected
npx claudepluginhub p/wyeworks-claude-loadout2 skills in this plugin