maxidonkey/delphianthropic/delphi-uses-graph
Claude Code and agent skill by maxidonkey/delphianthropic
- community
Checking that the SKILL.md file is still in the repository.
Analyzes a Delphi / Object Pascal codebase to extract unit-level `uses` dependencies. Use when the user uploads a zip / archive of a Delphi project (or a folder of .pas / .dpr / .dpk files) and asks for a dependency graph, architecture map, cycle detection, fan-in / fan-out coupling analysis, or wants to know how units relate. Produces a Mermaid diagram, a Graphviz DOT file, an SVG when graphviz is available, a JSON dump of the parsed graph, and a markdown report listing cycles, hotspots and or…
Install
npx vskill@latest install maxidonkey/delphianthropic/delphi-uses-graphSKILL.md
Delphi uses-graph skill
This skill builds a directed graph of uses dependencies between Delphi / Object Pascal units, computes coupling metrics, and detects circular dependencies.
When to use this skill
- The user uploads an archive (
.zip,.tar,.tar.gz) containing a Delphi
project, or a folder of .pas / .dpr / .dpk sources, and asks for an architecture map or a dependency graph.
- The user asks "which unit depends on what?", "are there cycles?",
"what's the fan-in / fan-out?" against a Delphi codebase.
- The user wants a visual artifact (Mermaid embed, SVG, DOT) summarizing
unit-level coupling.
Do not use this skill for non-Pascal codebases.
Inputs
The skill expects exactly one of:
- A
.zip/.tar/.tar.gzarchive of a Delphi project (preferred). - A directory already containing
.pas,.dpr,.dpkfiles.
If the user pastes raw Pascal source instead, persist it to one or more temporary .pas files first, then point --input at their parent directory.
Workflow
- Locate the input archive or directory in the working area.
- Run
scripts/tool.pywith--inputpointing at it and--output
pointing at a fresh subfolder of the working area.
- Read the generated
report.mdand summarize findings to the user:
number of parsed units, top fan-in / fan-out, cycles, orphan units.
- Attach the produced artifacts (Mermaid, DOT, SVG when present, JSON,
report) to the response. Embed uses-graph.mmd inline in the answer so the user sees the diagram rendered.
Quick start
Useful flags (full list in reference.md):
--scope {all,interface,implementation}— whichusessections to
consider. Default all.
--ignore-prefix LIST— drop edges whose target starts with one of these
comma-separated prefixes, case-insensitive. Default System,Winapi,Vcl,FMX,Data,Web,REST,IdGlobal. Pass "" to keep RTL/VCL.
--max-label N— truncate node labels in the Mermaid output (default 40).--include-orphans— keep units that have no inbound and no outbound
edges in the graph.
Outputs (in --output)
| File | Purpose | |
|---|---|---|
dependencies.json | Raw graph: { unit: { defined_in, interface_uses, implementation_uses } } | |
uses-graph.mmd | Mermaid graph LR ready to embed in a markdown answer | |
uses-graph.dot | Graphviz DOT source | |
uses-graph.svg | SVG rendering — only when the dot binary is available on PATH | |
report.md | Human-readable summary: counts, top hotspots, cycles, orphans |
Notes
- RTL / VCL / FMX targets are filtered by default to keep the diagram
readable. The user's own units are never filtered.
- Cycle detection uses Tarjan's strongly connected components on the
directed graph (edge A -> B means A uses B). Self-loops are reported separately.
- Pascal
usessyntax has several edge cases (dotted names,in '<path>'
aliases, conditional defines, three comment styles). Read reference.md before changing the parser.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdemos/bin32/VCL_Anthropic/delphi-uses-graph/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/maxidonkey/delphianthropic/delphi-uses-graph)