创建Agent

创建Agent is a skill for Claude Code, Codex from jianchen08/Agent-os-open. It costs 58 tokens per session (2,440 once invoked), scanned A, original, Apache-2.0.

A guide for creating or changing agent configuration files. An agent is a configured software worker with a role, instructions, tools, limits, and status.

In plain words
What is it for?
Defining agent roles, required configuration fields, tool access, prompts, limits, and output templates.
Why use it?
It prevents incomplete or inconsistent agent definitions and helps decide which work belongs in the agent, its instructions, or its skills.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/jianchen08/agent-os-open/resource-agent-create
Any agent
npx skills add jianchen08/Agent-os-open --skill resource-agent-create
Clone the repo
git clone --depth 1 https://github.com/jianchen08/Agent-os-open

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 创建Agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/jianchen08/agent-os-open/resource-agent-create.svg)](https://agentmods.dev/skills/jianchen08/agent-os-open/resource-agent-create)
Your own site
<a href="https://agentmods.dev/skills/jianchen08/agent-os-open/resource-agent-create"><img src="https://agentmods.dev/badge/skills/jianchen08/agent-os-open/resource-agent-create.svg" alt="Measured on agentmods" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,440 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00058 $0.02440
Opus 5 $0.00029 $0.01220
Sonnet 5 $0.00012 $0.00488
Haiku 4.5 $0.00006 $0.00244

Measured today against content hash 385f6e413594, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

创建Agent scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/resource-agent-create/SKILL.md · 213 lines

How it starts

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

创建Agent

本技能是流程指引,不是逐条打勾清单:按场景判断使用,遇不适用情况保持裁量,不机械执行。

Agent 配置字段规范

必填字段

字段 类型 说明 规范
config_id string 唯一标识 snake_case,全局唯一,与文件名(去 .yaml)一致
name string 名称 日志/显示/内部引用用
description string 描述 说明职责、能力、适用场景,供上层搜索决策
agent_type enum 功能类型 main/orchestrator/specialized/atomic/system
category enum 功能分类 analysis/evaluation/search/code/generation/resource/modification/task/system/others
level enum 级别 L1(main)/L2(orchestrator)/L3(specialized/atomic)
system_prompt string 系统提示词 定义角色/职责/行为/流程(见下方"提示词写法")
tool_ids list 工具列表 ≤20 个直接加载;超出的放 static_vars 工具索引
version string 版本号 语义化版本
is_active bool 是否激活 true/false
status enum 状态 active/inactive/deprecated
max_iterations int 最大迭代 L1=-1或100,L2=40,L3=100,atomic=10
timeout_seconds int 超时秒 L1=-1,快速=300,常规=600,复杂=1800
tags list 标签 含层级标签(L1/L2/L3)

可选字段

字段 说明
display_name UI 显示名,未设用 name
model_tier large/medium/small;L1/L2 用 large,L3 用 small
model_name 直接指定模型,优先级高于 model_tier
max_reminders L1=10,L2=5,L3=3
static_vars / dynamic_vars 变量注入(见下方)
hard_constraints / soft_constraints 约束(见下方)
input_schema / output_schema JSON Schema
deliverables 产出物定义
recommended_metrics 评估指标
plugins 插件覆盖

agent_type 枚举

场景
main 主控,系统入口,接收需求/分配任务
orchestrator 编排,协调多个专业 Agent
specialized 专业领域任务(最常用)
atomic 单一原子任务(等价 specialized)
system 系统级功能(错误处理/恢复/审计)

提示词(system_prompt)写法

占位符变量(系统自动替换)

占位符 含义
{{workspace}} 当前工作空间路径
{{project_root}} 项目根目录
{{task_id}} 当前任务 ID
{{path:文件路径}} 注入文件内容
{{rules}} 注入硬约束和软约束

变量注入(static_vars / dynamic_vars)

type 作用
rules 注入约束
path 读取文件内容注入
reference 直接注入 content 文本
timestamp 时间戳
retrieval 按标签检索知识库

Read the full file on GitHub · 213 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. today Changed · +2 lines 385f6e413594
  2. 6d ago First seen · 211 lines · 58 tokens per session scan A 30565f21c53a

Subscribe to this mod's changes

创建Agent is a skill published in the GitHub repository jianchen08/Agent-os-open (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 58 tokens to every session and 2,440 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agent-tool

Add a new tool/function the AI agent can call (e.g. look something up, hit an external API, perform an action). Use when extending the assistant's capabilities, wiring a new function into the agent, or when the model needs a new action. This project uses {{ cookiecutter.aiframework }}.

vstorm-co/full-stack-ai-agent-template · 66 tokens

background-task

Add or modify work that runs outside the request/response cycle — emails, document ingestion, webhooks, cleanups, scheduled jobs. Use when something is slow or fire-and-forget, or when adding a periodic/cron task. This project's queue is {{ cookiecutter.backgroundtasks }}.

vstorm-co/full-stack-ai-agent-template · 62 tokens

alembic-migration

Create, review, and apply database schema changes with Alembic. Use whenever a SQLAlchemy model is added or changed, a column/index/constraint needs to change, or a data backfill is required — anything that alters the PostgreSQL schema.

vstorm-co/full-stack-ai-agent-template · 56 tokens

channel-bot

Work with messaging-channel bots (Telegram / Slack) — register a bot, route inbound messages through the AI agent, handle webhooks vs polling, or add a new channel adapter. Use when wiring chat into a messaging platform or debugging bot delivery.

vstorm-co/full-stack-ai-agent-template · 53 tokens

frontend-feature

Build a new page, view, or data-driven feature in the Next.js frontend. Use when adding a route under the dashboard/marketing area, wiring UI to a backend endpoint, adding client state, or creating a localized page. Covers App Router, data fetching, Zustand stores, and i18n.

vstorm-co/full-stack-ai-agent-template · 64 tokens

pytest-suite

Write or extend the backend test suite following this project's conventions. Use when adding tests for a new service/route/repository, when coverage is missing, or when asked to test a feature. Knows the mocked-session + httpx AsyncClient setup so tests run with no database.

vstorm-co/full-stack-ai-agent-template · 59 tokens