agentsclimarketplace

Dejavu

Skill cmg8431/claude-dejavu/plugin/skills/dejavu

๐Ÿ”ฎ Claude Code antipattern detector & auto-patcher โ€” learns from session logs, patches CLAUDE.md, tracks rule effectiveness

Install
npx -y skills add cmg8431/claude-dejavu --skill dejavu

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Review and manage learned antipattern rules. Use when Claude should review its past mistakes, apply learned rules to CLAUDE.md, or check rule effectiveness. Triggers on "/dejavu", "review rules", "what did you learn".

SKILL.md

1.9 KB, as published. Nobody here has run it

claude-dejavu: Review Learned Rules

You are helping the user review antipattern rules that claude-dejavu has detected from past sessions.

Steps

  1. First, run the dejavu binary to get current status:
claude-dejavu stats --path "$(pwd)"
  1. Then list all rules:
claude-dejavu list --path "$(pwd)"
  1. Present the rules to the user in a clear format:

For each rule, show:

  • Rule ID and status (active/proposed/dead)
  • Rule text โ€” what Claude should do differently
  • Detector type โ€” how it was discovered (revert cycle / repeated error / silent fix)
  • Confidence and fire count
  • Action options: keep, edit, or remove
  1. If there are proposed rules, ask the user to approve them:
โ”Œโ”€ Proposed rule r-001 โ”€ [repeated error] โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ "This project uses pnpm, not npm."                โ”‚
โ”‚ Evidence: 4 sessions, last 2 weeks                โ”‚
โ”‚ Confidence: 0.91                                  โ”‚
โ”‚ Apply? [y/n/edit]                                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  1. If the user approves, apply rules to CLAUDE.md:
claude-dejavu scan --path "$(pwd)"
  1. After applying, show a summary of what changed in CLAUDE.md.

Important

  • Never modify rules without user confirmation
  • Dead rules (no fires in 14+ days) should be suggested for removal
  • Rules with high fire counts are valuable โ€” highlight them
  • If no rules exist yet, explain that dejavu needs more sessions to detect patterns

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.