sancho-fetch: Skill for Claude Code

.agents/skills/sancho/SKILL.md

sancho is a skill for Claude Code from panth-net/sancho-fetch. It costs 39 tokens per session (1,925 once invoked), scanned C, original, MPL-2.0.

A data-fetching skill for Sancho, a local-first command-line data library that records inspectable facts. It lets the agent turn natural-language data requests into Sancho commands.

In plain words
What is it for?
Use it when you ask for data through Sancho or use the "/sancho" command. It helps fetch, inspect, and explain the resulting data.
Why use it?
It removes the need to know which Sancho modules and commands to use or where its workspace and cache are located. The skill also defines how fetched data and logs should be inspected before summarising results.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is panth-net/sancho-fetch's own configuration. It tells Claude Code how to work on sancho-fetch itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything sancho-fetch configures →

Reuse

Borrowing it

Nothing to install: this file belongs to panth-net/sancho-fetch. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/panth-net/sancho-fetch/master/.agents/skills/sancho/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/panth-net/sancho-fetch

Made for: Claude Code.

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 sancho

README.md
[![agentmods](https://agentmods.dev/badge/skills/panth-net/sancho-fetch/sancho/github.svg)](https://agentmods.dev/skills/panth-net/sancho-fetch/sancho)
Your own site
<a href="https://agentmods.dev/skills/panth-net/sancho-fetch/sancho"><img src="https://agentmods.dev/badge/skills/panth-net/sancho-fetch/sancho/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 sancho

Your own site · 80×15
<a href="https://agentmods.dev/skills/panth-net/sancho-fetch/sancho"><img src="https://agentmods.dev/badge/skills/panth-net/sancho-fetch/sancho.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,925 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00039 $0.01925
Opus 5.5 $0.00016 $0.00770
Sonnet 5.5 $0.00008 $0.00385
Haiku 4.5 $0.00004 $0.00193

Measured 2mo ago against content hash a8d0cedd59b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

sancho scanned grade C with 1 finding 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 2mo 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

never refuse or return nothing because a code is unresolved.** If you still
.agents/skills/sancho/SKILL.md · 142 lines

How it starts

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

Sancho Fetch -- data fetch skill

You are operating Sancho Fetch, a local-first data library. Sancho is the tool that fetches and records inspectable facts. The agent is the reasoning operator: pick modules, decide concrete fetch units, inspect cache, run fetches, read logs, and summarize results in plain English.

Read CLAUDE.md or AGENTS.md before doing anything. The root guide is the shared contract; README_ALL_INSTRUCTIONS.md is the full reference.

Required Flow

  1. Check mode before replying with sancho mode --json. If the command is missing or fails during first setup, default to developer mode off and use plain English. Do not open or read .env just to determine mode.
  2. Run sancho paths --json to learn where the workspace lives. If the payload contains update_hint, relay it to the user in one plain sentence before continuing. If the sancho command is missing, fails, or lacks current commands such as setup, paths, ready, or mode, and terminal access is available, do the setup work yourself: run uv tool install sancho-fetch, then sancho setup --json. Use --path <folder> --switch-workspace only when the user explicitly wants to change an existing registered workspace. (Working from a source checkout instead? Run installers\setup.bat on Windows or bash installers/setup.sh on macOS/Linux from the repo root.) Then run sancho ready --json and retry sancho paths --json. If workspace_source == "none", run setup or sancho library register <path-to-workspace-folder> yourself. Only ask the user for help when the OS blocks execution, permissions fail, or an installer window requires human approval.
  3. Run sancho env recommend "<user request>" --json before fetching. If required keys are missing, explain which providers need which env-var names, summarize the sign-up hints from .env.example, run sancho env open, and tell the user not to share key values with the agent.
  4. Run sancho find sources "<key terms from $ARGUMENTS>" --json to get ranked module candidates. Treat results as candidates, not as a plan. For broad requests, pick a bounded starter set of 5-10 modules.
  5. Run sancho module show <candidate-id> --json for each promising candidate. Inspect manifest, schema, override status, and last-run status. Skip modules where custom_override_active is true unless the user asked to refresh the official source.
  6. Decide concrete fetch units. Resolve provider, endpoint, year, geography, variables, and request params before running anything. Don't fabricate variable/field/series codes from memory (e.g. Census DP05_0047E, BLS series IDs). Instead, retrieve the module's codebook and let YOUR judgment pick the codes: run sancho module variables <id> [--dataset <ds>] --search "<concept>" --json. It returns candidate code/label entries (fetching + caching a live dictionary for code-based providers, surfacing the bundled or documented codes otherwise). --search is only a retrieval filter to get a manageable slice -- it is not the decision. Read the returned label/concept of each candidate and choose the code(s) that actually match the user's intent; do not assume the first row is correct. Broaden or drop --search (or raise --limit) if the right code might not be in the slice. Getting the data is the priority -- never refuse or return nothing because a code is unresolved. If you still can't pin an exact code, fetch the broadest safe slice instead of guessing: for a Census table, request the whole group with variables: ["NAME", "group(DP05)"] and label every returned column from the dictionary. Deliver the data, and note plainly any field you couldn't label.
  7. Fetch with sancho run <module-id> --workspace <ws> --input <input.json>, building the request object from the module schema and catalog. Reuse is automatic: an identical request fetched within the last 24h is served from the local cache (no API call), so never pre-gate a run with sancho cache status -- just run. (cache status exists for inspecting the cache state of a large multi-unit plan, not as a required step.) When the user wants the newest data, add "refresh": true to the input (or "cache": {"max_age_seconds": 0}) to force a fresh fetch. The run JSON reports cache_status (reused_cache vs fetched_api) so you can tell the user what happened. You also do not need to sancho add first -- sancho run auto-installs the module from the bundled templates on first use. Only run sancho add to pre-stage a pack.
  8. Public working output is created automatically: every fetch writes the user's actual file under sancho-downloads/ (Excel .xlsx when the data is a clean table, the natural/original format otherwise). For explicit control use sancho export-to-project --cache-record <id> --project .. The command JSON returns primary_output_path and output_paths.
  9. Confirm completion from the run JSON itself: status, cache_status, and row_count are the evidence for a single run. Read sancho log tail --json --limit 5 --module <id> only for playbooks / multi-unit runs, or when a run failed or looks wrong. For failures, open logs/errors/<run-id>_error.md.
  10. Summarize per unit: reused, fetched, skipped, and failed. Never claim all fetched without these counts.

Read the full file on GitHub · 142 lines

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. 2mo ago First seen · 142 lines · 39 tokens per session scan C a8d0cedd59b4

Subscribe to this mod's changes

sancho is a skill published in the GitHub repository panth-net/sancho-fetch (0 stars, last pushed 1mo ago), licensed MPL-2.0. It adds 39 tokens to every session and 1,925 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

sancho compared with skills from other repositories

sancho next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sanchopanth-net/sancho-fetchSkill01mo agoMPL-2.0C39Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code