org-policy

org-policy is a command for Claude Code from rjwalters/kicad-tools. It costs 23 tokens per session (3,572 once invoked), scanned A, original, MIT.

A command for previewing or installing shared GitHub organization preferences from a central repository into an owner's special .github repository. It combines shared defaults with optional organization-specific settings and can open an authorized pull request.

In plain words
What is it for?
It is for previewing effective policy, checking drift, and installing the resulting policy through a confirmed pull request.
Why use it?
It helps keep organization settings consistent and shows differences before publishing changes.

Command for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 .claude/skills/repo/scripts/repo-org-policy.py plan \.

Good fit It is for previewing effective policy, checking drift, and installing the resulting policy through a confirmed pull request.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools
agentmods
npx agentmods add commands/rjwalters/kicad-tools/org-policy

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for org-policy

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjwalters/kicad-tools/org-policy/github.svg)](https://agentmods.dev/commands/rjwalters/kicad-tools/org-policy)
Your own site
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/org-policy"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/org-policy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for org-policy

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/org-policy"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/org-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,572 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00023 $0.03572
Opus 5.5 $0.00009 $0.01429
Sonnet 5.5 $0.00005 $0.00714
Haiku 4.5 $0.00002 $0.00357

Measured 1mo ago against content hash e35f994f4086, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

org-policy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/repo/org-policy.md · 281 lines

How it starts

The opening of the file, as written. The whole thing — 281 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/repo:org-policy — Organization Preferences

Manage an organization's policy from any of its client repositories. The authoritative files live in rjwalters/repo, on its default branch:

  • policies/default.json: shared defaults.
  • policies/organizations/<lowercase-owner>.json: optional owner overrides.

Objects merge recursively; arrays and scalar values replace the shared value. Use the same convention for a personal GitHub account. Change preferences in the canonical source, then redeploy; organization copies and client installs are not independent sources of truth.

Usage

/repo:org-policy                     # Preview source, effective policy, and org drift
/repo:org-policy --check             # Same read-only report
/repo:org-policy --install           # Preview, then publish the authorized policy PR
/repo:org-policy --install --repo OWNER/PROJECT

The deterministic implementation is scripts/repo/repo-org-policy.py in the source checkout, installed to .claude/skills/repo/scripts/repo-org-policy.py. It needs Python 3.9+, git, and authenticated gh. It always uses github.com; other forges are unsupported. A local source checkout is not required on the client: the helper fetches canonical JSON at one immutable GitHub commit.

Preview and publish

  1. Derive the client owner from origin, or use an explicitly supplied --repo OWNER/PROJECT. Display the target OWNER/.github: this operation affects shared organization policy, not just the invoking repository.
  2. Run the helper's plan command. For --check, omit --output and stop after the report. An absent/inaccessible target is not proof that creation is needed; verify access first. The helper does that disambiguation itself (see "Absent versus inaccessible target" below) and reports which case its evidence favors — read its verdict rather than re-deriving it by hand, and treat a cannot tell which/inconclusive verdict as "still unverified". If creating .github is intended, establish public/private visibility and use --create-repository public|private. Shared policy contains no credentials. A public preset is easiest to reuse across public and private clients; private presets require appropriate app access and cannot be consumed from public repositories — so --create-repository private is refused when the invoking client is public, rather than producing an extends reference that fails at Renovate runtime. When the client's own visibility cannot be read, the helper warns instead of refusing; confirm it by hand before continuing.
  3. For an install, save a plan at a new temporary path. Show its complete diff, source revision, target, and repository creation/visibility if applicable. Use existing authorization when it covers that target and these changes; otherwise request approval of this concrete plan. Do not repeatedly ask for steps already authorized. --install never authorizes unrelated settings, app installation, or migrating every client repository.
  4. Apply that saved plan with --yes. It rechecks source and target before any mutation. A changed source or target requires a fresh preview. It preserves unrelated files, creates a separate branch, and opens a policy PR. A retry reuses an unchanged existing branch/PR; it never force-pushes. If repository creation succeeded but publishing failed, report that partial result and generate a fresh plan before continuing.
  5. Report the PR URL and whether it is merged. The policy becomes active on the default branch after merge; opening a PR is not an installed policy. Follow the repository's normal merge workflow when merging is authorized. apply closes its own output with the next command for the invoking client (/repo:deps --install) and whether the organization PR still has to merge first — include that line in the report, and do not substitute a hand-written client renovate.json for it (that skips Dependabot reconciliation, ignorePaths for installer-owned roots, and security-PR ownership). The same closing line appears on a no-op apply, saying no organization PR is pending.
  6. When the provider is the opt-in renovate (not the Dependabot default; see #655), every plan and apply invocation also prints a Renovate GitHub App installation line (see "Renovate App installation check" below) — include it verbatim in the final report. A Dependabot policy needs no App, so no such line is printed. For Renovate, a published/merged policy proves nothing about whether the App that reads it is actually installed on the target organization/user; treat "policy published" and "policy published, app NOT installed" as distinct outcomes, not the same success.

Read the full file on GitHub · 281 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +61 lines e35f994f4086
  2. 2mo ago First seen · 220 lines · 23 tokens per session scan A b5bcfed9eac0

Subscribe to this mod's changes

org-policy is a command published in the GitHub repository rjwalters/kicad-tools (77 stars, last pushed 15d ago), licensed MIT. It adds 23 tokens to every session and 3,572 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

org-policy compared with commands from other repositories

org-policy next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
org-policyrjwalters/kicad-toolsCommand7715d agoMITA23Claude Code
checklistgithub/spec-kitCommand153ktodayMITA13Claude Code
clarifygithub/spec-kitCommand153ktodayMITA27Claude Code
specifygithub/spec-kitCommand153ktodayMITA13Claude Code
analyzegithub/spec-kitCommand153ktodayMITA26Claude Code
convergegithub/spec-kitCommand153ktodayMITA35Claude Code
implementgithub/spec-kitCommand153ktodayMITA14Claude Code