Skip to content

Add template agent support to create-agent skill#226

Merged
nhorton merged 3 commits intomainfrom
template_agents
Feb 22, 2026
Merged

Add template agent support to create-agent skill#226
nhorton merged 3 commits intomainfrom
template_agents

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Feb 22, 2026

Summary

  • Add optional template-agent-path argument to create_agent.sh that copies core-knowledge.md, topics/, and learnings/ from an existing agent as a starting point
  • Update the create-agent SKILL.md to document template usage and guide the user through reviewing/adapting copied content

Test plan

  • Run create_agent.sh new-agent without template — verify it still creates the TODO placeholder
  • Run create_agent.sh new-agent .deepwork/learning-agents/existing-agent — verify it copies core-knowledge, topics, and learnings
  • Run with a nonexistent template path — verify it exits with an error
  • Run with a template missing core-knowledge.md — verify it exits with an error
  • Invoke /learning-agents create-agent my-agent .deepwork/learning-agents/existing-agent — verify the skill guides the user through reviewing copied content

🤖 Generated with Claude Code

nhorton and others added 3 commits February 22, 2026 13:30
Allow seeding a new LearningAgent from an existing one by passing an
optional template path. Copies core-knowledge.md, topics, and learnings
from the template as a starting point, which the user can then customize.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add REQ-002.16 through REQ-002.24 covering template-based agent seeding
(validation, copying, reporting, skill guidance). Update REQ-002.5 and
REQ-002.6 to reflect the optional template argument.

Add 16 tests for create_agent.sh covering both baseline and template
flows — all passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@nhorton nhorton merged commit ef0528f into main Feb 22, 2026
4 checks passed
@nhorton nhorton deleted the template_agents branch February 22, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant