Split Architectureのロゴ

Split Architecture

コミュニティ
etr
split-architecture

This skill should be used when converting a single-file architecture doc to directory-based format for better organization of large architecture documents

概要

公開者etr
リポジトリgroundwork
スキル名split-architecture
スター
45
フォーク
4
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Split Architecture Skill

Converts a single-file architecture document ({{specs_dir}}/architecture.md) into a directory-based format ({{specs_dir}}/architecture/) for better organization and targeted context loading.

When to Use

  • Automatically by design-architecture and source-architecture-from-code when the single-file architecture doc crosses 500 lines or 10 decision records (sections matching ### DR-\d+)
  • Manually when the user invokes /split-architecture

Step 0: Resolve Project Context

  1. Monorepo check: Does .groundwork.yml exist at the repo root?
    • If yes → Is {{project_name}} non-empty?
      • If empty → Invoke Skill(skill="groundwork:select-project") to select a project, then restart this skill.
      • If set → Project is {{project_name}}, specs at {{specs_dir}}/.
    • If no → Continue (single-project repo).
  2. Proceed with the resolved project context.

Step 1: Validate Preconditions

  1. Check single file exists: {{specs_dir}}/architecture.md must exist
    • If missing → output "No single-file architecture doc found at {{specs_dir}}/architecture.md. Nothing to split." and stop.
  2. Check directory does NOT exist: {{specs_dir}}/architecture/ must not already exist
    • If it exists → output "Architecture doc is already in directory format at {{specs_dir}}/architecture/. Nothing to do." and stop.
  3. Read the file and count lines and decision records (sections matching ^### DR-\d+).

Step 2: Split the File

Parse the single-file architecture doc into sections and write each to its own file under {{specs_dir}}/architecture/.

Directory Structure

{{specs_dir}}/architecture/
├── _index.md                 # Header, metadata
├── 01-executive-summary.md   # Section 1: Executive Summary
├── 02-architectural-drivers.md # Section 2: Architectural Drivers
├── 03-system-overview.md     # Section 3: System Overview
├── 04-components/            # Section 4: One file per component
│   ├── _index.md             # Section 4 header ("## 4) Component Details")
│   └── <component-slug>.md   # e.g., cli.md, query-router.md
├── 05-data.md                # Section 5: Data Architecture
├── 06-integration.md         # Section 6: Integration Architecture
├── 07-security.md            # Section 7: Security Architecture
├── 08-infrastructure.md      # Section 8: Infrastructure & Deployment
├── 09-observability.md       # Section 9: Observability
├── 10-cost-model.md          # Section 10: Cost Model
├── 11-decisions/             # Section 11: One file per DR
│   ├── _index.md             # Section 11 header ("## 11) Decision Records")
│   └── DR-NNN.md             # e.g., DR-001.md, DR-015.md
├── 12-open-questions.md      # Section 12: Open Questions & Risks
└── 13-appendices.md          # Section 13: Appendices

Parsing Rules

  1. _index.md — Everything from the start of the file up to (but not including) ## 1). This includes the header block (Version, Last updated, Status, Owner).

  2. 01-executive-summary.md — From ## 1) up to (but not including) ## 2).

  3. 02-architectural-drivers.md — From ## 2) up to (but not including) ## 3).

  4. 03-system-overview.md — From ## 3) up to (but not including) ## 4).

  5. 04-components/_index.md — The ## 4) heading line and any text before the first ### 4. subsection. Typically just:

    markdown
    ## 4) Component Details
  6. 04-components/<component-slug>.md — One file per ### 4.N subsection. The filename is a slug of the component name:

    • ### 4.1 CLI → cli.md
    • ### 4.2 Query Router → query-router.md
    • ### 4.15 MCP Server → mcp-server.md
    • Preserve the full ### 4.N ... heading in the file
  7. 05-data.md — From ## 5) up to (but not including) ## 6).

  8. 06-integration.md — From ## 6) up to (but not including) ## 7).

  9. 07-security.md — From ## 7) up to (but not including) ## 8).

  10. 08-infrastructure.md — From ## 8) up to (but not including) ## 9).

  11. 09-observability.md — From ## 9) up to (but not including) ## 10).

  12. 10-cost-model.md — From ## 10) up to (but not including) ## 11).

  13. 11-decisions/_index.md — The ## 11) heading line and any text before the first ### DR- subsection.

  14. 11-decisions/DR-NNN.md — One file per ### DR-NNN subsection. The filename matches the DR number:

    • ### DR-001: Project Structure → DR-001.md
    • ### DR-015: Call Graph Data Model [V3] → DR-015.md
    • Preserve the full ### DR-NNN: ... heading in the file
  15. 12-open-questions.md — From ## 12) up to (but not including) ## 13).

  16. 13-appendices.md — From ## 13) to the end of the file.

Edge Cases

  • If a section is missing from the source file, skip that output file (don't create empty files).
  • If non-standard numbered sections exist beyond 13, include them as NN-slug.md files.
  • Preserve all horizontal rules (---) as they appear in the source.
  • Preserve trailing newlines — each output file should end with a single newline.

Step 3: Delete the Single File

After all directory files are written and verified:

  1. Verify — Read back _index.md, at least one component file, and at least one DR file to confirm they look correct.
  2. Delete — Remove {{specs_dir}}/architecture.md using rm.
  3. Confirm — Output a summary:
Split architecture.md into directory format:
  {{specs_dir}}/architecture/
  ├── _index.md
  ├── 01-executive-summary.md
  ├── 02-architectural-drivers.md
  ├── 03-system-overview.md
  ├── 04-components/ (N component files)
  ├── 05-data.md
  ├── ...
  ├── 11-decisions/ (N decision records)
  ├── 12-open-questions.md
  └── 13-appendices.md

The single file has been removed. All skills (design-architecture, source-architecture-from-code, etc.) already support directory mode.

Auto-Split Thresholds

When invoked automatically (not by the user), the caller has already verified that at least one threshold is crossed:

  • Line count: wc -l on {{specs_dir}}/architecture.md >= 500
  • Decision record count: Number of ### DR-\d+ headings >= 10

No user confirmation is needed — the split happens silently and the caller reports what happened.

When invoked manually by the user, skip threshold checks and split unconditionally.

よくある質問

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

This skill should be used when converting a single-file architecture doc to directory-based format for better organization of large architecture documents

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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