brainblend-ai/atomic-agents/create-atomic-agent
Claude Code and agent skill by brainblend-ai/atomic-agents
- community
- ext:[{"type":"context","description":"Custom context provider definitions"}]
Checking that the SKILL.md file is still in the repository.
Build and wire an `AtomicAgent[InSchema, OutSchema]` — schemas, `AgentConfig`, `SystemPromptGenerator`, provider client, history, hooks, optional context providers. Use when the user asks to "create an agent", "add another agent", "build an `AtomicAgent`", "wire up an agent", "make a planner/router/extractor agent", or runs `/atomic-agents:create-atomic-agent`.
Install
npx vskill@latest install brainblend-ai/atomic-agents/create-atomic-agentSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as brainblend-ai/atomic-agents/create-atomic-agent.
Create an Atomic Agent
An agent is an LLM-backed transformer from one BaseIOSchema to another. Building one means: design the schemas, write the system prompt, wire the provider client, build the AgentConfig, instantiate AtomicAgent[In, Out].
For deep material (streaming, token counting, hooks, multi-agent memory), the authority is ../framework/references/agents.md plus providers.md, prompts.md, and memory.md. This skill is the action-oriented path: clarify → write → run.
When this fires vs the umbrella framework skill
- This skill: the user is creating or wiring a specific agent — "add a planner agent", "build a Q&A agent", "make a router that classifies tickets".
- `framework` skill: questions about Atomic Agents in general, or the user is doing something other than authoring an agent.
Phase 1 — Clarify
Bundle into one message:
- What should the agent do? One sentence. Becomes the persona /
backgroundline. - Inputs and outputs. Use
BasicChatInputSchema/BasicChatOutputSchemafor free-form chat. Use a custom pair for anything structured (extraction, classification, planning, routing). When custom, branch to thecreate-atomic-schemaskill for the schema authoring. - Provider. OpenAI / Anthropic / Groq / Ollama / Gemini / OpenRouter / MiniMax. Default: whatever the project already uses; otherwise OpenAI.
- Conversational? Yes → wire a
ChatHistory. No (single-shot transformer) → omit it for stateless behavior. - Context providers. Anything to inject into the prompt at runtime (current time, user identity, retrieved docs)? If yes, plan to also use the
create-atomic-context-providerskill afterwards.
Skip anything already settled in context.
Phase 2 — Plan
State the plan in one short block:
- File:
<project>/agents/<agent_name>.py(or directly inmain.pyfor a tiny project — see../framework/references/project-structure.md). - Schemas: which pair, where they live.
- Provider + model + Instructor mode. Default models: OpenAI
gpt-5.6-terra, Anthropicclaude-haiku-4-5, Groqllama-3.3-70b-versatile, Ollamallama3.1, Geminigemini-2.5-flash. SystemPromptGeneratorcontent — three sections:background,steps,output_instructions.- History? Hooks? Context providers?
Phase 3 — Implement
Canonical imports (do not deviate)
Wire the provider client (always Instructor-wrapped)
The full per-provider matrix lives in ../framework/references/providers.md. Quick recap:
Build the agent
Generics carry the truth
AtomicAgent[MyInput, MyOutput] — write the type parameters explicitly. The framework reads them at class-definition time. Do not rely on subclass-level input_schema / output_schema class attributes.
Provider-specific knobs (most common gotchas)
- Anthropic without
max_tokensinmodel_api_parameters→ API rejects every call. - Gemini without
assistant_role="model"→ role mismatch on every turn. - Groq / Ollama / MiniMax with
Mode.TOOLS→ tools formatted in a way the provider does not accept; flip toMode.JSON. - Reasoning models (o-series, GPT-5 reasoning variants) → often want
system_role=Noneandreasoning_effortinmodel_api_parameters.
Phase 4 — Run and verify
Quick smoke test without paying for a real call:
If output validation fails repeatedly, the parse:error hook has the details — see ../framework/references/hooks.md for registration.
Phase 5 — Hand off
Tell the user:
- How to call
agent.run(...)(andrun_async,run_stream,run_async_streamwhen appropriate). - Which env var to set for the provider key.
- Optional next steps:
- Tools the agent should be able to invoke →
create-atomic-toolskill. - Dynamic data injected into the prompt →
create-atomic-context-providerskill. - Custom schemas →
create-atomic-schemaskill. - Multiple agents working together →
../framework/references/orchestration.md. - Telemetry / retries / logging →
../framework/references/hooks.md. - Conversation persistence, summarization, multi-agent memory →
../framework/references/memory.md.
Anti-patterns
- Forgetting to wrap the client with
instructor.from_*— structured outputs silently stop working. BaseModelinstead ofBaseIOSchemafor the agent's input or output type.AgentConfig.modeout of sync with the Instructor factory mode.assistant_role="assistant"on Gemini — must be"model".- Missing
max_tokenson Anthropic — every call fails. - Hardcoded API keys in the source — read from env.
- Unbounded
ChatHistoryin a long-running service — monitoragent.get_context_token_count().utilizationor setmax_messages.
For deep material — streaming, async, token counting, hooks, multi-agent history — load ../framework/references/agents.md.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingclaude-plugin/atomic-agents/skills/create-atomic-agent/SKILL.md
Popularity
- Repository stars
- 6,028
- Repository forks
- 513
- 7-day trend score
- 44
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
contextCustom context provider definitions
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/brainblend-ai/atomic-agents/create-atomic-agent)