Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sebin-gg/zlog --skill zloggit clone --depth 1 https://github.com/sebin-gg/zlogWrote 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/sebin-gg/zlog/zlog)<a href="https://agentmods.dev/skills/sebin-gg/zlog/zlog"><img src="https://agentmods.dev/badge/skills/sebin-gg/zlog/zlog/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/sebin-gg/zlog/zlog"><img src="https://agentmods.dev/badge/skills/sebin-gg/zlog/zlog.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00096 | $0.01690 |
| Opus 5.5 | $0.00038 | $0.00676 |
| Sonnet 5.5 | $0.00019 | $0.00338 |
| Haiku 4.5 | $0.00010 | $0.00169 |
Grade A, and why
zlog 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 2mo 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 — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
zlog — AI agent log storage optimizer
Purpose
Reclaim disk space from stale AI agent session logs. The skill decides
what may be touched; scripts/zlog.sh (POSIX) and scripts/zlog.ps1
(Windows) implement how. Never paste shell from memory — always run
the bundled scripts so preview and cleanup share one candidate engine.
Use When
- "clean up my AI logs", "free disk space from Cursor logs"
- "compress old Claude/Codex/Gemini logs", "zlog", "pack logs"
- "preview what zlog would change" (read-only first when ambiguous)
- "restore my compressed log"
- "scan for AI logs" / "find new AI agents" (deep modes)
- Session wrap-up cleanup
Don't Use When
- "delete my chat history" → refuse (transcripts are Class B protected)
- "clean node_modules / caches" → refuse unless the user explicitly asks for cache cleanup (out of scope for this skill)
- "vacuum my Codex database" → refuse automatic handling; SQLite/WAL stores are live databases (report as intentionally untouched)
- Broad home-directory cleanup without explicit deep-scan intent
- Any file currently being written (locked or fresh)
Workflow
- Determine intent: preview, clean, restore, or scan.
- Determine OS/shell: Linux/macOS/WSL/Git Bash →
scripts/zlog.sh; Windows PowerShell →scripts/zlog.ps1. - Identify roots from
references/agent-paths.md(scripts embed them). - Read-only candidate scan first: run
preview(ordeep-preview). - Exclude protected data (see Protected Data).
- Check age + active writers (scripts enforce 60s default, lock checks).
- If intent is ambiguous, show the preview and ask before cleaning.
- Run
clean(ordeeponly on explicit deep-scan intent). - Scripts validate each archive before deleting its source.
- Report exact measured results (never estimates).
Safety Rules
Full rationale: references/safety.md. Non-negotiable invariants:
- Never follow symlinks out of a scan root (POSIX
-Pdefault). - Never touch Class B protected data (transcripts, configs, SQLite/WAL).
- Never descend into Class C junk locations.
- Never compress a locked or fresh file; never clean caches unprompted.
- Never delete a source unless its archive passed integrity test AND is smaller than the source AND the destination was absent AND the source identity is unchanged since it was scanned — POSIX: inode/size/mtime; Windows: length/timestamps/full-content SHA-256 (transactional: temp → test → size check → dest-absent check → source-unchanged check → publish-without-overwrite → delete).
- Restore never overwrites: unknown formats refused, existing
destinations kept,
.tar.gzmembers must exactly match the intended basename (extracted to a temp dir first). - Unknown (Class D) files and directories are ignored by default.
What ships with it
7 files 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.
- 2mo ago Changed · +11 lines b692d23e400f
- 2mo ago Changed · +6 lines · +7 tokens per session scan B → A 44d3d68b89bd
- 2mo ago Changed · +8 lines · -18 tokens per session 3f69bd5bbff3
- 2mo ago Changed · +22 lines · -51 tokens per session 8b23257e5346
- 2mo ago Changed · +23 lines · +7 tokens per session 6a4ff80ed1fc
- 3mo ago Changed · +13 lines · +1 tokens per session 8fe1583ea365
- 3mo ago First seen · 67 lines · 150 tokens per session scan B 6b41c317efd4
zlog is a skill published in the GitHub repository sebin-gg/zlog (2 stars, last pushed 19d ago), licensed MIT. It adds 96 tokens to every session and 1,690 once invoked, about $0.0004 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-31.
zlog compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| zlogsebin-gg/zlog | Skill | 2 | 19d ago | MIT | A | 96 | Claude Code |
| dropboxapideck-libraries/api-skills | Skill | 5 | 3d ago | Apache-2.0 | A | 67 | Claude Code |
| execution-disciplineooooooooooooooooooop/agent-tools | Skill | 3 | 2mo ago | MIT | A | 199 | Codex |
| unified-taskflowooooooooooooooooooop/agent-tools | Skill | 3 | 2mo ago | MIT | A | 104 | Codex |
| chatgpt-web-bridgeooooooooooooooooooop/agent-tools | Skill | 3 | 2mo ago | MIT | A | 144 | Codex |
| kekaapideck-libraries/api-skills | Skill | 5 | 3d ago | Apache-2.0 | A | 71 | Claude Code |
| justworksapideck-libraries/api-skills | Skill | 5 | 3d ago | Apache-2.0 | A | 69 | Claude Code |