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 spacelift-io/claude-plugins --skill spacelift-policy-writergit clone --depth 1 https://github.com/spacelift-io/claude-pluginsWrote 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/spacelift-io/claude-plugins/spacelift-policy-writer)<a href="https://agentmods.dev/skills/spacelift-io/claude-plugins/spacelift-policy-writer"><img src="https://agentmods.dev/badge/skills/spacelift-io/claude-plugins/spacelift-policy-writer/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/spacelift-io/claude-plugins/spacelift-policy-writer"><img src="https://agentmods.dev/badge/skills/spacelift-io/claude-plugins/spacelift-policy-writer.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.00166 | $0.01352 |
| Opus 5.5 | $0.00066 | $0.00541 |
| Sonnet 5.5 | $0.00033 | $0.00270 |
| Haiku 4.5 | $0.00017 | $0.00135 |
Grade A, and why
spacelift-policy-writer 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 29d 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 — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Spacelift Policy Writer
Procedural guide for authoring Spacelift policies. A policy is Rego that evaluates a per-type input document into named rule outputs. Read this router, then load the one resource your task needs.
Ground rules
- Every policy uses
package spacelift. - Never guess a field. Input paths and rule outputs differ per type - the contract in
references/is authoritative. - Prefer the portable syntax.
import future.keywordspluscontains ... ifrule heads run under both REGO_V0 and REGO_V1 (seeguides/formatting.md).
Reference selector
Load only the file that matches the task. Do not preload references.
| Question / task | Load |
|---|---|
| Which policy type(s) fit a goal, and how types compose | guides/policy-types.md |
| Exact input paths / rule outputs for a type | references/policy-contract.md (machine-readable: references/policy-contract.json) |
| Rego rule shapes, missing and null fields, Rego v0 vs v1, the portable pattern | guides/formatting.md |
| Flags, or one policy feeding / interacting with another | guides/flags-and-interaction.md |
| Notifications - webhooks, Slack, inbox, pull request comments | guides/delivery-webhooks-vs-integrations.md |
| Test / simulate a policy with no deploy | guides/testing.md |
| Debug a policy that errors, does nothing, or misbehaves; or explain one | guides/debugging.md |
End-to-end recipe: examples/01-plan-guard-destructive.md.
Specialist sub-agents
Delegate when the task is bigger than a single lookup (prompts in agents/):
| Sub-agent | Use for |
|---|---|
agents/capability-synthesizer.md |
Map a governance goal to the policy type(s) and how they compose |
agents/tester.md |
Build inputs, simulate with the Spacelift MCP policy_simulate tool, iterate on the decision |
Output shape
Clean Rego in a ```rego block - package spacelift, a one-line purpose comment, the rules, then helper rules. No sample JSON unless asked.
Pitfalls catalog
What ships with it
11 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.
- agents/capability-synthesizer.md 1.2 KB
- agents/tester.md 1.3 KB
- examples/01-plan-guard-destructive.md 5.0 KB
- guides/debugging.md 2.9 KB
- guides/delivery-webhooks-vs-integrations.md 4.1 KB
- guides/flags-and-interaction.md 2.8 KB
- guides/formatting.md 6.9 KB
- guides/policy-types.md 4.1 KB
- guides/testing.md 3.6 KB
- references/policy-contract.json 112 KB
- references/policy-contract.md 33 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.
- 29d ago Changed · +4 lines · +8 tokens per session fb8651ae7a09
- 3mo ago First seen · 61 lines · 158 tokens per session scan A af5716c1df35
spacelift-policy-writer is a skill published in the GitHub repository spacelift-io/claude-plugins (3 stars, last pushed 9d ago), licensed MIT. It adds 166 tokens to every session and 1,352 once invoked, about $0.0007 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-08-31.
spacelift-policy-writer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| spacelift-policy-writerspacelift-io/claude-plugins | Skill | 3 | 9d ago | MIT | A | 166 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 332k | 6d ago | MIT | A | 21 | Claude Code |