# Writ skills

[Claude Skills](https://support.claude.com/en/articles/12512180-use-skills-in-claude) that let an agent set up and operate [Writ](https://writ.lightningenable.com) — bounded, paid, receipted autonomy for agents — with little human intervention. Same `SKILL.md` format (and the [agentskills.io](https://agentskills.io) standard it follows) as the sibling [lightning-enable-skills](https://github.com/refined-element/lightning-enable-skills) repository, so these load unmodified in Claude Code, Claude Desktop, Cursor, and other compatible hosts.

## Skills

| Skill | What it does |
|---|---|
| ⚙️ **[writ-setup](writ-setup/README.md)** | Confirm the `writ` tool is installed, create a persistent operator signing identity with `writ keys init`, and confirm the setup with a zero-cost smoke run. |
| 🚀 **[writ-run](writ-run/README.md)** | Author a mission manifest from a task description, validate it, plan it with `--dry-run`, run it under simulated settlement, and export a shareable bundle. |
| 🔍 **[writ-verify](writ-verify/README.md)** | Verify a work-record bundle — your own or a counterparty's — fully offline against a pinned public key, and interpret every warning and exit code. |

Each skill folder has a human-facing `README.md` (what it is) and an agent-facing `SKILL.md` (the instructions the agent loads). Run them in order — `writ-setup` first, then `writ-run` and/or `writ-verify` as the task needs.

## The guardrails, restated

Every skill in this directory carries the same three hard rules, because they matter more than anything else here:

1. **Never enable `settlement.mode: wallet` or pass `--production` without explicit, current-turn human confirmation.** These are the two things that make a run capable of spending real money, or refuse to run without durable evidence. An agent proposes; a human decides.
2. **Never print a private key, a `WRIT_RECEIPT_KEY` value, or a macaroon.** Every command these skills use is designed to never emit one — don't work around that.
3. **Stop and hand back to the human on `writ run` exit code `4` (approval required) or `7` (pending reconciliation).** Both are Writ's own guardrails doing exactly what they're for — never something to route around.

## Install

Skills live in `~/.claude/skills/` (personal, all projects) or `.claude/skills/` (per-project). Each `SKILL.md` is published on the documentation site:

```bash
for s in writ-setup writ-run writ-verify; do
  mkdir -p ~/.claude/skills/$s
  curl -fsSL https://writ.lightningenable.com/skills/$s/SKILL.md -o ~/.claude/skills/$s/SKILL.md
done
```

In a source checkout, copy the folders instead: `cp -r skills/writ-* ~/.claude/skills/`.

Then ask an agent to "set up Writ" — it should pick up `writ-setup` on its own.

## Machine-readable index

Agents that want a structured summary instead of reading prose can start at:

- [`/llms.txt`](https://writ.lightningenable.com/llms.txt) — a curated index of every documentation page.
- [`/.well-known/writ-agent.json`](https://writ.lightningenable.com/.well-known/writ-agent.json) — every command, its options and exit codes, install steps, and this skill list, as structured JSON.

See [For agents](https://writ.lightningenable.com/docs/for-agents) for the full picture.
