Receipt Auditのロゴ

Receipt Audit

組織
runxhq
receipt-audit

Audit a sealed runx receipt for governance, comparing exercised authority and any declared approval requirement with signed evidence, and flag over-reach, approval inconsistency, unrecorded refusals, or exposed secret material.

概要

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

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

  • どのLLMでも利用可能

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

  • 5個の同梱ファイル

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

  • オープンソース

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

インストール

AIスキル「Receipt Audit」を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-audit
  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-audit .claude/skills/receipt-audit
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Receipt Audit

Audit a sealed run for authority over-reach, binding the review to its native receipt identity and verification posture.

Runx seals a receipt for every run. This skill resolves the exact receipt id through receipt-query read, which returns the Rust-owned redacted detail projection for signed authority, acts, decisions, artifacts, lineage, and verification. It answers one governance question: did the run stay inside the authority it was granted? It flags scopes exercised that were never granted, acts that claim an approval requirement or decision without matching host-attested evidence, refusals that were not recorded, and any raw secret material that leaked into the receipt. It pairs with least-privilege: that one reviews a grant from usage, this one verifies a run honored its grant.

Composes

  • receipt-query#read

What this skill does

  1. Read the proof and the acts. From the receipt, extract the granted authority (the proof) and the scopes the acts actually exercised.
  2. Diff exercised against granted. Any exercised scope not covered by the proof is over-reach.
  3. Check declared approval. When an act's authority or effect evidence says exact approval was required, the receipt must carry the matching host-attested decision. A routine write inside its admitted grant does not acquire an approval requirement merely because it changed provider state.
  4. Check exposure. The receipt must carry only hashed material references; a raw secret in the receipt is a leak.
  5. Verdict. clean, anomaly, or needs_more_evidence, with the exact findings and a recommendation for each anomaly.

Core principles

  • The receipt is the evidence. Audit what the receipt records, not what the skill claims it did.
  • Granted is the ceiling. Exercised authority must be a subset of the proof; anything beyond is over-reach, full stop.
  • Approval follows the act contract. Missing or mismatched approval is an anomaly only when the signed authority/effect evidence required that exact decision. Never infer human-approval policy from a write-shaped verb.
  • No raw material. A receipt must reference material by hash; raw credential material in a receipt is a leak, not a convenience.
  • Absence of evidence is not clean. With no receipt or an unattributable one, return needs_more_evidence, never clean.

When to use this skill

  • Post-run governance audit of a sealed, successful run.
  • Spot-checking that a skill honored its authority bound in production.
  • Before promoting a skill toward a higher trust posture.

When not to use this skill

  • To diagnose a failed run and propose a fix. That is diagnose-skill-run (failure-to-improvement). This skill audits a sealed run for over-reach (success-to-governance); the two are different lenses on a receipt.
  • To review a grant before narrowing it. Use least-privilege; recorded authority alone does not prove successful usage or a safe replacement.

Diagnostics

  • receipt.authority.over_reach (error): an exercised scope is not covered by the authority proof.
  • receipt.approval.inconsistent (error): an approval-bound act lacks its matching host-attested decision, or the recorded decision does not match the exact act.
  • receipt.refusal.unrecorded (warning): a denied request is not reflected as a sealed refusal.
  • receipt.material.exposed (error): raw credential material appears in the receipt instead of a hash reference.
  • receipt.clean (info): exercised authority is within the grant, every declared approval requirement is satisfied, and no material is exposed.

Procedure

  1. Resolve receipt_id through the native ledger, load its native redacted detail, and verify the matched tree when keys are available. Treat a provided receipt_summary as supplemental context, never the primary live evidence.
  2. Extract the authority proof, granted scopes, acts, approvals, refusals, material references, and receipt signature metadata.
  3. Normalize exercised scopes from the acts and compare them with the granted scopes. Exercised must be a subset of granted.
  4. Identify acts whose signed authority/effect evidence explicitly required approval. Confirm each has one matching host-attested approval decision. Do not treat an ordinary write scope as an implicit approval requirement.
  5. Check that denied requests appear as sealed refusals when the receipt records the attempt.
  6. Scan receipt-visible material for raw credentials or secret-bearing payloads.
  7. Return a verdict with findings, recommendations, and the success checkpoint.

Edge cases and stop conditions

  • Missing receipt: return needs_more_evidence; never infer a clean run.
  • Unattributable receipt: return needs_more_evidence when the receipt cannot be tied to the run under audit.
  • Malformed proof: return needs_more_evidence unless enough normalized grant data is supplied separately.
  • Unknown scope name: treat it as over-reach unless the grant explicitly covers it.
  • Approval-bound act without matching decision: emit receipt.approval.inconsistent even if the provider operation succeeded.
  • Granted routine write without an approval requirement: audit authority, idempotency, provider evidence, and finality normally; the absent approval is not a finding.
  • Raw token, key, or credential in the receipt: emit receipt.material.exposed and recommend revocation/rotation.

Output

receipt_audit is the runx/receipt-audit.audit.v1 packet: the decision (ready or needs_more_evidence), the receipt id, granted and exercised scopes, recorded refusals, findings with their severity, the verdict (clean, anomaly or needs_more_evidence), its rationale, recommendations and the success checkpoint.

A clean verdict requires zero error findings.

Worked example

A sealed run was granted repo:read. The receipt shows the acts exercised only repo:read and material is referenced by hash. Exercised is a subset of granted, no declared approval is unresolved, and no material is exposed: verdict: clean. Had an act exercised repo:write while the proof granted only repo:read, that would raise receipt.authority.over_reach and a verdict: anomaly with a recommendation to revoke the run's grant and investigate. Conversely, a run granted repo:write is not anomalous solely because it has no approval record; approval is checked only if that exact act's signed contract required it.

Inputs

  • receipt_id (optional): the receipt id to audit.
  • receipt_summary (optional): a sanitized receipt or its acts/proof summary when the full receipt is not available.
  • granted_scopes (optional): the authority the run was granted, when not derivable from the receipt alone.
  • objective (optional): operator intent that focuses the audit.
  • receipt_rows (optional): native-projection rows for deterministic replay; live runs resolve receipt_id from the configured receipt store.
  • receipt_details (optional): native redacted detail projections for deterministic replay only.

At least one of receipt_id or receipt_summary is required; with neither, the skill returns needs_more_evidence.

Agent task contracts

receipt-audit

Audit one run for authority over-reach, inconsistent declared approval, unrecorded refusal, or exposed material. Native ledger evidence proves receipt identity, verification posture, signed authority, approval decisions, acts, artifacts, and lineage through its redacted detail projection. Treat receipt_summary and granted_scopes as supplemental operator context only. If a receipt id is not resolved, or native detail is insufficient, return needs_more_evidence rather than clean. Do not infer an approval requirement from a write-shaped verb. Do not repair the skill or mutate the ledger.

同梱ファイル

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

よくある質問

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

Audit a sealed runx receipt for governance, comparing exercised authority and any declared approval requirement with signed evidence, and flag over-reach, approval inconsistency, unrecorded refusals, or exposed secret material.

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

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

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

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

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

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

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

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

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

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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