Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/wefio/NodeMemoryGraphnpx agentmods add skills/wefio/nodememorygraph/script-reuseWrote 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/wefio/nodememorygraph/script-reuse)<a href="https://agentmods.dev/skills/wefio/nodememorygraph/script-reuse"><img src="https://agentmods.dev/badge/skills/wefio/nodememorygraph/script-reuse/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/wefio/nodememorygraph/script-reuse"><img src="https://agentmods.dev/badge/skills/wefio/nodememorygraph/script-reuse.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.00035 | $0.01794 |
| Opus 5.5 | $0.00014 | $0.00718 |
| Sonnet 5.5 | $0.00007 | $0.00359 |
| Haiku 4.5 | $0.00003 | $0.00179 |
Grade A, and why
script-reuse 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 1mo 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 — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Write the one-off script, and write it right
中文 · Terms used
A one-off script is the normal answer to a one-off question. Write it. Nothing here is meant to talk you out of that. Two things are governed instead:
- do not write the second copy of a part that already exists;
- do not ship a script that quietly produces a wrong number — the number gets quoted long after the script is deleted.
These boundaries also apply when a script is retained for others to rerun. Before adding a helper or orchestration block, search the relevant code and parts shelf for its responsibility, not just its proposed name. Import an existing implementation when its contract fits. The shelf is a discovery aid, not a required dependency or an exhaustive inventory. A local helper is fine for its first consumer; actual reuse, not anticipated reuse, justifies extraction.
What makes it right
In the order these bite:
- One command line, no editing. Inputs come from flags, not from constants you
edit before each run.
node:utilalready hasparseArgs; do not write one. - Refuse to run on missing input. Missing flag, missing file, empty dataset → throw. A run over zero rows must not print a number.
- Assert something about the result. Counts add up, values are finite, parts
sum to the whole. One
if (...) throwis enough; it is the only thing that separates "measured" from "ran". - Say what you measured in the output. The script is throwaway, its output is not. Write the input path, row count, and timestamp next to the number, so the number can still be interpreted after the script is deleted.
- Fail loudly and non-zero. Never
catch {}, neverprocess.exit(0)after a failure, never?? 0to paper over a missing value on a measurement path.
import { readFileSync } from "node:fs";
import { parseArgs } from "node:util";
import { writeJsonAtomic } from "../tools/parts/fs.ts";
import { mean } from "../tools/parts/stats.ts";
const { values } = parseArgs({
options: { input: { type: "string" }, out: { type: "string" } },
});
if (!values.input || !values.out) throw new Error("usage: --input <file> --out <file>");
const rows = JSON.parse(readFileSync(values.input, "utf8")) as number[];
if (rows.length === 0) throw new Error(`${values.input} has no rows`);
if (!rows.every(Number.isFinite)) throw new Error(`${values.input} has a non-finite value`);
writeJsonAtomic(values.out, {
input: values.input,
rows: rows.length,
measuredAt: new Date().toISOString(),
mean: mean(rows),
});
What ships with it
2 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.
- 1mo ago Changed · +38 lines · -27 tokens per session f299e3dba830
- 1mo ago Changed · +4 lines dccb2eaa48b2
- 2mo ago First seen · 111 lines · 62 tokens per session scan A 8d076d59a082
script-reuse is a skill published in the GitHub repository wefio/NodeMemoryGraph (0 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 1,794 once invoked, about $0.0001 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-09-10.
script-reuse compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| script-reusewefio/NodeMemoryGraph | Skill | 0 | yesterday | MIT | A | 35 | Claude Code, Codex |
| test-runnerPrismer-AI/PrismerCloud | Skill | 1.4k | 1mo ago | MIT | A | 59 | Claude Code |
| skills-constitutionjiabaobei/skills-constitution | Skill | 236 | 19d ago | MIT | A | 119 | Claude Code |
| bhivedArtKeyAi/bhived-mcp | Skill | 35 | 15d ago | Apache-2.0 | A | 96 | Claude Code |
| systematic-debuggingHezaoHezao/poirot | Skill | 262 | 4mo ago | MIT | A | 16 | Claude Code |
| simplify-codeHezaoHezao/poirot | Skill | 262 | 4mo ago | MIT | A | 15 | Claude Code |
| skill-authoringHezaoHezao/poirot | Skill | 262 | 4mo ago | MIT | A | 17 | Claude Code |