agent2: Skill for Claude Code

.agents/skills/creating-agents/SKILL.md

creating-agents is a skill for Claude Code, Codex from Artesiana/agent2. It costs 50 tokens per session (902 once invoked), scanned A, original, MIT.

A scaffold generator for a new Agent2 agent service. It creates the service's data schema, API, tools, configuration, container setup, and Docker Compose entry according to the project's conventions.

In plain words
What is it for?
Use it when adding an agent with a name, purpose, output fields, tools, and optional document-search needs, including domain-expert agents that should first use the brain-clone process.
Why use it?
It gives a new backend AI worker the expected project structure and supporting files. This reduces the setup work before implementation begins.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is Artesiana/agent2's own configuration. It tells Claude Code and Codex how to work on agent2 itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent2 configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Artesiana/agent2. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Artesiana/agent2/main/.agents/skills/creating-agents/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/Artesiana/agent2

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for creating-agents

README.md
[![agentmods](https://agentmods.dev/badge/skills/artesiana/agent2/creating-agents/github.svg)](https://agentmods.dev/skills/artesiana/agent2/creating-agents)
Your own site
<a href="https://agentmods.dev/skills/artesiana/agent2/creating-agents"><img src="https://agentmods.dev/badge/skills/artesiana/agent2/creating-agents/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for creating-agents

Your own site · 80×15
<a href="https://agentmods.dev/skills/artesiana/agent2/creating-agents"><img src="https://agentmods.dev/badge/skills/artesiana/agent2/creating-agents.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 902 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00050 $0.00902
Opus 5.5 $0.00020 $0.00361
Sonnet 5.5 $0.00010 $0.00180
Haiku 4.5 $0.00005 $0.00090

Measured 2mo ago against content hash 0678bca274d6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

creating-agents scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://localhost:<port>/health # Health check
.agents/skills/creating-agents/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Creating Agents

Overview

Scaffold a complete Agent2 agent service. One agent = one schema, one API, one Docker service.

If the requested agent is a domain expert, regulated workflow, document reviewer, compliance worker, or professional brain clone, use brain-clone first and study agents/procurement-compliance-officer.

When to Activate

  • User says "create agent", "new agent", "scaffold agent", "add agent"
  • User describes a use case that needs a new agent service
  • User wants to add a new backend AI worker

Steps

1. Gather Requirements

Ask the user:

  1. Name (kebab-case, e.g. support-ticket)
  2. What it does (one sentence)
  3. Output fields (what the structured result should contain)
  4. Tools needed (what the agent should be able to call)
  5. Knowledge needed? (does it need to search documents?)

2. Generate Files

Create all files in agents/<name>/:

File What to put
__init__.py Empty
schemas.py Pydantic BaseModel with Field() descriptions. Use Literal for enums, validators for constraints.
tools.py One function per tool. Include docstrings. Stub implementations.
agent.py create_agent() with instructions= and @agent.tool_plain registrations
config.yaml name, description, model (empty = use DEFAULT_MODEL), port, timeout, collections
main.py from shared.api import create_app; app = create_app("<name>")
Dockerfile Copy from agents/example-agent/Dockerfile, change agent paths
tests/promptfoo/<name>/eval.yaml For domain agents, behavior-level evals

3. Key Rules

# agent.py — ALWAYS use instructions=, NEVER system_prompt=
agent = create_agent(
    name="my-agent",
    output_type=MySchema,
    instructions="You are...",
    toolsets=[knowledge_server] if needs_knowledge else [],
)

# Tools — ALWAYS @agent.tool_plain, delegate to tools.py
@agent.tool_plain
def my_tool(arg: str) -> dict:
    """Docstring is the tool description the LLM sees."""
    return tools.my_tool(arg)

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 93 lines · 50 tokens per session scan A 0678bca274d6

Subscribe to this mod's changes

creating-agents is a skill published in the GitHub repository Artesiana/agent2 (37 stars, last pushed 6mo ago), licensed MIT. It adds 50 tokens to every session and 902 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

creating-agents compared with skills from other repositories

creating-agents next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
creating-agentsArtesiana/agent2Skill376mo agoMITA50Claude Code, Codex
background-taskvstorm-co/full-stack-ai-agent-templateSkill2.0k7d agoMITA62Claude Code
channel-botvstorm-co/full-stack-ai-agent-templateSkill2.0k7d agoMITA53Claude Code
mcp_protocolfdueblab/Micro-AgentSkill1001mo agoMITA0Claude Code, Codex
code_analysis_patternsfdueblab/Micro-AgentSkill1001mo agoMITA0Claude Code, Codex
gitlab_writeParendumOU/NexoraSkill2628d agoMITA0Claude Code, Codex
external-im-integrationopensquad-ai/opensquadSkill717d agoMITA50Claude Code, Codex