Least Privilege logo

Least Privilege

Organization
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.

Overview

Publisherrunxhq
Repositoryrunx
Skill nameleast-privilege
Stars
105
Forks
109
Bundled files
6
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by runxhq on GitHub. Read the source before you install it.

Installation

Install the Least Privilege AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/runxhq/runx/tree/main/skills/least-privilege
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Least Privilege in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Least Privilege on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Least Privilege is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Least Privilege AI skill do?

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

Why use Least Privilege on TypingMind?

Because you install it once and use it with any model. Least Privilege is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Least Privilege in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/runxhq/runx/tree/main/skills/least-privilege. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Least Privilege?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Least Privilege?

As many as you like. As long as a model supports skills, you can use Least Privilege with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Least Privilege AI skill free?

Yes. It is published on GitHub by runxhq under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇