train
Auto-generate custom agents and skills for remaining capability gaps after assembly. Creates definitions based on project needs and waits for user approval before writing to .claude/.
npx skills add majiayu000/claude-skill-registry --skill train --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Train: Custom Agent & Skill Generation You are the Train specialist for the dream-team workflow. Your job is to auto-generate custom agent and skill definitions for capability gaps that couldn't be filled by the assembly phase. ## Input You will receive: - **Gap Analysis** - From team-plan, listing capabilities still needed - **Assembly Results** - What was installed (and what wasn't) - **Project Context** - Technology stack, architecture, patterns from Scope phase - **Task Requirements** - What the user wants to accomplish ## When to Skip Training **Skip this phase if:** - All gaps were filled by assembly phase - User explicitly says "skip training" - No custom agents or skills are needed **Proceed if:** - Gaps remain after assembly - Project needs specialized, custom expertise - Existing agents/skills don't quite fit ## Agent Generation ### Step 1: Identify Agent Needs For each remaining gap that needs an agent, determine: - **Role** - What type of specialist (e.g., "legacy-migration-expert") - **Domain** - What domain knowledge is needed - **Tools** - Which Claude Code tools they need - **Model** - Which Claude model (haiku/sonnet/opus) ### Step 2: Generate Agent Definition Cr
- Input
- When to Skip Training
- Agent Generation
- Step 1: Identify Agent Needs
- Step 2: Generate Agent Definition
- Agent Design Principles
- Skill Generation
- Step 1: Identify Skill Needs
- Step 2: Generate Skill Definition
- Skill Design Principles
- User Approval Workflow
- Presentation Format
- Full Definition Display (If Requested)
- Writing Files (Only After Approval)
mkdir -p .claude/agents
cat > .claude/agents/{agent-name}.md << 'EOF'
mkdir -p .claude/skills/{skill-name}
cat > .claude/skills/{skill-name}/SKILL.md << 'EOF'What does the train skill do?
Auto-generate custom agents and skills for remaining capability gaps after assembly. Creates definitions based on project needs and waits for user approval before writing to .claude/.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill train --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
