Langsung ke konten
Skillpedia
Pemrograman umum6.3k Β· #14242

new-app

Fungsinya

Dokumen ini membuat proyek Atomic Agents baru dengan berkas paketnya, agent dan skema pertama, serta berkas utama yang bisa dijalankan. Skill ini ditujukan untuk pengembang yang memulai proyek agent Python dari awal.

Kapan dipakai

  • βœ“Saat pengembang ingin memulai proyek Atomic Agents baru dari nol.
  • βœ“Ketika pengembang ingin agent awal yang sudah berfungsi untuk dikembangkan.
  • βœ“Saat pengembang ingin tata letak proyek yang dipilihkan untuknya dengan uv atau pip.

Link skill

https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/new-app/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/Eigenwise/atomic-agents/blob/main/claude-plugin/atomic-agents/skills/new-app/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œMulai proyek Atomic Agents baru bernama support-bot dengan OpenAI, dan pastikan proyek itu bisa dijalankan.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini mengajukan beberapa pertanyaan tentang nama, penyedia, jenis agent, dan alat, mengonfirmasi rencana, lalu membuat proyek dengan satu agent, skema, dan titik masuk.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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).

  1. Project name β€” used as both directory name and package name. Default from $ARGUMENTS if provided. Normalize to kebab-case for the directory and snake_case for the package.
  2. LLM provider β€” OpenAI / Anthropic / Groq / Ollama / Gemini / OpenRouter / MiniMax. Default: OpenAI.
  3. Agent type β€” a rough one-liner. Shapes the default SystemPromptGenerator content and the starter schema pair. Defaults to a generic chat agent.
  4. Tooling β€” uv (default, because the repo uses uv) or pip + 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> β€” uses BasicChatInputSchema/BasicChatOutputSchema unless the agent type calls for custom schemas
  • Default model for the chosen provider (see framework/references/providers.md)
  • Entry point: main.py with 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 set Mode.TOOLS).
  • Anthropic: mode=Mode.TOOLS; include max_tokens in model_api_parameters.
  • Groq / Ollama / MiniMax: mode=Mode.JSON (Instructor factory also uses Mode.JSON).
  • Gemini: assistant_role="model" and mode=Mode.GENAI_TOOLS (Instructor factory uses Mode.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
Pertanyaan umum

Versi Python apa yang dibutuhkan?

Skill ini menyebutkan Python 3.12 atau yang lebih baru, karena kerangka kerja memakai sintaks generik yang lebih baru.

Penyedia AI apa saja yang bisa disiapkannya?

Ia bisa menyiapkan OpenAI, Anthropic, Groq, Ollama, Gemini, OpenRouter, atau MiniMax.

Apakah perlu pengelola paket?

Skill ini menggunakan uv secara default, dengan pip dan venv sebagai pilihan lain.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
6.3k
Peringkat
#14242
Lisensi
MIT
Diperbarui
29/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa