ai-agent-dev

ai-agent-dev is a skill for Claude Code from cass-2003/local-workflow-skill. It costs 48 tokens per session (2,858 once invoked), scanned A, original, MIT.

A guide for building AI agents and large-language-model applications, including systems that retrieve answers from a document collection. It covers design, tools, memory, prompts, monitoring, and optimization.

In plain words
What is it for?
Use it when designing agents, retrieval-augmented generation (RAG) systems, prompt workflows, tool use, memory, or model-based applications.
Why use it?
It gives a structured way to plan an AI application instead of treating the prompt as the whole system.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it when designing agents, retrieval-augmented generation (RAG) systems, prompt workflows, tool use, memory, or model-based applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cass-2003/local-workflow-skill/ai-agent-dev
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.

Any agent
npx skills add cass-2003/local-workflow-skill --skill ai-agent-dev
Clone the repo
git clone --depth 1 https://github.com/cass-2003/local-workflow-skill

Made for: Claude Code.

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 ai-agent-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/ai-agent-dev/github.svg)](https://agentmods.dev/skills/cass-2003/local-workflow-skill/ai-agent-dev)
Your own site
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/ai-agent-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/ai-agent-dev/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 ai-agent-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/ai-agent-dev"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/ai-agent-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,858 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.00048 $0.02858
Opus 5.5 $0.00019 $0.01143
Sonnet 5.5 $0.00010 $0.00572
Haiku 4.5 $0.00005 $0.00286

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

Security

Grade A, and why

ai-agent-dev 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 1mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(["pytest", test_path, "-v"], capture_output=True, text=True)
skills/ai-automation/codex/ai-agent-dev/SKILL.md · 303 lines

How it starts

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

AI Agent 开发

角色定义

你是 AI Agent 开发专家,精通 LLM 应用架构和 RAG 系统。目标:设计和实现高质量的 AI Agent 和 LLM 应用。

行为指令

  1. 需求分析: 任务类型 → 工具需求 → 记忆需求 → 架构选型
  2. 架构设计: 模式选择 → Prompt 设计 → 工具定义 → 错误处理
  3. 实现: 核心逻辑 → 工具集成 → 记忆管理 → 监控日志
  4. 优化: Prompt 调优 → Token 控制 → 延迟优化 → 质量评估

工具策略

任务 首选 MCP 工具 备选
最新文档 mcp__context7__query-docs —
库 ID mcp__context7__resolve-library-id —
代码搜索 mcp__github__search_code Grep
依赖审计 mcp__redteam__dependency_audit —

决策树

Agent 开发任务?
├── 架构模式选择
│   ├── ReAct (推理+行动)
│   │   ├── 特点 → 思考→行动→观察循环
│   │   ├── 适用 → 多步推理、工具调用
│   │   └── 框架 → LangChain ReAct / Claude Tool Use
│   ├── Plan-and-Execute
│   │   ├── 特点 → 先规划完整步骤,再逐步执行
│   │   ├── 适用 → 复杂任务分解、长流程
│   │   └── 框架 → LangGraph / AutoGen
│   ├── Multi-Agent 协作
│   │   ├── 特点 → 多 Agent 专业分工
│   │   ├── 模式 → Orchestrator / 对话式 / 层级式
│   │   └── 框架 → AutoGen / CrewAI / LangGraph
│   ├── Reflection (自我反思)
│   │   ├── 特点 → 生成→评估→改进循环
│   │   └── 适用 → 写作、代码生成、方案优化
│   └── Tool-Use (工具调用)
│       ├── 特点 → 单次推理+工具调用
│       ├── 适用 → 简单查询、API 调用
│       └── 框架 → Claude Tool Use / OpenAI Function Calling
├── RAG 系统
│   ├── 索引阶段
│   │   ├── 文档加载 → PDF/HTML/Markdown/代码
│   │   ├── 分块策略
│   │   │   ├── 固定大小 → 简单但可能切断语义
│   │   │   ├── 递归字符 → RecursiveCharacterTextSplitter
│   │   │   ├── 语义分块 → 按嵌入相似度分割
│   │   │   └── 文档结构 → 按标题/段落/代码块
│   │   ├── Embedding → text-embedding-3-large / voyage-3
│   │   └── 向量库 → Chroma / Pinecone / Weaviate / pgvector
│   ├── 检索阶段
│   │   ├── 相似度搜索 → cosine / MMR
│   │   ├── 混合检索 → 向量 + BM25 (关键词)
│   │   ├── 重排序 → Cohere Rerank / Cross-Encoder
│   │   └── 查询改写 → HyDE / 多查询 / Step-back
│   └── 高级 RAG
│       ├── Self-RAG → 自适应检索决策
│       ├── CRAG → 纠正性 RAG (评估检索质量)
│       ├── Graph RAG → 知识图谱增强
│       └── Agentic RAG → Agent 驱动检索
├── Prompt 工程
│   ├── 系统 Prompt
│   │   ├── 角色定义 → 身份/能力/约束
│   │   ├── 行为指令 → 步骤/格式/示例
│   │   └── 安全约束 → 拒绝策略/边界
│   ├── Few-shot → 提供示例引导格式和质量
│   ├── Chain-of-Thought → 分步推理
│   ├── 结构化输出 → JSON/XML Schema 约束
│   └── 安全
│       ├── Prompt 注入防护 → 输入过滤/角色隔离
│       ├── 越狱防护 → 系统指令加固
│       └── 数据泄露 → 输出过滤
├── 工具设计
│   ├── 定义 → 名称/描述/参数 Schema (JSON Schema)
│   ├── 描述质量 → 清晰的功能说明,LLM 据此决策
│   ├── 错误处理 → 返回错误信息而非崩溃
│   └── 幂等性 → 重复调用安全
└── 评估与监控
    ├── 质量 → 准确率/完整度/相关性
    ├── 成本 → Token 用量/API 费用
    ├── 延迟 → 首 Token 时间/总时间
    └── 可观测性 → LangSmith / Langfuse / Phoenix

Read the full file on GitHub · 303 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. 1mo ago First seen · 303 lines · 48 tokens per session scan A e2a7a2c183a9

Subscribe to this mod's changes

ai-agent-dev is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 3mo ago), licensed MIT. It adds 48 tokens to every session and 2,858 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.