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/fabioc-aloha/Alex_Skill_Mallnpx agentmods add skills/fabioc-aloha/alex_skill_mall/test-rename-driftWrote 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/fabioc-aloha/alex_skill_mall/test-rename-drift)<a href="https://agentmods.dev/skills/fabioc-aloha/alex_skill_mall/test-rename-drift"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/test-rename-drift/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/fabioc-aloha/alex_skill_mall/test-rename-drift"><img src="https://agentmods.dev/badge/skills/fabioc-aloha/alex_skill_mall/test-rename-drift.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.00023 | $0.00600 |
| Opus 5.5 | $0.00009 | $0.00240 |
| Sonnet 5.5 | $0.00005 | $0.00120 |
| Haiku 4.5 | $0.00002 | $0.00060 |
Grade A, and why
test-rename-drift scanned grade A 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 2mo 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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
const { execSync } = require('child_process'); How it starts
The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test Rename Drift
The Problem
When renaming a function, test files have references that survive find-and-replace:
// Old function: calculateTotal()
// New function: computeTotal()
// Find-and-replace catches: calculateTotal(
// But misses:
describe('calculateTotal', () => { // Describe block
// tests for calculateTotal // Comment
it('calculateTotal returns sum', () => { // It block text
The Solution
Grep for BOTH the old AND new name after renaming.
# After renaming calculateTotal → computeTotal
# Find remaining old references
grep -rn "calculateTotal" . --include="*.test.*" --include="*.spec.*"
# Verify new references exist
grep -rn "computeTotal" . --include="*.test.*" --include="*.spec.*"
Checklist
| Location | Find Pattern | Replace? |
|---|---|---|
| Function calls | oldName( |
✅ Auto |
| Import statements | import { oldName } |
✅ Auto |
| Describe blocks | describe('oldName' |
❌ Manual |
| It block text | it('oldName should' |
❌ Manual |
| Comments | // oldName does X |
❌ Manual |
| Variable names | const oldNameResult |
Depends |
| Mock names | jest.mock('oldName') |
❌ Manual |
| Snapshot files | Contains "oldName" | ❌ Manual |
Automated Check
// scripts/check-rename-drift.cjs
const oldName = process.argv[2];
const newName = process.argv[3];
const { execSync } = require('child_process');
const oldRefs = execSync(
`grep -rn "${oldName}" . --include="*.test.*" --include="*.spec.*" || true`,
{ encoding: 'utf8' }
);
if (oldRefs.trim()) {
console.error(`Found ${oldRefs.split('\n').length - 1} remaining references to "${oldName}":`);
console.error(oldRefs);
process.exit(1);
}
console.log(`No remaining references to "${oldName}" in test files.`);
Verification
# Run after any rename
node scripts/check-rename-drift.cjs oldFunctionName newFunctionName
# Should report: "No remaining references"
When to Apply
- After any function/class/method rename
- Before committing renamed code
- During code review of renames
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.
- 2mo ago First seen · 92 lines · 23 tokens per session scan A 049b5be74e52
test-rename-drift is a skill published in the GitHub repository fabioc-aloha/Alex_Skill_Mall (6 stars, last pushed yesterday), licensed MIT. It adds 23 tokens to every session and 600 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
test-rename-drift compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| test-rename-driftfabioc-aloha/Alex_Skill_Mall | Skill | 6 | yesterday | MIT | A | 23 | Claude Code, Codex |
| eval-agentsFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 80 | Claude Code |
| land-and-deployFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 41 | Claude Code |
| git-ai-archaeologyFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 82 | Claude Code |
| prFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 16 | Claude Code |
| commitFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 10 | Claude Code |
| source-command-ccguide-dailyFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | today | CC-BY-SA-4.0 | A | 23 | Claude Code, Codex |