scaffold-subagent

scaffold-subagent is a skill for Claude Code, Codex from orin-dx/agent-plugins. It costs 36 tokens per session (391 once invoked), scanned A, original, MIT.

A skill for creating one new agent inside an existing plugin. It uses a task description and model or effort tier to generate the agent file in the plugin's agents directory.

In plain words
What is it for?
Use it when adding a subagent for a specific task to an existing plugin.
Why use it?
It avoids having to manually structure a new plugin agent file.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions Codex.

Good fit Use it when adding a subagent for a specific task to an existing plugin.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orin-dx/agent-plugins/scaffold-subagent
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 orin-dx/agent-plugins --skill scaffold-subagent
Clone the repo
git clone --depth 1 https://github.com/orin-dx/agent-plugins

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 scaffold-subagent

README.md
[![agentmods](https://agentmods.dev/badge/skills/orin-dx/agent-plugins/scaffold-subagent/github.svg)](https://agentmods.dev/skills/orin-dx/agent-plugins/scaffold-subagent)
Your own site
<a href="https://agentmods.dev/skills/orin-dx/agent-plugins/scaffold-subagent"><img src="https://agentmods.dev/badge/skills/orin-dx/agent-plugins/scaffold-subagent/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 scaffold-subagent

Your own site · 80×15
<a href="https://agentmods.dev/skills/orin-dx/agent-plugins/scaffold-subagent"><img src="https://agentmods.dev/badge/skills/orin-dx/agent-plugins/scaffold-subagent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 391 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00036 $0.00391
Opus 5.5 $0.00014 $0.00156
Sonnet 5.5 $0.00007 $0.00078
Haiku 4.5 $0.00004 $0.00039

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

Security

Grade A, and why

scaffold-subagent 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 2mo 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.

harnesses/codex/plugins/mason/skills/scaffold-subagent/SKILL.md · 32 lines

What it actually says

State material concerns, evidence, consequence, and confidence directly. Do not soften blockers, manufacture praise, or claim certainty beyond the evidence.

Add one agent without breaking the static contract

Inspect the target plugin's manifest, skill dispatch, and existing agent prompts first. This skill changes the source-plugin agent surface; it does not assume that the same prompt belongs in the Codex adaptation.

Workflow

  1. Confirm the requested cognitive mode, actual responsibility, input artifact, output artifact, and chosen model/effort tier.
  2. Read an existing source agent and copy its <constitution> section byte-for-byte.
  3. Author <backstory>, <goal>, <judgment>, and <output> in the required order.
  4. Add a single <load_first> block only when the agent needs one phase-specific reference.
  5. Cite shared/schemas/<name>@<version>.json for every structured output or create that schema first.
  6. Use one direct, independently actionable rule per paragraph or list item. Remove filler, repeated rationale, process narration, softened blockers, and confidence unsupported by evidence.
  7. Update the source manifest and a skill dispatch only when the new agent must be reachable through that route.
  8. Validate the shared prefix, manifest wiring, and resulting path.

Boundaries

  • Do not alter unrelated agents, skills, or the Codex-native tree to make the source prompt fit.
  • Do not create a generic role prompt. Define the agent's actual evidence and judgment boundary.
  • If the requested role overlaps an existing agent, report the overlap and propose reuse before adding duplication.

Team use

This is a tightly coupled edit. Complete it yourself; do not request an agent team.

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. 2mo ago Changed · +2 lines e51c8506346b
  2. 2mo ago Changed · +1 lines ca2d74b6984d
  3. 2mo ago Changed · +1 lines · -109 tokens per session e14dd033cceb
  4. 3mo ago First seen · 28 lines · 145 tokens per session scan A 3360b5f77bea

Subscribe to this mod's changes

scaffold-subagent is a skill published in the GitHub repository orin-dx/agent-plugins (1 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 391 once invoked, about $0.0001 per session on Opus 5.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

scaffold-subagent compared with skills from other repositories

scaffold-subagent next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scaffold-subagentorin-dx/agent-pluginsSkill12mo agoMITA36Claude Code, Codex
ai-code-generation-guardrailssickn33/agentic-awesome-skillsSkill51kyesterdayMITA35Claude Code
accessibility-testerAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA25Claude Code, Codex
bdd-cucumberAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA26Claude Code, Codex
flaky-test-fixerAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA29Claude Code, Codex
integration-testerAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA24Claude Code, Codex
load-testerAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA24Claude Code, Codex