Hoc requirement definition

From openreachtech/hora-skills-ort-core · View interactive version

Hoc requirement definition is an AI agent skill from the GitHub repository openreachtech/hora-skills-ort-core. Turn a rough, incomplete request into a requirement definition document through conversation with the requester. Use this skill whenever the user brings a feature request, ticket or rough idea and asks to define or write up the requirements, and before implementing anything whose scope is not alread

How to use this skill

Skill file

Requirement Definition

A skill for converting a rough specification into a requirement definition document

through conversation with the requester.

The output is not prose that describes an idea. It is a document that a later phase can

verify against: every requirement carries a stable id and at least one acceptance

criterion, so that implementation progress, code review and test results can each point back

to the exact requirement they satisfy.

Core principle: the document records decisions, it never records guesses

A rough specification is rough because the requester has not yet decided everything. The value

of this skill is in surfacing what has not been decided, not in producing a complete-looking

document.

answer written as if it were decided.

an obviously unfinished one, because the verification phase will then confirm the assumption

instead of the requirement.

Filling a gap quietly is the failure this skill exists to prevent.

The skill is not finished until the requester approves

The document has two states, recorded in its header.

| State | Meaning |

| :-- | :-- |

| DRAFT | Written, but not yet confirmed by the requester. Implementation must not start. |

| APPROVED | The requester has read it and confirmed it. Implementation may start. |

answered, or the affected requirement is moved to out-of-scope.

Procedure

Work through the five phases in order. Do not skip to drafting.

| # | Phase | What happens |

| :-- | :-- | :-- |

| 1 | Restate | Read everything given (message, ticket, existing code) and restate the request in your own words in 3–5 lines. Get it corrected before going further. |

| 2 | Probe | Ask the questions that change the shape of the work. See interview.md. |

| 3 | Decide | For each answered point, write the decision down. For each unanswered point, write an open question. |

| 4 | Draft | Produce the document from the template. See document-template.md. |

| 5 | Approve | Present the document, ask for confirmation, then set the state to APPROVED. |

is normal.

from being written against the wrong problem.

Rules for the conversation

the upper bound. A list of twenty questions gets one answer.

(does this write to storage at all? is it synchronous?), and ask details last (label text,

ordering).

something discoverable from the existing implementation wastes the round.

you would pick and why. An open-ended question returns a vague answer.

requirements and are the ones most often left unstated.

and let the requester decide what to cut. Cutting scope silently is the same failure as

guessing.

Requirement ids

entries, review findings and test names refer to these ids; renumbering invalidates all of

them.

id is never reused** for a different requirement.

of the document logically. Order in the document is only for presentation; the id is the

identity.

Every requirement must be verifiable

REQ-nn-AC2, ….

stored record can be checked against. If nobody can tell from the outside whether it holds,

it is not a criterion.

Go back to phase 2 and ask, rather than writing a vague criterion.

| Not a criterion | A criterion |

| :-- | :-- |

| "Sign-in works properly." | "Given a registered email and its correct password, the response contains an access token and the account's lastSignInAt is updated." |

| "Handles errors." | "Given a password that does not match, the response is the invalid-credentials error and no token is issued." |

| "Should be fast." | "A sign-in request returns within 1 second with 100 concurrent requests." |

The out-of-scope list is mandatory

(deferred / not requested / handled elsewhere).

Where the document lives

docs/features/<feature-slug>/
└── requirements.md      the requirement definition document

invoice-export).

that everything about one feature is found together.

keep the file name requirements.md.

Amending an approved document

against the old text, and a silent edit makes a passing review meaningless.

log with the date and the reason.

| Change | How to record it |

| :-- | :-- |

| A requirement is dropped | Keep the id, set its status to WITHDRAWN, give the reason. |

| A requirement changes meaning | Set the old id to SUPERSEDED BY REQ-nn, add the new text under a new id. |

requester approves the addition.

Anti-patterns

| Anti-pattern | Why it fails | Instead |

| :-- | :-- | :-- |

| Writing the document before asking anything | The document becomes the author's design, and the requester reviews their own idea back to front | Restate first, probe second, draft third |

| A plausible answer written in place of an unanswered question | The verification phase confirms the guess and reports success | Record it as an open question |

| Requirements phrased as implementation ("add a SignInResolver") | Locks the design and cannot be verified as an outcome | Phrase the outcome; leave the design to the implementation phase |

| One giant requirement covering a whole feature | Cannot be marked partially done, cannot be reviewed piece by piece | Split until each requirement has its own acceptance criteria |

| Renumbering ids to tidy the document | Breaks every progress entry, review finding and test that refers to them | Ids are permanent; only the order of presentation may change |

| Leaving out-of-scope empty | Every omission later looks like a defect | Always list what was deliberately excluded |

Detail files

why it changes the work) and the rules for running a question round.

rules for each field.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.