policy-draft
БесплатноЗапускает вложенные скриптыНе проверенDraft or tighten a Runx operational policy from a governance brief, then validate the exact runx.operational_policy.v1 contract with the native policy engine…
от runxhq★ 106 звёзд на 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
Stop conditions
- Missing repository, locator, automation, or owner evidence:
needs_inputwithpolicy: null; native lint is not run. - Proposed widening of an existing policy:
rejectbefore lint and identify the widened path. - Native parse or validation failure:
reject; never relabel it as ready. - A request to widen authority: stop and route it to a separate explicit policy decision. This skill's existing-policy lane is attenuation-only.
Output
The final policy_proposal contains:
decision: ready | needs_input | reject
policy: object | null
validation:
status: pass | fail | not_run
engine: runx policy
findings: [{ code, path, message }]
readback: object | null
reason: string
rationale: string
blockers: [string]
needs_input: [string]
success_checkpoint: object
The host supplies the actual current native-valid baseline; this is not authority to replace a different installed policy. Existing sources, targets and automations may be removed or their declared action/target sets narrowed. Confidence, required review and verification cannot weaken, and a disabled or maintenance automation cannot become available. Owner-route roster reordering is immaterial, but changing its membership or unknown provider settings needs a separate explicit policy decision.
The runtime receipt proves which draft was validated. It does not approve or install the policy.
Agent task: policy-draft-draft
Draft one policy proposal using the exact runx.operational_policy.v1 contract described by the
skill. Return decision, policy, rationale, blockers, needs_input, and success_checkpoint. Do not
author a lint verdict: the next deterministic step invokes native policy.lint. If required
repos, source locators, owners, or automation bindings are missing, return needs_input with policy
null. When existing_policy is supplied, never add authority, targets, sources, automations,
locators, or actions; only tighten permissions, confidence, routing, and outcomes.
Установить policy-draft в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл policy-draft?
Draft or tighten a Runx operational policy from a governance brief, then validate the exact runx.operational_policy.v1 contract with the native policy engine. Use for repository/source/automation/owner policy design, fail-closed policy linting, or authority attenuation; never use this lane to widen an existing policy.
Как установить скилл policy-draft?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл policy-draft запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic