Delphi Uses Graphのロゴ

Delphi Uses Graph

コミュニティ
MaxiDonkey
delphi-uses-graph

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, Graphviz DOT, optional SVG, JSON dependency dump, and markdown report.

概要

公開者MaxiDonkey
リポジトリDelphiGenAI
スキル名delphi-uses-graph
スター
87
フォーク
21
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    MaxiDonkeyがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルDelphi Uses GraphをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/MaxiDonkey/DelphiGenAI/tree/main/demos/bin32/FMX_OpenAI/delphi-uses-graph
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/MaxiDonkey/DelphiGenAI.git /tmp/DelphiGenAI
mkdir -p .claude/skills
cp -r /tmp/DelphiGenAI/demos/bin32/FMX_OpenAI/delphi-uses-graph .claude/skills/delphi-uses-graph
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでDelphi Uses Graphを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にDelphi Uses Graphを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Delphi Uses Graphは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.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.

OpenAI Responses container note

This OpenAI-adapted bundle is intended to be registered through the OpenAI Skills API and attached to a Responses shell/container tool as a skill_reference. The analysis logic is vendor-neutral; the OpenAI-specific requirement is that the container can run Python and can read the uploaded Delphi project files.

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, SVG, DOT) summarizing unit-level coupling.

Do not use this skill for non-Pascal codebases.

Inputs

The skill expects exactly one of:

  1. A .zip / .tar / .tar.gz archive of a Delphi project.
  2. A directory already containing .pas, .dpr, or .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.

Workflow

  1. Locate the input archive or directory in the working area.
  2. Run scripts/tool.py with --input pointing at it and --output pointing at a fresh output folder.
  3. Read the generated report.md and summarize parsed units, fan-in/fan-out, cycles, and orphan units.
  4. Attach or surface the generated artifacts: Mermaid, DOT, SVG when present, JSON, and report. Embed uses-graph.mmd inline when the conversation surface supports Mermaid rendering.

Quick start

bash
python scripts/tool.py \
    --input  /path/to/project.zip \
    --output /path/to/out

If the container exposes python3 instead of python, use python3 with the same arguments.

Useful flags, with full details 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.

Outputs

Files written in --output:

FilePurpose
dependencies.jsonRaw graph: { unit: { defined_in, interface_uses, implementation_uses } }
uses-graph.mmdMermaid graph LR ready to embed in markdown
uses-graph.dotGraphviz DOT source
uses-graph.svgSVG rendering, only when the dot binary is available on PATH
report.mdHuman-readable summary: counts, 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 uses syntax has several edge cases: dotted names, in '<path>' aliases, conditional defines, and three comment styles. Read reference.md before changing the parser.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Delphi Uses Graph」では何ができますか?

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, Graphviz DOT, optional SVG, JSON dependency dump, and markdown report.

TypingMindでDelphi Uses Graphを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Delphi Uses Graphはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにDelphi Uses Graphをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/MaxiDonkey/DelphiGenAI/tree/main/demos/bin32/FMX_OpenAI/delphi-uses-graphを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Delphi Uses Graphを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Delphi Uses Graphは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもDelphi Uses Graphを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Delphi Uses Graph」は無料ですか?

はい。MaxiDonkeyがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇