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.
npx skills add runxhq/runx --skill policy-draftgit clone --depth 1 https://github.com/runxhq/runxWrote 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.
[](https://agentmods.dev/skills/runxhq/runx/policy-draft)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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
- Require concrete target repositories, source locators, owner routes, and an
available automation. Return
needs_inputwhen any are unresolved. - Draft the smallest
runx.operational_policy.v1that admits the stated work. Unspecified work remains denied. - When
existing_policyis 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. - Pass the draft to the deterministic validation step. Never author or trust an agent-supplied lint verdict.
- Native
data.comparechecks 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. - Return
readyonly when native lint and that comparison pass. A native failure or attempted widening returnsrejectwith 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
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- eval_queries.json 2.4 KB
- evals/evals.json 1.4 KB
- evals/files/approved-issue-flow-brief.json 555 B
- fixtures/composed/run.yaml 590 B
- fixtures/composed/SKILL.md 155 B
- mark.svg 520 B
- packets/proposal.v1.schema.json 3.1 KB
- policy-draft.mjs 10 KB runs code
- policy-draft.test.mjs 3.7 KB runs code
- references/catalog.md 160 B
- references/mark-license.md 3.1 KB
- run.yaml 4.9 KB
- tests/composes-in-workflow.yaml 3.8 KB
- tests/issue-flow-policy-from-brief.yaml 4.6 KB
- tests/refuses-owner-expansion-in-tightening-lane.yaml 4.2 KB
- tests/tighten-existing-policy.yaml 4.4 KB
- tests/vague-brief-needs-input.yaml 1.1 KB
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.
- 17d ago Changed · -1 lines 69e3be11ec2a
- 25d ago Changed · +10 lines a8516c92d5a1
- 1mo ago Changed 9cabdeb3c39e
- 1mo ago First seen · 119 lines · 67 tokens per session scan A b578e64770d0
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.
policy-draft compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| policy-draftrunxhq/runx | Skill | 106 | yesterday | Apache-2.0 | A | 67 | Claude Code, Codex |
| dd-risk-scoringAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 29 | Claude Code, Codex |
| dd-synthesisAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 33 | Claude Code, Codex |
| dd-report-formatAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 27 | Claude Code, Codex |
| dd-sourcingAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 29 | Claude Code, Codex |
| dd-verificationAbilityai/trinity | Skill | 822 | today | Apache-2.0 | A | 35 | Claude Code, Codex |
| rule6-rights-gatemtarcure/claude-vibe-squad | Skill | 227 | 1mo ago | MIT | A | 72 | Claude Code, Codex |