write-a-spec skillA
write-a-spec is agent-read markdown (skill) from different-ai/openwork: Write or extend an E2E journey spec in evals/specs that proves a PR's change to a human reviewer. Use when a PR changes user-visible behaviour, when a reviewer asks "show me", or when the coverage decision says a journey is missing..
Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.
What the file says
# Skill: Write a Spec Every `evals/specs/**/*.e2e.test.ts` a PR adds or changes runs in CI on the PR head and is published as that PR's proof (private report + one PR comment). Write the spec for the person who will read that report in thirty seconds, not for the machine that runs it. ## Do not write one when… - An existing journey covers the behaviour: extend it. One spec per user journey, not per PR; bug fixes add a step to the journey they escaped from. - The change is a pure function: write a colocated unit test, not evidence. - You would import `../../apps|packages|ee`, read source files, or spawn another runner. That is a unit test in disguise; the boundary ratchet rejects it. No UI does not mean no spec. A server, proxy, or protocol bug gets a browser-less world (see `evals/specs/session-title-recovery.test.ts`); the steps still read as one person's before → after. ## The proof shape A proof answers: **who** can now do **what** they could not before, and who still cannot. Structure every spec as that story. Each beat is one `step()` with a claim-sized name; each visual beat ends in `user.screenshot()`. ``` …
Read the whole file at its exact version.
How to install
mdr add different-ai/openwork/write-a-spec@git:20260921.bbe08f8mdr add different-ai/openwork/write-a-spec@sha256:c046ec19fbe53950Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.
[](https://markdownregistry.com/a/art_ym7chbqpj54tpb4y)
1 badge views in 30 days
Versions
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260921.bbe08f8 latest | 2026-09-21 | bbe08f8 | 10,397 B | A | view · diff |
| git:20260921.8da7a96 | 2026-09-21 | 8da7a96 | 6,832 B | A | view · diff |
| git:20260920.e759462 | 2026-09-20 | e759462 | 5,761 B | A | view · diff |
| git:20260904.13c282d | 2026-09-04 | 13c282d | 3,028 B | A | view · diff |
| git:20260904.25c1014 | 2026-09-04 | 25c1014 | 2,560 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (10397 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
different-ai/openwork · 23,724 stars · license NOASSERTION · pushed 2026-09-25 · branch dev
API
GET https://markdownregistry.com/api/v1/artifacts/art_ym7chbqpj54tpb4y GET https://markdownregistry.com/api/v1/resolve?ref=different-ai/openwork/write-a-spec GET https://markdownregistry.com/api/v1/blob/c046ec19fbe53950e30a9e1ba4eb917f182b10d98a81923cdb0475ccaeab9465
Your agent 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.
More from different-ai/openwork
Every file in different-ai/openwork