repo-org-policy

repo-org-policy is a skill for Claude Code, Codex from rjwalters/kicad-tools. It costs 24 tokens per session (3,651 once invoked), scanned A, original, MIT.

An organization policy tool for previewing or installing shared GitHub repository preferences from a central source.

In plain words
What is it for?
It compares the central policy with the effective organization settings and can publish an authorized policy pull request.
Why use it?
It helps keep settings consistent across repositories and shows differences before publishing changes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths; mentions Claude Code; installed under .agents/ (shared by several agents).

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 compares the central policy with the effective organization settings and can publish an authorized policy pull request.

Compare 6 skills 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 skills/rjwalters/kicad-tools/repo-org-policy

Made for: Claude Code, Codex.

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 repo-org-policy

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-org-policy/github.svg)](https://agentmods.dev/skills/rjwalters/kicad-tools/repo-org-policy)
Your own site
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-org-policy"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-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 repo-org-policy

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-org-policy"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-org-policy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,651 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.00024 $0.03651
Opus 5.5 $0.00010 $0.01460
Sonnet 5.5 $0.00005 $0.00730
Haiku 4.5 $0.00002 $0.00365

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

Security

Grade A, and why

repo-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 8d 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.

.agents/skills/repo-org-policy/SKILL.md · 287 lines

How it starts

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

Codex form of the /repo:org-policy command. Other commands appear as $repo-<verb> skills. Helper scripts and .claude/ paths below are relative to the repository root and exist when the Claude Code surface is installed alongside this one.

$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 · 287 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. 8d ago First seen · 287 lines · 24 tokens per session scan A d6b36061d148

Subscribe to this mod's changes

repo-org-policy is a skill published in the GitHub repository rjwalters/kicad-tools (73 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 3,651 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-11-01.

Related

repo-org-policy compared with skills from other repositories

repo-org-policy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-org-policyrjwalters/kicad-toolsSkill73yesterdayMITA24Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k2d agoMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill315k5d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code