agent-safe-pipeline: Skill for Claude Code

.claude/skills/policyauthoring/SKILL.md

policyauthoring is a skill for Claude Code from decionis/agent-safe-pipeline. It costs 52 tokens per session (1,570 once invoked), scanned A, original, Apache-2.0.

A policy-writing assistant that turns plain-English rules from risk, security, compliance, and audit teams into proposals for the Decionis workspace. It clarifies unclear terms and leaves final approval to independent people.

In plain words
What is it for?
Use it to draft, restate, encode, and propose rules for workspace review. It also helps distinguish a Decionis workspace policy from a human-readable DECISIONIS_POLICY.md file in a code repository.
Why use it?
It helps teams turn vague rules into precise, reviewable policies without allowing the assistant to publish or activate them.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is decionis/agent-safe-pipeline's own configuration. It tells Claude Code how to work on agent-safe-pipeline itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agent-safe-pipeline configures →

Reuse

Borrowing it

Nothing to install: this file belongs to decionis/agent-safe-pipeline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/decionis/agent-safe-pipeline/master/.claude/skills/policyauthoring/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/decionis/agent-safe-pipeline

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 policyauthoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/decionis/agent-safe-pipeline/policyauthoring/github.svg)](https://agentmods.dev/skills/decionis/agent-safe-pipeline/policyauthoring)
Your own site
<a href="https://agentmods.dev/skills/decionis/agent-safe-pipeline/policyauthoring"><img src="https://agentmods.dev/badge/skills/decionis/agent-safe-pipeline/policyauthoring/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 policyauthoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/decionis/agent-safe-pipeline/policyauthoring"><img src="https://agentmods.dev/badge/skills/decionis/agent-safe-pipeline/policyauthoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,570 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.00052 $0.01570
Opus 5.5 $0.00021 $0.00628
Sonnet 5.5 $0.00010 $0.00314
Haiku 4.5 $0.00005 $0.00157

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

Security

Grade A, and why

policyauthoring 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 15d 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/skills/policyauthoring/SKILL.md · 100 lines

How it starts

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

Policy Authoring

You help people who own risk write rules in plain English: CISOs, CROs, compliance leads and auditors. You make each rule precise, read it back, encode it with your own model, and propose it. PolicyAgent validates every proposal and a person accepts it in the workspace. You never publish, approve or activate a policy.

The Decionis workspace has its own writer: Policies (https://decionis.com/workspace?view=policies) encodes plain English with Decionis's model. Point the user there when they prefer to write in the workspace.

Two different things called "policy"

  • A PolicyAgent policy lives in the Decionis workspace (Policies, https://decionis.com/workspace?view=policies). It is versioned, reviewed by independent people, and enforced by Decionis.
  • DECIONIS_POLICY.md is a plain Markdown file at a repository root. Govern hashes it and records the hash with each decision. Nothing in it is evaluated; it is the human statement of the rules, reviewed with the code.

Ask which one the user means when it is not clear.

The rule card

Write every rule in this shape before proposing it:

When [who] [does what] [to what], and [condition], then allow / escalate to [role] / block, because [source].

Example: When an AI agent issues a refund over 500 USD, and the order is older than 30 days, then escalate to the Finance Controller, because Refund Policy §4.2.

  • Who: a person, a team, an AI agent, a service.
  • Does what: one action (pay, refund, deploy, change a price, export data, grant access).
  • Condition: amounts with currency, time windows, counts, data classes, environments.
  • Outcome: allow, escalate to a named role, or block.
  • Because: the clause, ticket or document the rule comes from.

How you work

  1. Ask about vague terms. "Large", "senior", "sensitive", "unusual", "quickly" and "external" need a number, a role or a list. Ask for currency with every amount. Ask what happens when nothing matches; the default is block.
  2. Read the rule back as a rule card in plain words, and wait for the user to confirm it.
  3. Check for conflicts with rules the user has already confirmed, and say which one wins.
  4. Encode. Read the draft with decionis.get_policy and write the complete candidate in the same format it returns (the https://decionis.com/schemas/policy-authoring/v1 document). Change only the confirmed rules; copy every other rule exactly as read. Keep a final catch-all rule with no conditions. Each new rule cites its source.
  5. Propose. Call decionis.propose_policy_change with the complete candidate, the exact revision and sequence you read, a rationale, and a new UUID request id. If PolicyAgent rejects the candidate, fix what it names and propose again with a new request id. A proposal changes nothing until a person accepts it in the workspace. If no draft exists yet, the user creates one in Policies first; until then, give them the confirmed rule cards.
  6. Hand over. Give the user the returned workspace link. Review requests (decionis.request_policy_review) go out only when the user asks.

Read the full file on GitHub · 100 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. 15d ago First seen · 100 lines · 52 tokens per session scan A 50281108b7fb

Subscribe to this mod's changes

policyauthoring is a skill published in the GitHub repository decionis/agent-safe-pipeline (651 stars, last pushed 7d ago), licensed Apache-2.0. It adds 52 tokens to every session and 1,570 once invoked, about $0.0002 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-15.

Related

policyauthoring compared with skills from other repositories

policyauthoring next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
policyauthoringdecionis/agent-safe-pipelineSkill6517d agoApache-2.0A52Claude Code
policysemantica-agi/semanticaSkill15kyesterdayMITA36Claude Code
receipt-queryrunxhq/runxSkill106todayApache-2.0A22Claude Code, Codex
receipt-auditrunxhq/runxSkill106todayApache-2.0A29Claude Code, Codex
sign-receiptrunxhq/runxSkill106todayApache-2.0A31Claude Code, Codex
gdpr-auditmastepanoski/claude-skillsSkill751mo agoMITA51Claude Code, Codex
interpret-resultsairblackbox/airblackboxSkill256d agoApache-2.0A49Claude Code