writing-agir SKILL.md skillA

writing-agir from sigilagent/sigil is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add sigilagent/sigil/writing-agir@git:20261031.c9b5569

Pins git:20261031.c9b5569 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
sigilagent/sigil
Path
src/contracts/writing-agir/SKILL.md
Versions recorded
3
Latest version
git:20261031.11f8bdc, committed Oct 31, 2026
First version recorded
Jul 31, 2026
Size
6,247 bytes
Repository stars
19
License
MIT

Use when authoring an AG-IR — the typed intermediate representation Sigil lowers into a runnable agent — from a SKILL.md and its frozen rule set, verifying each draft with the compile oracle until every gate passes.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Writing an AG-IR

You are the front-end of a compiler. Your input is a **SKILL.md** written for a
human, plus a **frozen rule set** already extracted from it. Your output is one
file, `agent.ir`: a YAML AG-IR that Sigil lowers mechanically into a runnable
object-spatial program.

The point of the AG-IR is that it removes the model's discretion. In a prompt-based
harness a skill is advice the model may follow. Here every mandatory step becomes a
node the run **must visit**, every prohibition becomes a constraint on a node, and
every verification becomes a gate with a typed verdict. Your job is to build that
structure faithfully — not to improve the skill, and not to summarize it.

## The three things that get checked

Your draft is not accepted because it looks right. It is accepted because it clears
three gates, and each one maps to a rule you must follow while drafting.

**COMPILE — it must compile.** `sigil gate agent.ir <name>` lowers your IR and
type-checks the result. Run it after every edit. It exits nonzero while the IR is
broken and prints the exact diagnostic.

**G5 — every tool and knowledge item must be embodied.** A tool with no `body:` and
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add sigilagent/sigil/writing-agir@sha256:f5a89ee3b13e11c6

The line at the top of this page pins the label git:20261031.c9b5569, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ius6wqqzg5arkkbk.svg)](https://markdownregistry.com/a/art_ius6wqqzg5arkkbk)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Jul 31, 2026 and Oct 31, 2026, about one every 46 days.

versioncommittedcommitsizeaudit
git:20261031.11f8bdc latest2026-10-31 11f8bdc 6,247 BA view · diff
git:20261031.c9b55692026-10-31 c9b5569 6,001 BA view · diff
git:20260731.bfa9aa22026-07-31 bfa9aa2 5,996 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6247 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

sigilagent/sigil · 19 stars · license MIT · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ius6wqqzg5arkkbk
GET https://markdownregistry.com/api/v1/resolve?ref=sigilagent/sigil/writing-agir
GET https://markdownregistry.com/api/v1/blob/f5a89ee3b13e11c6de1383ee86f8a8e5141a76ad9e6169fe9835ed89f7ae8202

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from sigilagent/sigil

clean-csv SKILL.md skill
sigilagent/sigil · examples/csv-clean/SKILL.md · Use when a messy CSV file needs its headers normalized to clean snake_case names and blank rows removed, saved to a…
git:20260726.9d44567 · audit A · 19 stars
writing-plans SKILL.md skill
sigilagent/sigil · examples/writing-plans/SKILL.md
git:20260724.0564d2d · audit C · 19 stars

Every file in sigilagent/sigil

Browse by kind, by grade A, or by owner.