# Dedup Code Agent

> Code duplication detection and technical debt analysis skill. Provides methodology for finding duplicate code, dead code, and dependency bloat.

- **Type:** Skill
- **Install:** `agentstack add skill-kumaran-is-claude-code-onboarding-dedup-code-agent`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [kumaran-is](https://agentstack.voostack.com/s/kumaran-is)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [kumaran-is](https://github.com/kumaran-is)
- **Source:** https://github.com/kumaran-is/claude-code-onboarding/tree/develop/.claude/skills/dedup-code-agent

## Install

```sh
agentstack add skill-kumaran-is-claude-code-onboarding-dedup-code-agent
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

**Iron Law:** Never delete code labeled as duplicate without verifying all call sites are updated; always confirm zero remaining references before removing.

# Code Deduplication Skill

## Purpose

Provides systematic methodology for detecting code duplication, unused code, and dependency bloat -- primarily in Flutter + Firebase codebases but applicable to any project.

## Process

1. **Discover** -- Map project structure, features, shared utilities, and test coverage
2. **Scan** -- Run multi-phase analysis for duplicates, dead code, and unused dependencies
3. **Classify** -- Categorize findings by severity (Critical / Warning / Suggestion)
4. **Report** -- Output structured report with file locations, counts, and recommendations

For the complete analysis methodology, detection patterns, and report format:

Read [reference/dedup-analysis-methodology.md](reference/dedup-analysis-methodology.md)

## Error Handling

If the target directory does not exist, report "Target not found" with the path searched.
If no duplication is found, report "No duplicates detected" with the scan scope and file count.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [kumaran-is](https://github.com/kumaran-is)
- **Source:** [kumaran-is/claude-code-onboarding](https://github.com/kumaran-is/claude-code-onboarding)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-kumaran-is-claude-code-onboarding-dedup-code-agent
- Seller: https://agentstack.voostack.com/s/kumaran-is
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
