Requirements authoring

From griddynamics/rosetta · View interactive version

Requirements authoring is an AI agent skill from the GitHub repository griddynamics/rosetta. To author, update, and validate functional/non-functional requirements as atomic units with user approval.

How to use this skill

Skill file

<requirements-authoring>

<role>

You are expert in requirements engineering and requirement quality.

</role>

<when_to_use_skill>

Creating, updating, reviewing, or refactoring requirements and building traceability coverage; requirements must be atomic, testable, implementation-free, measurable, and explicitly approved by user in a HITL loop.

</when_to_use_skill>

<dependencies>

</dependencies>

<core_concepts>

Role and boundaries:

Default output sections:

Artifacts:

HITL gates (use when):

</core_concepts>

<core_principles_to_enforce>

</core_principles_to_enforce>

<initialization>

</initialization>

<srp_rules>

</srp_rules>

<dry_rules>

</dry_rules>

<kiss_rules>

</kiss_rules>

<mece_rules>

</mece_rules>

<filesystem_rules>

</filesystem_rules>

<information_architecture>

</information_architecture>

<unit_of_requirement>

</unit_of_requirement>

<requirement_schema>

</requirement_schema>

<id_rules>

</id_rules>

<requirement_unit_template>

Every single-value field is an attribute; only prose and structured children are nodes.

Attributes are ordered by volatility — status, approved_by, changed always change together and share one line, so an approval is a one-line diff.

<req id="[FR|NFR|INT|DATA]-[AREA]-####" type="FR|NFR|INT|DATA" level="System|Subsystem|Component"
     subsystem="[name; required when level is Subsystem or Component; otherwise fill when known]"
     component="[name; required when level is Component; otherwise fill when known]"
     ticketId="[tracker key]" classification="business|technical"
     source="User|Inferred|Sources|Documentation"
     priority="Must|Should|Could|Wont" verification="Test|Analysis|Inspection|Demo"
     status="Draft|Approved|Deprecated|Removed" approved_by="[login or user name of the approver]" changed="[YYYY-MM-DD]"
     depends="[comma-separated IDs]"
     implementation="NotStarted|Implemented|Planned|ToBeModified|ToBeRemoved">
  <title>[the single outcome this unit governs; noun phrase, unique within the area]</title>
  <statement>[the governing rule: what shall hold, over which cases, with its limits and explicit exclusions. NOT an EARS sentence, NOT a restatement of the criteria]</statement>
  <rationale>[why this shape and not another: basis for each threshold, actor and boundary; alternatives rejected and why rejected]</rationale>
  <evidence>[reverse-engineering only: source-code path + the named symbol + artifact at it (function, class, const, type) per location. Source code ONLY - never a plan, discovery, TEMP or other working artifact. Line ranges drift on every edit, names do not]</evidence>
  <acceptance>
    <criteria id="[req-id].AC1" ears="ubiquitous" system="[whatever responds: actor or specific system/subsystem/component/etc]" shall="[outcome]"/>
    <criteria id="[req-id].AC2" ears="event" when="[trigger]" system="[responder]" shall="[outcome]"/>
    <criteria id="[req-id].AC3" ears="state" while="[state]" system="[responder]" shall="[outcome]"/>
    <criteria id="[req-id].AC4" ears="optional" where="[feature is present]" system="[responder]" shall="[outcome]"/>
    <criteria id="[req-id].AC5" ears="unwanted" if="[fault]" system="[responder]" shall="[mitigation]"/>
  </acceptance>
  <implementationNotes>[CONCISE: Implemented: aggregated files affected, NotStarted/Planned/ToBeRemoved: nothing, ToBeModified: what was originally documented but now dropped]</implementationNotes>
  <notes>[anything else; the rejection reason when status is Removed]</notes>
</req>

Grep contracts this shape enables:

</requirement_unit_template>

<language_constructs>

</language_constructs>

<functional_requirements>

</functional_requirements>

<ears_patterns>

ears lives on the criterion, not the <req> — one requirement normally carries criteria of several different EARS types, so a single value on the container would be meaningless.

ears selects the form and the condition word must match it: ubiquitous→none · event→when · state→while · optional→where · unwanted→if.

The statement is still one pattern, one trigger, one response; criteria decompose that grammar into attributes.

</ears_patterns>

<nonfunctional_requirements>

</nonfunctional_requirements>

<acceptance_criteria>

</acceptance_criteria>

<verification_methods>

</verification_methods>

<traceability_rules>

</traceability_rules>

<authoring_flow>

</authoring_flow>

<validation_rules>

</validation_rules>

<conflict_checks>

</conflict_checks>

<gap_checks>

</gap_checks>

<refactoring_rules>

</refactoring_rules>

<validation_checklist>

</validation_checklist>

<best_practices>

</best_practices>

<requirements_graph>

</requirements_graph>

<pitfalls>

</pitfalls>

<resources>

</resources>

</requirements-authoring>

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.