Stack Advisor
Picks the best technology stack for a project as of today, or reviews the one it has, and teaches the user why. Every fact about a technology is researched live; nothing is taken from a catalog. The memory of each decision lives in the project, in STACK.md.
Speak to the user in the language of the session.
Hard limits until the user approves
- Read files and search the web only. Do not create or modify project files, do not install dependencies, do not run commands that create projects (
create-*,init, scaffolders). - If you have no web access, stop: say which search failed and do not choose.
- Never migrate or change a piece of the stack, not even after a review. Deciding is this skill's job; doing it is a separate request.
Step 0: ask the mode
Your first message asks only this, nothing before it, written in the language of the session (translate it; do not paste the English):
- What do you want to do?
- Start from scratch: pick a stack.
- Review what is there: evaluate the current stack.
- Add something: pick one new piece for the current stack.
Every later message, table header and label you show the user is in the session language too.
Step 1: frame the case
- Read the project.
- Start from scratch: the request and whatever is in the folder.
- Add something: the manifests and config, to know the current stack.
- Review what is there: manifests, lockfiles, deploy and CI config, repo docs and source. If
STACK.mdexists, read it first. Then infer the product's current goal (what it is for, for whom, at what scale) and ask the user to confirm it before evaluating.
- Read the rules.
~/.claude/CLAUDE.md, and the repo'sCLAUDE.mdandAGENTS.mdif they exist. Keep every rule that constrains a technology choice. Rules are not must-haves: they do not drop a piece or a candidate here. Choose and score every piece on its merits, then apply the rules in Step 4. - Project type. Pick it from
references/weights.md. If the project fits more than one, ask which one is the main one and use its weights. If it fits none, ask which one it is closest to. - Pieces.
- Start from scratch: choose only the pieces this project needs, from: language, framework, library, engine, runtime, platform, tool, database, hosting and deploy, auth, payments, email, testing, monitoring. Say in one line which pieces you left out and why.
- Add something: only the piece asked for.
- Must-haves. Deduce the hard requirements from the request and the project (country, currency, budget, who maintains it, platforms, compatibility). Show them in one line and wait for the user's OK. These drive the discard.
Step 2: candidates and discard
For each piece:
- Initial list. What you know, plus one web search for that piece to catch newer options. Consider the whole market. In "start from scratch" give no advantage to an option because the user already has it installed, connected or in a repo. In "add something" consider only options compatible with the current stack.
- Discard without the web. Drop every option that fails a confirmed must-have. If you are not sure whether an option meets one, keep it and check it during research. A search that failed (error page, 403, 404) or did not settle the question counts as not sure: keep the option.
- Show the discard in one line, marked as your own judgment, with the label translated to the session language:
Discarded (own judgment, no source): X (reason), Y (reason). - Cut to 3. If more than 3 remain, score them without the web (Step 3 scale and weights) and keep the top 3 as finalists. At most 3 finalists per piece.
Step 3: research and score the finalists
- Research only the finalists, following
references/sources.md: the official source plus at least one more. Note the source and the date of each fact. - Source line, required before scoring. For each finalist write one line:
<option>: <"official" in the session language> <url>; <"second" in the session language> <url>. In Spanish:Shopify: oficial <url>; segunda <url>. If the official source fails, write which one failed and use the next two in the order ofreferences/sources.md. A finalist without this line is not scored. Show these lines to the user under the explanation of each piece. - Score each finalist 1 to 5 on the eight criteria: fit with the use case, maturity, active maintenance, cost and hosting, scale, ease of maintenance, how well an agent codes it, development speed.
- Total = sum of each score times its weight for the project type (
references/weights.md). - Ties: the higher fit score wins; if still tied, the higher maturity score.
Step 4: check against the rules
- Global rule (
~/.claude/CLAUDE.md) contradicts the winner: choose what the rule says, and say in one line what the scale picked and why the rule wins. - Repo rule (
CLAUDE.mdorAGENTS.mdof the repo) contradicts the winner: respect the rule, unless the benefit clearly justifies the cost of migrating. When you propose breaking a repo rule, explain in detail the benefit, the cost of the migration and why it is worth it.
Step 5: show the decision
-
A short table, one row per piece: the winner with its total, and exactly one alternative with its total (the runner-up). Other finalists go in the explanation, never in the table.
Piece Choice (total) Alternative (total) Payments Option A (78) Option B (64) For the piece "library": up to 5 rows, one per function; group the rest in one line.
-
Under the table, 2 or 3 lines per piece: why the choice won and why the alternative lost. Teach, do not pad.
-
Next to every fact taken from the web, its source and the date you checked it:
(source: <url or name>, <YYYY-MM-DD>). Discards carry no source: they are your own judgment. -
Ask for approval. Nothing is written before it.
Review mode: what to report
Evaluate only the main pieces: language, runtime, framework, database, hosting, and the important direct libraries. Before reviewing libraries, propose which ones you consider important and wait for the user to confirm the list.
Flag a piece only when it is:
- unsupported or deprecated;
- abandoned: say which activity you base it on (releases, issues, commits, with dates);
- insecure: only high or critical vulnerabilities without a patch;
- a poor fit for the use case.
Never flag license or price changes.
For every runtime, framework and library, check its support status at the source before giving a severity: the official support policy or release schedule, or endoflife.date. If you cannot find it, say "support not verified" in the finding instead of guessing a lower severity.
For each finding give:
| Field | Values |
|---|---|
| Severity | High: unsupported (deprecated, end of life or archived repository count as unsupported), or an unpatched vulnerability. Medium: abandoned, or a poor fit. Low: works, but something clearly better exists. |
| Alternative | One, researched like a finalist. |
| Migration cost | Low, Medium or High, plus which parts of the project would change. |
| Recommendation | Mark "change" only when the benefit is worth the migration cost. |
Do not migrate anything. The user decides what to do with each finding.
Step 6: write STACK.md (only after approval)
Follow references/stack-md.md. Include every fact the user gave or corrected during the conversation (a version, a constraint). Before saving, reread the file: every heading, label and column name must be in the file's language; only the first line stays in English.
When the user approves:
- start from scratch: the chosen stack and why each piece was chosen;
- review what is there: the current stack and what the user decided on each finding;
- add something: the new piece and why; if
STACK.mddid not exist, the whole stack read from the project, with "reason not documented" (in the file's language) on every piece this skill did not choose.
Red flags
| Thought | Reality |
|---|---|
| "I know this one, no need to search" | Every fact in the table needs a source and a date from today's research. |
| "I'll set up the project so they can see it" | Nothing is created before approval. |
| "The scale says X, the rule is outdated" | A global rule wins. A repo rule only falls with a detailed cost-benefit case. |
| "They already use Y, so Y wins" | Not in "start from scratch". Only "add something" is bound to the current stack. |
| "Better list ten options to be thorough" | At most 3 finalists per piece. |