/snail:snail-alternativesfrom Snail
Suggest up to 3 viable alternatives for a code or design decision. Includes mandatory independent review. Use when the user asks for alternatives, options, "better ways", or review of supplied options.
Ships in Snail. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
When the user asks only to review existing alternatives, read references/review.md and dispatch a readonly general-purpose Task subagent with the full contract and supplied text. Do not self-review, draft, rewrite, create a flow or advance gates. Triage its findings using that protocol and return the findings only. Reviewers never rewrite; edits require an explicit request. Draft mode below always includes the mandatory independent review loop.
From the project working directory, run node <skill-dir>/scripts/artifact-path.mjs using this skill's absolute installed path; store its output as <flow-root>. In every shell command double-quote expanded paths, e.g. init "$flow_root/snail-$slug"; for scans quote the root but leave the wildcard outside: "$flow_root"/snail-*/. It resolves project-specific $XDG_STATE_HOME/snail state (fallback ~/.local/state/snail). Discover and write all workflow artifacts there, including standalone use. Pass --in-repo only on an explicit user request, never because old files or policy exist. Leave old artifacts untouched; ask before moving, deleting or resuming them. On errors stop, never fall back to the repo.
<flow-root>/snail-<slug>/.0 - EXPLORE.yaml exists and 1 - ALTERNATIVES.yaml is missing. If one, suggest continuing it. If several, list them and ask. If none, derive a slug from the decision and confirm.node ../snail-flow/scripts/flow-state.mjs init <flow-root>/snail-<slug> --slug=<slug> --goal=<one-line goal> --at=1. If slug review is requested while the standalone review artifact (<flow-root>/snail-review/4 - REVIEW.yaml, no runbook) exists, do not init over it and do not delete the file: surface the collision and let the user pick a different slug or explicitly approve moving or removing it.1 - ALTERNATIVES.yaml from ../snail-flow/templates/1 - ALTERNATIVES.yaml, then node ../snail-flow/scripts/flow-state.mjs advance <dir> for row 1, and advance <dir> --valid=0 for row 1r once the review loop's latest pass is clean. If the run ends early, note <dir> <what happened> instead.This skill can run on its own; it still maintains the flow folder and runbook when ../snail-flow/scripts/flow-state.mjs exists — a standalone install skips every flow-state.mjs call. For external artifacts no git ignore configuration is needed. With explicit --in-repo and no flow-state script, first check that git rev-parse --git-common-dir succeeds; outside git there is nothing to ignore. Inside git, add the flow root's repo-relative path on its own line to $(git rev-parse --git-common-dir)/info/exclude before writing (escape gitignore special characters); warn if artifacts are already tracked. Do not change .gitignore.
Identify — up to 3 distinct approaches. If only one is viable, document that in 1 - ALTERNATIVES.yaml and still produce the file.
Present — for each option: idea, snippet (if relevant), pros, cons.
Review — read references/review.md, then dispatch a readonly general-purpose Task subagent with its full review contract and the options text (paste both; do not point at files). Include the goal, constraints, recommendation and prior false-positive records. Do not self-review or skip this step. Triage each finding per the protocol in references/review.md — act on valid only and carry false-positive records into the next pass. Resolve every valid finding and re-review. Continue until the latest pass has zero valid findings after triage.
Exit rule: stop when the latest alternatives review pass is Lean & valid. Ship. or has zero valid findings after triage (all false_positive or all unvalidated). Stuck guard: if the same valid finding persists after 3 passes, stop and report the blocker.
Recommend — one clear choice based on clarity and maintainability.
Write — save options, review findings (with triage counts), recommendation, and decision to 1 - ALTERNATIVES.yaml.
Wait — stop for the user's choice. Do not edit code files.
1 - ALTERNATIVES.yaml contains:
Read references/review.md for the complete reviewer input, findings format, criteria and standalone protocol fallback.
Option 1: Shared helper
function processData(d: Data[]) {
return d.filter(validate).map(transform);
}
Recommendation: Option 1 — best balance.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub yoglib/snail --plugin snailOther plugins' skills for the same job
11 skills in this plugin
/snailExperimental single-skill workflow from investigation to PR, with approval stops or explicit auto mode./snail-ai-toolbeltPointer to external AI tools and MCPs. Use when the user asks about the toolbelt, which tools are used, or how to install a recommended tool. This skill does not install tools./snail-exploreFirst-link discovery. Gather repo context and write a structured report that feeds into snail-alternatives or snail-planning./snail-flowEnd-to-end snail workflow. Runs snail-explore, snail-alternatives, snail-planning, snail-implement, snail-review in fix mode, snail-verify, then snail-pr. Use when the user asks for /snail-flow, the full workflow, or "run the ai workflow".