Smooth Option Switcher logo

Smooth Option Switcher

Community
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.

Overview

Publisherzhoulinhua0-star
Repositorysmooth-option-switcher
Skill namesmooth-option-switcher
Stars
20
Forks
0
Bundled files
9
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 9 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by zhoulinhua0-star on GitHub. Read the source before you install it.

Installation

Install the Smooth Option Switcher AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zhoulinhua0-star/smooth-option-switcher/tree/main/skills/smooth-option-switcher
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Smooth Option Switcher in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Smooth Option Switcher on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Smooth Option Switcher is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Smooth Option Switcher AI skill do?

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.

Why use Smooth Option Switcher on TypingMind?

Because you install it once and use it with any model. Smooth Option Switcher is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Smooth Option Switcher in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zhoulinhua0-star/smooth-option-switcher/tree/main/skills/smooth-option-switcher. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Smooth Option Switcher?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Smooth Option Switcher?

As many as you like. As long as a model supports skills, you can use Smooth Option Switcher with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Smooth Option Switcher AI skill free?

Yes. It is published on GitHub by zhoulinhua0-star under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇