Req add

From SteveGJones/ai-first-sdlc-practices · View interactive version

Req add is an AI agent skill from the GitHub repository SteveGJones/ai-first-sdlc-practices. Mint a new REQ ID in the Assured project's namespace, with module assignment, and append it to the requirements-spec.

How to use this skill

Skill file

<!-- implements: DES-assured-skills-001 -->

Skill: req-add

Use this skill when adding a new requirement to an existing requirements-spec under the Assured bundle. Computes the next sequential ID for the feature and module, prompts for the requirement text, and appends a properly-formatted ### REQ-... section.

Inputs

Steps

  1. Locate the requirements-spec. Read docs/specs/<feature-id>/requirements-spec.md. If the project uses positional decomposition, read the spec for the matching module.
  1. Compute the next REQ number. Scan existing ### REQ-... headings. New ID is the max + 1, zero-padded to 3 digits.
  1. Prompt for the requirement text. Ask: "Single declarative sentence describing the new requirement?"
  1. Append the section.

```markdown

### REQ-<feature-id>-<NNN>

<text>

Module: <module-id>

```

  1. Confirm. Show the diff to the user before saving.
  1. Save. Write the file.
  1. Remind. "Next steps: add a corresponding DES in design-spec.md (use req-link), then a TEST in test-spec.md."

Done criteria

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.