code-deduplicator SKILL.md skillA

code-deduplicator from jqaisystems/jqai-ai-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add jqaisystems/jqai-ai-skills/code-deduplicator@git:20260526.32c2e2d

Pins git:20260526.32c2e2d in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
jqaisystems/jqai-ai-skills
Path
skills/code-deduplicator/SKILL.md
Versions recorded
2
Latest version
git:20260526.32c2e2d, committed May 26, 2026
First version recorded
May 25, 2026
Size
4,646 bytes
Repository stars
3
License
MIT

Find duplicated code introduced or touched in the current session, then safely consolidate exact or low-risk duplicates while preserving behavior.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Code Deduplicator

You are a careful deduplication agent. Find duplication introduced or touched in the current session, then consolidate only when the refactor is low-risk and preserves existing behavior.

Do not rewrite unrelated code, change public APIs casually, or revert user work. If a duplication finding is risky or broad, report it instead of forcing a refactor.

## Step 1: Identify What Changed

Run `git diff HEAD` and `git status` to get the full picture of what was added or modified in this session. Parse the diff to extract:

- New functions, components, hooks, constants, types, and utilities
- New inline logic patterns (string manipulation, fetch calls, validation, type guards, env checks, path handling)
- New API route handlers and middleware

If the diff is empty (everything is committed), run `git diff HEAD~5..HEAD` to cover recent session commits.

## Step 2: Scan for Duplication (Run 3 Tasks in Parallel)

### Task 1: Component & Layout Duplication
Search for duplication in components and layouts:
- Glob for `**/*.tsx`, `**/*.jsx` files
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add jqaisystems/jqai-ai-skills/code-deduplicator@sha256:640e04ad90e16946

The line at the top of this page pins the label git:20260526.32c2e2d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_u7rz256awb2diu4m.svg)](https://markdownregistry.com/a/art_u7rz256awb2diu4m)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between May 25, 2026 and May 26, 2026, more than one a day.

versioncommittedcommitsizeaudit
git:20260526.32c2e2d latest2026-05-26 32c2e2d 4,646 BA view · diff
git:20260525.7abb7b72026-05-25 7abb7b7 3,849 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (4646 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

jqaisystems/jqai-ai-skills · 3 stars · license MIT · pushed 2026-10-29 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_u7rz256awb2diu4m
GET https://markdownregistry.com/api/v1/resolve?ref=jqaisystems/jqai-ai-skills/code-deduplicator
GET https://markdownregistry.com/api/v1/blob/640e04ad90e169460db9e32d5bf1639ba22bdf2b0755fa85d13d1d303afabab2

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from jqaisystems/jqai-ai-skills

skill-name SKILL.md skill
jqaisystems/jqai-ai-skills · skills/_template/SKILL.md · Explain what this skill does, when it should be used, and the user phrases that should trigger it.
git:20260526.9000511 · audit A · 3 stars
agents-md-writer SKILL.md skill
jqaisystems/jqai-ai-skills · skills/agents-md-writer/SKILL.md · Create or update project-level AGENTS.md and CLAUDE.md guidance that maps real skills to project tasks without…
git:20261014.0cdadcf · audit A · 3 stars
ai-image-run-pacing SKILL.md skill
jqaisystems/jqai-ai-skills · skills/ai-image-run-pacing/SKILL.md · Run a batch of AI image generations through a hosted assistant without getting rate limited, losing subject likeness…
git:20260806.5ff6c30 · audit A · 3 stars
automation-state-reconciler SKILL.md skill
jqaisystems/jqai-ai-skills · skills/automation-state-reconciler/SKILL.md · Compare offline automation snapshots and delivery receipts to identify drift, duplicates, missing records, and…
git:20261014.c1a6454 · audit A · 3 stars
backup-readiness-auditor SKILL.md skill
jqaisystems/jqai-ai-skills · skills/backup-readiness-auditor/SKILL.md · Evaluate supplied backup manifests and verification evidence before a migration or recovery decision. Identify…
git:20261014.0cdadcf · audit A · 3 stars
brand-voice-linter SKILL.md skill
jqaisystems/jqai-ai-skills · skills/brand-voice-linter/SKILL.md · Lint copy against a brand voice guide. Scans files for em dashes, buzzword clusters, hedge language, vague…
git:20260611.809260e · audit A · 3 stars
case-study-writer SKILL.md skill
jqaisystems/jqai-ai-skills · skills/case-study-writer/SKILL.md · Write public-safe case studies from private projects, automations, agent workflows, internal tools, demos, or…
git:20260527.f90d5e7 · audit A · 3 stars
client-delivery-auditor SKILL.md skill
jqaisystems/jqai-ai-skills · skills/client-delivery-auditor/SKILL.md · Audit final client deliverables against the agreed scope, verify files and links, and prepare a clear handoff with an…
git:20260714.4835a66 · audit A · 3 stars
client-intake-builder SKILL.md skill
jqaisystems/jqai-ai-skills · skills/client-intake-builder/SKILL.md · Generate a branded, single-file HTML client intake questionnaire for any service business. Picks the right question set…
git:20260611.809260e · audit A · 3 stars
client-workspace-scaffolder SKILL.md skill
jqaisystems/jqai-ai-skills · skills/client-workspace-scaffolder/SKILL.md · Scaffold a complete client project folder from your own reusable structure template, with a filled-in brief file and…
git:20260710.88e305c · audit A · 3 stars
cold-outreach-writer SKILL.md skill
jqaisystems/jqai-ai-skills · skills/cold-outreach-writer/SKILL.md · Write a personalised cold outreach email from a company research block. Produces one tight email under 180 words built…
git:20260611.809260e · audit A · 3 stars
demo-animation-v2 SKILL.md skill
jqaisystems/jqai-ai-skills · skills/demo-animation-v2/SKILL.md · Generate the recommended responsive self-playing HTML product demo. Creates a single-file index.html with intro screen…
v3.0.0 · audit A · 3 stars

Every file in jqaisystems/jqai-ai-skills

Browse by kind, by grade A, or by owner.