adapter-export
Export a generated subagent package (subagents/<slug>/) into its installed runtime adapter, rendered deterministically from the package's profile.yaml. Use when a profile changes and the derived adapt
SKILL.md.claude/skills/adapter-export/SKILL.md
GitHubSkill: adapter-export
Purpose: Export generated subagent package into a Claude Code runtime adapter.
Input
- Subagent slug
subagents/<slug>/profile.yaml(must exist and pass Phase 8)
Steps
1. Run export script
python -m tools.subagent_factory.cli export <slug>
This generates:
subagents/<slug>/adapters/claude-code/<slug>.md— canonical adapter.claude/agents/generated/<slug>.md— installed runtime adapter
2. Verify adapter header
Adapter must contain:
name: <slug>description:with role + triggers + exclusiontools:listmodel:field<!-- GENERATED FILE. DO NOT EDIT DIRECTLY. -->comment- Canonical package path reference
3. Check for duplicate agent name
Verify no other file in .claude/agents/ uses the same name: field.
If duplicate found, report conflict before installing.
4. Verify adapter body completeness
Adapter body must include:
- Role
- When to use
- When NOT to use
- Required inputs
- Supported modes
- Output contract per mode
- Quality bar
- Forbidden behaviours
- Handoff rules
- Source of truth policy
- Canonical package path
- Instruction to read package files
Output
subagents/<slug>/adapters/claude-code/<slug>.mdwritten.claude/agents/generated/<slug>.mdinstalled