polygen SKILL.md skillA

polygen from cognitive-fab/polygraph is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add cognitive-fab/polygraph/polygen@git:20260811.fb53d7e

Pins git:20260811.fb53d7e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
cognitive-fab/polygraph
Path
skills/polygen/SKILL.md
Versions recorded
5
Latest version
git:20260811.fb53d7e, committed Aug 11, 2026
First version recorded
Jul 23, 2026
Size
13,293 bytes
Repository stars
15
License
Apache-2.0

Write NEW stateful code that is verifiable from the moment it's written, instead of auditing code that already exists (that's the "polygraph" skill). Draft a contract from a feature description, author a SAM v2 strict-profile module against it (named intents/schemas/domains, keyed acceptors, reject(reason), sealed model, next-state (prime) acceptors), self-repair against reachable invariant violations before anything ships, and synthesize a demo/regression trace corpus. Use when the user wants…

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

# polygen — author verifiable code, out of the box

Companion to the `polygraph` skill. That one AUDITS code that already exists.
This one AUTHORS new code so it's verifiable from the start — closing the loop
at creation time instead of retrofitting it later. v1 is **JS/TS only**: the
generated module is directly usable only in a JS/TS codebase (porting a
verified model to another language is a real, separate problem — the port
itself would need its own differential check against the JS original — and is
out of scope here).

**The authored artifact (v0.7):** by default a **SAM v2 strict-profile
module** (`module.exports = { instance, init, actions, getState, setState }`,
sam-lib 2.1.2 vendored in the plugin): named intents with schemas and
finite domains, acceptors keyed by intent name, every not-applicable action
an observable `reject(reason)` (never a throw), sealed model, and explicit
next-state (prime) semantics — acceptors write the `next` draft and frame
untouched variables with `unchanged(...)` (sam-lib 2.1, #25). Generated code
must load **strict-clean** — `instance({}).validate()` is a hard gate at
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add cognitive-fab/polygraph/polygen@sha256:b4e5306a2327ba02

The line at the top of this page pins the label git:20260811.fb53d7e, 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_nwrs7ez3wmcoract.svg)](https://markdownregistry.com/a/art_nwrs7ez3wmcoract)

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

Versions

The registry has recorded 5 versions of this file, between Jul 23, 2026 and Aug 11, 2026, about one every 5 days.

versioncommittedcommitsizeaudit
git:20260811.fb53d7e latest2026-08-11 fb53d7e 13,293 BA view · diff
git:20260807.27053882026-08-07 2705388 13,501 BA view · diff
git:20260725.c560fd12026-07-25 c560fd1 8,626 BA view · diff
git:20260724.b7ad92a2026-07-24 b7ad92a 8,388 BA view · diff
git:20260723.22c676f2026-07-23 22c676f 8,392 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 (13293 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

cognitive-fab/polygraph · 15 stars · license Apache-2.0 · pushed 2026-09-13 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_nwrs7ez3wmcoract
GET https://markdownregistry.com/api/v1/resolve?ref=cognitive-fab/polygraph/polygen
GET https://markdownregistry.com/api/v1/blob/b4e5306a2327ba02b9e0b096bc4438210d677b873b49571b24d084e85d7d8af9

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 cognitive-fab/polygraph

polyviz SKILL.md skill
cognitive-fab/polygraph · polyviz/skills/polyviz/SKILL.md · Turn Polygraph verification artifacts into clean, brand-consistent diagrams (SVG, optional PNG). polyviz is a…
git:20260909.55b506b · audit A · 15 stars
capture-ready SKILL.md skill
cognitive-fab/polygraph · skills/capture-ready/SKILL.md · Author stateful code capture-ready BY CONSTRUCTION, in ANY language — so verification never needs an instrumentation…
git:20260807.2705388 · audit A · 15 stars
polygraph SKILL.md skill
cognitive-fab/polygraph · skills/polygraph/SKILL.md · A polygraph for your state machine. Audit a stateful piece of code end-to-end: YOU (the agent) instrument a copy, build…
git:20260811.fb53d7e · audit A · 15 stars
polynv SKILL.md skill
cognitive-fab/polygraph · skills/polynv/SKILL.md · Elicit the invariants for a state machine — the plugin takes the lead. Harvest candidate invariants from the contract's…
git:20260718.5d220f0 · audit A · 15 stars
polyvers SKILL.md skill
cognitive-fab/polygraph · skills/polyvers/SKILL.md · Check whether a state-machine version change is safe to ship against the live fleet, and produce the migration when the…
git:20260718.3df769b · audit A · 15 stars
workflow SKILL.md skill
cognitive-fab/polygraph · skills/workflow/SKILL.md · Build an LLM-era feature as a WORKFLOW, not an agentic loop — the composition skill that drives the whole toolset…
git:20260807.2705388 · audit A · 15 stars

Every file in cognitive-fab/polygraph

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