# duphunter

> duphunter — sabarudin4433-duphunter. Use this tool when you need to identify and refactor duplicate Python code, despite variable renaming, to improve code efficiency and readability. It analyzes code structure using AST to detect near-duplicates, supporting AI-assisted refactoring workflows. Input your Python code, and duphunter will output a list of structurally similar code fragments, enabling efficient code optimization.

Canonical page: https://skillsregistry.net/skills/sabarudin4433-duphunter  
JSON: https://api.skillsregistry.net/v1/skills/sabarudin4433-duphunter

## Description

Detect near-duplicate Python code using AST analysis to find structural clones despite renaming, supporting efficient AI-assisted refactoring workflows.

## Trust

- **Trust score (0–1):** 0.65
- **Verification tier:** scanned
- **Last scanned:** 2026-06-18

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** container
- **Runtime environment:** vm
- **Category:** other
- **Updated:** 2026-09-28

## Source

- **Source listing:** [GitHub](https://github.com/Sabarudin4433/duphunter)

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "sabarudin4433-duphunter"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/sabarudin4433-duphunter` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/sabarudin4433-duphunter/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
