state
Skill2 starsChanged 9 months agoMITView on GitHub
Session state management. List active sessions, inspect checkpoints, abandon stale sessions, run garbage collection.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- cwinvestments/memstacktheir own version, first seen Jun 22, 2026
- vbrevik/claude_code_skillstheir own version, first seen Mar 14, 2026
- andrueandersoncs/claude-skill-effect-tstheir own version, first seen Mar 4, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- cwinvestments/memstack★ 422same name
- andrueandersoncs/claude-skill-effect-ts★ 8same name
- vbrevik/claude_code_skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- affirmationSkill
- auditSkill
- councilSkill
- doSkill
- gitSkill
- infoSkill
- kill-playgroundSkill
- memorySkill
- mergeSkill
- opsSkill
- qSkill
- refineSkill
- runSkill
- scopeSkill
- sim-sourceSkill
- thinkSkill
- ui-brainSkill
- worktree-managerSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 3 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
Call mcp__state__session_list with status: "active".
- Distinctive: line 45
If no active sessions: "No active sessions."
- Very specific: line 49
Call mcp__state__session_list with no filters.
- Very specific: line 51
Call mcp__state__session_info with the resolved session_id.
- Distinctive: line 81
If multiple matches, ask user to pick.
- Very specific: line 83
Call mcp__state__session_abandon with the session_id.
- Very specific: line 88
Call mcp__state__session_list with no filters (triggers inline GC).
- Very specific: line 96
Never expose raw session IDs in the dashboard: Use skill + repo + scope for identification.
- Distinctive: line 97
Confirm before abandon: Always ask.
- Very specific: line 98
One question at a time: Use AskUserQuestion sequentially.
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
State
User-facing management for the session-state DB. Shows what's in flight across all skills and repos.
/state — dashboard: all active sessions
/state info {query} — full detail for one session
/state abandon {query} — mark a session as abandoned
/state gc — purge completed/abandoned > 30 daysSubcommands
/state (default — dashboard)
- Call
mcp__state__session_listwithstatus: "active". - Format as a dashboard table:
Active Sessions
─────────────────────────────────────────────────────────────
Skill Repo Scope Phase Age
/refine vlt-ui default SPEC 2h
/q vlt-ui orchestr. draining 5m
/scope vlt-ui epic/nav EXECUTE 1d
/do vlt-ui fix-margin worktree 12m
Stale (>7d):
/refine vlt-data default RESEARCH 9d- Sessions with
age_days >= 7go in the "Stale" section with a warning. - If no active sessions: "No active sessions."
/state info {query}
- Call
mcp__state__session_listwith no filters. - Match
{query}against skill name, repo basename, or scope. If ambiguous, ask user to pick. - Call
mcp__state__session_infowith the resolvedsession_id. - Display:
Session: {id}
─────────────────────────────────────
Skill: {skill}
Repo: {repo}
Scope: {scope}
Status: {status}
Created: {created_at}
Updated: {updated_at}
Checkpoints:
1. {phase} {created_at} git:{git_ref || "—"}
2. {phase} {created_at} git:{git_ref || "—"}
Events:
started {created_at}
checkpointed {created_at} phase: RESEARCH
...
Payload:
{formatted JSON payload, truncated to 500 chars}/state abandon {query}
- Call
mcp__state__session_listwithstatus: "active". - Match
{query}against skill name, repo basename, or scope. - If multiple matches, ask user to pick.
- Confirm: "Abandon {skill} session for {repo} ({scope})? (y/n)"
- Call
mcp__state__session_abandonwith the session_id. - Confirm: "Abandoned: {skill} / {repo} / {scope}"
/state gc
- Call
mcp__state__session_listwith no filters (triggers inline GC). - Report: "GC: {purged} sessions purged (completed/abandoned > 30 days)."
- Show remaining session counts by status.
Rules
- Never expose raw session IDs in the dashboard. Use skill + repo + scope for identification. Show IDs only in
/state info. - Confirm before abandon. Always ask.
- One question at a time. Use
AskUserQuestionsequentially. - Compact output. Tables and lists, no prose.
- Stale = display hint. Sessions >7 days old get a warning, NOT auto-abandoned.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

