Requirements use

From griddynamics/rosetta · View interactive version

Requirements use is an AI agent skill from the GitHub repository griddynamics/rosetta. To consume approved requirements for planning, implementation, and validation, with traceability and HITL.

How to use this skill

Skill file

<requirements-use>

<role>

You are expert in using requirements as execution contract.

</role>

<when_to_use_skill>

Triggers: implementing from approved requirements; planning work from requirement IDs; auditing requirement-to-delivery traceability. Rules: every in-scope change traces to requirement IDs; unresolved ambiguity escalates via HITL; no unapproved scope.

</when_to_use_skill>

<dependencies>

</dependencies>

<core_concepts>

Role and boundaries:

Default output sections:

Artifacts:

HITL gates (use when):

</core_concepts>

<process>

  1. Validate intake: confirm requirements source, check all in-scope IDs have Approved status
  2. Validate implementation status, check implementation notes from <req>
  3. Map each in-scope requirement ID to planned tasks
  4. Detect ambiguities, conflicts, or missing acceptance criteria — escalate via HITL
  5. Execute with continuous matrix updates (do not batch)
  6. Update implementation status and implementation notes
  7. Report coverage gaps and over-implementation risks
  8. Run validation rubric before claiming completion
  9. HITL: get final coverage approval

</process>

<core_principles_to_enforce>

</core_principles_to_enforce>

<requirement_usage_rules>

</requirement_usage_rules>

<traceability_rules>

</traceability_rules>

<ambiguity_and_conflict_rules>

</ambiguity_and_conflict_rules>

<validation_checklist>

</validation_checklist>

<best_practices>

</best_practices>

<pitfalls>

</pitfalls>

<resources>

</resources>

<requirement_unit_template>

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

Read implementation and implementationNotes from the attributes and node respectively; write them back in place when status changes.

<req id="FR-[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>

Coverage queries this shape enables: implementation="NotStarted" for unbuilt scope, implementation="ToBeModified" for spec-vs-code drift, status="Draft" for anything not yet approved to build against.

</requirement_unit_template>

</requirements-use>

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.