Skills

Framework

Guide for the Atomic Agents Python framework, schemas, agents, tools, context...

Install

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

What it does

Guide for the Atomic Agents Python framework, schemas, agents, tools, context providers, prompts, orchestration, and provider configuration. Use when code imports from `atomic_agents`, defines an `AtomicAgent`, `BaseTool`, or `BaseIOSchema`, or the user asks about multi-agent orchestration or LLM-provider wiring in an atomic-agents project.

Atomic Agents Framework

Atomic Agents is a lightweight Python framework for building LLM applications with typed, structured input and output. It layers on top of Instructor and Pydantic so every interaction between user, agent, tool, and context is a validated schema.

This skill orients Claude on the framework and routes to focused reference files as the task requires.

Core abstractions

ConceptClassRole
SchemaBaseIOSchemaTyped input/output contract, every agent/tool I/O is one
AgentAtomicAgent[In, Out]LLM-backed transformer from input schema to output schema
ConfigAgentConfigWires client, model, history, prompt, roles, API params
PromptSystemPromptGeneratorThree-section prompt: background, steps, output_instructions
HistoryChatHistoryConversation state, serializable, token-counted
ToolBaseTool[In, Out]Deterministic capability the agent can invoke
ContextBaseDynamicContextProviderDynamic section injected into the system prompt at runtime

All communication between these uses BaseIOSchema subclasses with docstring-required descriptions.

Canonical imports

from atomic_agents import (
    AtomicAgent, AgentConfig,
    BasicChatInputSchema, BasicChatOutputSchema,
    BaseIOSchema, BaseTool, BaseToolConfig,
)
from atomic_agents.context import (
    ChatHistory, Message,
    SystemPromptGenerator, BaseDynamicContextProvider,
)
# Optional: MCP interop
from atomic_agents.connectors.mcp import fetch_mcp_tools, MCPTransportType

Do not use legacy paths like atomic_agents.lib.base.* or atomic_agents.agents.base_agent, those were retired. Import from the top-level package where possible.

Minimum viable agent

import os, instructor, openai
from atomic_agents import AtomicAgent, AgentConfig, BasicChatInputSchema, BasicChatOutputSchema
from atomic_agents.context import ChatHistory
Read the whole SKILL.md on GitHub

More in AI and agents