Sr spec

From DangQuangSE/team-development-skills · View interactive version

Sr spec is an AI agent skill from the GitHub repository DangQuangSE/team-development-skills. Phase 2 of the SRS workflow. Reads projects/{slug}/brainstorm.md and writes a comprehensive spec.md. No word limit.

How to use this skill

Skill file

sr:spec

Goal: turn the brainstorm output into a structured, comprehensive spec.

No word limit — every section must be fully written.


Step 0 — Identify Project

Ask user for the project slug (or detect from context):

AskUserQuestion: "Which project to write spec for? (slug name or path to brainstorm.md)"

Read projects/{slug}/brainstorm.md. If it doesn't exist, tell the user to run

/sr:brainstorm first.


Step 1 — Write spec.md

Write projects/{slug}/spec.md. No word limit. Every sub-section fully written.

§1 — Project Overview

§2 — Actors

One full entry per confirmed actor:

§3 — Features (IN Scope)

For each confirmed feature:

§4 — OUT of Scope

Table: Feature | Reason excluded | Planned for version

Every item from brainstorm OUT scope list.

§5 — Technical Constraints

§6 — Business Rules

Numbered list. Each rule: precise, testable statement.

Example: "BR-01: A user cannot place an order if their account balance is below the order total."

Cover every rule surfaced in brainstorm Round 5.

§7 — NFR Baselines

Table format:

| ID | Characteristic | Target | Status |

|----|---------------|--------|--------|

| NFR-01 | Response Time | < 500ms at p95 | Confirmed |

| NFR-02 | Availability | 99.9% uptime | Confirmed |

| NFR-03 | Data Retention | 7 years | [TBD: legal to confirm \| owner: PM \| resolve-by: Sprint 1] |

§8 — Assumptions

Numbered list. Each assumption: what is assumed + what happens if the assumption is wrong.

§9 — Open Items

Every [TBD] from the brainstorm open-items section, with:


Step 2 — Confirm Before Finishing

After writing, do a self-check:

Fix any gaps before outputting the handoff message.


Step 3 — Handoff

Output:

Spec written: projects/{slug}/spec.md

Actors:         {count}
Features (IN):  {count}
OUT scope:      {count}
Business rules: {count}
NFR baselines:  {count confirmed} confirmed, {count TBD} [TBD]
Open items:     {count}

Next: /sr:plan → breaks this spec into per-section SRS plan files
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.