Use when the user says 'update state', 'project state', 'where was I', or at session start to load current context.
423 stars
0 votes
0 copies
0 views
Added June 5, 2026
ai-agentsbashgit
Security analysis
A100/100
Scanned June 5, 2026
$npx -y skills add cwinvestments/memstack --skill state --agent claude-code
Installs into .claude/skills of the current project.
Are you the author of State?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/cwinvestments-state)
---
name: state
description: "Use when the user says 'update state', 'project state', 'where was I', or at session start to load current context."
version: 1.0.0
---
# π State β Updating Project State...
*Maintain a living document of where you are right now in a project.*
## Activation
When this skill activates, output:
`π State β Updating project state...`
Then execute the protocol below.
## Context Guard
| Context | Status | Priority |
|---------|--------|----------|
| **User says "update state", "save state", "project state"** | ACTIVE β update STATE.md | P1 |
| **User says "where was I", "where did I leave off"** | ACTIVE β read and present STATE.md | P1 |
| **User starts a session and STATE.md exists** | ACTIVE β read silently, use as context | P2 |
| **User says "save diary" or "log session"** | DORMANT β Diary handles full session logs | β |
| **User says "save project" or "handoff"** | DORMANT β Project skill handles lifecycle | β |
| **User asks to recall past sessions** | DORMANT β Echo handles historical recall | β |
## Protocol
### Reading State (session start or "where was I")
1. **Check for STATE.md** in the current project's `.claude/` directory:
```
{project_dir}/.claude/STATE.md
```
2. If found, read it and present a brief summary:
- What was being worked on
- Any blockers
- The immediate next step
3. If not found, say: "No STATE.md exists yet. I can create one after we start working."
### Writing/Updating State
1. **Gather current state:**
- What task/phase is actively being worked on right now
- Decisions made during this session (with rationale)
- Open blockers or unanswered questions
- Explicit next steps (not vague β specific enough to resume cold)
- Key files modified recently
2. **Check git status** for uncommitted work:
```bash
git status --short
```
3. **Write STATE.md** to the project's `.claude/` directory:
```markdown
# Project State
*Last updated: {YYYY-MM-DD HH:MM}*
## Currently Working On
{Active task or phase β be specific}
## Decisions Made
- {Decision}: {Rationale}
## Blockers
- [ ] {Blocker description}
## Next Steps
1. {Immediate next action β specific enough to start cold}
2. {Following action}
## Recently Modified Files
- {file path} β {what changed}
## Uncommitted Changes
{List any unstaged/uncommitted work, or "None β clean working tree"}
```
4. **Confirm** with a brief summary of what was saved.
## Deconfliction
| Skill | What it tracks | When |
|-------|---------------|------|
| **State** | Current snapshot β where you are *right now* | During session, living document |
| **Diary** | Historical log β what you *did* in a session | End of session, append-only |
| **Project** | Project lifecycle β handoff between sessions | Session boundaries |
| **Work** | Task list β what *needs to be done* | When planning/tracking todos |
State is the **present tense** complement to Diary's **past tense**. State tells you where to resume; Diary tells you what happened.
## Inputs
- Current working context (project, files, git status)
- User's description of current state (or auto-detected from session)
## Outputs
- `{project_dir}/.claude/STATE.md` β updated living document
- Brief confirmation summary
## Example Usage
**User:** "update state"
```
π State β Updating project state...
Saved: C:\Projects\AdminStack\.claude\STATE.md
Currently: Building CC Monitor notification system
Blockers: None
Next: Wire up WebSocket events to notification dropdown
This will auto-load next session for seamless pickup.
```
## Level History
- **Lv.1** β Base: Living STATE.md creation and update protocol. Read via Work Step 0 or manual invocation. Deconfliction with Diary/Project/Work. (Origin: MemStack v3.1, Feb 2026)