refresh-index

refresh-index is a skill for Claude Code from luongnv89/asm. It costs 45 tokens per session (4,159 once invoked), scanned C, original, MIT.

A workflow for re-ingesting every enabled repository in a skill catalogue. Re-ingesting means fetching the repositories again and rebuilding their catalogue entries.

In plain words
What is it for?
Use it to refresh the catalogue from its existing repository sources, rebuild it for verification, and prepare a single data-only pull request.
Why use it?
It helps check which indexed repositories changed, which stayed the same, and which failed, while requiring confirmation before committing or opening a pull request.

Skill for Claude Code

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

Good fit Use it to refresh the catalogue from its existing repository sources, rebuild it for verification, and prepare a single data-only pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/luongnv89/asm/refresh-index
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.

Any agent
npx skills add luongnv89/asm --skill refresh-index
Clone the repo
git clone --depth 1 https://github.com/luongnv89/asm

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 refresh-index

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/luongnv89/asm/refresh-index"><img src="https://agentmods.dev/badge/skills/luongnv89/asm/refresh-index.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,159 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 4 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Tool Misuse · line 222
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • high Tool Misuse · line 222
    Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).
    Fix: Validate all tool parameters against an allowlist. Reject dangerous parameter values (shell=True, --force, -rf /) and use safe defaults.
  • medium MCP Rug Pull · line 111
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 175
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
How audits are shown
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.00045 $0.04159
Opus 5.5 $0.00018 $0.01664
Sonnet 5.5 $0.00009 $0.00832
Haiku 4.5 $0.00005 $0.00416

Measured 13d ago against content hash 8ee1fcf8f82f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

refresh-index 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 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/refresh-index
skills/refresh-index/SKILL.md · 280 lines

How it starts

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

Refresh Index

Re-ingest every enabled repository in data/skill-index-resources.json so data/skill-index/{owner}_{repo}.json matches upstream. Classify each repo as updated / unchanged / failed / skipped, verify the catalog rebuilds, then open one data-only PR after explicit confirmation.

This is the inverse of skill-index-updater (that skill adds repos). Keep SKILL.md as the spine and load step detail from references/ so the agent's context budget stays small.

When to Use

  • User asks to "refresh the index", "update the indexed skills", "sync the catalog", "re-ingest all repos", or "batch-maintain the skill index"
  • A scheduled refresh is due, or a release needs current upstream skill metadata

Do not trigger for: adding a new repository (skill-index-updater), authoring or improving a single skill (skill-creator), opening an upstream PR (skill-upstream-pr), or installing/updating skills on the local machine (asm install, asm update).

Repo Sync Before Edits (mandatory)

Before re-ingesting anything, pull the latest remote branch:

branch="$(git rev-parse --abbrev-ref HEAD)"
dirty=0
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then
  git stash push -m "pre-refresh-index: ${branch}"
  dirty=1
fi
git fetch origin || { echo "✗ No origin or fetch failed — ask the user (local edits, if any, are in git stash list)"; exit 1; }
git pull --rebase origin "$branch" || { echo "✗ Rebase failed — run git rebase --abort, then ask the user (local edits, if any, are in git stash list)"; exit 1; }
if [ "$dirty" -eq 1 ]; then
  git stash pop || {
    echo "✗ Stash pop failed — recover with: git stash list && git stash show -p stash@{0}"
    exit 1
  }
fi

If the block exits 1 (no origin, a failed fetch, a rebase conflict, or a failed stash pop), stop and ask the user before continuing; never resolve a conflict yourself. Never silently overwrite local edits to data/skill-index/ or data/skill-index-resources.json.

Read the full file on GitHub · 280 lines

Files

What ships with it

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

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. 13d ago Changed · +3 lines 8ee1fcf8f82f
  2. 14d ago Changed 73f96ea80e7b
  3. 15d ago Changed · +16 lines 5cfcd5627041
  4. 1mo ago Changed · +27 lines 1532873ca3b6
  5. 1mo ago Changed bf165686610f
  6. 2mo ago Changed · -70 lines · -74 tokens per session cfd051024f68
  7. 3mo ago First seen · 304 lines · 119 tokens per session scan C 3f63711df4a9

Subscribe to this mod's changes

refresh-index is a skill published in the GitHub repository luongnv89/asm (976 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 4,159 once invoked, about $0.0002 per session on Opus 5.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-30.

Related

refresh-index compared with skills from other repositories

refresh-index next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
refresh-indexluongnv89/asmSkill976todayMITC45Claude Code
Skill Developmenttroykelly/claude-skillsSkill1210mo agononeA63Claude Code
sentry-setup-ai-monitoringtroykelly/claude-skillsSkill1210mo agononeA70Claude Code
sentry-setup-metricstroykelly/claude-skillsSkill1210mo agononeA61Claude Code
database-architecturetroykelly/claude-skillsSkill1210mo agononeA45Claude Code
timescaledbtroykelly/claude-skillsSkill1210mo agononeA50Claude Code
Hook Developmenttroykelly/claude-skillsSkill1210mo agononeA117Claude Code