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 luongnv89/asm --skill refresh-indexgit clone --depth 1 https://github.com/luongnv89/asmWrote 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/luongnv89/asm/refresh-index)<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.
<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>- NVIDIA SkillSpector warn
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]
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.00045 | $0.04159 |
| Opus 5.5 | $0.00018 | $0.01664 |
| Sonnet 5.5 | $0.00009 | $0.00832 |
| Haiku 4.5 | $0.00005 | $0.00416 |
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 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.
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.
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 · +3 lines 8ee1fcf8f82f
- 14d ago Changed 73f96ea80e7b
- 15d ago Changed · +16 lines 5cfcd5627041
- 1mo ago Changed · +27 lines 1532873ca3b6
- 1mo ago Changed bf165686610f
- 2mo ago Changed · -70 lines · -74 tokens per session cfd051024f68
- 3mo ago First seen · 304 lines · 119 tokens per session scan C 3f63711df4a9
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.
refresh-index compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| refresh-indexluongnv89/asm | Skill | 976 | today | MIT | C | 45 | Claude Code |
| Skill Developmenttroykelly/claude-skills | Skill | 12 | 10mo ago | none | A | 63 | Claude Code |
| sentry-setup-ai-monitoringtroykelly/claude-skills | Skill | 12 | 10mo ago | none | A | 70 | Claude Code |
| sentry-setup-metricstroykelly/claude-skills | Skill | 12 | 10mo ago | none | A | 61 | Claude Code |
| database-architecturetroykelly/claude-skills | Skill | 12 | 10mo ago | none | A | 45 | Claude Code |
| timescaledbtroykelly/claude-skills | Skill | 12 | 10mo ago | none | A | 50 | Claude Code |
| Hook Developmenttroykelly/claude-skills | Skill | 12 | 10mo ago | none | A | 117 | Claude Code |