create-stateful-skill

create-stateful-skill is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 53 tokens per session (343 once invoked), scanned A, original, MIT.

A scaffold for creating an agent skill that keeps information between sessions and manages its state over time. It can also define lifecycle files, chained commands, tone settings, and escalation rules.

In plain words
What is it for?
Use it for multi-step agent workflows that need session memory, progress tracking, chained actions, or defined escalation to a person.
Why use it?
It provides structure for workflows that cannot be handled by a one-off set of instructions. It helps make saved state and human checkpoints explicit.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agent-scaffolders plugin — 33 skills, 2 plugins shipped together

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/richfrem/agent-plugins-skills/create-stateful-skill
Any agent
npx skills add richfrem/agent-plugins-skills --skill create-stateful-skill
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install agent-scaffolders, the plugin that ships this one along with the rest of its 33 skills, 2 plugins.

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 create-stateful-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/create-stateful-skill.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/create-stateful-skill)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/create-stateful-skill"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/create-stateful-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 343 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.00053 $0.00343
Opus 5 $0.00026 $0.00171
Sonnet 5 $0.00011 $0.00069
Haiku 4.5 $0.00005 $0.00034

Measured 2d ago against content hash 678a3fb4b526, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

create-stateful-skill 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 2d 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.

plugins/agent-scaffolders/skills/create-stateful-skill/SKILL.md · 37 lines

What it actually says

Follow the create-stateful-skill skill workflow to scaffold an advanced agent skill with L4 state management, lifecycle artifacts, and chained commands.

Inputs

  • $ARGUMENTS — optional skill name or use-case description. Omit to start with discovery.

Steps

  1. If $ARGUMENTS provides a skill name or context, use it to seed discovery
  2. Follow the create-stateful-skill phased workflow: confirm which L4 patterns are needed (state management, lifecycle artifacts, tone configuration, chained commands, escalation taxonomy), design the state schema and lifecycle checkpoints, then scaffold the skill directory with full L4 scaffolding
  3. Report created skill path and explain the state management strategy

Output

Skill directory with SKILL.md implementing selected L4 patterns, state schema, lifecycle artifact templates, and chained command definitions.

Edge Cases

  • If $ARGUMENTS is empty: begin with discovery — identify which L4 patterns apply
  • If the use case is simple (no persistent state, no chaining): recommend create-skill instead — stateful scaffolding adds complexity that simple skills don't need
  • If the workflow requires human checkpoints: design explicit escalation taxonomy steps
Files

What ships with it

60 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.

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. 2d ago First seen · 37 lines · 53 tokens per session scan A 678a3fb4b526

Subscribe to this mod's changes

create-stateful-skill is a skill published in the GitHub repository richfrem/agent-plugins-skills (6 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 343 once invoked, about $0.0003 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-09-03.