Duplication audit

From mindroom-ai/mindroom · View interactive version

Duplication audit is an AI agent skill from the GitHub repository mindroom-ai/mindroom. Find duplicated functionality across the codebase and propose minimal, safe generalizations.

How to use this skill

Skill file

Duplication audit and generalization prompt

You are a coding agent working inside a repository. Your job is to find duplicated

functionality (not just identical code) and propose a minimal, safe generalization.

Keep it simple and avoid adding features.

First steps

Objective

Identify and consolidate duplicated functionality across the codebase. Duplication includes:

The goal is to propose a general, reusable abstraction that reduces duplication while

preserving behavior. Keep changes minimal and easy to review.

Search strategy

1) Map the hot paths

2) Find duplicate operations

3) Validate duplication is real

4) Propose a minimal generalization

Deliverables

Provide a concise report with:

1) Findings

shared functionality.

2) Proposed generalizations

3) Impact and risk

If the user asked you to implement changes:

Output format

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.