Logo di Receipt Query

Receipt Query

Organizzazione
runxhq
receipt-query

Retrieve bounded receipt evidence by exact ids or explicit filters, returning native verification results for downstream review.

Panoramica

Pubblicato darunxhq
Repositoryrunx
Nome della skillreceipt-query
Stelle
105
Fork
109
File inclusi
6
LicenzaApache-2.0
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 6

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da runxhq su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Receipt Query in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/runxhq/runx/tree/main/skills/receipt-query
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/runxhq/runx.git /tmp/runx
mkdir -p .claude/skills
cp -r /tmp/runx/skills/receipt-query .claude/skills/receipt-query
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Receipt Query in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Receipt Query non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Receipt Query non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Receipt Query

Collect the exact signed run evidence a reviewer needs, using explicit receipt ids or bounded filters. Native Runx owns receipt lookup and verification; this skill normalizes the query and returns a reusable evidence packet. It is read-only.

The question records the review purpose. It is not translated into hidden filters: amount thresholds, business totals, scope searches and arbitrary natural-language conditions are not implemented by this runner. Supply the supported filter fields, then pass the resulting evidence to the appropriate review skill.

What this skill does

receipt-query applies an explicit bounded query over receipt ids, principal, skill, outcome, and time range, then returns the receipts that satisfy it as id-keyed stubs (receipt_id, skill, outcome, created_at, verification status). Exact-id reads also return receipt_details from the native redacted inspection projection: signed authority, decisions, acts, artifact references, lineage, issuer type, seal criteria, and verification without execution bodies, credential material, or local paths. When proof asks for it, the skill returns the native tree-verification verdict and findings. A requested check is not a successful check: an unknown or failed verdict stays unknown or failed. The deterministic summary reports matched receipt count and verification status, not a synthesized business answer. Zero matches return needs_more_evidence.

Exact-id stubs preserve the native subject_uri even when no skill label is available. Detail retains issuer_type and seal_criteria: a failed output contract is still visible when a step has no act. A verified local issuer means the Runx home signed the receipt; it does not establish an independent operator or provider attestation. Missing replay fields stay unknown.

The default read runner invokes the native receipt.query service directly. The service resolves the same receipt store and signature policy as Runx's CLI, projects bounded history rows, resolves exact ids through the redacted detail reader, and optionally verifies each matched receipt tree. There is no child process, command-string construction, or package-local receipt parser. It is the in-runtime way for an agent to inspect its own sealed receipts before a gated action. The detail packet is curated in Rust and never returns execution bodies, credential material, or local paths.

The read runner accepts optional receipts and receipt_details inputs for replay or controlled evaluation. When present it uses those projections instead of the native store. Replay is labelled as supplied evidence and never becomes a live proof path.

It retrieves evidence across many runs; receipt-audit assesses governance against an exact receipt and its authority baseline. Its nearest neighbor is run-history, which also reads the ledger but returns deterministic platform outcome and catalog-coverage metrics and routes them to governance lanes. receipt-query answers one precise audit question with the receipt ids that match and a verified chain walk, not an aggregate health report.

When to use this skill

  • A reviewer needs the receipts for an exact run or a bounded skill, actor, outcome, issuer or time window.
  • A review needs the set of receipts that match a condition before drilling into any single one.
  • A compliance check needs proof that a stretch of ledger history is unbroken.

When not to use this skill

  • To audit whether one run stayed inside its grant. Use receipt-audit; that is the integrity-of-one-chain question, not the cross-run history question receipt-query answers.
  • To review a grant before narrowing it. Use least-privilege.
  • For a graded platform-health report over many runs. Use run-history.
  • To mutate, redact, export, or archive receipts. This skill is read-only and refuses any write framing.
  • To return receipt bodies, act payloads, or any secret-bearing field. Matched receipts are id stubs only.

Procedure

  1. Read the question. With no question, return needs_agent.
  2. Resolve the filter into a bounded query: principal handle, skill, outcome set, and time_range. An absent filter uses the bounded default limit; the prose question never adds a filter.
  3. Match receipts against the query and collect id-keyed stubs only. Receipt bodies, act payloads, proofs, and material refs stay out of the output.
  4. With zero matches, return needs_more_evidence and name the query that found nothing.
  5. When proof requests chain verification, take the chain verdict from the engine's tree-rooted native proof report, not a hand-rolled link walk: intact follows the report's overall validity, and each break is derived from a tree's missing parent or a verification finding, named by the receipt ids involved. The engine checks signatures against this home's own key and any configured verify key; a receipt no trusted key signed is a break, never silently intact. When the proof is bounded out, the chain is reported unverified (checked: true, intact: null). When proof is absent, set chain_verification.checked to false and leave intact null.
  6. Return the deterministic summary of matched count and native verification from the matched set and the verification result only. The question states the purpose; do not generalize from the matched slice to the whole ledger.
  7. Return the ledger_answer with decision: answered.

Edge cases and stop conditions

  • No question: return needs_agent; there is nothing to query.
  • No matching receipts: return needs_more_evidence with the resolved query, so the gap is the query, not a silent zero. Silence is a stop, not a zero.
  • Filter references an unknown principal or skill: treat as zero matches and return needs_more_evidence; do not guess a near match.
  • Chain break found: keep decision: answered but set chain_verification.intact false and list the breaking id pairs from the verify report; an intact answer set with a broken chain is still a reportable result.
  • Verify keys absent: report chain_verification.intact null with checked: true; the chain is unverified, not intact.
  • Verification requested over an empty match set: the stop is needs_more_evidence for the match, not a chain claim over nothing.
  • Write, delete, or reseal requests: this read runner cannot perform them. Its sole native query scope is receipt.read; prose does not grant a write.

Output

The whole result is the runx/receipt-query.answer.v1 packet:

  • ledger_answer: the decision (answered, needs_agent, needs_more_evidence or refused), the audit question restated in operational terms, and the resolved filter actually run, so the answer reproduces.
  • matched_receipts: id-keyed stubs only, never a receipt body.
  • receipt_details: exact-id reads only, Rust-curated, bounded and redacted.
  • chain_verification: whether verification was requested, whether the chain is intact (null when unchecked) and each break.
  • summary: one or two sentences answering the question.

Scope is receipt.read only; no gate is required because the skill cannot mutate, and a delete, redact, reseal, or reorder request is refused, not gated. The run's own receipt carries the question, the resolved query, the matched count, the list of matched receipt_id values, and the chain-verification result; it carries no matched receipt body, principal PII, or secret material. Matched receipts are always referenced by id.

Worked example

Input:

yaml
question: Collect receipt evidence for the campaign review.
receipt_ids: [rx_101, rx_102]
proof:
  verify_chain: true

The runner returns the matched id stubs, redacted native details and the native verification verdict. Missing ids remain absent; the caller must compare the requested ids with the matched set before relying on the evidence. A failed, unknown or bounded-out verification verdict cannot support a claim of intact proof. Supplying replay projections returns an unknown chain verdict even when the fixture labels its rows verified.

Inputs

  • question (optional): the audit question bounding the ledger read. Without one the runner returns needs_agent and does not query.
  • filter (optional): JSON narrowing the query by principal, skill, outcome, time_range (from/to), and limit (default 500, maximum 5000).
  • receipt_ids (optional): up to 100 exact receipt ids to resolve and verify.
  • proof (optional): JSON requesting chain verification over the matched receipts, for example { "verify_chain": true }.
  • receipts (optional): explicit ledger rows for replay or controlled evaluation; when present the read runner does not query live native history.
  • receipt_details (optional): explicit native redacted detail projections for deterministic replay only.

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Receipt Query?

Retrieve bounded receipt evidence by exact ids or explicit filters, returning native verification results for downstream review.

Perché usare Receipt Query su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Receipt Query è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Receipt Query in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/runxhq/runx/tree/main/skills/receipt-query. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Receipt Query?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Receipt Query?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Receipt Query: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Receipt Query è gratuita?

Sì. È pubblicata su GitHub da runxhq con licenza Apache-2.0. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇