assimilate-popular-wor…
This skill should be used when the user asks to "find skills in the wild", "assimilate popular workflows", "discover SKILL.md files in repos", "research…
STATE.md reading, writing, and field-level updates. Provides cross-session state persistence via .planning/STATE.md with structured fields for current task, completed phases, blockers, decisions, and quick tasks.
$ npx -y skills add a5c-ai/babysitter --skill state-management --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/state-managementContext preview
The summary Claude sees to decide when to auto-load this skill.
STATE.md reading, writing, and field-level updates. Provides cross-session state persistence via .planning/STATE.md with structured fields for current task, completed phases, blockers, decisions, and quick tasks.
name: state-management description: STATE.md reading, writing, and field-level updates. Provides cross-session state persistence via .planning/STATE.md with structured fields for current task, completed phases, blockers, decisions, and quick tasks. allowed-tools: Read Write Edit Glob metadata: author: babysitter-sdk version: "1.0.0" category: gsd-core backlog-id: SK-GSD-002 graph: domains: [domain:software-engineering] skillAreas: [skill-area:agentic-loops, skill-area:orchestration-loop] workflows: [workflow:feature-development] topics: [topic:developer-experience] roles: [role:tech-lead, role:backend-engineer] - What is currently being worked on (`current_task`, `current_phase`) - What has been completed (`completed_phases`) - What is blocking progress (`blockers`) - What decisions have been made (`decisions`) - Quick task status (`quick_tasks` table) - Session metadata (`last_updated`, `session_count`) This skill corresponds to the original `lib/state.cjs` module in the GSD system. Every GSD process reads STATE.md at startup and writes updates at completion. ## Capabilities ### 1. Read Full State Parse STATE.md into structured fields: ```markdown
last_updated: 2026-03-02T14:30:00Z session_count: 12 current_milestone: v1.0 ---
| 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 |
| # | 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 |
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).
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
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
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
1. Use `Read` to find the blocker text 2. Use `Edit` to change `- [ ]` to `- [x]` and append resolution date
This skill is used by most GSD processes:
{
"operation": "read|update|append|remove",
"field": "current_phase|completed_phases|blockers|decisions|quick_tasks",
"status": "success|error",
"previousValue": "...",
"newValue": "...",
"stateSnapshot": {
"currentPhase": 72,
"currentTask": "Implement OAuth2",
"completedPhases": [70, 71],
"activeBlockers": 1,
"quickTasksTotal": 3,
"quickTasksPending": 1
}
}| Setting | Default | Description | |---------|---------|-------------| | `stateFile` | `.planning/STATE.md` | Path to STATE.md | | `autoTimestamp` | `true` | Auto-update last_updated on write | | `autoSessionCount` | `tr
Enforce obedience on agentic workforces. Manage extremely complex workflows through deterministic, hallucination-free self-orchestration.
Repo: a5c-ai/babysitter
This skill should be used when the user asks to "find skills in the wild", "assimilate popular workflows", "discover SKILL.md files in repos", "research…
This skill should be used when the user asks to "babysit issues", "work on assigned issues", "check a5c-agent issues", "process babysitter issues", or wants to…
Discover public GitHub repositories that import defineTask from @a5c-ai/babysitter-sdk and maintain a deduplicated catalog of those repositories in…
This skill should be used when the user asks to "fix pipelines", "fix CI", "check staging pipelines", "fix failing workflows", "fix failing actions", or wants…
Scaffold new babysitter process definitions following SDK patterns, proper structure, and best practices. Guides the 3-phase workflow from research to…
For a repository in the babysitter-users catalog, locate its babysitter processes and any committed runs (.a5c/runs/<runId>/) and perform a retrospective on a…