Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/dimetron/pi-gonpx agentmods add skills/dimetron/pi-go/pi-check-session-logsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dimetron/pi-go/pi-check-session-logs)<a href="https://agentmods.dev/skills/dimetron/pi-go/pi-check-session-logs"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/pi-check-session-logs/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dimetron/pi-go/pi-check-session-logs"><img src="https://agentmods.dev/badge/skills/dimetron/pi-go/pi-check-session-logs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.00905 |
| Opus 5.5 | $0.00016 | $0.00362 |
| Sonnet 5.5 | $0.00008 | $0.00181 |
| Haiku 4.5 | $0.00004 | $0.00090 |
Grade A, and why
pi-check-session-logs scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Check Session Logs
Scan recent pi-go session logs for tool call errors, deduplicate by pattern, and present results.
Steps
- Run the analysis script (scans last 24h by default, override with
HOURS=N):
bash .pi-go/skills/pi-check-session-logs/analyze.sh
To scan a different time window:
HOURS=48 bash .pi-go/skills/pi-check-session-logs/analyze.sh
-
Present the raw output to the user as-is — the script already formats a markdown table.
-
Suggest optimizations based on the error patterns:
- For "not found" errors: suggest better path resolution or fallback logic
- For "permission denied": suggest sandbox configuration changes
- For "exit code" failures: suggest build/test fixes
- For repeated tool errors: suggest system prompt improvements to avoid the pattern
- For STREAM_ERROR: suggest retry/reconnect improvements
-
Extract actionable fixes — After presenting the summary, create (or update) an actionable fixes document:
mkdir -p ./specs/issues/001-session-errors echo "<research>" > ./specs/issues/001-session-errors/PROMPT.mdThis file should contain a prompt that can be loaded to guide the agent toward fixing the detected error patterns. Structure it with sections for:
- The top N error patterns are detected (with specific examples)
- Corresponding fix suggestions per pattern
- Context about when each fix applies (which tools, which scenarios)
Use this format for the prompt file:
# Session Error Fix Prompts ## Pattern: [error name] - **Detected in**: [sessions/files where found] - **Fix suggestion**: [specific actionable steps]If the file already exists, update it to include new patterns while preserving existing ones.
Examples
/pi-check-session-logs— Analyze logs from last 24h/pi-check-session-logs HOURS=48— Analyze logs from last 48h
- Run the analysis for the findings
Research on each issue using subagent - for each issue with priority, score, if it's going to be implemented or rejected.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 13d ago Changed · +34 lines f83be4405ce3
- 3mo ago First seen · 66 lines · 39 tokens per session scan A dbf83acb1d58
pi-check-session-logs is a skill published in the GitHub repository dimetron/pi-go (232 stars, last pushed today), licensed MIT. It adds 39 tokens to every session and 905 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
pi-check-session-logs compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pi-check-session-logsdimetron/pi-go | Skill | 232 | today | MIT | A | 39 | Claude Code, Codex |
| use-modern-goJetBrains/go-modern-guidelines | Skill | 4.0k | 1mo ago | Apache-2.0 | A | 32 | Claude Code |
| goericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 86 | Claude Code, Codex |
| gographozgurcd/gograph | Skill | 234 | today | MIT | A | 91 | Claude Code |
| cli-to-go-migrationalexastrum/skl | Skill | 11 | 6d ago | MIT | A | 21 | Claude Code, Codex |
| golang-benchmarkalexastrum/skl | Skill | 11 | 6d ago | MIT | A | 104 | Claude Code |
| golang-testingalexastrum/skl | Skill | 11 | 6d ago | MIT | A | 115 | Claude Code |