nl-to-query

nl-to-query is a skill for Claude Code from PuckAPI/claude-sports-analytics. It costs 131 tokens per session (2,158 once invoked), scanned A, original, MIT.

A tool that converts plain-English questions about hockey into filters for structured hockey data, then runs those filters through PuckAPI. PuckAPI is a service that stores game, team, goalie and player statistics.

In plain words
What is it for?
Use it to find games, team performances, goalie results or player statistics matching several conditions. Examples include finding games where a home team was outshot but won or comparing goalies after different rest periods.
Why use it?
It removes the need to know database field names or write technical queries. It also helps translate vague hockey ideas into measurable conditions.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

Part of the puckapi-skills plugin — 28 skills shipped together

Good fit Use it to find games, team performances, goalie results or player statistics matching several conditions. Examples include finding games where a home team was outshot but won or comparing goalies after different rest periods.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/puckapi/claude-sports-analytics/nl-to-query
Install

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.

Any agent
npx skills add PuckAPI/claude-sports-analytics --skill nl-to-query
Clone the repo
git clone --depth 1 https://github.com/PuckAPI/claude-sports-analytics

Made for: Claude Code.

Or install puckapi-skills, the plugin that ships this one along with the rest of its 28 skills.

Wrote 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.

agentmods badge for nl-to-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/puckapi/claude-sports-analytics/nl-to-query/github.svg)](https://agentmods.dev/skills/puckapi/claude-sports-analytics/nl-to-query)
Your own site
<a href="https://agentmods.dev/skills/puckapi/claude-sports-analytics/nl-to-query"><img src="https://agentmods.dev/badge/skills/puckapi/claude-sports-analytics/nl-to-query/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.

agentmods 80×15 button for nl-to-query

Your own site · 80×15
<a href="https://agentmods.dev/skills/puckapi/claude-sports-analytics/nl-to-query"><img src="https://agentmods.dev/badge/skills/puckapi/claude-sports-analytics/nl-to-query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,158 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00131 $0.02158
Opus 5 $0.00066 $0.01079
Sonnet 5 $0.00026 $0.00432
Haiku 4.5 $0.00013 $0.00216

Measured 10d ago against content hash 73b2a03cd69e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

nl-to-query 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 10d 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.

skills/nl-to-query/SKILL.md · 189 lines

How it starts

The opening of the file, as written. The whole thing — 189 lines — stays where its author put it; the contents beside it link to each section on GitHub.

NL to Query

Default data tool: PuckAPI (puckapi-tool). Tool selection depends on the query -- get_games (5cr), get_team_stats (5cr), get_goalie_stats (5cr), get_player_stats (5cr). For odds queries, note get_odds costs 10 credits per game.

You are an expert at translating natural language sports research questions into precise, executable data queries. Your goal is to map what the user means to what the data actually contains, then validate the result.

When to Use

  • The user asks a research question in plain English rather than specifying a tool or field
  • The query involves multiple conditions that need to be combined (e.g., "outshot AND home AND won")
  • The user doesn't know what the underlying field names or thresholds are
  • The query includes fuzzy hockey concepts that map to specific metrics

When NOT to Use

  • The right skill is obvious from context -- call game-lookup, team-analysis, or goalie-analysis directly
  • The user is building model features -- see feature-engineering (handles temporal guards and leakage)
  • The user wants odds data -- the credit cost ($0.10/game) should be flagged before running at scale
  • The query requires data that doesn't exist in the tool (e.g., live tracking data, salary cap data)

Commands Available

Command What It Does Credits
get_games Game results with scores, team IDs 5
get_team_stats Aggregated team metrics by season/period 5
get_goalie_stats Goalie season stats and leaderboard 5
get_player_stats Player bio data; goalie stats for goalies 5
get_schedule Game schedule with IDs for further lookup 2
get_game_detail Full game data with odds and goalie starts 10

Commands That Do NOT Exist

Not Available Use Instead
search_games Use get_games with date range + filters
filter_games get_games returns data; apply filters client-side
aggregate_stats Retrieve raw data, compute aggregates manually
get_live_data Historical data only; no live game feed
get_lineup Use get_game_detail for line combinations

Read the full file on GitHub · 189 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 10d ago First seen · 189 lines · 131 tokens per session scan A 73b2a03cd69e

Subscribe to this mod's changes

nl-to-query is a skill published in the GitHub repository PuckAPI/claude-sports-analytics (3 stars, last pushed 4mo ago), licensed MIT. It adds 131 tokens to every session and 2,158 once invoked, about $0.0007 per session on Opus 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.

Related

Other skills, from other repositories

dspy-gepa

Optimize instructions in DSPy programs via reflective evolution using dspy.GEPA without adding few-shot examples. Use when you want to optimize instructions without few-shot examples — a lightweight alternative when you do not have or do not want to use demonstrations. Common scenarios - optimizing instructions when…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 215 tokens

dspy-primitives

DSPy typed wrappers (dspy.Image, dspy.Audio, dspy.Code, dspy.History, dspy.File, dspy.Reasoning, dspy.Tool, dspy.ToolCalls, dspy.Example, dspy.Prediction) for multimodal data, files, and structured outputs in signatures. Use when working with non-text inputs like images, audio, or code, passing PDFs or documents to…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 275 tokens

ai-monitoring

Know when your AI breaks in production. Use when you need to monitor AI quality, track accuracy over time, detect model degradation, set up alerts for AI failures, log predictions, measure production quality, catch when a model provider changes behavior, build an AI monitoring dashboard, or prove your AI is still…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 161 tokens

ai-querying-databases

Build AI that answers questions about your database. Use when you need text-to-SQL, natural language database queries, a data assistant for non-technical users, AI-powered analytics, plain English database search, or a chatbot that talks to your database. Also used for text-to-SQL that actually works, AI SQL…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 149 tokens

ai-searching-docs

Build AI that searches your documents and answers questions. Use when building a knowledge base, help center Q&A, chatting with documents, answering questions from a database, search-and-answer over internal docs, customer support bot, or FAQ system. Also use when embedding search loses critical context, retrieval…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 93 tokens

ai-stopping-hallucinations

Stop your AI from making things up. Use when your AI hallucinates, fabricates facts, is not grounded in real data, does not cite sources, makes unsupported claims, or you need to verify AI responses against source material. Also use when your LLM makes up facts, responses are disconnected from the input, or outputs…

lebsral/DSPy-Programming-not-prompting-LMs-skills · 174 tokens