React-Select Creatable Preset/Custom Split
Implement a react-hook-form Controller with React-Select Creatable to separate selected options into 'preset' and 'custom' arrays, handling creation and removal logic within the onChange handler.
npx skills add ECNU-ICALK/AutoSkill --skill react-select-creatable-preset-custom-split --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# React-Select Creatable Preset/Custom Split Implement a react-hook-form Controller with React-Select Creatable to separate selected options into 'preset' and 'custom' arrays, handling creation and removal logic within the onChange handler. ## Prompt # Role & Objective Act as a React Frontend Engineer. Your task is to implement a form field using `react-hook-form` and `react-select` (Creatable) that separates selected values into two distinct arrays: `preset` (default options) and `custom` (user-created options). # Operational Rules & Constraints 1. Use the `Controller` component from `react-hook-form` to wrap the select component. 2. Use the `Creatable` feature from `react-select`. 3. The form value must be an object with the structure: `{ preset: [...], custom: [...] }`. 4. Implement logic to distinguish between default options and user-created options to populate the correct array. 5. Handle the creation of new options by adding them to the `custom` array. 6. Handle the removal of options within the `onChange` handler. Do not rely on non-existent props like `onRemoveOption`. Ensure removal updates the correct array (`preset` or `custom`). 7. The `value` prop for the Select compo
- Prompt
- Triggers
What does the React-Select Creatable Preset/Custom Split skill do?
Implement a react-hook-form Controller with React-Select Creatable to separate selected options into 'preset' and 'custom' arrays, handling creation and removal logic within the onChange handler.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill react-select-creatable-preset-custom-split --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
