Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
83
Quality
80%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/core/agent-ops-state/SKILL.mdWorks with or without aoc CLI installed. State management uses direct file operations by default.
All state files are managed via direct file operations:
| File | Operations |
|---|---|
.agent/constitution.md | Read/write directly |
.agent/focus.md | Read/write directly |
.agent/memory.md | Read/write directly |
.agent/baseline.md | Read/write directly |
.agent/issues/{priority}.md | Read/append/edit directly |
| Operation | How to Do It |
|---|---|
| List issues by priority | Read .agent/issues/{priority}.md directly |
| Show issue details | Search for issue ID in priority files |
| Create issue | Append to appropriate .agent/issues/{priority}.md file |
| Update issue status | Edit status: field directly in file |
| Close issue | Set status: done + move to history.md |
| Get summary | Count issues across priority files |
# Check current branch
git branch --show-current
# Check for uncommitted changes
git status --porcelain
# Get last commit hash
git rev-parse --short HEADWhen aoc CLI is detected in .agent/tools.json, these commands provide convenience shortcuts:
| Operation | CLI Command |
|---|---|
| List issues by priority | aoc issues list --priority critical |
| Show issue details | aoc issues show <ID> |
| Create issue | aoc issues create --type BUG --title "..." |
| Update issue status | aoc issues update <ID> --status in-progress |
| Close issue | aoc issues close <ID> |
| Get summary | aoc issues summary |
Note: CLI is optional — all operations can be performed via direct file editing.
At session start:
agent-ops-git stale detection.agent/constitution.md.agent/focus.md.agent/memory.md.agent/issues/index.md (compact issue summary — read this FIRST for issue overview).agent/issues/critical.md and .agent/issues/critical-*.md (only if working on critical).agent/issues/high.md and .agent/issues/high-*.md (only if working on high).agent/issues/medium.md and .agent/issues/medium-*.md (only if needed).agent/issues/low.md and .agent/issues/low-*.md (only if needed).agent/baseline.md (if present)Context Optimization: Read index.md first to understand the issue landscape. Only read full priority files when actively working on an issue from that priority level.
Note on split files: Issue files may be split when they exceed 100K. Always scan for {priority}-*.md files (e.g., backlog-1.md, history-2.md). Oldest issues are in numbered files, newest in the main file.
.agent/focus.mdMust always contain:
.agent/issues/{priority}.mddepends_on before starting an issue.agent/memory.mdBefore starting an issue:
depends_on fielddone: mark issue as blocked, note which6213d1a
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.