zorost/ai-engineering-lab/spec-first-ai-feature

Claude Code and agent skill by zorost/ai-engineering-lab

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Write the one-page spec for an AI feature, user, golden set, metric, gate, refused tradeoffs, before any code or prompt work. Use when starting any AI feature, agent, or pipeline.

Install

npx vskill@latest install zorost/ai-engineering-lab/spec-first-ai-feature

SKILL.md

Spec-First AI Feature

1 · Purpose

Force the four decisions that make an AI feature buildable, who it serves, what "correct" means, how it is measured, and what tradeoffs are refused, onto one page before any implementation begins.

2 · When to use

  • Starting any AI feature: extraction, RAG bot, agent, fine-tune, integration.
  • When a build has drifted for more than a session without a written target.

Do not use for exploratory notebooks whose entire purpose is learning a library. Label those "spike" and timebox them instead.

3 · Inputs

  • The feature request, verbatim.
  • Access to the requester (or their proxy) for the two questions in step 3.
  • One sample of real input data, if any exists.

4 · Procedure

  1. Create SPEC.md in the project root. Use the five headings below, no others.
  2. User & job. Write who uses the output and what decision or action it feeds,

in two sentences. If you cannot name the user, STOP and ask.

  1. Ask the requester two questions and record the answers verbatim:
  • "Show me three real inputs and the outputs you would accept."
  • "What output would make you reject this on sight?"
  1. Golden set. Name the file that will hold the accepted input→output pairs.

Target 20 cases minimum. If three real cases cannot be obtained, STOP: the feature is not spec-able yet.

  1. Metric & gate. Write one measurable definition of correctness (e.g.,

per-field exact-match accuracy) and the pass value (e.g., ≥ 0.90). One metric, one number. Secondary observations (latency, cost) go in a note, not the gate.

  1. Refused tradeoffs. List what this feature will not sacrifice: e.g. "never

invent a missing field", "no PII leaves the VPC", "p95 latency under 4 s". Write at least one. A spec with no refused tradeoff is a wish, not a spec.

  1. Blast radius. Write what the feature may write to or send, and what requires

human approval (deletes, external sends, spend above $X).

  1. Show the spec to the requester. Record their "yes" or their edits. A spec nobody

approved is a draft.

  1. Only then begin build work. Point every later dispute at this file; update the

file when the answer changes.

5 · Anti-rationalization

ExcuseAnswer
"The request is obvious; spec is overhead."Obvious requests produce three incompatible demos. The page costs 20 minutes; the wrong build costs days.
"We'll know a good output when we see it."That is the definition of unmeasurable. The gate number is the feature.
"The requester is too busy to answer."Then the feature is not ready to build. Build something with an owner instead.
"I can hold the spec in my head."Your context window forgets. The file does not.

6 · Red flags

  • The metric section contains words like "good", "accurate enough", "high quality"

with no number.

  • The golden set is "to be collected later".
  • The refused-tradeoffs list is empty.
  • The spec was written after the first implementation pass and describes it.

7 · Verify

  • SPEC.md exists with all five headings filled.
  • The golden-set file exists with ≥ 20 cases or a documented STOP.
  • The gate is one metric and one number, approved by the requester.
  • Every refused tradeoff names something the team would actually be tempted to do.

8 · ZoroLogistics example

Feature: extract bill-of-lading fields. Spec: user = ops clerk clearing exceptions; golden set = 20 scanned BoLs with field-level answers; metric = per-field exact-match accuracy, gate ≥ 0.90; refused = "never emit a field value that does not appear in the document" and "null over guess"; blast radius = writes to staging table only, no production writes without human review. Week 6's prompt suite then executes against exactly this contract.


© 2026 Zorost Intelligence LLC · zorost.com

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zorost/ai-engineering-lab/spec-first-ai-feature/badge)](https://verified-skill.com/skills/zorost/ai-engineering-lab/spec-first-ai-feature)

Something wrong with this skill or its page? Tell us.