Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add zpower426/datapowers --skill model-selectiongit clone --depth 1 https://github.com/zpower426/datapowersWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/zpower426/datapowers/model-selection)<a href="https://agentmods.dev/skills/zpower426/datapowers/model-selection"><img src="https://agentmods.dev/badge/skills/zpower426/datapowers/model-selection/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/zpower426/datapowers/model-selection"><img src="https://agentmods.dev/badge/skills/zpower426/datapowers/model-selection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00031 | $0.02068 |
| Opus 5.5 | $0.00012 | $0.00827 |
| Sonnet 5.5 | $0.00006 | $0.00414 |
| Haiku 4.5 | $0.00003 | $0.00207 |
Grade A, and why
model-selection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Model Selection
Systematic selection of the best model through baseline comparison and rigorous hyperparameter optimization.
Iron Law: NO HYPERPARAMETER TUNING WITHOUT BASELINE COMPARISON FIRST. METRIC MUST MATCH BUSINESS OBJECTIVE.
Do NOT begin model selection if test-driven-data-science has not been run. Check the manifest:
manifest = read_manifest()
assert manifest["data_validation"].get("decision") not in (None, "BLOCKED"), \
"BLOCKED: test-driven-data-science must PASS before model selection. Run it first."
Checklist
- Confirm correct metric — must match task type and business objective
- Establish dummy baseline — minimum bar any model must beat
- Train 4 baseline models — without tuning
- Cross-validate all baselines — stratified k-fold, log all results
- Statistical comparison — Wilcoxon test on CV scores
- Select top 2 candidates — for hyperparameter optimization
- Run Bayesian HPO — Optuna, minimum 50 trials, log to MLflow
- Final model selection — based on CV score, NOT test set
- Document selection rationale — model choice + justification
Step 1: Choose the Right Metric
| Task | Metric (Primary) | Metric (Secondary) | Never Use |
|---|---|---|---|
| Binary classification, balanced | F1 | AUC-ROC | — |
| Binary classification, imbalanced | F1-macro or PR-AUC | Recall | Accuracy alone |
| Multi-class classification | F1-macro | — | Accuracy alone |
| Regression | RMSE | MAE, R² | R² alone |
| Ranking | NDCG | MAP | Accuracy |
| Time series | MAPE or SMAPE | RMSE | R² |
# For imbalanced classification: always check the ratio first
minority_ratio = df[target].value_counts(normalize=True).min()
if minority_ratio < 0.20:
print(f"⚠️ Imbalanced dataset ({minority_ratio:.1%} minority)")
print("Primary metric: F1-macro or PR-AUC — NOT accuracy")
PRIMARY_METRIC = 'f1_macro'
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 234 lines · 31 tokens per session scan A 7097e4f90341
model-selection is a skill published in the GitHub repository zpower426/datapowers (1 stars, last pushed 8mo ago), licensed MIT. It adds 31 tokens to every session and 2,068 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
model-selection compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| model-selectionzpower426/datapowers | Skill | 1 | 8mo ago | MIT | A | 31 | Claude Code |
| local-llmTserenTserenov/FMT-exocortex-template | Skill | 65 | yesterday | MIT | A | 78 | Claude Code |
| llm-app-patternsdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 54 | Claude Code, Codex |
| multimodal-blip-2davila7/claude-code-templates | Skill | 35k | today | MIT | A | 52 | Claude Code, Codex |
| post-training-grpo-rl-trainingdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 28 | Claude Code, Codex |
| emerging-techniques-long-contextdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 78 | Claude Code, Codex |
| emerging-techniques-model-pruningdavila7/claude-code-templates | Skill | 35k | today | MIT | A | 74 | Claude Code, Codex |