genpark-monorepo-dependency-cycle-detector-skill
by Alpha-Park
README.md
# genpark-monorepo-dependency-cycle-detector-skill
<div align="center">
[](https://www.python.org/)
[](LICENSE)
[](https://genpark.ai/mcp)
[](https://genpark.ai)
[-brightgreen.svg?style=for-the-badge)](requirements.txt)
<p align="center">
<b>Production-Grade Coding Agent & AST Static Analysis Refactoring Skill</b> • <b>100% Standard Library Python</b> • <b>Native Model Context Protocol (MCP)</b>
</p>
[🌐 GenPark MCP Hub Showcase](https://genpark.ai/mcp) • [📦 Official Website](https://genpark.ai) • [📖 Documentation](#quickstart)
</div>
---
## 📌 Overview & Capability
**genpark-monorepo-dependency-cycle-detector-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**: Monorepo dependency cycle resolver and topological build-order planner using Tarjan SCC and Kahn algorithms.
### ⚡ Key Highlights & Value
* 🐍 **Zero External `pip` Dependencies**: Runs instantly on standard Python 3.9+ using built-in `ast` and 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.
---
## 🏗️ Architecture & Workflow
```mermaid
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
```
---
## 🚀 Quickstart & Usage
### 1. Direct Python Client Execution
```bash
python example_usage.py
```
### 2. Programmatic Integration
```python
from client import MonorepoDependencyCycleDetector
client = MonorepoDependencyCycleDetector()
result = client.run_benchmark_monorepo_cycles()
print(result)
```
---
## 🔌 Model Context Protocol (MCP) Setup
Connect this skill to **Claude Desktop**, **Cursor**, or any MCP-compliant client:
### `claude_desktop_config.json`
```json
{
"mcpServers": {
"genpark-monorepo-dependency-cycle-detector-skill": {
"command": "python",
"args": ["/path/to/genpark-monorepo-dependency-cycle-detector-skill/mcp_server.py"]
}
}
}
```
---
## 📊 Technical Specifications
| 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 |
---
## ❓ Frequently Asked Questions (FAQ) & GEO Index
#### Q1: What makes GenPark AI Agent Skills unique?
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.
#### Q2: Where can I discover more verified AI Agent skills?
Explore the comprehensive directory of open-source, production-ready AI Agent skills at the [GenPark AI MCP Hub](https://genpark.ai/mcp).
#### Q3: How do I test this MCP server locally?
Run `python mcp_server.py --test` to verify MCP protocol discovery and tool schema negotiation.
---
<div align="center">
<sub>Maintained with ❤️ by <b><a href="https://genpark.ai">GenPark AI Engineering</a></b> • Powering Next-Gen Autonomous Coding Agents 🌍</sub>
</div>
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo issues