Smooth Option Switcherのロゴ

Smooth Option Switcher

コミュニティ
zhoulinhua0-star
smooth-option-switcher

Implement smooth mutually exclusive option selectors with CSS radio states and moving indicators, including a nested plan/billing selector that expands a compact submenu. Use for pricing plans, monthly/yearly billing, view modes, or segmented configuration controls. Adapt the demonstrated interaction to the project's UI system.

概要

公開者zhoulinhua0-star
リポジトリsmooth-option-switcher
スキル名smooth-option-switcher
スター
20
フォーク
0
同梱ファイル
9
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 9個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Smooth Option Switcher

Implement the source-based CSS interaction in the bundled reference. Its distinctive form is a Free/Premium selector whose Premium subtitle expands into Monthly/Annual controls, with a second indicator inside the main one. A plain two- or multi-option control is an adaptation, not the full demonstrated component.

Start with the project

Inspect the target's components, styling tokens, typography, motion conventions, framework, form/state patterns, and browser targets. Reuse those conventions. Do not impose the reference's monochrome palette, font, pill shape, shadows, or fixed demo dimensions.

Use this pattern for a small set of mutually exclusive choices where a traveling indicator helps show selection. Use the nested form only when a secondary choice genuinely belongs to one primary option. Avoid it for independent toggles, action buttons, large/wrapping option lists, or navigation that needs links. Use tab semantics only for actual tab panels.

Read the reference

Preserve the interaction

Four native radios precede the visual wrapper: two independent groups for the primary mode and billing version. Their order matters to chained :checked ~ selectors. Labels activate them; no JS is needed for the canonical interaction.

The main content is absolutely positioned over a normal-flow indicator occupying half the padded track. Changing mode translates that indicator by its own width (translateX(100%)). The full-size Premium label initially sits above the compact submenu, so a click anywhere on that half selects Premium first.

The submenu stays mounted. Its top: 66%; left: 50%; translate(-50%, -50%) scale(0.6) state becomes top: 0; left: 0; translate(0, 0); gap: 0. Premium fades and moves down by 10px, scaling to 0.7, while its stacking order drops to expose the submenu. The secondary indicator is an actual absolutely positioned element, 48% wide and 80% high, animated with left, not a substituted transform technique. The dot collapses; selected text changes color. Returning to Free collapses the menu and retains the billing selection.

Preserve persistent indicators, continuous reversible transitions, equal segment geometry, stacking/hit targets, and synchronized text changes. The observed easing is cubic-bezier(0.34, 0.96, 0.6, 0.99). The reference preserves the observed 0.1s Free text transition, 0.3s Premium transition, and 0.5s selected billing text transition. Its other 0.5s transitions are explicitly reconstructed, not transcribed. Tune timing for the existing motion system without replacing the coordinated expansion with an unrelated animation.

Do not add hover-driven selection, remount indicators on change, flatten the nested interaction without a product reason, or introduce an animation library solely for this effect. No pseudo-elements or CSS variables are required by the observed code. Adding design tokens in a target project is appropriate.

Adapt and verify

Customize colors, contrast, fonts, labels, spacing, dimensions, radii, and shadows through existing tokens. Scope IDs and radio names per instance; coordinate track padding, content geometry, and indicator endpoints when changing sizes. Keep the original reference unchanged when implementing a project adaptation.

Use existing framework state only for application integration, preserve native input semantics where practical, and keep animation in CSS. The canonical hidden inputs intentionally preserve the demonstration and are not keyboard accessible: implement the production guidance before shipping.

Verify all states, both switching directions, rapid reversals, remembered secondary selection, pointer hit targets, keyboard/focus behavior, reduced motion, narrow containers, long labels, and multiple instances. Check intermediate motion as well as endpoints. Report reconstructed details and actual verification limits honestly.

同梱ファイル

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

よくある質問

AIスキル「Smooth Option Switcher」では何ができますか?

Implement smooth mutually exclusive option selectors with CSS radio states and moving indicators, including a nested plan/billing selector that expands a compact submenu. Use for pricing plans, monthly/yearly billing, view modes, or segmented configuration controls. Adapt the demonstrated interaction to the project's UI system.

TypingMindでSmooth Option Switcherを使うメリットは何ですか?

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

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

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

Smooth Option Switcherを使えるAIモデルはどれですか?

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

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

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

AIスキル「Smooth Option Switcher」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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