spelunking-refresh-spec

spelunking-refresh-spec is a command for Claude Code from skyfox675/agents-skills. It costs 118 tokens per session (812 once invoked), scanned A, original, MIT.

A command that updates existing code specifications after the code changes. It checks cited source files, records changed behaviour and conventions, and marks possible drift.

In plain words
What is it for?
Use it to refresh one specification, a group of specifications, a domain, or a path. With no argument, it finds specifications that are oldest or tied to changed files.
Why use it?
It reduces the risk of specifications becoming misleading as the code evolves. It also shows which conclusions are supported by current evidence.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit Use it to refresh one specification, a group of specifications, a domain, or a path. With no argument, it finds specifications that are oldest or tied to changed files.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/skyfox675/agents-skills/spelunking-refresh-spec
Install

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.

Clone the repo
git clone --depth 1 https://github.com/skyfox675/agents-skills

Made for: Claude Code.

Wrote 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.

agentmods badge for spelunking-refresh-spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/skyfox675/agents-skills/spelunking-refresh-spec/github.svg)](https://agentmods.dev/commands/skyfox675/agents-skills/spelunking-refresh-spec)
Your own site
<a href="https://agentmods.dev/commands/skyfox675/agents-skills/spelunking-refresh-spec"><img src="https://agentmods.dev/badge/commands/skyfox675/agents-skills/spelunking-refresh-spec/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.

agentmods 80×15 button for spelunking-refresh-spec

Your own site · 80×15
<a href="https://agentmods.dev/commands/skyfox675/agents-skills/spelunking-refresh-spec"><img src="https://agentmods.dev/badge/commands/skyfox675/agents-skills/spelunking-refresh-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 812 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.00812
Opus 5 $0.00059 $0.00406
Sonnet 5 $0.00024 $0.00162
Haiku 4.5 $0.00012 $0.00081

Measured 9d ago against content hash 227613f68234, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

spelunking-refresh-spec 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 9d 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.

.claude/commands/spelunking-refresh-spec.md · 38 lines

How it starts

The opening of the file, as written. The whole thing — 38 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/spelunking-refresh-spec — forward-refine the spec set

Operate in caveman mode (load the caveman skill). Keep references, file:line, frontmatter, and the _index.md table byte-exact; the spec prose is the exception (humanizer — see the spelunking-specs skill).

Arguments: $ARGUMENTS

Parse them as:

  • Optional scope: a numeric reference (1.2.3 or a prefix like 1.2 for a subtree), a domain name/number, or a path. No arg = refresh the specs whose last_reviewed is stalest or whose source files changed since (git diff/git log).
  • Optional model:<tier> / effort:<level>, anywhere — pin the recon agents' tier (default sonnet).

Example: /spelunking-refresh-spec 1.2 (the auth subtree) · /spelunking-refresh-spec src/payments · /spelunking-refresh-spec (stalest/changed)

The spelunking-specs skill is the protocol; this command is its forward-refining pass. Consult it before starting.

Steps

  1. Resolve scope and read existing specs first. From _index.md, select the in-scope specs. A refresh is a resume: read each spec and its cited file:line before changing anything — never rewrite from scratch.

  2. Diff understanding against current code (fan out one agent per spec or per domain, per the dispatching-subagents skill). For each:

    • Still accurate → re-verify and update last_reviewed; draft → verified, or verified → stable if unchanged across passes.
    • Code changed (intended) → update Discovered behaviour and restate the convention as a refinement, with fresh evidence.
    • Code contradicts the spec and looks like a regression → do NOT rewrite the standard to match broken code; flag it in Drift & open questions as a candidate issue.
    • New domain/subdomain/instance found → append the next free number, add to _index.md (never reuse or renumber).
    • Gone/dead → mark status: deprecated with a pointer to the successor ref; do not delete the reference.
  3. Verify, don't trust. Re-read cited file:line for the claims you touched before flipping any confidence upward; can't re-confirm ⇒ drop to draft with a note.

Read the full file on GitHub · 38 lines

Changes

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.

  1. 9d ago First seen · 38 lines · 118 tokens per session scan A 227613f68234

Subscribe to this mod's changes

spelunking-refresh-spec is a command published in the GitHub repository skyfox675/agents-skills (10 stars, last pushed 8d ago), licensed MIT. It adds 118 tokens to every session and 812 once invoked, about $0.0006 per session on Opus 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.