Program Designのロゴ

Program Design

コミュニティ
chanmathew
program-design

Lock the shape of the code — types, signatures, call stacks, file layout — before anyone writes production code.

概要

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

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Program Design

Align on code shape before implementation: the types, signatures, call stacks, and file layout that architecture is too coarse for and review is too late to change. The model drafts compact sketches; you argue about taste; then you lock the shape. Nobody writes production code.

This is not an implementation spec. If you are writing function bodies, AC matrices, or a file-by-file work order, you have gone too far.

Core contract

  • Lock the program for one implementation unit: a ticket, or a capability whose architecture is already settled.
  • Behaviour comes from the spec and ticket. Architecture (if any) constrains seams. This skill owns taste — depth, naming, layout, call shape.
  • Inspect the repository. Prefer evidence over generic best practices.
  • Read-only: inspect code, docs, tests, and history; do not modify production code.
  • Draft sketches, grill taste forks, lock. Stop unless the user asks to continue.
  • Use /codebase-design language: module, seam, depth, interface.

When to use / skip

text
wayfinder → grill-with-docs → /to-spec
                 ↓
           /architecture     # system shape, if new seams / multi-ticket
                 ↓
           /program-design   # this skill
                 ↓
           /to-tickets → /implement
SituationSkill
Product or requirements still open/grilling / /to-spec first
New services, schemas, or module boundaries/architecture first
Obvious oneshot on an established patternSkip to /implement
Architecture is obvious; quality of the code is not/program-design
Ticket exists and this slice's internals matter/program-design on that ticket

Forbidden

  • Full function bodies
  • Per-AC behaviour matrices
  • Implementation sequences or phased checklists
  • Test-command and fixture inventories
  • Dual representation of the same fact
  • A second evidence appendix restating the sketches
  • Every available visual in one document
  • Box-drawing as the first character, ~ markers, column-padded comments, unicode ∧ ¬ ∨ ≠ in sketches

/to-spec and /to-tickets stay path-free. /architecture stays at module boundaries. /implement owns files, tests, and sequence.

Steps

1. Establish the unit

Read the ticket, spec, architecture (if any), ADRs, and project instructions.

Ready when the behaviour is clear and the remaining unknown is how the code should look. If behaviour is still open, stop and send the user back. If a multi-ticket spec is the only input and slice boundaries are unclear, send them to /to-tickets after this — or to /architecture if seams are also unclear.

Record the outcome in one sentence. Recommend defaults for non-blocking ambiguity. Stop for the user only when a taste fork would change public APIs, persistence, security, or system boundaries — those belong in architecture.

This step is complete when the unit and outcome are explicit.

2. Inspect the repository

Trace the current call path. Note symbols, types, helpers, and conventions this change should reuse. Conflicting patterns: pick one, with evidence.

This step is complete when every proposed seam has an existing counterpart or is named as new and justified.

3. Draft the smallest sketches

Pick only the views this change needs — usually two, rarely more than three. Follow references/program-design-template.md for rendering, including the sketch formatting rules. Those rules exist because chat highlighters, not the author, control color and wrapping.

Change is aboutView
Where it lives / what is newFile tree in diff — marker, then ├─ │ └─
Orchestration or control flowCall tree in diff — same glyphs as calldiff
Frontend structureComponent tree in diff
Types an agent would get wrongSignatures and types — no bodies
The algorithm is the decisionShort pseudocode

Use diff when the surrounding shape already exists. Show the whole block only when most of it is new.

Prefer, in order:

  1. Existing code over new code.
  2. Local code over a shared abstraction.
  3. Established repository patterns over new patterns.
  4. Explicit code over generic frameworks.
  5. A narrow implementation over speculative extensibility.
  6. One clear execution path over interchangeable layers.

New interfaces, factories, adapters, registries, or shared utilities require a current problem with multiple immediate call sites.

This step is complete when a reviewer can see the proposed program without reading prose around it.

4. Grill taste

Put the real forks to the user, one at a time, each with a recommendation. A taste fork is something a reviewer would fight about: deep vs shallow module, existing helper vs new file, sync vs job, this seam vs that one.

Revise the sketches after each answer. Do not interview about facts the repo already contains.

This step is complete when remaining forks are locked or explicitly deferred.

5. Lock

Persist only when a later session needs the sketches (/implement or /to-tickets in a fresh context). If none exists, use docs/agents/program-design/<short-slug>.md. For small work continuing in this conversation, the sketches in-chat are the artifact.

Before handing off, verify:

  • Two or three sketches, not a spec.
  • File layout and call stacks follow the sketch formatting rules in references/program-design-template.md (diff marker then ├─ │ └─, no ~, no padded comment columns, lines ~72 characters, predicates in words).
  • No function bodies, AC matrices, test commands, or implementation sequence.
  • Proposed symbols are marked; existing symbols come from the repo.
  • Taste forks are resolved or named as blocking.

Handoff

Report:

  1. Path to the document, or in-conversation.
  2. One-sentence summary of the locked shape.
  3. Blocking decisions, or None.
  4. Confirmation that production code was not modified.
  5. Next step:

If slices are not published:

text
/to-tickets using <program-design-path>

If a ticket already exists:

text
/implement <ticket> using <program-design-path>

同梱ファイル

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

よくある質問

AIスキル「Program Design」では何ができますか?

Lock the shape of the code — types, signatures, call stacks, file layout — before anyone writes production code.

TypingMindでProgram Designを使うメリットは何ですか?

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

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

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

Program Designを使えるAIモデルはどれですか?

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

Program Designは何個のAIモデルで使えますか?

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

AIスキル「Program Design」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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