dejavu-scan

dejavu-scan is a skill for Claude Code from cmg8431/claude-dejavu. It costs 33 tokens per session (312 once invoked), scanned A, original, MIT.

A manual scan command for finding recurring coding or workflow mistakes, called antipatterns. It examines past sessions and may propose updates to CLAUDE.md, a file containing project instructions.

In plain words
What is it for?
Use it to scan the current project, report how many sessions were checked, review detected patterns, and decide whether to accept proposed instruction changes.
Why use it?
It helps reveal repeated problems that may not be obvious during one session. Proposed rules remain subject to the user’s approval.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md.

Part of the claude-dejavu plugin — 6 skills, 4 hooks shipped together

Good fit Use it to scan the current project, report how many sessions were checked, review detected patterns, and decide whether to accept proposed instruction changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cmg8431/claude-dejavu/dejavu-scan
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 cmg8431/claude-dejavu --skill dejavu-scan
Clone the repo
git clone --depth 1 https://github.com/cmg8431/claude-dejavu

Made for: Claude Code.

Or install claude-dejavu, the plugin that ships this one along with the rest of its 6 skills, 4 hooks.

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 dejavu-scan

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cmg8431/claude-dejavu/dejavu-scan"><img src="https://agentmods.dev/badge/skills/cmg8431/claude-dejavu/dejavu-scan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 312 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00033 $0.00312
Opus 5 $0.00016 $0.00156
Sonnet 5 $0.00007 $0.00062
Haiku 4.5 $0.00003 $0.00031

Measured 12d ago against content hash 347a120bf4be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dejavu-scan 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 12d 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.

plugin/skills/dejavu-scan/SKILL.md · 49 lines

What it actually says

claude-dejavu: Manual Scan

You are triggering a manual antipattern scan with claude-dejavu.

Steps

  1. Run the scan command:
claude-dejavu scan --path "$(pwd)"
  1. Present the results to the user:

    • How many sessions were analyzed
    • New patterns detected (if any)
    • Rules proposed or updated
    • Any changes applied to CLAUDE.md
  2. If new rules were proposed, show them and ask the user whether to approve:

Found 2 new patterns:

  [proposed] "Always use pnpm, not npm, in this project."
  confidence: 0.85 | evidence: 3 sessions

  [proposed] "Run type-check before committing TypeScript changes."
  confidence: 0.72 | evidence: 2 sessions

Approve these rules? [y/n/edit]
  1. If no new patterns were found, reassure the user:
No new antipatterns detected. Your current rules look good.

Important

  • Always show what the scan found, even if it found nothing
  • Let the user decide whether to approve proposed rules
  • If the scan fails, show the error and suggest checking that claude-dejavu is installed correctly
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. 12d ago First seen · 49 lines · 33 tokens per session scan A 347a120bf4be

Subscribe to this mod's changes

dejavu-scan is a skill published in the GitHub repository cmg8431/claude-dejavu (2 stars, last pushed 3mo ago), licensed MIT. It adds 33 tokens to every session and 312 once invoked, about $0.0002 per session on Opus 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-08-31.

Related

Other skills, from other repositories

smart-explore

Token-optimized structural code search using tree-sitter AST parsing. Use instead of reading full files when you need to understand code structure, find functions, or explore a codebase efficiently.

thedotmack/claude-mem · 41 tokens

hivemind-graph

Query the local code graph (functions, classes, calls, imports) through the Deeplake mount at memory/graph/. Use when the user asks structural questions about the codebase — "what calls X?", "what does Y import?", "where is Z defined?", "what's the architecture / which subsystems exist?", "what's the impact of…

activeloopai/hivemind · 105 tokens

ccs-align

Run the CCS Align seat's hourly breathing cycle — prove the local claude-mem worker is healthy, pull needle observations through search → timeline → getobservations, land them in a seat-owned middle cache via atomic grab → append → filter exclude-marks → replace, manage exclude marks, and walk house → project → seat…

thedotmack/claude-mem · 136 tokens

design-is

Audit a design against Dieter Rams' ten "Good design is..." principles, then hand off a /make-plan prompt for one of three outcomes — new design, refine design, or redesign. Use when the user says "audit this design", "design review", "check this UI against Rams", "is this UI good", "critique this design", "design…

thedotmack/claude-mem · 91 tokens

timeline-report

Generate a "Journey Into [Project]" narrative report analyzing a project's entire development history from claude-mem's timeline. Use when asked for a timeline report, project history analysis, development journey, or full project report.

thedotmack/claude-mem · 47 tokens

weekly-digests

Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for "weekly digests"…

thedotmack/claude-mem · 93 tokens