rulec SKILL.md skillA

rulec from i2y/ritsu is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add i2y/ritsu/rulec@git:20261103.ef18d5b

Pins git:20261103.ef18d5b in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
i2y/ritsu
Path
skills/rulec/SKILL.md
Versions recorded
9
Latest version
git:20261103.ef18d5b, committed Nov 3, 2026
First version recorded
Oct 21, 2026
Size
32,222 bytes
Repository stars
3
License
Apache-2.0

Turn a table-shaped business rule into proved, dependency-free Python, TypeScript, JavaScript, Rust, Ruby, PHP, Go, Swift, Java, SQL and Wasm with rulec. Use when a shipping tariff, fee schedule, discount or coupon policy, eligibility test, period classification, or any rule that is already written as a table has to become code; when writing, editing or reviewing a `.rule` file; when a rulec diagnostic (E001-E076, E101-E140, W105, W110, W111, W114-W132, W901) has to be fixed; or when a change…

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

## When this applies

The rule **is a table, or could be written as one** — a table plus, where it needs it, a
little arithmetic over the inputs. Some are already tables: a tariff, a rate card, a fee
schedule. Others are prose or folklore and become a table once written down: when a discount
applies, whether a return is accepted, which period a date falls in, what rank a set of scores
earns. The source of truth may be a spreadsheet, a published policy, a wiki page, a legacy
implementation, or a person, and the job is to turn it into code someone can approve.

A process with state applies one call at a time: the table decides a step, and the caller
keeps the state. It does **not** apply to running a workflow, to judgements about a collection
("any line is refrigerated", "three or more items"), to pattern matching on strings, or to
scoring and optimisation. Flatten collection facts at the boundary and pass the scalar in;
keep iteration in the caller.

Every command here is rulec's: run it as `ritsu rulec <command>` (through a link to ritsu named
rulec, `rulec <command>` is the same). Whatever `gen` writes is held to the reference evaluator
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add i2y/ritsu/rulec@sha256:9e29df83a1b74c9a

The line at the top of this page pins the label git:20261103.ef18d5b, 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_lkdoo5mlenmtf4wl.svg)](https://markdownregistry.com/a/art_lkdoo5mlenmtf4wl)

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

Versions

The registry has recorded 9 versions of this file, between Oct 21, 2026 and Nov 3, 2026, about one every 2 days.

versioncommittedcommitsizeaudit
git:20261103.ef18d5b latest2026-11-03 ef18d5b 32,222 BA view · diff
git:20261031.a1581232026-10-31 a158123 31,352 BA view · diff
git:20261030.4b0b4bc2026-10-30 4b0b4bc 34,751 BA view · diff
git:20261030.49cb2b12026-10-30 49cb2b1 34,645 BA view · diff
git:20261029.0c6714d2026-10-29 0c6714d 34,645 BA view · diff
git:20261029.200ec282026-10-29 200ec28 34,611 BA view · diff
git:20261028.a9029f22026-10-28 a9029f2 34,528 BA view · diff
git:20261023.03d1cf02026-10-23 03d1cf0 34,434 BA view · diff
git:20261021.9a8c51f2026-10-21 9a8c51f 34,420 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 (32222 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

i2y/ritsu · 3 stars · license Apache-2.0 · pushed 2026-11-07 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_lkdoo5mlenmtf4wl
GET https://markdownregistry.com/api/v1/resolve?ref=i2y/ritsu/rulec
GET https://markdownregistry.com/api/v1/blob/9e29df83a1b74c9afa94e3c076c6968c93f0e41bcd1e9c069f7df61616eba9bf

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 i2y/ritsu

DESIGN.md DESIGN.md file
i2y/ritsu · DESIGN.md
git:20261107.d281d9c · audit F · 3 stars
DESIGN.md@crates/chobo DESIGN.md file
i2y/ritsu · crates/chobo/DESIGN.md
git:20261106.2acffb3 · audit B · 3 stars
DESIGN.md@crates/dandori DESIGN.md file
i2y/ritsu · crates/dandori/DESIGN.md
git:20261104.62ba97a · audit C · 3 stars
DESIGN.md@crates/geas DESIGN.md file
i2y/ritsu · crates/geas/DESIGN.md
git:20261031.76f9a81 · audit B · 3 stars
DESIGN.md@crates/kaname DESIGN.md file
i2y/ritsu · crates/kaname/DESIGN.md
git:20261107.d281d9c · audit B · 3 stars
DESIGN.md@crates/koyomi DESIGN.md file
i2y/ritsu · crates/koyomi/DESIGN.md
git:20261107.d281d9c · audit B · 3 stars
AGENTS.md@crates/rulec AGENTS.md file
i2y/ritsu · crates/rulec/AGENTS.md
git:20261103.7af3d08 · audit A · 3 stars
DESIGN.md@crates/rulec DESIGN.md file
i2y/ritsu · crates/rulec/DESIGN.md
git:20261106.947564f · audit C · 3 stars
DESIGN.md@crates/sakai DESIGN.md file
i2y/ritsu · crates/sakai/DESIGN.md
git:20261107.d281d9c · audit B · 3 stars
DESIGN.md@crates/sekisho DESIGN.md file
i2y/ritsu · crates/sekisho/DESIGN.md
git:20261103.558b890 · audit C · 3 stars
DESIGN.md@crates/yuen DESIGN.md file
i2y/ritsu · crates/yuen/DESIGN.md
git:20261105.54d3620 · audit B · 3 stars
chobo SKILL.md skill
i2y/ritsu · skills/chobo/SKILL.md · Write, check and build chobo books (`.book` files), a small language for the things counted and moved between accounts…
git:20261104.5b400fc · audit A · 3 stars

Every file in i2y/ritsu

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