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 agentmods add skills/fjpulidop/specrails-core/memory-inspectnpx skills add fjpulidop/specrails-core --skill memory-inspectgit clone --depth 1 https://github.com/fjpulidop/specrails-coreWrote 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/fjpulidop/specrails-core/memory-inspect)<a href="https://agentmods.dev/skills/fjpulidop/specrails-core/memory-inspect"><img src="https://agentmods.dev/badge/skills/fjpulidop/specrails-core/memory-inspect.svg" alt="Measured on agentmods" 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.00044 | $0.02084 |
| Opus 5 | $0.00022 | $0.01042 |
| Sonnet 5 | $0.00009 | $0.00417 |
| Haiku 4.5 | $0.00004 | $0.00208 |
Grade C, and why
memory-inspect scanned grade C with 1 finding 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 6d 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf .claude/agent-memory/<agent-name>/ How it starts
The opening of the file, as written. The whole thing — 263 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Inspect agent memory directories under .claude/agent-memory/sr-*/ for this project (read name from CLAUDE.md or package.json). Show per-agent stats, recent entries, and actionable recommendations.
Input: $ARGUMENTS — optional:
<agent-name>— inspect a specific agent's memory (e.g.sr-developer,sr-reviewer)--stale <days>— flag files not modified in more than N days as stale (default: 30)--prune— delete stale files after confirmation (prints the list first, then asks)
Phase 0: Argument Parsing
Parse $ARGUMENTS to set runtime variables.
Variables to set:
AGENT_FILTER— string or empty string. Default:""(inspect all agents).STALE_DAYS— integer. Default:30.PRUNE_MODE— boolean. Default:false.
Parsing rules:
- Scan
$ARGUMENTSfor--stale <N>. If found, setSTALE_DAYS=<N>. Validate that<N>is a positive integer; if not, printError: --stale requires a positive integer (e.g. --stale 14)and stop. Strip from arguments. - Scan for
--prune. If found, setPRUNE_MODE=true. Strip from arguments. - Remaining non-flag text (if any) is treated as
AGENT_FILTER. Strip leading/trailing whitespace.
Print active configuration:
Scanning: <all agents | agent: AGENT_FILTER> | Stale threshold: STALE_DAYS days | Prune: yes/no
Phase 1: Discover Memory Directories
Glob all directories matching .claude/agent-memory/sr-*/.
If no directories are found:
No agent memory directories found under .claude/agent-memory/.
Agent memory is written by sr-* agents during the /specrails:implement pipeline.
Run /specrails:implement on a feature to generate your first memory entries.
Then stop.
If AGENT_FILTER is set, filter to only the directory .claude/agent-memory/<AGENT_FILTER>/. If that directory does not exist:
No memory directory found for agent: <AGENT_FILTER>
Available agents:
<list of discovered sr-* directory names>
Then stop.
Set AGENT_DIRS = list of matching directories (full paths), sorted alphabetically.
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.
- 6d ago First seen · 263 lines · 44 tokens per session scan C c007b6403d3b
memory-inspect is a skill published in the GitHub repository fjpulidop/specrails-core (9 stars, last pushed 1mo ago), licensed MIT. It adds 44 tokens to every session and 2,084 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
unified-memory
Share durable, inspectable context and handoffs between Claude, Codex, Hermes, Cursor, OpenCode, and other agents through the local ECC Memory Vault. Use when an agent must save work state, transfer context, resume another agent's task, or search shared project knowledge.
strategic-compact
Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction. Use when a session is approaching a context limit and a task phase is a natural place to compact.
taiyi-compress
TaiyiForge 辅助 — Token 压缩编排:/taiyi:token compress + Superpowers subagent + ECC strategic-compact / handoff。OpenCode / Claude / Codex / Cursor 通用。.
agents-md-improver
Audit and improve project-rules files (AGENTS.md, CLAUDE.md, .agents/instructions, local overrides) so the agent keeps accurate project context. Use when the user asks to check, audit, review, update, improve, or fix their AGENTS.md or CLAUDE.md, mentions "project rules maintenance" or "agent context optimization", or…
agents-md-revise
Capture learnings from the current session into the project-rules file (AGENTS.md, CLAUDE.md, or local override) so future sessions benefit. Use when the user says "revise the rules", "update AGENTS.md / CLAUDE.md with what we just learned", "save this to project memory", "remember this for next time", or at the end…
token-optimization
Use when the user says 'token optimization', 'save tokens', 'context window', 'reduce tokens', 'token stack', or 'TokenStack', or asks about extending context window capacity. Covers TokenStack, the built-in compression proxy that shrinks Claude Code tool output before it reaches the Anthropic API. Do NOT use for…