demos/bin64/VCL_Anthropic/delphi-uses-graph/SKILL.md
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 orphan units.
npx skillsauth add maxidonkey/delphianthropic delphi-uses-graphInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill builds a directed graph of uses dependencies between Delphi /
Object Pascal units, computes coupling metrics, and detects circular
dependencies.
.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.Do not use this skill for non-Pascal codebases.
The skill expects exactly one of:
.zip / .tar / .tar.gz archive of a Delphi project (preferred)..pas, .dpr, .dpk files.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.
scripts/tool.py with --input pointing at it and --output
pointing at a fresh subfolder of the working area.report.md and summarize findings to the user:
number of parsed units, top fan-in / fan-out, cycles, orphan units.uses-graph.mmd inline in the answer so
the user sees the diagram rendered.python scripts/tool.py \
--input /path/to/project.zip \
--output /path/to/out
Useful flags (full list in reference.md):
--scope {all,interface,implementation} — which uses sections 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.--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 |
A -> B means A uses B). Self-loops are reported
separately.uses syntax has several edge cases (dotted names, in '<path>'
aliases, conditional defines, three comment styles). Read reference.md
before changing the parser.development
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 orphan units.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.