cast-build

cast-build is a skill for Claude Code, Codex from yaodub/cast. It costs 96 tokens per session (1,620 once invoked), scanned A, original, MIT.

Advanced authoring instructions for Cast agents, including their identity files, communication channels, assets, and service code.

In plain words
What is it for?
Use them to create or edit Cast agent blueprints and services, including scripted behavior and custom code inside an existing agent folder.
Why use it?
They define where agent code belongs and the registration requirements that make Cast recognize an agent folder.

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/yaodub/cast/cast-build
Any agent
npx skills add yaodub/cast --skill cast-build
Clone the repo
git clone --depth 1 https://github.com/yaodub/cast

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 cast-build

README.md
[![agentmods](https://agentmods.dev/badge/skills/yaodub/cast/cast-build.svg)](https://agentmods.dev/skills/yaodub/cast/cast-build)
Your own site
<a href="https://agentmods.dev/skills/yaodub/cast/cast-build"><img src="https://agentmods.dev/badge/skills/yaodub/cast/cast-build.svg" alt="Measured on agentmods" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,620 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.00096 $0.01620
Opus 5 $0.00048 $0.00810
Sonnet 5 $0.00019 $0.00324
Haiku 4.5 $0.00010 $0.00162

Measured 5d ago against content hash ef21cbd77679, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

cast-build 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 5d 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/cast-build/SKILL.md · 62 lines

How it starts

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

Cast — advanced-mode authoring (agent-folder scope)

You are Claude Code in Cast's authoring lane. The operator wants you to write or change code inside one or more agent folders. Every diff you propose is reviewed line-by-line; that review is the only safety property.

Scope

Argument: <folder> (optional).

  • With folder → anchor at $CAST_AGENTS_DIR/<folder>/ (default ~/.cast/agents/<folder>/). Treat the cast repo as read-only context.
  • Without folder → cross-agent folder operations across $CAST_AGENTS_DIR/ (rename, restore from backup, bulk delete, etc.).
  • New agent → scaffold it first (admin "create agent," or pnpm agent init), which provisions the identity keypair, ACL, and registration; then author its blueprint and service. Don't hand-create a bare folder — the server ignores it until it carries a valid manifest.json + secrets/agent.key, and its AGENTS_DIR reconciler only registers a folder that is already complete when it appears.

If neither $CAST_AGENTS_DIR nor a folder hint is present, ask the operator before guessing.

What you author

Layer Examples Reload after edit
Blueprint identity blueprint/identity/{prompt,whoami,peers,skills}.md agent__expire_conversations
Channels blueprint/channels/<name>/{channel.json,prompt.md,bootstrap.md,cleanup.md} agent__expire_conversations
Capabilities (extension wiring) blueprint/props/capabilities.json — toggling extensions on/off, configuring already-registered extensions configure__restart_agent_service for tool-list changes; agent__expire_conversations for config-only
Schedules blueprint/props/schedule.txt, blueprint/props/settings.json Auto hot-reload
Assets blueprint/assets/* (static files mounted at /assets) None
Per-agent service code blueprint/service/* (the host process for this one agent) configure__restart_agent_service (interrupts in-flight conversations)
Operator config config/agent.json, config/acl.json, config/provisions.json, config/transport.json File-watched (most fields); restart for model changes
Extension operator config config/ext/<name>/.env, config/ext/<name>/config.json configure__restart_agent_service on secret rotation
Cross-agent folder ops rename, restore from backup, bulk delete under $CAST_AGENTS_DIR/ n/a

Read the full file on GitHub · 62 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. 5d ago First seen · 62 lines · 96 tokens per session scan A ef21cbd77679

Subscribe to this mod's changes

cast-build is a skill published in the GitHub repository yaodub/cast (41 stars, last pushed 13d ago), licensed MIT. It adds 96 tokens to every session and 1,620 once invoked, about $0.0005 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-30.