graph-structure

Analyze codebase graphs to compute cycles, SCCs, and dependency layers.

1|Updated May 29, 2026
One-click install
npx skills add https://github.com/aimasteracc/mycelium --skill graph-structure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: graph-structure
Source: https://github.com/aimasteracc/mycelium/tree/main/skills/graph-structure
Command: npx skills add https://github.com/aimasteracc/mycelium --skill graph-structure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Structural graph analysis for codebases, surfacing cycles, strongly connected components, and dependency layering to help engineers understand modularity, build order, and potential refactors.

Core Features & Use Cases

  • Detect cycles and SCCs to identify circular dependencies and cohesive modules.
  • Compute topological order, wcc, and dependency layers to plan builds, loads, and migrations.
  • Identify articulation points, bridge edges, and k-core subgraphs to assess robustness and risk.
  • Inspect full graph metrics and per-node relationships to guide architectural decisions in multi-language repositories.

Quick Start

Run graph-structure on your codebase to uncover cycles, SCCs, and dependency layers, then use the results to plan refactors and build order.

Frequently Asked Questions about graph-structure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect circular dependencies in my codebase?

Detect circular dependencies by running structural graph analysis to compute cycles and strongly connected components, surfacing modules locked in mutual dependency chains. It returns identified cycles and SCC groups so you can target specific refactors to break the loops.

What is the best way to plan build order across multi-language repositories?

Plan build order by computing topological order and dependency layers from your codebase graph. The analysis returns a sorted topological sequence and layered dependency structure, providing a safe compilation and loading sequence for multi-language modules.

Can I analyze structural health for large graphs of modules and packages?

Yes, structural health analysis is applicable to large graphs of modules or packages across multiple languages. It evaluates full graph metrics and per-node relationships to identify bottlenecks, robust modules, and architectural risks at scale.

How does finding articulation points and bridge edges help assess codebase risk?

Finding articulation points and bridge edges identifies critical nodes and connections whose removal would split the dependency graph, isolating fragile architectural areas. It returns these structural risk points to guide targeted robustness improvements.

Do I need mcp__mycelium__ tools to compute SCCs and dependency layers?

Yes, computing SCCs, dependency layers, and topological order requires the mcp__mycelium__ tools listed in the Skill frontmatter. These tools provide the graph traversal and analysis functions needed to process the codebase structure and return results.