Least Privilegeのロゴ

Least Privilege

組織
runxhq
least-privilege

Review a grant against exact attributable verified receipts, identify recorded and unrecorded authority, and state the policy and usage evidence needed before narrowing it.

概要

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

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

  • どのLLMでも利用可能

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

  • 6個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/runxhq/runx/tree/main/skills/least-privilege
  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/least-privilege .claude/skills/least-privilege
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Least Privilege

Review one skill, actor or grant against a bounded set of exact receipts. The result distinguishes authority recorded in signed receipts from authority not recorded in that selection, and gives the reviewer a clear next action. It never changes a grant.

Native Runx owns receipt lookup, signature verification and authority semantics. This skill binds the review subject, checks the completeness of the supplied proof and organizes the authority evidence. It does not implement a scope parser, wildcard matcher, permission hierarchy or policy engine.

Composes

  • receipt-query#read

What the evidence can establish

The native field named exercised_scopes currently projects signed scope references and authority terms. Its source identifies that origin. Those records are not a per-operation successful-usage trace. Counts in this report count receipts recording an exact scope, not successful calls.

A scope missing from a finite receipt window may still support infrequent, reserved, recovery or compliance work. Even a recorded scope is not proved necessary. repo:write does not imply repo:read, and a wildcard cannot be replaced by the first matching string. Scope strings remain opaque here.

The current native evidence is insufficient to prove a minimal replacement grant. The runner therefore retains the entire grant, emits no executable attenuation proposal, and requests policy and representative usage review. A trustworthy narrowing proposal requires the authority owner to establish coverage and replacement semantics; do not add that mechanism to this skill.

When to use it

  • Review authority before renewal, distribution or an incident follow-up.
  • Collect exact receipt references for a scope-by-scope policy decision.
  • Identify where actual usage or reserved-purpose evidence is still missing.

Use receipt-audit to assess governance within one run, policy-draft to draft and lint a policy, and diagnose-skill-run to diagnose an execution failure. This skill neither grants new authority nor substitutes for those jobs.

Procedure and stops

  1. Supply the exact subject reference, current grant and exact receipt ids. subject must match each receipt's skill subject, actor reference or grant reference. A friendly label alone cannot establish attribution.
  2. Resolve evidence through receipt-query#read with native chain verification. Every requested id needs one verified, attributable native detail. Missing, duplicate, unverified or mismatched details stop the comparison. Unrelated receipt rows never contribute authority observations.
  3. Require a checked, intact native chain verdict with no breaks. Supplied replay rows cannot provide this proof even if their fixture labels say verified. Unknown verification remains unknown.
  4. Compare exact scope strings only. Mark each as recorded, not_recorded or defer, preserving the receipt references and native source labels.
  5. Retain the grant. With complete proof return review_required; with incomplete proof return needs_more_evidence. Name the missing policy, actual usage and observation-coverage evidence before any narrowing.

A checked chain, a sealed review receipt and an empty set of changes do not prove that a grant is minimal. Do not describe either status as safe to apply.

Inputs and result

  • subject: exact skill, actor or grant reference being reviewed.
  • granted_scopes: current scope strings, including an empty grant.
  • receipt_ids: exact receipt ids; an empty set stops for evidence.
  • objective: optional review purpose; it does not supply policy authority.
  • receipt_rows and receipt_details: supplied projections for replay only.

audit_report returns the status, subject, completeness and chain verdict, limitations, scope-by-scope recorded authority, retained_grant, not_recorded_scopes and reviewer_action. attenuation_proposals stays empty until native evidence can support a replacement. verdict is a short operator summary. The existing runx/least-privilege.audit.v1 packet is updated in place; there is no alternate contract or compatibility reader.

For a verified review of email:send and payment:spend, a receipt recording only email:send yields recorded and not_recorded, respectively. Both remain in the grant. The missing payment record is a review question, not permission to remove payment authority.

同梱ファイル

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

よくある質問

AIスキル「Least Privilege」では何ができますか?

Review a grant against exact attributable verified receipts, identify recorded and unrecorded authority, and state the policy and usage evidence needed before narrowing it.

TypingMindでLeast Privilegeを使うメリットは何ですか?

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

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

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

Least Privilegeを使えるAIモデルはどれですか?

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

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

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

AIスキル「Least Privilege」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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