he-spec

he-spec is a skill for Codex from jscraik/Agent-Skills. It costs 48 tokens per session (2,558 once invoked), scanned A, original, Apache-2.0.

A specification-writing workflow that defines what a feature, bug fix, or interface must do before anyone plans or codes it.

In plain words
What is it for?
It helps write implementation-ready behavior contracts, risks, non-goals, observability notes, and stable acceptance IDs.
Why use it?
It removes ambiguity by turning requests and behavior gaps into concrete acceptance criteria and explicit boundaries.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions subagents; mentions Codex.

Good fit It helps write implementation-ready behavior contracts, risks, non-goals, observability notes, and stable acceptance IDs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jscraik/agent-skills/he-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 jscraik/Agent-Skills --skill he-spec
Clone the repo
git clone --depth 1 https://github.com/jscraik/Agent-Skills

Made for: Codex.

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 he-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/jscraik/agent-skills/he-spec/github.svg)](https://agentmods.dev/skills/jscraik/agent-skills/he-spec)
Your own site
<a href="https://agentmods.dev/skills/jscraik/agent-skills/he-spec"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/he-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 he-spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/jscraik/agent-skills/he-spec"><img src="https://agentmods.dev/badge/skills/jscraik/agent-skills/he-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,558 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.00048 $0.02558
Opus 5.5 $0.00019 $0.01023
Sonnet 5.5 $0.00010 $0.00512
Haiku 4.5 $0.00005 $0.00256

Measured 1mo ago against content hash bba424d49d0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

he-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 1mo ago.

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.

Plugins/harness-engineering/skills/he-spec/SKILL.md · 213 lines

How it starts

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

Harness Engineering Spec

Philosophy

Make approved intent testable without doing the plan's job. Turn one selected HE slice into a bounded behavior contract with source truth, uncertainty, acceptance evidence, validation, rollback, and handoff boundaries. Higher priority instructions and approval boundaries remain authoritative.

When to Use

Use when an approved milestone, parent issue, bug, reframe phase, UI source, or execution slice needs a spec before planning or implementation. Explore first and ask second: inspect repo, tracker, artifact, and source evidence before asking, then ask only when intent/tradeoffs are undiscoverable. Load the selected slice plus 2-3 focused surfaces unless blocked.

Also use when the user says "deepen spec and run a technical review" or similar. Treat that as an explicit request to improve the existing canonical spec, apply professional technical review, repair fixable-now gaps, and rerun focused artifact-shape, BLUF, traceability, and validation gates before handoff. The long role-stack prompt beginning "You are GPT-5.5 acting as a senior software engineering reviewer, systems architect, implementation-risk analyst, specification maintainer, adversarial validation partner, and media artifact operator" is the same route for specs, with media/visual-reference evidence treated as an explicit review surface.

When Not to Use

Do not use for implementation, review-only feedback, task planning, runtime install/sync, broad strategy, or unselected ideas. Stop when no selected slice exists or when external writes, destructive changes, secret access, production deployment, or broad repo edits lack approval. If the supplied spec prompt still contains placeholders such as [PASTE SPECIFICATION CONTENT OR SPEC PATH HERE], fail closed and request the missing canonical spec path or content instead of drafting against a template.

Inputs

Required: problem statement, selected slice, and primary source evidence. Optional: user-facing solution, user stories, implementation/testing decisions, tracker metadata, QA report, current-vs-latest spec status, UI source, session-collector evidence, .harness/** artifacts, and write approval.

Read the full file on GitHub · 213 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +117 lines · +18 tokens per session bba424d49d0c
  2. 1mo ago First seen · 96 lines · 30 tokens per session scan A 4cc9b2d506a1

Subscribe to this mod's changes

he-spec is a skill published in the GitHub repository jscraik/Agent-Skills (9 stars, last pushed 4d ago), licensed Apache-2.0. It adds 48 tokens to every session and 2,558 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-09-03.