attach-receipts

attach-receipts is a skill for Claude Code from ayeshakhalid192007-dev/graph-engineering-crash-course. It costs 34 tokens per session (1,107 once invoked), scanned A, original, MIT.

A write-time check that adds source and run metadata to every graph edge, or refuses the edge if any required receipt is missing. An edge is a link between two graph items.

In plain words
What is it for?
It helps validate candidate edges against the declared schema version and attach source_doc, extraction_run_id, and schema_version before writing.
Why use it?
It prevents graph links from being stored without knowing which document, extraction run, and schema version produced them.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions Claude Code.

Good fit It helps validate candidate edges against the declared schema version and attach source_doc, extraction_run_id, and schema_version before writing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayeshakhalid192007-dev/graph-engineering-crash-course/attach-receipts
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 ayeshakhalid192007-dev/graph-engineering-crash-course --skill attach-receipts
Clone the repo
git clone --depth 1 https://github.com/ayeshakhalid192007-dev/graph-engineering-crash-course

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 attach-receipts

README.md
[![agentmods](https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/attach-receipts/github.svg)](https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/attach-receipts)
Your own site
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/attach-receipts"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/attach-receipts/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 attach-receipts

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/attach-receipts"><img src="https://agentmods.dev/badge/skills/ayeshakhalid192007-dev/graph-engineering-crash-course/attach-receipts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,107 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.00034 $0.01107
Opus 5 $0.00017 $0.00553
Sonnet 5 $0.00007 $0.00221
Haiku 4.5 $0.00003 $0.00111

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

Security

Grade A, and why

attach-receipts 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 9d 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.

starters/receipt-per-edge/.claude/skills/attach-receipts/SKILL.md · 96 lines

How it starts

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

attach-receipts

Turns a batch of candidate edges — each proposed alongside the metadata of the run that produced it — into written edges that carry a full receipt, or into a refusal with a stated reason. No edge gets written with a guessed or blank receipt field.

Instructions

You are a Claude Code skill implementing the receipt-per-edge pattern. A receipt is not optional metadata to fill in when convenient — it's a precondition for writing the edge at all. Follow these steps in order:

  1. Read the schema first. Open schema.example.json and note the fixed edge shape: subject, predicate, object, plus the three receipt fields source_doc, extraction_run_id, schema_version. Note what v1 and v2 each additionally require of a caused-by edge (v2 adds impact_scope). Treat this shape as fixed for the run.
  2. Read the source material. Default to sample-input.md in this kit unless the user names a different file. Pull out every write request it lists, each with its candidate edge and the run metadata attached to it.
  3. Check the schema-version-specific fields first. For each candidate edge, confirm it carries every field its stated schema_version requires (e.g. a v2 caused-by edge must carry impact_scope). If a schema-version-specific field is missing, refuse the edge and report which field and which schema version required it.
  4. Check all three receipt fields next — this is the step that must never be skipped. For every candidate edge that passed step 3, confirm source_doc, extraction_run_id, and schema_version are all present and non-empty. If any one of the three is missing, blank, or null, refuse to write that edge. Do not substitute a placeholder, do not infer a run id from context, and do not write the edge with the field left out "for now" — a missing receipt field is a hard stop, not a warning.
  5. Write every candidate edge that passed both checks, with its subject/predicate/object, any schema-version-specific fields, and all three receipt fields populated exactly as given. Write the result to output.json (or the path the user requested) in this kit's root, following schema.example.json's edge shape.
  6. Report every refused candidate edge by its subject/predicate/object and the specific missing field, alongside the written edges. A run that silently drops a refused edge without saying why has failed this step just as much as one that wrote the edge anyway.
  7. Confirm distinguishability before finishing: if more than one written edge shares the same subject/predicate/object (as write requests A and B do in this kit's scenario), check that their receipt fields alone are enough to tell them apart — different extraction_run_id, different schema_version. State this check explicitly in your output rather than assuming it.

Read the full file on GitHub · 96 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. 9d ago First seen · 96 lines · 34 tokens per session scan A 90419f09c05b

Subscribe to this mod's changes

attach-receipts is a skill published in the GitHub repository ayeshakhalid192007-dev/graph-engineering-crash-course (5 stars, last pushed 14d ago), licensed MIT. It adds 34 tokens to every session and 1,107 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.

Related

Other skills, from other repositories

building-agents

Use when building or restructuring an LLM agent — provider adapter, tool calling, structured output, RAG, agent loop, eval gate, cost routing, tracing, MCP server — model-agnostic across OpenAI/Anthropic/Gemini/OSS so a model swap is a config change. NOT vector-store SQL alone (that is postgresdb) or service…

ericrisco/rsc-harness · 85 tokens

mongodb

Use when modeling MongoDB documents (embed versus reference, the 16MB cap, bucket and subset patterns), choosing or fixing indexes (compound order by the ESR rule, partial, TTL, multikey, reading explain), writing aggregation pipelines that stay index-eligible, running multi-document transactions with retry, or…

ericrisco/rsc-harness · 118 tokens

postgresdb

Use when PostgreSQL engine behaviour decides the answer — schema and type design, index choice, reading EXPLAIN on a slow query, zero-downtime DDL and backfills, or ops (roles, RLS, pooling, vacuum, partitioning, PITR). PG16, ORM-agnostic. NOT portable query logic (that is sql), NOT a managed provider's platform…

ericrisco/rsc-harness · 91 tokens

db-migrations

Use when a schema change must ship without downtime — NOT NULL, rename, type change, or backfilling millions of live rows — for the expand-contract sequence and the lock/batching discipline that keeps each step from freezing prod. NOT lock internals or EXPLAIN (that is postgresdb), NOT drizzle-kit mechanics (that is…

ericrisco/rsc-harness · 90 tokens

firebase

Use when building on Firebase — Firestore data modeling, Security Rules, Auth and custom claims, Cloud Functions, Storage, modular Web/Admin SDK imports — including symptoms like a database open to the internet, a query rejected by rules, or a doc stuck at 1 write/sec. NOT managed-Postgres BaaS with SQL and RLS (that…

ericrisco/rsc-harness · 77 tokens

neon

Use when you have picked Neon (serverless Postgres) and need to connect correctly from a serverless or edge runtime, wire database branching into dev, preview and CI, or stop being burned by scale-to-zero cold starts and pooler limits — including choosing HTTP versus WebSocket connections and pooled versus direct…

ericrisco/rsc-harness · 93 tokens