원클릭으로
skill-session-state
Persist and restore agent session context (Mode, Task, Summary) to survive resets.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Persist and restore agent session context (Mode, Task, Summary) to survive resets.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use when decomposing tasks into parallel sub-tasks or spawning sub-agents. Vendor-agnostic core; load a per-vendor reference for concrete tool names, directory conventions, and invocation syntax.
Use when performing Verification-Driven Development with adversarial approach. Actively challenge assumptions and find weak spots.
Use when performing VDD adversarial review with an opt-in sarcastic, provocative delivery style — a stylistic skin over vdd-adversarial mechanics (exhaustive reporting + objective bar).
Performance critic in adversarial style (optional sarcastic skin). Part of VDD Multi-Adversarial pipeline.
Use when performing OWASP security critique in adversarial style (optional sarcastic skin). Part of VDD Multi-Adversarial pipeline.
Use when performing security vulnerability assessment (OWASP, secrets, dependencies, IaC, LLM, API, MCP/agentic) or when "thinking like a hacker" to find exploits.
| name | skill-session-state |
| description | Persist and restore agent session context (Mode, Task, Summary) to survive resets. |
| tier | 0 |
| version | 1 |
This skill provides the mechanism to persist your current working state to a file. This allows you to "reboot" from a seamless context state if the session window is reset.
.agent/sessions/latest.yamltask_boundary call, plus session metadata.IF .agent/sessions/latest.yaml exists AND you are starting a new session (blank context):
read_file or view_file.Mode to the file's mode.TaskName and TaskStatus to the file's current_task.context_summary to understand what you were doing.active_blockers to see if you were blocked.WHENEVER you call the task_boundary tool, you MUST immediately follow it with a call to the update_state.py script.
python3 .agent/skills/skill-session-state/scripts/update_state.py \
--mode "[Mode]" \
--task "[TaskName]" \
--status "[TaskStatus]" \
--summary "[TaskSummary]" \
--predicted_steps [PredictedTaskSize]
task_boundary.task_boundary first, then update_state.py.If you finish one task and start another in the same session:
docs/TASK.md is archived (via skill-archive-task).task_boundary with the NEW Task Name.update_state.py with the new task details.--add_completed_task "[Old Task Name]" to preserve history....scripts/update_state.py ... --add_completed_task "Optimizing Database"latest.yaml shows: Current Task = UI Bug, Completed = [Database]If you make a critical decision (e.g., "Chose Redux over Context API"), you can append it to the session log:
python3 ...scripts/update_state.py ... --add_decision "Chose Redux over Context API"
--add_blocker "Waiting for API key"--clear_blockers (Use when unblocked)For Parallel Agents: When multiple agents run simultaneously, they must NOT overwrite each other's state in
latest.yaml.
The update_state.py script now implements Atomic File Locking (fcntl.lockf on Unix).
# Pseudo-code
with FileLock("latest.yaml", "r"):
state = load()
# Pseudo-code
with FileLock("latest.yaml", "w"):
state = load() # Re-read to get latest
state.update(my_changes)
save(state)