ワンクリックで
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)