session-guard
100 / 100 · Low risk
Fine to try.
Use when working on complex multi-step tasks, when a session is getting long (40+ tool calls), when the agent starts ignoring rules it followed earlier, when conventions drift, when output quality seems to degrade, or after any context compaction event. Prevents long-session corruption AND context compaction amnesia through behavioral self-enforcement.
What this skill can do
We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'session-guard' ] || [ -L ~/.agents/skills/'session-guard' ]; then echo 'A skill folder named session-guard already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/wshobson/agents' "$d" && git -C "$d" checkout --quiet '9c61ab243def98f72da12abd41cfcf5bcd91af9d' -- 'plugins/skill-forge-essentials/skills/session-guard' && mkdir -p ~/.agents/skills && cp -R "$d"/'plugins/skill-forge-essentials/skills/session-guard' ~/.agents/skills/'session-guard' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'session-guard' ~/.claude/skills/'session-guard' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
[](https://zalavijaysinh.github.io/skilltrust/repos/wshobson/agents/)
Score history
| Date | Version | Score |
|---|---|---|
| 2026-11-11 | 9c61ab2 | 100 |
| 2026-11-08 | 4bde316 | 100 |
| 2026-11-07 | 4bde316 | 100 |