Improve Codebase Architectureのロゴ

Improve Codebase Architecture

コミュニティ
Integralist
improve-codebase-architecture

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through the one the user picks. Use when asked to improve a codebase's architecture, find shallow modules, or make code more testable and easier for agents to navigate.

概要

公開者Integralist
リポジトリagent-skills
スキル名improve-codebase-architecture
スター
26
フォーク
1
同梱ファイル
1
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Integralist/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/.agents/skills/improve-codebase-architecture .claude/skills/improve-codebase-architecture
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Architecture vocabulary. Use the module-design principles and vocabulary in code-module-design: module, interface, depth, seam, adapter, leverage, locality, the deletion test, and the interface as the test surface. One adapter suggests a hypothetical seam; two make it real.

Domain language. Use the root GLOSSARY.md and call a module by its domain name, such as "the Order intake module," not an implementation name such as "the FooBarHandler" or "the Order service." If there is no GLOSSARY.md but a CONTEXT.md exists, use it instead and warn the user with ⚠️ to rename it rather than creating a duplicate. Treat ADRs in docs/adr/ as decisions not to relitigate.

Workflow

  1. Scope before you scan. Deepening pays off by easing future changes, so weight the parts of the codebase that change most. Take the user's direction if they gave one (a module, subsystem, or pain point). Otherwise walk back a good stretch of git log --oneline for the files and areas that keep coming up, widening the net if changes are scattered. Read the glossary and any ADRs for that area. Done when you know where to look.

  2. Explore with a subagent, following SUBAGENT-STEERABILITY.md, including its completion and retry protocol. Have it walk the code and note friction: understanding one concept means bouncing between many small modules; an interface nearly as complex as its implementation; pure functions extracted for testability while the bugs hide in how they're called; tightly coupled modules leaking across their seams; code that's untested or hard to test through its interface. Apply the deletion test to anything that looks shallow: deleting it should concentrate complexity, not just move it. Done when you have a list of candidates.

  3. Write the HTML report to <tmpdir>/architecture-review-<timestamp>.html ($TMPDIR, falling back to /tmp, or %TEMP% on Windows), so nothing lands in the repo and each run gets a fresh file. Before drafting, load design and its selected theme and HTML guidance, then follow HTML-REPORT.md. Give each candidate a card with its files, the problem, the solution in plain English, benefits in terms of locality, leverage, and tests, a before/after diagram, and a strength badge (Strong, Worth exploring, or Speculative), and end with the top recommendation and why. Surface a candidate that contradicts an ADR only when the friction justifies reopening it, and mark it ("contradicts ADR-0007, but worth reopening because…"). Propose no interfaces yet. Open the file (open on macOS, xdg-open on Linux, start on Windows), give its absolute path, and ask "Which of these would you like to explore?" Done when the user picks one.

  4. Grill the chosen candidate with the grilling skill: constraints, dependencies, the shape of the deepened module, what sits behind the seam, and which tests survive. Keep the domain model current as decisions settle, using domain-modeling:

    • Add a new concept's name to the glossary when you name a deepened module after it, creating GLOSSARY.md if neither file exists, and update a term the moment it's sharpened.
    • When the user rejects the candidate for a reason a future review would need to know, offer: "Want me to record this as an ADR so future architecture reviews don't re-suggest it?" Skip ephemeral reasons ("not worth it right now") and self-evident ones.
    • To explore alternative interfaces, follow DESIGN-IT-TWICE.md.

    Done when the user has settled the candidate's design or rejected it.

同梱ファイル

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

よくある質問

AIスキル「Improve Codebase Architecture」では何ができますか?

Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through the one the user picks. Use when asked to improve a codebase's architecture, find shallow modules, or make code more testable and easier for agents to navigate.

TypingMindでImprove Codebase Architectureを使うメリットは何ですか?

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

TypingMindにImprove Codebase Architectureをインストールするにはどうすればよいですか?

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

Improve Codebase Architectureを使えるAIモデルはどれですか?

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

Improve Codebase Architectureは何個のAIモデルで使えますか?

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

AIスキル「Improve Codebase Architecture」は無料ですか?

IntegralistがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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