state-management

state-management is a skill for Claude Code from a5c-ai/babysitter. It costs 43 tokens per session (1,820 once invoked), scanned A, original, MIT.

A project-state file manager for storing current work across coding sessions. It keeps details such as the active task, completed phases, blockers, decisions, and small follow-up tasks in STATE.md.

In plain words
What is it for?
It helps read, update, and append individual project-state fields while preserving the rest of the document.
Why use it?
It lets an agent resume work with the relevant context instead of reconstructing it from memory each session.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It helps read, update, and append individual project-state fields while preserving the rest of the document.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/a5c-ai/babysitter/state-management
About the project

Babysitter is a workflow engine for AI coding agents that enforces predefined steps, quality checks, human approvals, and decision records. It is used to coordinate complex, repeatable agent workflows across supported coding tools. The catalogue contains skills, agents, instructions, settings, a plugin, and an MCP integration for its workflow.

a5c-ai/babysitter · 1,778 stars · on GitHub · a5c.ai

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 a5c-ai/babysitter --skill state-management
Clone the repo
git clone --depth 1 https://github.com/a5c-ai/babysitter

Made for: Claude Code.

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 state-management

README.md
[![agentmods](https://agentmods.dev/badge/skills/a5c-ai/babysitter/state-management/github.svg)](https://agentmods.dev/skills/a5c-ai/babysitter/state-management)
Your own site
<a href="https://agentmods.dev/skills/a5c-ai/babysitter/state-management"><img src="https://agentmods.dev/badge/skills/a5c-ai/babysitter/state-management/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 state-management

Your own site · 80×15
<a href="https://agentmods.dev/skills/a5c-ai/babysitter/state-management"><img src="https://agentmods.dev/badge/skills/a5c-ai/babysitter/state-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,820 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00043 $0.01820
Opus 5 $0.00022 $0.00910
Sonnet 5 $0.00009 $0.00364
Haiku 4.5 $0.00004 $0.00182

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

Security

Grade A, and why

state-management 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 6d 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.

library/methodologies/gsd/skills/state-management/SKILL.md · 221 lines

How it starts

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

last_updated: 2026-03-02T14:30:00Z session_count: 12 current_milestone: v1.0

Project State

Current Work

  • Phase: 72
  • Task: Implement OAuth2 login flow
  • Status: executing
  • Plan: PLAN-1.md (task 3 of 5)

Completed Phases

  • Phase 70: Project setup and scaffolding
  • Phase 71: Database schema and migrations

Blockers

  • [HIGH] API key for OAuth provider not configured (@user, 2026-03-01)

Decisions

Date Decision Rationale
2026-02-28 Use PostgreSQL over SQLite Need concurrent writes for API
2026-03-01 Skip Phase 71.1 (Redis cache) Not needed for v1.0

Quick Tasks

# Task Status Date
001 Fix login redirect done 2026-02-28
002 Add rate limiting in-progress 2026-03-02

### 2. Update Individual Fields

Update a single field without affecting the rest of the document:

update current_phase -> 73 update current_task -> "Build API endpoints for user management" update status -> "planning"


Use `Edit` tool to perform surgical updates on specific lines.

### 3. Append to List Fields

Add items to list-type fields:

append completed_phases -> "Phase 72: OAuth2 authentication" append decisions -> { date: "2026-03-02", decision: "Use JWT tokens", rationale: "Stateless auth for API" } append blockers -> { severity: "MEDIUM", description: "Need design mockups", owner: "@designer" }


### 4. Remove from List Fields

Remove items when resolved:

remove blocker -> "API key for OAuth provider not configured"


Mark blockers as resolved rather than deleting (change `[ ]` to `[x]`).

### 5. Quick Tasks Table Management

Add, update, and query quick tasks:

add_quick_task -> { number: 3, task: "Update README", status: "pending" } update_quick_task -> { number: 2, status: "done" } query_quick_tasks -> { status: "in-progress" }


### 6. Cross-Session Memory

STATE.md persists across context resets. On session start:
1. Read STATE.md to restore project context
2. Increment `session_count` in frontmatter
3. Update `last_updated` timestamp
4. Report state summary to orchestrator

### 7. Decision Log

Structured decision tracking with timestamps and rationale:

```markdown
| Date | Decision | Rationale |
|------|----------|-----------|
| 2026-03-02 | Use JWT tokens | Stateless auth for API |

8. Blocker Tracking

Track blockers with severity and ownership:

- [ ] [HIGH] API key not configured (@user, 2026-03-01)
- [x] [MEDIUM] Design mockups needed (@designer, 2026-02-28) - resolved 2026-03-01

Severity levels: HIGH (blocks current work), MEDIUM (blocks future work), LOW (inconvenience).

Tool Use Instructions

Reading State

  1. Use Read to load .planning/STATE.md
  2. Parse frontmatter for metadata (last_updated, session_count, current_milestone)
  3. Parse markdown sections into structured fields
  4. Return parsed state object

Updating a Field

  1. Use Read to load current STATE.md
  2. Locate the target field/section
  3. Use Edit with precise old_string/new_string to update only the target
  4. Verify edit succeeded by reading the section back

Appending to Lists

  1. Use Read to find the end of the target list section
  2. Use Edit to insert new item at the correct position
  3. For tables, append new row before the section break

Resolving Blockers

  1. Use Read to find the blocker text
  2. Use Edit to change - [ ] to - [x] and append resolution date

Process Integration

This skill is used by most GSD processes:

  • execute-phase.js - Update current_task as each task completes, track position
  • verify-work.js - Add/resolve blockers based on verification results
  • audit-milestone.js - Read completed_phases for coverage analysis
  • progress.js - Read full state for progress display and routing
  • quick.js - Add/update quick tasks table
  • debug.js - Track debug sessions, add blockers for unresolved issues

Read the full file on GitHub · 221 lines

Files

What ships with it

1 file 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. 6d ago First seen · 221 lines · 43 tokens per session scan A 556329cce0a7

Subscribe to this mod's changes

state-management is a skill published in the GitHub repository a5c-ai/babysitter (1,778 stars, last pushed 3d ago), licensed MIT. It adds 43 tokens to every session and 1,820 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-09-03.

Related

Other skills, from other repositories

reflect

Mines a session for durable learnings. Trigger on "reflect on this session", "capture what we learned", or "/reflect" only; never infer intent from session end or friction.

bostonaholic/team · 40 tokens

list-learned-actions

Explicit Codex workflow: List persisted reusable actions, UI skeletons, and legacy feedback memories before composing device primitives.

Lykhoyda/rn-dev-agent · 29 tokens

tutti-agent-workspace-app

Build or evolve a complex agent-enabled Tutti workspace app repository. Use for Tutti apps with web/server/shared monorepos, @tutti-os/agent-acp-kit local agent runtimes, kit-owned TUTTICLI agent/composer discovery, dynamic agent catalogs, run-scoped MCP tool gateways, app-owned package builders, web-first debugging…

tutti-os/tutti · 106 tokens

distill-session-knowledge

Offline-mine this project's pi session JSONL logs into reusable, verified knowledge: extracts faults, decisions, corrections, procedures and docs, promotes only recurring patterns, and routes artifacts into skillmanage, memory and docs. Use on "mine my sessions", "distill session knowledge", "extract lessons from…

BlackBeltTechnology/pi-agent-dashboard · 78 tokens

nest

Designing LLM-optimized folder structures: audits and restructures directories for context efficiency, progressive disclosure, and prompt cache performance. Not for general repo structure (Grove).

simota/agent-skills · 37 tokens

lore

Curating cross-agent knowledge and institutional memory: extracts patterns from agent journals into METAPATTERNS.md, detects knowledge decay, propagates best practices. Use for memory curation.

simota/agent-skills · 40 tokens