create-atomic-agent
What it does
It walks through designing and wiring an AI agent in the Atomic Agents Python framework, from the input and output shapes to the provider connection. It is for developers building structured AI agents.
When to use it
- βWhen a developer wants to add a planner, router or extractor agent to an Atomic Agents project.
- βWhen a developer wants a simple chat agent built on the framework.
- βWhen a developer needs an agent that returns structured output for other code to use.
Skill link
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/create-atomic-agent/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βBuild an Atomic Agents agent that reads support tickets and returns the category and urgency.β
5 new skills a week. 1 minute to read.
How it works
The skill first asks what the agent should do, which schemas and provider to use, then writes the schemas, the system prompt, the client setup and the agent, and runs it to check.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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".
frameworkskill: 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-mini, 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)
from atomic_agents import (
AtomicAgent, AgentConfig,
BasicChatInputSchema, BasicChatOutputSchema,
)
from atomic_agents.context import ChatHistory, SystemPromptGenerator
from instructor import Mode
Wire the provider client (always Instructor-wrapped)
The full per-provider matrix lives in ../framework/references/providers.md. Quick recap:
# OpenAI β default mode is Mode.TOOLS
import os, instructor, openai
client = instructor.from_openai(openai.OpenAI(api_key=os.environ["OPENAI_API_KEY"]))
model = "gpt-5-mini"
api_params: dict = {}
# Anthropic β Mode.TOOLS, max_tokens REQUIRED in model_api_parameters
import anthropic
client = instructor.from_anthropic(anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"]))
model = "claude-haiku-4-5"
api_params = {"max_tokens": 4096}
# Gemini β Mode.GENAI_TOOLS, assistant_role="model"
from google import genai
client = instructor.from_genai(genai.Client(api_key=os.environ["GEMINI_API_KEY"]), mode=Mode.GENAI_TOOLS)
model = "gemini-2.5-flash"
api_params = {}
# Groq / Ollama / MiniMax β Mode.JSON in both factory and AgentConfig
Build the agent
from atomic_agents import AtomicAgent, AgentConfig
from atomic_agents.context import ChatHistory, SystemPromptGenerator
agent = AtomicAgent[MyInput, MyOutput](
config=AgentConfig(
client=client,
model=model,
history=ChatHistory(), # omit for stateless
system_prompt_generator=SystemPromptGenerator(
background=["You are a concise research assistant."],
steps=[
"Read the question carefully.",
"Decide what minimum information answers it.",
"Produce the answer in the required schema.",
],
output_instructions=[
"Reply under 100 words.",
"If unsure, set status='error' and explain why.",
],
),
# Provider-specific knobs β match the Instructor factory
# mode=Mode.TOOLS, # OpenAI / Anthropic / OpenRouter
# mode=Mode.JSON,
FAQ
Does it support several AI providers?
Yes. The skill lists OpenAI, Anthropic, Groq, Ollama, Gemini, OpenRouter and MiniMax.
Does the agent always need custom schemas?
No. For free-form chat it uses the framework's basic chat schemas.
What is the schema for?
It is the typed contract that defines what goes into and comes out of the agent.
Details
Original description by the author
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`.
repo: Eigenwise/atomic-agents
Popularity
- GitHub stars
- 6.3k
- Ranking position
- #14237
- License
- MIT
- Updated
- 10/29/2026
Comments
- β¦
More skills from this repository
create-atomic-context-provider
6.3kHelps your agent add a context provider to an Atomic Agents agent, so fresh details like the time or retrieved documents appear in its prompt.
create-atomic-schema
6.3kHelps your agent design typed input and output schemas for Atomic Agents agents and tools, with clear field descriptions.
create-atomic-tool
6.3kHelps your agent build a typed tool for an Atomic Agents app, such as an API wrapper or calculator that an agent can call.
framework
6.3kHelps your agent work correctly with the Atomic Agents Python framework, covering schemas, agents, tools, prompts and provider setup.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.