new-app
Skill này làm gì
Skill tạo một dự án Atomic Agents mới với các file gói, một agent đầu tiên, schema và một file chính có thể chạy. Dành cho lập trình viên bắt đầu một dự án agent Python mới.
Khi nào nên dùng
- ✓Khi lập trình viên muốn bắt đầu một dự án Atomic Agents mới từ con số không.
- ✓Khi lập trình viên muốn một agent khởi đầu hoạt động để phát triển tiếp.
- ✓Khi lập trình viên muốn cấu trúc dự án được chọn sẵn với uv hoặc pip.
Liên kết skill
https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/new-app/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Khởi tạo một dự án Atomic Agents mới tên support-bot dùng OpenAI, và đảm bảo nó chạy được.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill hỏi vài câu về tên, nhà cung cấp, loại agent và công cụ, xác nhận kế hoạch, rồi tạo dự án với một agent, schema và điểm vào.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Cần phiên bản Python nào?
Skill nói Python 3.12 trở lên, vì framework dùng cú pháp generic mới hơn.
Nó có thể thiết lập những nhà cung cấp AI nào?
Nó có thể thiết lập OpenAI, Anthropic, Groq, Ollama, Gemini, OpenRouter hoặc MiniMax.
Nó có cần trình quản lý gói không?
Skill mặc định dùng uv, còn pip và venv là lựa chọn khác.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 6.3k
- Vị trí xếp hạng
- #14242
- Giấy phép
- MIT
- Cập nhật
- 29/10/2026
Bình luận
- …
Thêm skill từ kho mã này
create-atomic-agent
6.3kGiúp agent của bạn xây dựng một Atomic Agents agent mới với đầu vào và đầu ra có kiểu, system prompt và nhà cung cấp AI đã chọn.
create-atomic-context-provider
6.3kGiúp agent của bạn thêm một context provider vào Atomic Agents agent, để các thông tin mới như thời gian hoặc tài liệu truy xuất xuất hiện trong prompt.
create-atomic-schema
6.3kGiúp agent của bạn thiết kế schema đầu vào và đầu ra có kiểu cho Atomic Agents agent và công cụ, với mô tả trường rõ ràng.
create-atomic-tool
6.3kGiúp agent của bạn xây dựng một công cụ có kiểu cho ứng dụng Atomic Agents, chẳng hạn một lớp bọc API hoặc máy tính mà agent có thể gọi.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.