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.
npx agentmods add skills/agirails/claude-plugin/agirails-agent-buildingnpx skills add agirails/claude-plugin --skill agirails-agent-buildinggit clone --depth 1 https://github.com/agirails/claude-pluginWrote 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.
[](https://agentmods.dev/skills/agirails/claude-plugin/agirails-agent-building)<a href="https://agentmods.dev/skills/agirails/claude-plugin/agirails-agent-building"><img src="https://agentmods.dev/badge/skills/agirails/claude-plugin/agirails-agent-building.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00082 | $0.05464 |
| Opus 5 | $0.00041 | $0.02732 |
| Sonnet 5 | $0.00016 | $0.01093 |
| Haiku 4.5 | $0.00008 | $0.00546 |
Grade A, and why
agirails-agent-building 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 589 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building Agents with AGIRAILS (v4)
This skill provides guidance for building AI agents that participate in the AGIRAILS economy - either as service providers (selling services), requesters (buying services), or full autonomous agents (both earning and paying).
Quickstart: provide() and request()
The simplest way to build an agent. No boilerplate, no class hierarchy.
Provider Agent in 3 Lines
import { provide } from '@agirails/sdk';
provide('translation', async (job) => {
const result = await translate(job.input.text, job.input.lang);
return { output: result, confidence: 0.95 };
});
Requester in 1 Line
import { request } from '@agirails/sdk';
const result = await request('translation', {
input: { text: 'Hello', lang: 'es' },
budget: 1.00,
});
// result.output = "Hola"
That's it. The SDK handles wallet setup (keystore auto-detect), escrow, state transitions, fee deduction, and settlement.
Agent Class (Recommended for Production)
For agents with multiple capabilities, structured pricing, and lifecycle management:
import { Agent } from '@agirails/sdk';
// Constructor takes a single AgentConfig object
const agent = new Agent({
name: 'translator-pro',
network: 'testnet',
behavior: { concurrency: 3, autoAccept: true },
});
// Register services AFTER construction via agent.provide()
agent.provide('translation', async (job) => {
const translated = await translate(job.input.text, job.input.lang);
return { output: translated };
});
agent.provide('summarization', async (job) => {
const summary = await summarize(job.input.text);
return { output: summary };
});
await agent.start(); // begins listening for jobs
Agent class benefits:
- Multiple services per agent (via
agent.provide()) - Structured pricing models (via
ServiceConfig) - Lifecycle management (start/stop)
- Built-in adapter routing (ACTP + x402)
- Discovery integration (Agent Card, ERC-8004)
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 4d ago First seen · 589 lines · 82 tokens per session scan A dd83e2539580
agirails-agent-building is a skill published in the GitHub repository agirails/claude-plugin (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 82 tokens to every session and 5,464 once invoked, about $0.0004 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.
Other skills, from other repositories
convex-add
Add a capability to the CURRENT Convex app — consults the served Convex capability catalog for always-current procedures (billing, crons, auth, agent, search, …); falls back to built-in hosting or @convex-dev component search. TRIGGER when the user runs /add, or asks to add hosting/publishing or any backend capability…
twitter-reader
Read Twitter/X for financial research using opencli (read-only). Use this skill whenever the user wants to read their Twitter feed, search for financial tweets, view bookmarks, look up user profiles, or gather market sentiment from Twitter/X. Triggers include: "check my feed", "search Twitter for", "show my…
chenhao-limit-up
Use when evaluating A-share limit-up (涨停板) setups through Chen Hao's sentiment and momentum lens: market emotion cycles, board strength, follow-through, and short-term aggressive momentum trading.
trading-risk-gate
Unified pre-trade safety gate: Ruin check (Law #1), ergodicity audit, and win-rate dominance validation. Absorbs: ergodicity-check, law-of-ruin, win-rate-dominance.
cwv-optimizer
Diagnose and fix Core Web Vitals issues on AEM Edge Delivery Services pages. Goes deeper than generic CWV advice by understanding EDS-specific performance patterns including the 100KB LCP budget, E-L-D loading phases, block rendering behavior, and third-party script impact. Produces specific fixes for LCP, CLS, and…
multi-expert-analyzer
针对通用问题进行多领域专家联合分析, 综合稿产生前必经 fact-checker 与 red-team 两道独立校验。适用场景: 用户提出跨领域或不确定领域的复杂问题, 需要从多个专家角度分别搜证并相互校验后综合成文, 例如该不该买房、该不该跳槽、是否进入某个赛道等。触发关键词: 多角度分析、专家分析、综合分析、多视角、跨领域分析、从不同角度看、深度分析。问题只属于单一明确领域时, 优先使用该领域的专门 skill, 例如纯财务用 finance-core-analysis、纯技术用 software-architect。输出 (全部 markdown 保存到当前项目 markdown/ 目录): (1) 每位专家的中间分析稿…