forge-agent

forge-agent is a skill for Claude Code, Codex from ForgeyClap/claude-forge. It costs 49 tokens per session (1,760 once invoked), scanned A, original, MIT.

A playbook for building and testing AI agents and applications that use language models and tools. It covers tool calls, connected services, testing, safety checks, and fallback behavior.

In plain words
What is it for?
Use it when developing or reviewing an AI agent, a language-model app, tool or function calling, connected services, prompt-injection defenses, evaluations, or guardrails.
Why use it?
It helps you design agents that use restricted, validated tools and avoid trusting unsafe instructions from retrieved content or tool results.

Skill for Claude CodeCodex

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/forgeyclap/claude-forge/forge-agent
Any agent
npx skills add ForgeyClap/claude-forge --skill forge-agent
Clone the repo
git clone --depth 1 https://github.com/ForgeyClap/claude-forge

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 forge-agent

README.md
[![agentmods](https://agentmods.dev/badge/skills/forgeyclap/claude-forge/forge-agent.svg)](https://agentmods.dev/skills/forgeyclap/claude-forge/forge-agent)
Your own site
<a href="https://agentmods.dev/skills/forgeyclap/claude-forge/forge-agent"><img src="https://agentmods.dev/badge/skills/forgeyclap/claude-forge/forge-agent.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,760 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 $0.00049 $0.01760
Opus 5 $0.00024 $0.00880
Sonnet 5 $0.00010 $0.00352
Haiku 4.5 $0.00005 $0.00176

Measured 3d ago against content hash 22119a51f904, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

forge-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 3d 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.

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.

.claude/skills/forge-agent/SKILL.md · 48 lines

How it starts

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

Forge playbook — Agent / LLM app + evals

Do not duplicate ECC skills — defer to: claude-api (model IDs, params, tool-use, caching, token counting — read BEFORE touching any Claude/Anthropic model), forge-rag (the retrieval leg when the agent grounds on documents), agentdb-vector-search / agentdb-memory-patterns (agent memory / vector recall). This file is orchestration only.

This is a tool-privilege + untrusted-content + honesty domain. An agent that can call tools, read private data, and send/act externally has the "lethal trifecta" shape — treat tool outputs and retrieved text as untrusted. mcp-developer leads tool/MCP-schema work; ml-engineer + data-scientist own the eval harness; security-boss reviews the injection surface. Never claim an eval "passed" without a real dataset run, and never promise doer-blindness Forge cannot enforce (see honest limit below).

Hard rules (non-negotiable)

  • Validated tool schemas, least privilege. Every tool the agent can call has a strict, typed input schema (JSON Schema) validated before execution — no free-form eval/shell/SQL/URL passthrough. Grant the smallest tool set that does the job. Destructive or irreversible tools (delete, deploy, pay, send, overwrite) require explicit confirmation or human approval, never autonomous invocation. Tool outputs are untrusted data, not new instructions.
  • Structural prompt-injection resistance. Retrieved documents, tool results, web pages, user files, and prior-turn content are DATA, never instructions. Injected text must not be able to change which tools run or exfiltrate private data. Break the trifecta: if the agent reads untrusted content AND holds private data AND can send/act externally, at least one leg must be severed (draft-only send, capability-split reader, or no private-data access on the reader). See the injection-defense note.
  • Real eval harness on a real dataset. A versioned eval set (golden inputs → expected outcomes: answer quality, task success, tool-call correctness, refusal-when-appropriate) runs on demand / in CI and reports an actual pass rate. Prompt + tool changes are measured against it; regressions are visible. "Looks good" is not an eval.
  • Honest fallback. On low confidence, empty retrieval, an unavailable tool, or an out-of-scope request, the agent says so and degrades gracefully — it does not fabricate facts, tool results, or citations.
  • Human handoff. A defined escalation path exists for high-stakes actions, repeated failure, or explicit user request — the agent hands off instead of forcing a wrong autonomous action.
  • Cost / rate / loop guards. A per-request and per-session token/cost budget, a hard cap on agent-loop iterations (no infinite tool-call loops), a per-call timeout, and provider rate-limit handling (backoff, not silent retry storms). Secrets/API keys in env + .env.example only.

Read the full file on GitHub · 48 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. 3d ago First seen · 48 lines · 49 tokens per session scan A 22119a51f904

Subscribe to this mod's changes

forge-agent is a skill published in the GitHub repository ForgeyClap/claude-forge (2 stars, last pushed 1mo ago), licensed MIT. It adds 49 tokens to every session and 1,760 once invoked, about $0.0002 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

music-generation

Use this skill when the user requests to generate, create, compose, or produce music or songs — background music, theme songs, jingles, or instrumental tracks. Generates a song from a style/mood prompt and optional lyrics via the MiniMax music API.

bytedance/deer-flow · 55 tokens

loop

Create a loop that runs a prompt now and follows up either on a fixed schedule or through self-paced wakeups. Usage - /loop check the build, /loop 5m check the build, /loop check the PR every 30m. /loop list to show jobs, /loop clear to cancel all.

QwenLM/qwen-code · 66 tokens

elizaos

Use when the task involves elizaOS core runtime concepts, plugins, actions, providers, evaluators, services, memories, state composition, or upstream elizaOS development. Covers the main abstractions and the TypeScript runtime mental model.

elizaOS/eliza · 52 tokens

salary-market-scanner

Scan live job boards and salary databases to find real-time compensation data for any role and location. Use this skill when a user asks "what's the going rate for a senior React engineer in London", "software engineer salary Singapore", "how much do ML engineers make", "what should I be earning as a [role]", "is my…

tinyfish-io/tinyfish-cookbook · 114 tokens

design-system-governance

Define how the system evolves — contribution model, versioning, deprecation, and change management. Use when multiple teams contribute. For driving uptake use design-system-adoption (designer-toolkit); for design file history use version-control-strategy (design-ops).

Owl-Listener/designer-skills · 62 tokens

openmaic-classroom

将 RAG 检索结果、文档块或知识图谱概念转换为 OpenMAIC 互动课程。当用户要求将知识库内容、检索到的文档片段、上传的文档、或知识图谱中的概念批量转换为教学课件/互动课堂时使用此技能。支持纯需求生成、基于 PDF 内容的课程生成、和基于概念图遍历的批量课堂生成。.

Tencent/WeKnora · 102 tokens