Production-Grade Coding Agent & AST Static Analysis Refactoring Skill • 100% Standard Library Python • Native Model Context Protocol (MCP)
🌐 GenPark MCP Hub Showcase • 📦 Official Website • 📖 Documentation
genpark-codebase-dead-code-unreachable-pruner-skill is a deterministic, zero-dependency Python skill engineered with 100% production-grade functional parity for autonomous coding agents, Python AST static analysis, codebase refactoring, and architectural dependency auditing.
Executive Capability: AST-level static call-graph analyzer and dead code pruner identifying orphaned functions, unreachable methods, and token-bloat clusters.
- 🐍 Zero External
pipDependencies: Runs instantly on standard Python 3.9+ using built-inastand pure graph algorithms. - 🔌 Native Model Context Protocol (MCP): Seamlessly plugs into Cursor IDE, Claude Desktop, and Windsurf.
- 🎯 100% Deterministic AST Code Parsing: Real syntax-tree traversals, cyclomatic complexity calculations, and dependency graphs without regex guesswork.
- 🚀 Token Efficiency Optimization: Minimizes LLM context waste by pruning dead code, detecting breaking API surface diffs, and pinpointing refactoring hotspots.
graph LR
User([💻 Developer / Coding Agent]) -->|AST Query & Code Snippet| MCP[⚡ MCP Server / CLI]
MCP --> Client[🛠️ Code Refactoring Client]
Client --> AST[🧠 Python AST & Static Analysis Kernel]
AST --> Output[📊 Refactoring Plan & Graph Metrics]
Output --> User
python example_usage.pyfrom client import CodebaseDeadCodePruner
client = CodebaseDeadCodePruner()
result = client.run_benchmark_dead_code_pruning()
print(result)Connect this skill to Claude Desktop, Cursor, or any MCP-compliant client:
{
"mcpServers": {
"genpark-codebase-dead-code-unreachable-pruner-skill": {
"command": "python",
"args": ["/path/to/genpark-codebase-dead-code-unreachable-pruner-skill/mcp_server.py"]
}
}
}| Parameter | Type | Required | Description |
|---|---|---|---|
query_payload |
string / dict |
Yes | Source code string, package manifests, or symbol AST tree |
output_format |
json / dict |
Yes | Standardized response schema containing AST diffs and refactoring telemetry |
GenPark AI Agent Skills are engineered with zero external dependencies using pure Python standard library code. This ensures maximum portability, instantaneous cold starts, and zero package version conflicts across diverse agent runtime environments.
Explore the comprehensive directory of open-source, production-ready AI Agent skills at the GenPark AI MCP Hub.
Run python mcp_server.py --test to verify MCP protocol discovery and tool schema negotiation.