write-a-spec

write-a-spec is a skill for OpenCode from zj-unicom-ai/UniEmployee. It costs 62 tokens per session (3,460 once invoked), scanned A, original, MIT.

A guide for writing an automated check that proves a user-visible change to a reviewer. It covers either a reusable core journey or a one-off proof and explains how the recorded result is shown.

In plain words
What is it for?
It helps add browser-based end-to-end checks, decide whether a journey needs coverage, and document proof on a pull request.
Why use it?
Code and test results alone may not make a visible product change easy to judge. This turns the expected behaviour into a readable record with ordered steps and evidence.

Skill for OpenCode

Written for OpenCode: installed under .opencode/.

Good fit It helps add browser-based end-to-end checks, decide whether a journey needs coverage, and document proof on a pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zj-unicom-ai/uniemployee/write-a-spec
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zj-unicom-ai/UniEmployee --skill write-a-spec
Clone the repo
git clone --depth 1 https://github.com/zj-unicom-ai/UniEmployee

Made for: OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for write-a-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/zj-unicom-ai/uniemployee/write-a-spec/github.svg)](https://agentmods.dev/skills/zj-unicom-ai/uniemployee/write-a-spec)
Your own site
<a href="https://agentmods.dev/skills/zj-unicom-ai/uniemployee/write-a-spec"><img src="https://agentmods.dev/badge/skills/zj-unicom-ai/uniemployee/write-a-spec/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for write-a-spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/zj-unicom-ai/uniemployee/write-a-spec"><img src="https://agentmods.dev/badge/skills/zj-unicom-ai/uniemployee/write-a-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,460 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00062 $0.03460
Opus 5.5 $0.00025 $0.01384
Sonnet 5.5 $0.00012 $0.00692
Haiku 4.5 $0.00006 $0.00346

Measured today against content hash 7355644075d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-a-spec scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

desktop-workspace/.opencode/skills/write-a-spec/SKILL.md · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Skill: Write a Spec

Every evals/core/*.e2e.test.ts or evals/proofs/*.proof.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.

Map: from change to reviewed proof

Moment Skill Output
Decide whether a journey is needed and design it write-a-spec (this) a spec whose titles, steps, and evidence read as the report
Run it and read your own record run-tests evals/results/test-runs/<latest>/ with the captions in order
Let a reviewer click through the change pnpm world help (preview worlds) a sandbox link in the report's Show sandbox panel
Describe it on the PR open-a-pr an ## Evidence line naming the spec and its before → after

Which lane runs your spec (and when to tag)

CI picks the lane from the file name and tags alone. Pick the lane first: it decides the world you can build.

If the spec… Name / tag CI lane
proves your change (default) evals/proofs/<name>.proof.test.ts on demand only, with PR change proof
changes one of the nine core journeys in evals/journeys.ts evals/core/<journey>.e2e.test.ts core journeys nightly and on demand
needs a reviewer to reopen the running browser at a screenshot add { tags: ["checkpoints"] } to the test(...) options protected checkpoint lane on Freestyle (not run by manual proof runs)

Tag checkpoints only when a still image cannot show what the reviewer has to check: an open stream, a populated workspace to explore, a state that costs minutes to reach. The tag moves the spec to a protected lane that uses a secret, where fork PRs cannot run. It saves each tagged test's world as launched for the commit (before the body acts) and its end state, plus every user.checkpoint("caption") and every step(..., { checkpoint: true }). Plain user.screenshot() never saves one. Say why in a comment beside the tag. Checkpoints cost VM snapshots, so capture the one or two moments a reviewer would open, not every step. Run it locally with pnpm evals:e2e <slug> --local --checkpoints (needs FREESTYLE_API_KEY).

Read the full file on GitHub · 261 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 261 lines · 62 tokens per session scan A 7355644075d7

Subscribe to this mod's changes

write-a-spec is a skill published in the GitHub repository zj-unicom-ai/UniEmployee (920 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 3,460 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-12-04.

Related

write-a-spec compared with skills from other repositories

write-a-spec next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
write-a-speczj-unicom-ai/UniEmployeeSkill920yesterdayMITA62OpenCode
api-harnesssabbour/agentweaverSkill8yesterdayMITA0Claude Code, Codex
persona-briefssabbour/agentweaverSkill8yesterdayMITA0Claude Code, Codex
ui-harness-clisabbour/agentweaverSkill8yesterdayMITA43Claude Code, Codex
testing-strategykouroshez/coding-osSkill74d agoApache-2.0A118Claude Code, Codex
end-to-end-testingkouroshez/coding-osSkill74d agoApache-2.0A177Claude Code
ontomcp-drivermareasw/ontoskillsSkill2310d agoMITA19Claude Code, Codex