Borrowing it
Nothing to install: this file belongs to NomaDamas/AutoRAG-Research. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/NomaDamas/AutoRAG-Research/main/.claude/commands/check-duplication.mdgit clone --depth 1 https://github.com/NomaDamas/AutoRAG-ResearchWrote 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/commands/nomadamas/autorag-research/check-duplication)<a href="https://agentmods.dev/commands/nomadamas/autorag-research/check-duplication"><img src="https://agentmods.dev/badge/commands/nomadamas/autorag-research/check-duplication/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/commands/nomadamas/autorag-research/check-duplication"><img src="https://agentmods.dev/badge/commands/nomadamas/autorag-research/check-duplication.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.00000 | $0.00327 |
| Opus 5 | $0.00000 | $0.00163 |
| Sonnet 5 | $0.00000 | $0.00065 |
| Haiku 4.5 | $0.00000 | $0.00033 |
Grade A, and why
check-duplication 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.
What it actually says
Scan recently modified Python files for utility function duplication.
Instructions
-
Read the catalog: Read
ai_instructions/utility_reference.md— specifically the "Common Duplication Patterns" section. This is the single source of truth for what patterns to detect and what replacements to suggest. Do NOT use a hard-coded list of patterns. -
Find target files: Use
git diff --name-only HEADvia Bash to find recently modified.pyfiles. If the working tree is clean, fall back togit diff --name-only HEAD~1. Only include files underautorag_research/(excludeutil.pyitself and test files). -
Scan for duplication: For each file found, check whether it contains code that reimplements any pattern listed in the "Common Duplication Patterns" section of the catalog. Use Grep to search for the key indicators shown in each pattern's "BAD" code block (e.g., the distinctive function calls, import patterns, or code shapes that signal reimplementation).
-
Report findings in this format:
## Duplication Check Results ### <filename> - **Line X**: Found `<pattern>` — use `<replacement>` from `<location>` instead ### Summary - Files scanned: N - Potential duplications found: N -
If no duplications are found, report:
## Duplication Check Results No duplications detected. All scanned files properly reuse existing utilities. Files scanned: N
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.
- 9d ago First seen · 30 lines · 0 tokens per session scan A e3199a82f8fa
check-duplication is a command published in the GitHub repository NomaDamas/AutoRAG-Research (148 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 327 tokens. 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-30.
Other commands, from other repositories
type-coverage
Vérification Couverture des Types Python.
execute-pydantic-ai-prp
Implement a Pydantic AI agent using the PRP file.
fastapi
FastAPI application design and implementation conventions. Use this skill when building, updating, or reviewing FastAPI services, routers, dependencies, request/response schemas, streaming endpoints, or API tests. Trigger on FastAPI-specific work such as path operation design, dependency injection, response models…
scaffold-service
Scaffold a thin ArchiPy FastAPI or gRPC service under services/{domain}/v{n}/.
savant-python
Python performance optimization with Python Developer agent.
python-review
Comprehensive Python code review for PEP 8 compliance, type hints, security, and Pythonic idioms. Invokes the python-reviewer agent.