create-atomic-agent
यह क्या करती है
यह Atomic Agents Python फ़्रेमवर्क में AI एजेंट डिज़ाइन और जोड़ने का चरण-दर-चरण तरीका बताती है, इनपुट और आउटपुट के आकार से लेकर प्रदाता कनेक्शन तक। यह संरचित AI एजेंट बनाने वाले डेवलपर्स के लिए है।
कब इस्तेमाल करें
- ✓जब डेवलपर Atomic Agents प्रोजेक्ट में planner, router या extractor एजेंट जोड़ना चाहे।
- ✓जब डेवलपर फ़्रेमवर्क पर बना सरल चैट एजेंट चाहे।
- ✓जब डेवलपर को ऐसा एजेंट चाहिए जो दूसरे कोड के लिए संरचित आउटपुट लौटाए।
Skill का लिंक
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/create-atomic-agent/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“Atomic Agents का ऐसा एजेंट बनाइए जो सपोर्ट टिकट पढ़े और उसकी श्रेणी और तात्कालिकता लौटाए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल पहले पूछती है कि एजेंट को क्या करना है, कौन से schemas और प्रदाता इस्तेमाल होंगे, फिर schemas, सिस्टम प्रॉम्प्ट, क्लाइंट सेटअप और एजेंट लिखती है, और जाँचने के लिए उसे चलाती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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,
अक्सर पूछे जाने वाले सवाल
क्या यह कई AI प्रदाता सपोर्ट करती है?
हाँ। स्किल OpenAI, Anthropic, Groq, Ollama, Gemini, OpenRouter और MiniMax सूचीबद्ध करती है।
क्या एजेंट को हमेशा कस्टम schemas चाहिए?
नहीं। खुली चैट के लिए यह फ़्रेमवर्क के बुनियादी चैट schemas इस्तेमाल करती है।
schema किस काम आता है?
यह टाइप्ड अनुबंध है जो तय करता है कि एजेंट में क्या जाता है और उससे क्या निकलता है।
जानकारी
लेखक का मूल विवरण
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
लोकप्रियता
- GitHub स्टार
- 6.3k
- रैंकिंग में स्थान
- #14237
- लाइसेंस
- MIT
- अपडेट की गई
- 29/10/2026
कमेंट
- …
इस repository की और skills
create-atomic-context-provider
6.3kआपके एजेंट को Atomic Agents एजेंट में context provider जोड़ने में मदद करती है, ताकि समय या मिली हुई दस्तावेज़ों जैसी ताज़ा जानकारी उसके प्रॉम्प्ट में दिखे।
create-atomic-schema
6.3kआपके एजेंट को Atomic Agents एजेंट और टूल के लिए साफ़ फ़ील्ड विवरण वाले टाइप्ड इनपुट और आउटपुट schemas डिज़ाइन करने में मदद करती है।
create-atomic-tool
6.3kआपके एजेंट को Atomic Agents ऐप के लिए टाइप्ड टूल बनाने में मदद करती है, जैसे API रैपर या कैलकुलेटर जिसे एजेंट बुला सके।
framework
6.3kआपके एजेंट को Atomic Agents Python फ़्रेमवर्क के साथ सही तरीके से काम करने में मदद करती है, जिसमें schemas, एजेंट, टूल, प्रॉम्प्ट और प्रदाता सेटअप शामिल हैं।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।