Skip to content
Back to skills

Context State Tracker

ASecurity

State persistence across autonomous coding sessions. Use when saving progress, loading context, managing feature lists, tracking git history, or restoring session state.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added February 8, 2026
documentationpythongogitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add adaptationio/Skrillz --skill context-state-tracker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Context State Tracker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Context State Tracker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adaptationio-context-state-tracker/badge)](https://www.skillsdirectory.com/skills/adaptationio-context-state-tracker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: context-state-tracker
description: State persistence across autonomous coding sessions. Use when saving progress, loading context, managing feature lists, tracking git history, or restoring session state.
version: 1.0.0
category: autonomous-coding
layer: foundation
---

# Context State Tracker

Persists and restores state across autonomous coding sessions using structured artifacts.

## Quick Start

### Save Progress
```python
from scripts.state_tracker import StateTracker

tracker = StateTracker(project_dir)
tracker.save_progress(
    accomplishments=["Implemented login form", "Added validation"],
    blockers=["Need API endpoint for auth"],
    next_steps=["Create auth service", "Add tests"]
)
```

### Load Progress
```python
state = tracker.load_progress()
print(f"Last session: {state.accomplishments}")
print(f"Blockers: {state.blockers}")
```

### Manage Feature List
```python
from scripts.feature_list import FeatureList

features = FeatureList(project_dir)
features.create([
    {"id": "auth-001", "description": "User login", "passes": False},
    {"id": "auth-002", "description": "User logout", "passes": False},
])

# Mark feature as passing
features.update_status("auth-001", passes=True)
```

## State Artifacts

```
project/
├── feature_list.json      # Immutable feature tracking (passes: true/false)
├── claude-progress.txt    # Human-readable session log
└── .git/                  # Git history for detailed rollback
```

### feature_list.json
```json
[
  {
    "id": "feat-001",
    "category": "functional",
    "description": "User can log in with email",
    "steps": ["Navigate to login", "Enter credentials", "Click submit"],
    "passes": false
  }
]
```

### claude-progress.txt
```markdown
# Session Progress

## Session 5 - 2025-01-15 14:30

### Accomplishments
- Implemented user authentication
- Added password validation
- Created login tests

### Blockers
- Need to set up email verification

### Next Steps
- Implement email service
- Add password reset flow
```

## Key Rules

1. **Features are immutable**: Can only transition from `false` → `true`
2. **Never delete features**: Removing features is CATASTROPHIC
3. **Update progress after each session**: Enables quick context restoration
4. **Use git for detailed history**: Commits provide granular rollback

## Workflow

```
┌─────────────────────────────────────────────────────────────┐
│                    STATE TRACKING FLOW                       │
├─────────────────────────────────────────────────────────────┤
│                                                              │
│  SESSION START                                               │
│  ├─ Read feature_list.json                                  │
│  ├─ Read claude-progress.txt                                │
│  └─ Get git log (recent commits)                            │
│                                                              │
│  SESSION WORK                                                │
│  ├─ Select next incomplete feature                          │
│  ├─ Implement feature                                       │
│  └─ Verify feature passes                                   │
│                                                              │
│  SESSION END                                                 │
│  ├─ Update feature_list.json (passes: true)                 │
│  ├─ Append to claude-progress.txt                           │
│  └─ Commit with descriptive message                         │
│                                                              │
└─────────────────────────────────────────────────────────────┘
```

## Integration Points

- **autonomous-session-manager**: Uses state for session detection
- **coding-agent**: Uses feature list for work selection
- **progress-tracker**: Uses state for metrics

## References

- `references/STATE-ARTIFACTS.md` - Artifact specifications
- `references/PROGRESS-FORMAT.md` - Progress file format

## Scripts

- `scripts/state_tracker.py` - Core StateTracker class
- `scripts/progress_file.py` - Progress file management
- `scripts/feature_list.py` - Feature list management
- `scripts/git_state.py` - Git history integration

Files in this skill

  • SKILL.md4.6 KB
  • references/PROGRESS-FORMAT.md4.4 KB
  • references/STATE-ARTIFACTS.md5.8 KB
  • scripts/feature_list.py6.7 KB
  • scripts/git_state.py5.9 KB
  • scripts/progress_file.py6 KB
  • scripts/state_tracker.py6.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…