Designing Interaction Statesのロゴ

Designing Interaction States

コミュニティ
wdm0006
designing-interaction-states

画面が実際に多くの時間を過ごす状態を設計します。初回利用時や空の状態、読み込み中やスケルトン表示、インライン検証とエラーメッセージ、成功時のフィードバック、破壊的操作の確認、それぞれのマイクロコピーを整え、うまくいく場合だけでなく、どの状態でも完成度の高い製品にします。フォーム、リスト、ダッシュボード、アップロード、購入手続き、設定画面の構築、非同期アクションの追加、エラーや空状態のコピー作成、空白ページや生のエラー、いつまでも消えないスピナーを表示するUIのレビューに使えます。

Add to TypingMind

概要

公開者wdm0006
リポジトリpython-skills
スキル名designing-interaction-states
スター
111
フォーク
17
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Designing Interaction States

Most screens are designed in one state: full of realistic data, with every request succeeding. Users mostly see the others — empty on day one, loading on a slow network, an error on a typo. Those states are where an app feels either finished or neglected.

Contents

  • The state inventory
  • Empty and first-run states
  • Loading
  • Forms and validation
  • Errors
  • Success and feedback
  • Destructive actions
  • Microcopy rules
  • Checklist

The state inventory

For every screen, list and design each of these before calling it done:

StateQuestion it answers
First run / empty"What is this and what do I do first?"
Loading"Is it working?"
Partial / some data"Does it still look intentional with one item?"
Full / overflow"What happens with 500 items or a very long name?"
Error"What went wrong, and what do I do now?"
Success"Did it work?"
Offline / permission denied"Why can't I do this?"

Seed local data for each and screenshot them; reviewers should see every state.

Empty and first-run states

An empty state is the product's best onboarding surface. Replace "No items." with:

  • a one-line explanation of what will appear here,
  • the single primary action that fills it ("Import contacts", "Create your first project"), as a real button,
  • optionally a secondary path (sample data, docs link).

Distinguish empty because new from empty because filtered ("No results for 'acme' — clear filters") from empty because of an error (that is an error state, not an empty one).

Loading

  • Under ~300ms: show nothing (a flashing spinner reads as jank).
  • Content areas: skeletons shaped like the content, so the layout does not jump.
  • Actions: disable the button and show progress in it ("Saving…"), preventing double submits.
  • Over ~10s or multi-step: real progress (steps or percent) and the option to leave.
  • Never an indefinite spinner: every request has a timeout that becomes an error state with a retry.

Forms and validation

  • Labels above fields, visible always; help text below the label, not in the placeholder.
  • Mark optional fields ("(optional)") rather than starring required ones, when most are required.
  • Validate on blur or on submit, not on every keystroke; never show an error before the user has had a chance to type.
  • On submit with errors: keep everything the user typed, show a summary at the top linking to each field, move focus to the first invalid field.
  • Error text sits next to its field, says what is wrong and how to fix it, and is linked with aria-describedby (see the building-accessible-interfaces skill).
  • Use the right input types (email, tel, number, date, autocomplete attributes) so phones show the right keyboard and browsers can autofill.
  • One primary button per form, at the end, labelled with the outcome ("Create account", not "Submit").

Errors

A good error message has three parts: what happened, why (if known), what to do next.

BadGood
"Error 500""We couldn't save your changes. Your edits are still here — try again in a moment."
"Invalid input""Enter a date in the future."
"Failed to fetch""You're offline. We'll retry when you reconnect."
  • Never show stack traces, raw exception text or status codes to end users; log them with a reference ID and show the ID.
  • Errors are recoverable where possible: a retry button, preserved input, a link to the place to fix the cause (e.g. billing settings).
  • Page-level failures get a designed page (404, 500, expired link) with navigation back into the app, not the framework default.

Success and feedback

  • Confirm every action that changes data: inline ("Saved ✓" next to the button) for small edits, a toast for background actions, a full success screen for milestones (account created, payment complete) that says what happens next.
  • Toasts auto-dismiss (~5s) except for errors and anything with an action ("Undo").
  • Optimistic UI is fine for low-risk actions if failures roll back visibly.

Destructive actions

  • Prefer undo over confirmation for reversible actions ("Contact archived. Undo").
  • For irreversible ones, confirm with a dialog that names the object and the consequence ("Delete 'Q3 report'? This removes it for everyone and can't be undone.") and a button labelled with the action ("Delete report"), styled as danger — never a generic "OK".
  • For high-stakes deletes (an account, a workspace), require typing the name.

Microcopy rules

  • Plain words, sentence case, second person ("Your invoices"), active voice.
  • Buttons are verbs naming the outcome; links say where they go.
  • Be specific with numbers and names ("3 contacts imported, 2 skipped — see why").
  • Same term for the same thing everywhere (pick "workspace" or "team", not both).
  • No blame ("You entered an invalid…" → "Enter a valid…"), no jokes in errors.

Checklist

  • Every screen has designed empty, loading, error and success states
  • No spinner without a timeout and an error path
  • Forms keep input on error, focus the first invalid field, and use real labels
  • Error messages say what happened and what to do; no raw exceptions shown
  • Destructive actions use undo or a specific, danger-styled confirmation
  • Screenshots of each state attached to the PR

よくある質問

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

画面が実際に多くの時間を過ごす状態を設計します。初回利用時や空の状態、読み込み中やスケルトン表示、インライン検証とエラーメッセージ、成功時のフィードバック、破壊的操作の確認、それぞれのマイクロコピーを整え、うまくいく場合だけでなく、どの状態でも完成度の高い製品にします。フォーム、リスト、ダッシュボード、アップロード、購入手続き、設定画面の構築、非同期アクションの追加、エラーや空状態のコピー作成、空白ページや生のエラー、いつまでも消えないスピナーを表示するUIのレビューに使えます。

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

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

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

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

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

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

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

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

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

はい。wdm0006がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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