policy-draft

policy-draft is a skill for Claude Code, Codex from runxhq/runx. It costs 67 tokens per session (1,095 once invoked), scanned A, original, Apache-2.0.

A tool for drafting an operational policy: a set of rules describing which work, sources, repositories, owners, and runners are allowed. It validates the draft against Runx's policy format before marking it ready.

In plain words
What is it for?
Use it to create or tighten repository, source, runner, and owner rules, then detect invalid policy fields or attempted permission increases.
Why use it?
It prevents vague or overly broad permissions from entering a policy. Existing permissions can only be narrowed, not expanded, and unresolved requirements are reported instead of guessed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or tighten repository, source, runner, and owner rules, then detect invalid policy fields or attempted permission increases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/runxhq/runx/policy-draft
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add runxhq/runx --skill policy-draft
Clone the repo
git clone --depth 1 https://github.com/runxhq/runx

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 policy-draft

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/runxhq/runx/policy-draft"><img src="https://agentmods.dev/badge/skills/runxhq/runx/policy-draft.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,095 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.00067 $0.01095
Opus 5.5 $0.00027 $0.00438
Sonnet 5.5 $0.00013 $0.00219
Haiku 4.5 $0.00007 $0.00110

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

Security

Grade A, and why

policy-draft 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 17d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (policy-draft.mjs, policy-draft.test.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/policy-draft/SKILL.md · 128 lines

How it starts

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

Policy Draft

Produce one reviewable operational-policy proposal. Let the agent translate intent into policy fields; let the native policy.lint tool decide whether the exact in-memory result is a valid Runx policy.

Workflow

  1. Require concrete target repositories, source locators, owner routes, and an available automation. Return needs_input when any are unresolved.
  2. Draft the smallest runx.operational_policy.v1 that admits the stated work. Unspecified work remains denied.
  3. When existing_policy is supplied, preserve its target/source/automation set and only attenuate authority. Do not add locators, actions, targets, sources, or automations; do not lower confidence or weaken human gates.
  4. Pass the draft to the deterministic validation step. Never author or trust an agent-supplied lint verdict.
  5. Native data.compare checks retained identity, provider/kind, owner routing, branch, dedupe and opaque adapter settings. Those settings must remain equal: this generic lane cannot infer whether changing them narrows authority.
  6. Return ready only when native lint and that comparison pass. A native failure or attempted widening returns reject with structured findings.

Native policy contract

Draft the exact contract consumed by policy.lint and the Runx policy parser:

schema: runx.operational_policy.v1
schema_version: runx.operational_policy.v1
policy_id: string
sources:
  - source_id: string
    provider: string
    allowed_locators: [string]
    allowed_actions: [string]
    source_thread:
      required: boolean
      publish_mode: reply | comment | none
      missing_behavior: fail_closed
    minimum_confidence: number     # optional
automations:
  - automation_id: string
    kind: string
    state: available | disabled | maintenance
    allowed_actions: [string]
    target_repos: [owner/repo]
    scafld_required: boolean
owner_routes:
  - route_id: string
    owners: [string]
    target_repos: [owner/repo]
targets:
  - repo: owner/repo
    automation_ids: [string]
    allowed_actions: [string]
    default_owner_route: string
    scafld_required: boolean
    base_branch: string            # optional
dedupe:
  strategy: source_digest
  key_fields: [string]
  on_duplicate: reuse | comment | block
outcomes:
  observe_provider: boolean
  verification_required: boolean
  close_source_issue: never | when_verified | when_terminal
  publish_final_source_thread_update: boolean
permissions:
  auto_merge: boolean
  mutate_target_repo: boolean
  require_human_merge_gate: boolean

Read the full file on GitHub · 128 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. 17d ago Changed · -1 lines 69e3be11ec2a
  2. 25d ago Changed · +10 lines a8516c92d5a1
  3. 1mo ago Changed 9cabdeb3c39e
  4. 1mo ago First seen · 119 lines · 67 tokens per session scan A b578e64770d0

Subscribe to this mod's changes

policy-draft is a skill published in the GitHub repository runxhq/runx (106 stars, last pushed yesterday), licensed Apache-2.0. It adds 67 tokens to every session and 1,095 once invoked, about $0.0003 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-14.

Related

policy-draft compared with skills from other repositories

policy-draft next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
policy-draftrunxhq/runxSkill106yesterdayApache-2.0A67Claude Code, Codex
dd-risk-scoringAbilityai/trinitySkill822todayApache-2.0A29Claude Code, Codex
dd-synthesisAbilityai/trinitySkill822todayApache-2.0A33Claude Code, Codex
dd-report-formatAbilityai/trinitySkill822todayApache-2.0A27Claude Code, Codex
dd-sourcingAbilityai/trinitySkill822todayApache-2.0A29Claude Code, Codex
dd-verificationAbilityai/trinitySkill822todayApache-2.0A35Claude Code, Codex
rule6-rights-gatemtarcure/claude-vibe-squadSkill2271mo agoMITA72Claude Code, Codex