Receipt Queryのロゴ

Receipt Query

組織
runxhq
receipt-query

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

概要

公開者runxhq
リポジトリrunx
スキル名receipt-query
スター
105
フォーク
109
同梱ファイル
6
ライセンスApache-2.0
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 6個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    runxhqがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Receipt Query」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/runxhq/runx/tree/main/skills/receipt-query
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでReceipt Queryを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にReceipt Queryを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Receipt Queryは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Receipt Query」では何ができますか?

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

TypingMindでReceipt Queryを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Receipt Queryはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにReceipt Queryをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/runxhq/runx/tree/main/skills/receipt-queryを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Receipt Queryを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Receipt Queryで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもReceipt Queryを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Receipt Query」は無料ですか?

はい。runxhqがApache-2.0ライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇