Back to skills
SKILL.md
1281 State Management 0f3b04a8
ASecurity**Purpose:** Persistent memory across sessions - decisions, blockers, learnings.
- 9 stars
- 0 votes
- 0 copies
- 0 views
- Added October 11, 2026
Security analysis
100/100npx -y skills add tools-only/X-Skills --skill 1281-state-management_0f3b04a8 --agent claude-codeAre you the author of 1281 State Management 0f3b04a8?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-1281-state-management-0f3b04a8)# State Management
**Purpose:** Persistent memory across sessions - decisions, blockers, learnings.
## Structure
**Output:** `.specs/project/STATE.md`
```markdown
# State
**Last Updated:** [ISO timestamp]
**Current Work:** [Feature name] - [Task identifier]
---
## Recent Decisions (Last 60 days)
### AD-[NNN]: [Decision title] ([date])
**Decision:** [What was decided]
**Reason:** [Why this choice]
**Trade-off:** [What was sacrificed]
**Impact:** [How this affects implementation]
### AD-[NNN]: [Decision title] ([date])
[Same structure]
---
## Active Blockers
### B-[NNN]: [Blocker description]
**Discovered:** [Date]
**Impact:** [Severity and scope]
**Workaround:** [Temporary solution if available]
**Resolution:** [Path to permanent fix]
---
## Lessons Learned
### L-[NNN]: [Learning description]
**Context:** [Situation that occurred]
**Problem:** [What went wrong]
**Solution:** [How it was resolved]
**Prevents:** [What this knowledge prevents in future]
```
## When to Update
| Event | Action |
| -------------------------------- | -------------------------------------- |
| Significant architectural choice | Add AD-[NNN] |
| Implementation blocked | Add B-[NNN] |
| Important discovery/learning | Add L-[NNN] |
| Session end | Update "Last Updated" + "Current Work" |
## Size Management (Hybrid Strategy)
**Zones:**
- π’ <7k tokens: No action
- π‘ 7-10k tokens: Footer note "STATE.md at [X]k. Cleanup recommended."
- π΄ >10k tokens: Active prompt "STATE.md critical ([X]k). Cleanup now?"
**Cleanup process:**
- Move decisions >60 days to STATE-ARCHIVE.md
- Keep only active blockers
- Preserve recent learnings (<60 days)
**Validation:**
- Decisions have clear rationale?
- Blockers include resolution path?
- Learnings are actionable?
---
## Preferences
Track user-facing behavioral state in STATE.md:
```markdown
## Preferences
**Model Guidance Shown:** [ISO date or "never"]
```
**Update when:**
| Event | Action |
| --------------------------- | ------------------------ |
| First model tip given | Set date |
| User acknowledges/dismisses | Keep date (don't repeat) |
This prevents repetitive suggestions while maintaining natural, helpful behavior.
Attribution
Comments
Loading commentsβ¦
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.