Craft Statesのロゴ

Craft States

コミュニティ
diego3g
craft-states

画面、フロー、コンポーネントをデザインまたは再デザインする場合、すべての状態を網羅するよう求められた場合や不足している状態を探す場合、画面をコードに渡す前に使用します。デザインが通常の成功パターンしか示していない場合、サンプルデータが短く整いすぎている場合、またはユーザーが1人だけだと想定している場合にも使用します。

概要

公開者diego3g
リポジトリcraft
スキル名craft-states
スター
546
フォーク
29
同梱ファイル
7
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 7個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Screen states

Overview

A screen is not designed until every state it can be in is designed. The happy path is one state out of twenty. List the states in words first, get the list approved, then draw. Agreeing on a list costs a minute. Discovering a missing state in code costs a day.

When to use

  • A new screen, flow or component, or a redesign of one.
  • "Cover all the states", "what are we missing?", "is this ready for dev?"
  • The design shows one perfect case: three orders, short names, everything loaded.

When NOT to use

  • A small edit to an existing screen ("make the button 2px taller", "fix this typo"). Make the edit and stop.
  • Pure copy changes, or a question about the design.

Before you start

  1. Read DESIGN.md at the project root if it exists: it is the project's design brief.
  2. Read the project's design system and existing screens. They win on look: reuse their empty state, banner and loading pieces instead of inventing new ones.
  3. Pick your tool's adapter in references/adapters/ (paper.md, pen.md, figma.md, penpot.md, html.md). If no adapter matches your tool, do the same verbs in your tool and say which you mapped by hand. With no design tool at all, build in HTML (html.md). If an image is all you have, say that values read from it are estimates.
  4. Know the screen's job: who uses it, what they came to do, and what the one next action is.

Steps

  1. Write the state list. Walk every group in the state catalogue: Data, System, Activity, People, Interaction. Mark each item in one of three ways:

    • applies, with a one-line description of what the screen shows;
    • doesn't apply, with a reason;
    • open question for the person.

    Stop and show the person the list. Do not draw yet.

  2. Draw the main state with realistic invented data: the most complex realistic case, not the tidiest. Use long names, many items, and mixed statuses. Build it one section at a time, and check each section rendered before the next.

  3. Draw every other state that applies:

    • a state that changes the whole screen (empty, offline, couldn't load) gets a full board;
    • a state that changes one part (a failed row, a saving button, a stale banner) goes on a state sheet that shows just that part.
  4. Check every state:

    • Does it offer the action that resolves it, and say who does it?
    • Does moving between states keep the layout still (same widths and heights, no jumping)?
  5. Name and order the boards as described in naming and sheets: <number> · <screen> · <state>, the main state first, the other states next, sheets last, and a cover note at the start of each row.

  6. Look at what you made. Screenshot or render every board and compare it with the list. If you cannot render, say so plainly, and name what wasn't checked.

Rules

RuleWhy
The list comes before any drawing, and the person approves itIt's the cheapest moment to find a missing state or one that doesn't apply
Sample data is long, many and messyShort tidy data hides truncation, overflow and wrapping bugs
Assume more than one person uses it"Someone else already did it" and "changed while you looked" happen every day
No state without a way out: what to do next and who does itA dead end makes people call support
A failure is worded as a failure, never as a deliberate pause"Stopped" reads like someone chose it; "Couldn't save" tells the truth
One standard empty-state piece across the productTen bespoke empty states drift apart and cost ten times more
A whole-app problem goes in a top banner; a problem with one item goes inline on that itemA banner for one row's error shouts at everyone about nothing
Loading and label swaps keep the element's sizeLayout shift makes people click the wrong thing
Interaction states (hover, focus, disabled…) come from the design system's states matrixRedrawing them on every screen creates drift; draw them once, in the system

Done when

Every catalogue item is drawn, marked "doesn't apply" with a reason, or listed as an open question. The boards are named and ordered, and you looked at each one or said which you couldn't.

Common mistakes

ThoughtReality
"I'll just design all the states in one go, it's faster"Without an approved list you draw states nobody needs and miss the ones they do. List, stop, then draw.
"Three sample orders show the idea"Show forty, and show a customer called "Maria Fernanda de Albuquerque Santos". The overflow state is a real state.
"Loading, empty, error, offline: covered"Those are four of the catalogue's groups' easiest items. Also check many/overflow, long text, someone-else-did-it, changed-while-viewing, permissions and slow.
"I'll put all the states on one page"An unnamed pile can't be reviewed or handed off. Name and order the boards.
"I couldn't render it, but it's fine"Say what you couldn't check. Unverified layout is a guess.

Red flags: stop and go back to step 1

  • You are drawing and no state list was approved.
  • Every name in the mock fits on one line.
  • The design never mentions a second person.

同梱ファイル

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

よくある質問

AIスキル「Craft States」では何ができますか?

画面、フロー、コンポーネントをデザインまたは再デザインする場合、すべての状態を網羅するよう求められた場合や不足している状態を探す場合、画面をコードに渡す前に使用します。デザインが通常の成功パターンしか示していない場合、サンプルデータが短く整いすぎている場合、またはユーザーが1人だけだと想定している場合にも使用します。

TypingMindでCraft Statesを使うメリットは何ですか?

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

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

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

Craft Statesを使えるAIモデルはどれですか?

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

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

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

AIスキル「Craft States」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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