Skills

Build Atomic Agents

Builds a typed AtomicAgent with its schemas, prompt, provider client and hooks.

Install

npx skills add Eigenwise/atomic-agents --skill create-atomic-agent -g -a claude-code -y
Category
AI and agents
Updated
6d ago
License
MIT
Context cost
Mediumabout 1,804 tokens
Runs scripts
No, instructions only

What it does

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`.

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:

  1. What should the agent do? One sentence. Becomes the persona / background line.
  2. Inputs and outputs. Use BasicChatInputSchema / BasicChatOutputSchema for free-form chat. Use a custom pair for anything structured (extraction, classification, planning, routing). When custom, branch to the create-atomic-schema skill for the schema authoring.
  3. Provider. OpenAI / Anthropic / Groq / Ollama / Gemini / OpenRouter / MiniMax. Default: whatever the project already uses; otherwise OpenAI.
  4. Conversational? Yes → wire a ChatHistory. No (single-shot transformer) → omit it for stateless behavior.
  5. 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-provider skill afterwards.

Skip anything already settled in context.

Phase 2, Plan

State the plan in one short block:

Read the whole SKILL.md on GitHub

More in AI and agents