# safe-fix-mcp

> safe-fix-mcp — pamela-0-safe-fix-mcp. Use this tool when you need to identify and remove dead code in Python repositories, automatically drafting a branch and PR for safe fixes after verifying the changes with the full test suite. It solves problems of code maintenance and cleanup by scanning for unused imports and reporting other findings for human review. The tool takes a Python repository as input and outputs a draft branch and PR for safe fixes, along with a report of other dead code findings.

Canonical page: https://skillsregistry.net/skills/pamela-0-safe-fix-mcp  
JSON: https://api.skillsregistry.net/v1/skills/pamela-0-safe-fix-mcp

## Description

Enables scanning Python repos for dead code and automatically drafting a branch + PR for the safe subset (unused single-name imports) after running the repo's full test suite. All other findings are reported without modification, and a human always merges.

## Trust

- **Trust score (0–1):** 0.70
- **Verification tier:** verified
- **Last scanned:** 2026-09-04

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** other
- **Updated:** 2026-09-04

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/joxe8l6r0a)
- **Repository:** <https://github.com/pamela-0/safe-fix-mcp>

## 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": "pamela-0-safe-fix-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/pamela-0-safe-fix-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/pamela-0-safe-fix-mcp/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
