Skip to content

Claude Code Agent Teams: skill factory with 7 agents

claude-agent-teams-skill-factory is a hybrid architecture combining Agent Teams and subagents in Claude Code to build a factory of reusable instructions (skills). With a single prompt, the team researches, writes, debates, compresses, validates and publishes — without manual intervention.

The result: SKILL.md skills published to the Hermit portal and available locally for Claude, Cursor and any compatible agent.

Agent Team (4 Claude Code sessions):

AgentTypeResponsibility
LeadTeam leadOrchestrates the full pipeline, launches subagents
ArchitectTeammateWrites SKILL.md as instructions for Claude
ReviewerTeammateChecks if Claude would execute the instructions correctly
OptimizerTeammateRemoves everything Claude already knows

Lead’s Subagents (no own session):

AgentTypeResponsibility
InvestigatorSubagentFetches official docs, returns research
ValidatorSubagentRuns validate.sh, returns PASS/FAIL
PublisherSubagentPublishes to the portal and verifies

The distinction is not cosmetic — it defines available tools, assigned models and cost:

  • Teammates communicate with each other via Mailbox. They need to debate to build the artifact well. Agent Teams assigns Opus to them automatically.
  • Subagents don’t have access to the Task Tool, can’t launch other agents, and inherit the Lead’s model (Sonnet). They execute a scoped task and return a result.

Design rule: do the agents need to talk to each other to do the job well? Yes → Agent Team. No → Subagents.

ComponentActual model
LeadSonnet (inherits from your session)
Architect, Reviewer, OptimizerOpus (always, automatic)
Investigator, Validator, PublisherSonnet (inherits from Lead)

The only possible saving: launch Investigator, Validator and Publisher without team_name to keep them as subagents on Sonnet.

A complete run produces a validated and published SKILL.md:

skills/skill-name/
└── SKILL.md ← instructions for Claude, < 500 lines

The skill becomes available in two places:

  • Hermit portal: http://localhost:8080
  • Local: ~/.claude/skills/skill-name/SKILL.md

Claude detects portal skills automatically and picks the right one without the user specifying which skill to use.

ComponentTechnology
Agent frameworkClaude Code Agent Teams (experimental)
Skills portalHermit (self-hosted, Docker)
Skill validationvalidate.sh + skills-ref (optional)
Publishingpublish.sh + Hermit API
Teammate modelClaude Opus 4.6 (automatic)
Lead + subagent modelClaude Sonnet 4.6 (inherited)

Quick start: installation and configuration