new-app
它能做什么
它创建一个新的 Atomic Agents 项目,包括包文件、第一个智能体和结构定义,以及一个可以运行的主文件。适用于用 Python 开始全新智能体项目的开发者。
适用场景
- ✓当开发者想从零开始创建一个新的 Atomic Agents 项目时。
- ✓当开发者想要一个可以在其基础上继续开发的可用入门智能体时。
- ✓当开发者希望由 uv 或 pip 为其选定项目结构时。
技能链接
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/new-app/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请用 OpenAI 创建一个名为 support-bot 的新 Atomic Agents 项目,并确保它能运行。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能先询问名称、服务商、智能体类型和工具链等几个问题,确认方案后,创建一个包含一个智能体、结构定义和入口点的项目。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
New Atomic Agents Project
Scaffold a fresh Atomic Agents project. The result is a single-package Python project with one working agent, one schema pair, a provider-wrapped client, and a runnable main.py.
This skill is opinionated. Produce a complete, tested skeleton the user can run immediately.
Phase 1 — Interrogate
Ask these questions in one message, not one-at-a-time. Skip any the user already answered (including via $ARGUMENTS).
- Project name — used as both directory name and package name. Default from
$ARGUMENTSif provided. Normalize tokebab-casefor the directory andsnake_casefor the package. - LLM provider — OpenAI / Anthropic / Groq / Ollama / Gemini / OpenRouter / MiniMax. Default: OpenAI.
- Agent type — a rough one-liner. Shapes the default
SystemPromptGeneratorcontent and the starter schema pair. Defaults to a generic chat agent. - Tooling —
uv(default, because the repo uses uv) orpip + venv.
Do not ask about project layout, Python version, or dependency list. Pick them.
Phase 2 — Confirm the plan
State the plan in one short block and wait for a yes. Include:
- Directory:
<project-name>/ - Package:
<project_name>/ - Python:
>=3.12(Atomic Agents uses PEP 695 generics) - Dependencies:
atomic-agents>=2.7,instructor[<provider-extra>]>=1.14,python-dotenv,rich - Dev dependencies:
pytest,pytest-asyncio,ruff - First agent:
<agent-type>— usesBasicChatInputSchema/BasicChatOutputSchemaunless the agent type calls for custom schemas - Default model for the chosen provider (see
framework/references/providers.md) - Entry point:
main.pywith a REPL
Phase 3 — Scaffold
Create files in this order. Verify each step before proceeding.
Directory and package
<project-name>/
├── pyproject.toml
├── .env.example
├── .gitignore
├── README.md
├── AGENTS.md
├── CLAUDE.md
└── <project_name>/
├── __init__.py
└── main.py
pyproject.toml
Use the template from framework/references/project-structure.md, substituting the chosen provider extra and project name.
.env.example
Include the provider's API-key variable with a placeholder. Never the real key.
.gitignore
Use the template from framework/references/project-structure.md.
<project_name>/main.py
Produce a runnable REPL. Load .env, instantiate the provider client per framework/references/providers.md, build an agent, wire a ChatHistory with a seed assistant message, loop on console.input(...).
For the agent itself, follow the workflow from the atomic-agents:create-atomic-agent skill — same canonical imports, same per-provider mode matrix, same SystemPromptGenerator shape.
When a custom agent type was requested, build custom InputSchema / OutputSchema subclasses with field description= populated, following the atomic-agents:create-atomic-schema skill. Otherwise use BasicChatInputSchema / BasicChatOutputSchema.
Always use the canonical imports:
from atomic_agents import (
AtomicAgent, AgentConfig,
BasicChatInputSchema, BasicChatOutputSchema,
)
from atomic_agents.context import ChatHistory, SystemPromptGenerator
from instructor import Mode
Per-provider AgentConfig knobs — match the Instructor factory mode on AgentConfig.mode:
- OpenAI: defaults work. Omit
mode(or setMode.TOOLS). - Anthropic:
mode=Mode.TOOLS; includemax_tokensinmodel_api_parameters. - Groq / Ollama / MiniMax:
mode=Mode.JSON(Instructor factory also usesMode.JSON). - Gemini:
assistant_role="model"andmode=Mode.GENAI_TOOLS(Instructor factory usesMode.GENAI_TOOLS). - OpenRouter:
mode=Mode.TOOLS.
README.md
Short. Include: what the project is, how to install (uv sync or pip install -e .[dev]), how to set the API key (cp .env.example .env and edit), how to run (uv run python -m <project_name>.main or equivalent).
AGENTS.md and CLAUDE.md
Every scaffolded project ships agent instructions so any coding assistant (Cursor, Codex, Copilot, Gemini CLI, ...) knows the framework conventions from the first commit. CLAUDE.md contains exactly one line — @AGENTS.md — so Claude Code reads the same file without duplication.
AGENTS.md template (substitute project specifics):
# <Project Name>
<One-line description from the agent-type answer.>
Built with [Atomic Agents](https://github.com/eigenwise/atomic-agents) — a schema-driven
framewor
常见问题
需要哪个 Python 版本?
该技能说明需要 Python 3.12 或更高版本,因为该框架使用了较新的泛型语法。
它能设置哪些 AI 服务商?
它可以设置 OpenAI、Anthropic、Groq、Ollama、Gemini、OpenRouter 或 MiniMax。
它需要包管理器吗?
该技能默认使用 uv,另一个选项是 pip 加 venv。
详情
作者的原始描述
Scaffold a new Atomic Agents project from scratch — create the directory, `pyproject.toml`, env file, first agent, and a runnable entry point. Use when the user asks to start a new atomic-agents project from scratch, says "scaffold" / "new project" / "start from zero", or runs `/atomic-agents:new-app`.
repo: Eigenwise/atomic-agents
热度
- GitHub 星标
- 6.3k
- 排名
- #14242
- 许可证
- MIT
- 更新时间
- 2026/10/29
评论
- …
同一仓库的更多技能
create-atomic-agent
6.3k帮你的智能体构建一个新的 Atomic Agents 智能体,包括带类型的输入和输出、系统提示词,以及所选的 AI 服务商。
create-atomic-context-provider
6.3k帮你的智能体为 Atomic Agents 智能体添加上下文提供者,使当前时间或检索到的文档等最新细节出现在其提示词中。
create-atomic-schema
6.3k帮你的智能体为 Atomic Agents 智能体和工具设计带类型的输入与输出结构定义,并附上清晰的字段说明。
create-atomic-tool
6.3k帮你的智能体为 Atomic Agents 应用构建一个带类型的工具,例如智能体可以调用的 API 封装或计算器。