en un clic
select-variant
Use when the user prompts "select variant".
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Use when the user prompts "select variant".
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
| name | select-variant |
| description | Use when the user prompts "select variant". |
Read a specific idea's variants.md, choose exactly one variant, write changes/<feature-name>/<NUMBER-idea-name>/selected-variant.md, and optionally refine that saved file in place.
Input: The argument after /select-variant should include:
refine or don't refinereplace or overwriteExamples:
/select-variant 611-row-level-security-integration 2/select-variant 611-row-level-security-integration 2 1/select-variant row-level-security-integration "Run work inside an explicit RLS context" "ALS-backed query-time RLS state in $withOptions"/select-variant row-level-security-integration 2 refine/select-variant row-level-security-integration 2 1 don't refine/select-variant row-level-security-integration 2 1 replaceGoal
Produce a final selection document for one idea variant.
This command is a selection workflow, not a design-generation workflow. It should:
variants.mdselected-variant.md is allowedselected-variant.md from the selected variantselected-variant.mdThe command must save the selected variant document first. If refinement is requested, .agents/commands/refine.md then updates that saved file in place.
Steps
Identify the target change folder
Search changes/ for the folder that best matches the user's feature input.
Prefer:
ideas.mdIf multiple folders are plausible, stop and ask the user which one to use. Do not guess when the match is ambiguous.
If no relevant change folder exists, tell the user that no matching change folder was found. Do not create a new change folder here.
Resolve the target idea
Find an idea folder inside changes/<feature-name>/ that matches the user's idea input.
Match by:
2-run-work-inside-an-explicit-rls-contextchanges/<feature-name>/ideas.md to confirm the exact numbered idea titleIf multiple idea folders are plausible, stop and ask one focused clarifying question. Do not guess between similarly named ideas.
The resolved idea path must be:
changes/<feature-name>/<NUMBER-idea-name>
Verify required input files
Confirm that changes/<feature-name>/<NUMBER-idea-name>/variants.md exists.
If variants.md is missing, stop and tell the user that the idea does not have variants yet.
Do not create variants.md in this command.
Read variants.md and identify the available variants
Read the full changes/<feature-name>/<NUMBER-idea-name>/variants.md.
Identify variants from headings in this form:
## Solution <number>: <solution name>
For each variant, capture:
Treat the variant body as the content from that ## Solution ... heading until the next ## Solution ... heading, or until the next top-level section that is not part of that solution.
Ignore non-variant sections such as:
# <Idea Title>## Goal## Context from existing research## Comparison## ReferencesSelect exactly one variant
If the user provided a variant number or name:
If the title match is ambiguous, stop and ask one focused clarifying question. Do not guess between similarly named variants.
If the user did not provide a variant:
variants.md, select it automaticallyRecord:
Check whether selected-variant.md can be replaced
Check whether changes/<feature-name>/<NUMBER-idea-name>/selected-variant.md already exists.
If it does not exist, continue.
If it exists, inspect the user input for an explicit replacement decision.
Explicit yes:
replaceoverwriterecreateIf selected-variant.md exists and the user did not explicitly choose replacement, stop and ask a short direct question about whether the existing file should be replaced.
If the user says no, stop without changing the file.
Write a fresh selected-variant.md
The output path must be:
changes/<feature-name>/<NUMBER-idea-name>/selected-variant.md
Create this file only after:
Build the file from variants.md by preserving only:
## Goal## Context from existing research## Solution <number>: <solution name> section content## ReferencesOmit:
## Solution ... sections## ComparisonUse this structure:
# <Selected solution name>
## Goal
<Copied from `variants.md`.>
## Context from existing research
<Copied from `variants.md`.>
## Solution
<Write the original selected solution section content here, including any example subsection(s), but without the original `## Solution ...` heading.>
## References
<Copied from `variants.md`.>
Output guidance:
# heading## Goal, ## Context from existing research, and ## References from variants.md## Solution section should contain the original selected solution content, including any example subsection(s), but without the original ## Solution ... headingDetermine whether refinement is required
Inspect the user input for an explicit refinement decision.
Explicit yes:
refinerefinedExplicit no:
don't refinedo not refineskip refineIf the user explicitly chose refinement, proceed to the refinement step using the saved selected-variant.md.
If the user explicitly chose not to refine, finish without refinement.
If the user did not make the decision explicit, ask a short direct question about whether the saved selected-variant.md should be refined.
Refine the saved selected-variant.md when requested
If refinement is required, follow the workflow in .agents/commands/refine.md using:
changes/<feature-name>/<NUMBER-idea-name>/selected-variant.md
as the input file.
The refine step must update that same file in place.
If refinement is skipped, leave the just-written selected-variant.md unchanged.
Quality check
Before finishing, verify:
variants.md was read from the correct idea folderselected-variant.md already existed, replacement was explicitly provided by the user or explicitly asked and confirmedselected-variant.md was written only after the selection / replacement flow was completevariants.md## Solution as the selected solution section titleselected-variant.md was written and it updated that same file in placeselected-variant.md remained unchangedGuardrails
variants.md in this commandselected-variant.md unless the user explicitly said to replace it or confirmed replacement when askedselected-variant.md before the selection and replacement checks are completeselected-variant.mdselected-variant.md from variants.md after refinement beginsUse when the user prompts "code doc" to create or update internal Orchid ORM code documentation from changes/ specs, short-code feature folders, or existing implementation code.
Use when the user prompts "implementation note" for an existing change idea.
Use when the user prompts "write spec" or "make spec".
Use when the user prompts "do task".
Use when the user prompts "changeset".
Use when the user prompts "write ideas" or "make ideas".