Design Baselineのロゴ

Design Baseline

コミュニティ
Bandersnatch0x
design-baseline

既存のフロントエンドにUIを追加または改訂する前に、プロジェクトで管理するDESIGN.mdを確認、検証、または作成します。リポジトリにすでにページ、コンポーネント、テーマ、トークン、スタイルがある状態で、デザインプレイブックを初期設定する際に使用します。新しいUIが既存の画面と一貫しない場合や、DESIGN.mdが未作成、不完全、矛盾している、または古くなっている可能性がある場合にも使用します。既存のフロントエンドのソースからデザインシステムを生成するよう求められた場合にも使用します。根拠情報を明記したドラフトを作成し、正式なベースラインを新規作成または置き換える前に確認を求めます。

Add to TypingMind

概要

公開者Bandersnatch0x
リポジトリdesign-playbook
スキル名design-baseline
スター
3
フォーク
0
同梱ファイル
4
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 4個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

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

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

スキルの指示

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

design-baseline

Establish one project-owned visual authority before UI decisions or Fill. Treat existing code and rendered pages as evidence, not as permission to silently rewrite DESIGN.md.

Authority boundary

This skill ownsDoes not own
Discovering and structurally validating project DESIGN.mdFunctional success criteria (spec L1–L6)
Extracting a draft from first-party frontend sourceThird-party reference Keep, Change, and Do not copy (reference-intake)
Source hashes, observed and inferred labels, confidence, unresolved gapsComponent and template selection (ui-picker)
Confirmation before a durable baseline writePass or Fail verdict (ui-evaluator)

Canonical authority is <project-root>/DESIGN.md. Accept .stitch/DESIGN.md as a compatibility candidate only. If both exist with different content, stop for an explicit user choice. Never merge them silently.

Deep module (SSOT for deterministic work)

All path resolution, scanning, drafting, hashing, durable write, and re-verification live in one module:

scripts/design_baseline.py

Public interface:

python
prepare(project_root, run_root) -> state
confirm(project_root, run_root, decision, reason=None) -> state
verify(project_root, run_root) -> state

CLI:

text
python scripts/design_baseline.py prepare <project_root> <run_root>
python scripts/design_baseline.py confirm <project_root> <run_root> --decision accept|waive [--reason ...]
python scripts/design_baseline.py verify  <project_root> <run_root>

On Windows, non-ASCII --reason text can be mangled between shell and Python (ANSI code page, e.g. GBK on zh-CN). When argv carries undecodable bytes, confirm refuses with an error instead of persisting mojibake. Prefer the module API (confirm(project_root, run_root, decision, reason=...)) or ASCII text for CLI --reason with non-ASCII content.

State is a cache, not authority. Every public call resolves paths against the supplied project root. verify re-hashes the bound baseline and its first-party sources before returning a downstream binding. Fill and other consumers may only use a binding that just passed verify.

statusMeaning
readyBound baseline (decision.kind = existing or accepted)
needs_confirmationProvenance-backed draft awaits accept or waive; baseline_rejection records why an existing candidate was not bound (null when none existed)
waivedExplicit waiver confirmed by this run's user, carrying that user's non-empty reason
ambiguousConflicting candidates. Human choice required

Workflow

1. Classify the project

Apply the existing-product gate when the orchestrator returned requires_baseline, including durable review, diagnosis, or plan work on an existing product. Skip when entry routing returned no-run or did not set requires_baseline. Do not independently reclassify the repository as greenfield to skip after routing. Narrate the skip in one line.

Done when: the run records existing-product or greenfield, with the file signals used for that classification.

2. Prepare (prepare)

Run prepare(project_root, run_root). Deterministic code:

  • discovers DESIGN.md / .stitch/DESIGN.md (rejects escaping symlinks);
  • validates a complete existing baseline in place;
  • or scans first-party theme, token, style, component, and page sources, writes evidence.json + DESIGN.draft.md, and returns needs_confirmation;
  • writes .scratch/<run>/design-baseline/state.json (schema: design-baseline/v1).

Agent work after prepare:

  • if status is ready then cite path + sha256 and continue;
  • if ambiguous then stop for the smallest user decision. Never invent a third authority;
  • if needs_confirmation then review the draft. Optionally enrich only material claims with [inferred confidence=…] in the draft file, then re-run prepare if structure and sources changed (do not hand-edit hashes). When baseline_rejection is set, an existing DESIGN.md was rejected for the stated reason, accepting the draft replaces it (a backup is kept; see Confirm).

Never write or overwrite project DESIGN.md in this step.

Done when: state.json exists with one of the four statuses above. Drafts carry source paths + SHA-256 and observed and inferred labels.

3. Confirm or waive (confirm)

Show a compact summary: atmosphere, core tokens, typography, layout, shared components, conflicting evidence, inferred claims. Ask before the durable write.

  • Accept. confirm(..., decision="accept") atomically writes canonical <project-root>/DESIGN.md from the bound draft and returns a ready state. If a differing DESIGN.md already exists, the previous content is backed up byte-exact first and the state records it as replaced_baseline (path, sha256, backup). The CLI prints an overwrite warning with the backup path.
  • Waive. confirm(..., decision="waive", reason=<user reason>) does not write DESIGN.md. Existing-product Fill may continue only after this explicit waiver. A waiver belongs to the user, not the agent. Recommending it is allowed, but the first waiver of a run must be put to this run's user and answered there. The reason carries what that user actually said. A waiver or ruling from an earlier run, another agent, or a surviving state.json is provenance, not this user's consent. ADR-0033 draws the same boundary for repository-stored preferences. Never call confirm(..., "waive") before this run's user has answered.
  • Revise. edit only the draft (or fix sources), then prepare again.

Never infer acceptance from silence. Never replace a valid baseline merely because extraction found different implementation details. Report the drift for a decision.

Done when: state.json is ready (existing or accepted) or waived with a non-empty reason given by this run's user.

3a. Promote an adjudicated component (promote)

A component promotion requires a user promotion_decided/promote governance event and a fresh execution-time check. The source must be a real project-relative file. The current .scratch/<run>/decision-report.md history must still meet the component threshold. The governance event alone is not a durable bypass for stale or fabricated candidates. Token promotion remains governed separately because token candidate extraction is a different input seam.

4. Verify before Fill (verify)

Immediately before Fill (and any time a consumer needs a binding), call verify(project_root, run_root).

  • Re-checks path containment, baseline hash, source freshness, and provenance alignment. Promoted component sources are bound by source_sha256. Source drift fails closed and requires a fresh adjudication and promotion rather than silently updating the binding.
  • Rejects forged state.json, stale sources, candidate conflicts, and symlink escape.
  • On success, returns the binding: baseline path + sha256 (or an explicit waiver).

Downstream may only consume this verified result, not a hand-edited confirm file and not a draft.

Done when: verify returns without error. The decision report can cite design-baseline: <path> sha256:<digest> or waived:<reason>.

5. Bind downstream consumers

ConsumerRequired behavior
ui-pickerCite the verified baseline in the decision report. Preserve visual roles, density, layout, and component conventions unless a declared change is approved
FillUse project tokens and shared components. Log missing roles instead of inventing raw values. Gate on successful verify
craft-guardTreat obvious baseline drift as a craft failure, not merely personal taste
ui-evaluatorPoint observable drift back to DESIGN.md. The baseline is supporting declaration evidence, never L6 runtime proof by itself

Third-party or sample DESIGN.md files remain reference-intake inputs. They never become project authority automatically.

Artifacts

text
<project-root>/DESIGN.md                            # durable authority after accept
.scratch/<run>/design-baseline/state.json           # gate cache (schema design-baseline/v1)
.scratch/<run>/design-baseline/evidence.json        # extraction evidence (when drafted)
.scratch/<run>/design-baseline/DESIGN.draft.md      # proposal; never authority by itself
.scratch/<run>/design-baseline/previous-DESIGN.md   # backup of a replaced DESIGN.md (when overwritten)

The deep module prepare/confirm/verify is the sole gate surface. An adopted existing DESIGN.md only needs to carry verifiable source provenance (path + SHA-256 under ## Source Evidence & Confidence) to be bound. The other section names in references/design-template.md are draft guidance, not a structural contract imposed on hand-written baselines.

Scope fence

InOut of scope
First-party visual baseline and provenanceFunctional behavior belongs to ux-spec
Existing-source extractionExternal inspiration belongs to reference-intake
Confirmation before durable writeScene, template, and component decision belongs to ui-picker
Baseline drift source for point-backRuntime evidence judgment belongs to ui-evaluator

同梱ファイル

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

よくある質問

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

既存のフロントエンドにUIを追加または改訂する前に、プロジェクトで管理するDESIGN.mdを確認、検証、または作成します。リポジトリにすでにページ、コンポーネント、テーマ、トークン、スタイルがある状態で、デザインプレイブックを初期設定する際に使用します。新しいUIが既存の画面と一貫しない場合や、DESIGN.mdが未作成、不完全、矛盾している、または古くなっている可能性がある場合にも使用します。既存のフロントエンドのソースからデザインシステムを生成するよう求められた場合にも使用します。根拠情報を明記したドラフトを作成し、正式なベースラインを新規作成または置き換える前に確認を求めます。

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

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

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

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

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

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

Design Baselineで使えるAIモデルの数に制限はありますか?

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

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

Bandersnatch0xがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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