matching-references

matching-references is a skill for Claude Code from chrisgagne/grounded-forge. It costs 42 tokens per session (956 once invoked), scanned A, original, MIT.

A source-matching tool that finds relevant material in a document collection for a topic, situation, or concept.

In plain words
What is it for?
Use it to locate relevant documents and their distilled guidance when preparing research or making a decision.
Why use it?
It reduces the time spent searching through a large collection and explains why each suggested source may fit.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the grounded-forge plugin — 12 skills, 2 agents, 1 hook shipped together

Good fit Use it to locate relevant documents and their distilled guidance when preparing research or making a decision.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/chrisgagne/grounded-forge/matching-references
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 chrisgagne/grounded-forge --skill matching-references
Clone the repo
git clone --depth 1 https://github.com/chrisgagne/grounded-forge

Made for: Claude Code.

Or install grounded-forge, the plugin that ships this one along with the rest of its 12 skills, 2 agents, 1 hook.

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 matching-references

README.md
[![agentmods](https://agentmods.dev/badge/skills/chrisgagne/grounded-forge/matching-references.svg)](https://agentmods.dev/skills/chrisgagne/grounded-forge/matching-references)
Your own site
<a href="https://agentmods.dev/skills/chrisgagne/grounded-forge/matching-references"><img src="https://agentmods.dev/badge/skills/chrisgagne/grounded-forge/matching-references.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 956 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.00042 $0.00956
Opus 5 $0.00021 $0.00478
Sonnet 5 $0.00008 $0.00191
Haiku 4.5 $0.00004 $0.00096

Measured 8d ago against content hash 913e80e58968, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

matching-references 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 8d 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.

.claude/skills/matching-references/SKILL.md · 55 lines

How it starts

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

Matching References

Identifies which sources in the corpus address a given query topic, situation, or concept. The skill returns a list of candidate sources with one-line justifications, naming the distillation(s) that project each source onto the task axes the app ships.

Distillations are the source-grounded product. The reference tier (light + deep) lives at corpus level as the audit-of-record but does not travel with the compiled app, so this skill returns distillation paths rather than reference paths.

Path convention. Every path in this skill is written from the app's perspective: ./distillations/{task}/{slug}-{task}.md, ./concept-index.json, ./slug-table.json. The distillations directory and the runtime JSON indexes sit at the app root.

Retrieval order

  1. Runtime listener tables in the distillation index for the task at hand (./distillations/{task}/{TASK}-DISTILLATION-INDEX.md, per-phase listener sections; the .md view is the authoritative source for listener tables: the task-index.json runtime form carries only the phase-routing rows, not the listener tables). Check first when the query carries observable triggers: an utterance, a dynamic, a signal the practitioner noticed in the room ("the team keeps saying X", "we're stuck on Y", "someone keeps doing Z"). Skip this step on task axes whose spec carries no field-2a seed table.
  2. Phase-routing tables in the task-axis index (./distillations/{task}/task-index.json, rows field). Use when the query is at the level of a phase or situation type ("we're in the contributing-factor-analysis phase", "this is a stakeholder-management question") rather than an observable trigger.
  3. Concept axis (./concept-index.json) for named-concept lookups: aliases collapsed, per-source {id, context} pointers, cross-source coverage at a glance.
  4. Slug-table scan (./slug-table.json) for named-source / author / title lookups when the user names a specific work or author. Resolve the slug-ID to distillation paths via ./distillations/{task}/{slug}-{task}.md for each task the app ships.
  5. No-coverage is honest: if none of the above surfaces a match, say so plainly rather than fabricate from training.

Read the full file on GitHub · 55 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. 8d ago First seen · 55 lines · 42 tokens per session scan A 913e80e58968

Subscribe to this mod's changes

matching-references is a skill published in the GitHub repository chrisgagne/grounded-forge (7 stars, last pushed 17d ago), licensed MIT. It adds 42 tokens to every session and 956 once invoked, about $0.0002 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.