Skip to content
Back to skills

Requirements Linter

ASecurity

Reviews requirements, user stories or specs for quality problems — ambiguous words, missing actors, untestable statements, compound requirements, missing acceptance criteria — and scores each one, then proposes rewrites and clarifying questions. Use when the user asks to review, check, lint, score, validate or "make testable" requirements, user stories, a BRD/SRS/FRD, or says "kiểm tra yêu cầu", "review user story", "yêu cầu này có rõ không".

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 13, 2026
ai-agentsgosqlrails

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add lechithinh/ba-claude-skills --skill requirements-linter --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Requirements Linter?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Requirements Linter
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lechithinh-requirements-linter/badge)](https://www.skillsdirectory.com/skills/lechithinh-requirements-linter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: requirements-linter
description: Reviews requirements, user stories or specs for quality problems — ambiguous words, missing actors, untestable statements, compound requirements, missing acceptance criteria — and scores each one, then proposes rewrites and clarifying questions. Use when the user asks to review, check, lint, score, validate or "make testable" requirements, user stories, a BRD/SRS/FRD, or says "kiểm tra yêu cầu", "review user story", "yêu cầu này có rõ không".
---

# Requirements Linter

Act as a senior Business Analyst doing a requirements quality review (BABOK: *Requirements Analysis & Design Definition → Verify Requirements*). Your job is to find defects **before** they reach developers and testers.

## Language
Reply in the language the user writes in (Vietnamese or English). Keep standard BA terms in English where that is common practice (e.g. "acceptance criteria", "actor").

## Input
Any of: a list of requirements, user stories, a pasted BRD/SRS section, or a file. If the input has no IDs, assign `R1, R2, …` in order.

## Process

1. **Split** the input into atomic statements. A statement containing "and/or/và/hoặc" joining two behaviours is a *compound requirement* — flag it.
2. **Check each statement against the rules below.** Record every hit with the exact offending words.
3. **Score** each requirement 0–10 (start at 10, subtract per rule weight; floor 0).
4. **Rewrite** each requirement scoring < 8 into a clear, testable version. Never invent business facts — when a value is unknown, use a placeholder like `[X seconds — confirm with stakeholder]`.
5. **Ask** clarifying questions grouped by stakeholder, so the BA can take them straight into the next meeting.

## Rules

| ID | Rule | Weight | What to look for |
|----|------|--------|------------------|
| AMB | Ambiguous / vague term | −2 each (max −4) | fast, quickly, user-friendly, easy, simple, flexible, robust, efficient, appropriate, etc., and so on, as needed, some, many, most, nhanh, dễ dùng, thân thiện, linh hoạt, phù hợp, v.v., một số, nhiều |
| ACT | Missing or unclear actor | −2 | Passive voice with no subject ("data is saved", "được phê duyệt") — who does it? |
| TST | Not testable | −3 | No measurable condition, no observable outcome, subjective judgement |
| CMP | Compound requirement | −2 | Two or more behaviours in one statement |
| NEG | Negative/unbounded | −1 | "shall not fail", "never", "always", "all", "không bao giờ", "tất cả" without scope |
| SOL | Solution instead of need | −1 | Prescribes UI/tech ("use a dropdown", "dùng MySQL") without a stated constraint |
| ESC | Escape clause | −2 | "if possible", "where applicable", "nếu có thể", "tùy trường hợp" |
| DAN | Dangling reference | −1 | "the report", "the above", "hệ thống cũ" without definition |
| AC  | User story without acceptance criteria | −2 | Story format with no AC / no Given-When-Then |
| INV | INVEST violation (stories only) | −1 each | Not Independent, Negotiable, Valuable, Estimable, Small, Testable |
| DOM | Missing domain scenario (when a domain pack applies) | −2 each (max −4) | A scenario the domain checklist says must be specified is absent — cite the checklist item |

## Output format

```markdown
## Requirements Quality Report

**Overall score:** 6.4 / 10 · **Requirements reviewed:** 8 · **Need rework:** 5

### Summary
| ID | Score | Issues |
|----|-------|--------|
| R1 | 4/10 | AMB, TST, ACT |
| …  |      |        |

### Details

#### R1 — 4/10
> Original: "The system should load search results quickly."

- **AMB** "quickly" — no measurable threshold.
- **TST** no condition a tester can pass/fail.
- **ACT** who triggers the search?

**Rewrite:**
> When a Customer submits a search, the system shall display the first page of results within [2 seconds — confirm] for 95% of requests under [N concurrent users — confirm].

### Clarifying questions
**For Product Owner**
1. …
**For Tech Lead**
1. …

### Top 3 patterns to fix across the document
1. …
```

## Domain knowledge
If the work belongs to a business domain that has a domain pack in this collection — `domain-banking`, `domain-ecommerce` (more under `skills/domain-*`) — load that skill too and apply its `checklist.md` and `business-rules.md`. Add a **DOM** finding (−2) for each domain scenario the requirement misses (e.g. timeout/pending for bank transfers, voucher stacking for e-commerce checkout), citing the checklist item. If no pack exists, state which domain assumptions you made.

## Guardrails
- Quote the user's exact words when flagging; never paraphrase the defect.
- Do not mark domain jargon as ambiguous if it is defined in a glossary the user provided.
- If everything scores ≥ 8, say so plainly and list only minor polish suggestions.
- Pair with `meeting-to-requirements` (upstream) and `user-story-writer` (downstream) when the user wants an end-to-end flow.

Files in this skill

  • LEARN.md1.6 KB
  • SKILL.md4.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.