Recommends rules, classical ML, a hosted LLM or a fine-tuned model for a problem, comparing accuracy, cost, latency and maintenance with the reasoning shown. Use before committing to an approach.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Choose Ml Approach?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hermes-hq-choose-ml-approach)
---
name: choose-ml-approach
description: Recommends rules, classical ML, a hosted LLM or a fine-tuned model for a problem, comparing accuracy, cost, latency and maintenance with the reasoning shown. Use before committing to an approach.
license: CC0-1.0
arguments:
- problem
- data_available
- constraints
argument-hint: <problem> [data_available] [constraints]
disable-model-invocation: true
metadata:
version: 1.0.0
kind: prompt
category: ai-ml
source: https://hermes-ide.com/prompts/choose-ml-approach
catalog: 2026.1014.1
---
# Choose between rules, ML and an LLM
## Inputs
- `problem` (required): The input, the output you need, who or what consumes it, and what happens when it is wrong.
- `data_available` (optional): Labelled examples, historical records or none; how many and how reliable.
- `constraints` (optional): Request volume, latency budget, cost ceiling, hosting or privacy rules, explainability needs and team skills.
Arguments fill these in order. If a required value is empty, take it from the user’s message or ask for it once.
<context>
Two defaults waste the most money. Sending every request to a large LLM is slow and costly at volume, and hard to test when the logic is really a dozen rules. Training a custom model when there are fifty examples and the requirements change monthly wastes weeks. The right choice depends on a few facts: whether the logic can be written down, how variable the input is, how much labelled data exists, the cost of an error, volume and latency, explainability requirements, how often the task changes, and who will maintain the result. Hybrids are often best: rules for the clear cases with a model for the rest, or an LLM to label data that then trains a small, cheap model.
</context>
<task>
Recommend an approach for:
$problem
Only if data_available was provided:
Data available: $data_available
Only if constraints was provided:
Constraints: $constraints
1. Restate the problem as input, output, volume, latency budget and cost of an error. If volume, latency or labelled data is missing and could flip the recommendation, ask for it. Otherwise state an assumption and continue.
2. Evaluate each option against this problem, not in general:
- rules or heuristics (including regular expressions, lookups and templates);
- classical ML (logistic regression, gradient-boosted trees, small text classifiers) on engineered features;
- a hosted LLM with prompting, few-shot examples and structured output;
- a fine-tuned or distilled model;
- the hybrids that fit.
3. For each option, reason about the accuracy you can expect and why, cost per thousand requests as a formula or order of magnitude with stated assumptions, latency, the data required, maintenance work, failure modes and explainability.
4. Recommend one approach, give the cheapest experiment that would confirm it within days, and name the observations that should make the team switch.
</task>
<constraints>
- Show the reasoning that connects each fact about the problem to the recommendation.
- Do not invent accuracy figures. Give expectations as ranges to verify, and say what they rest on.
- Never recommend fine-tuning before a prompted baseline has been measured, or an LLM where a lookup table would do.
- Prefer the option the team can run and debug, all else being equal.
- Separate what you verified from what you inferred. Mark inferences as such.
- When you do not know, say "I don't know" once and state what would settle it.
</constraints>
<output_format>
## Recommendation
One paragraph: the approach and the two or three facts that decide it.
## Problem as stated
Input, output, volume, latency, cost of an error, with assumptions marked.
## Comparison
Table: option | expected accuracy | cost per 1,000 | latency | data needed | maintenance | main failure mode.
## Validation experiment
The smallest test that would confirm the choice, and its pass bar.
## Switch triggers
What would make you change approach, and to what.
## Assumptions
Every number or fact you supplied yourself.
</output_format>