derive-nfr-from-driver
Skill54 starsChanged 6 months agoMITView on GitHub
Derives measurable NFRs from a parent business driver.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- architecture-sketchingSkill
- autonomous-bug-fixSkill
- behavioral-foundationSkill
- brainstormingSkill
- codebase-onboardingSkill
- code-reviewSkill
- debuggingSkill
- demand-eleganceSkill
- derive-security-from-riskSkill
- dispatching-parallel-agentsSkill
- durable-workSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- plan-before-codeSkill
- pr-workflowSkill
- receiving-code-reviewSkill
- refactoringSkill
- requesting-code-reviewSkill
- requirements-elicitationSkill
- safety-guardrailsSkill
- security-auditSkill
- self-improvementSkill
- subagent-strategySkill
- test-writingSkill
- traceability-gateSkill
- using-git-worktreesSkill
- using-superpowersSkill
- verify-before-doneSkill
- template-skillSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
NOT: when the driver itself is unratified — go to requirements-elicitation first.
- Distinctive: line 40
If a prerequisite is missing the skill must stop and report — never emit an NFR pointing at a non-existent or unratified parent.
- Very specific: line 84
Read the parent BR-* and any candidate FR-* with view.
- Very specific: line 125
DO NOT: write measurable: false to bypass the gate.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Derive NFR From Driver
Turns a ratified business driver (BR) — and the functional requirements (FRs) derived from it — into measurable Non-Functional Requirements with verified parentage. This skill does NOT elicit drivers and does NOT invent FRs; it derives NFRs against parents that already exist on disk.
When to Use
- A
BR-*and at least oneFR-*exist for the engagement and need performance, availability, scalability, or accessibility targets before Phase D begins. - The architect is about to design components and needs SLO-shaped inputs, not adjectives.
- A reviewer asks "what does fast mean?" — derive an NFR with a numeric target instead of arguing prose.
- NOT when the driver itself is unratified — go to
requirements-elicitationfirst.
Prerequisites
requirements/<engagement>/BR/contains at least one ratifiedBR-*artifact (ratified_byis non-empty).requirements/<engagement>/FR/contains the FR(s) this NFR will constrain.spec/artifact-schema.mdis the contract for frontmatter fields.
If a prerequisite is missing the skill must stop and report — never emit an NFR pointing at a non-existent or unratified parent.
How to Run
# 1. Confirm the parent exists and is ratified
bash scripts/verify-traceability.sh requirements/<engagement>
# 2. Create the NFR file (filename MUST equal {id}.md)
# Then run the gate again to prove the new link resolves
bash scripts/verify-traceability.sh requirements/<engagement>Quick Reference
| Action | Tool | Notes |
| Read parent BR/FR | view | Get the exact id values. |
| List existing NFRs | glob requirements/<engagement>/NFR/*.md | Pick the next free NFR-NNN. |
| Write NFR | create | Frontmatter per spec/artifact-schema.md. |
| Verify lineage | bash scripts/verify-traceability.sh | Must pass before commit. |
The frontmatter the agent emits:
---
id: NFR-007
layer: NFR
title: Classification latency under load
parent_ids: [BR-001, FR-002]
owner: jane.doe@example.com
measurable: true
ratified_by: ""
target: "p95 < 2s on 3G, p99 < 4s"
derivation_skill: derive-nfr-from-driver
tags: [latency, classification]
---Procedure
Step 1: Assess
- Read the parent
BR-*and any candidateFR-*withview. - Identify the quality attribute the driver implies: latency, throughput, availability, durability, accessibility, recoverability, observability, portability.
- Reject the derivation outright if the driver is unratified
(
ratified_byempty). Send back torequirements-elicitation.
Step 2: Derive
For each quality attribute, write one NFR with:
- A numeric target in the
targetfield (percentile + threshold + operating envelope — never just "fast"). If you cannot write a number, you have not derived an NFR yet. - A measurement method stated in the body (synthetic probe, RUM, load test fixture). Without it the NFR is unfalsifiable.
- An operating envelope: load profile, network condition, payload size. NFRs without envelopes drift on contact with production.
Step 3: Link
parent_idsMUST include the driver'sBR-*and SHOULD include the most specificFR-*the NFR constrains.derivation_skill: derive-nfr-from-driveris mandatory — the curator uses this to attribute learned patterns.
Step 4: Confirm
bash scripts/verify-traceability.sh requirements/<engagement>The gate must pass with zero failures. A warning on ratified_by is
expected until a human ratifies the NFR at the architecture review
board.
Pitfalls
- DO NOT invent a parent BR to justify an NFR you already wanted — the skill exists specifically to prevent this. If the parent does not exist, stop.
- DO NOT write
measurable: falseto bypass the gate; the gate fails on it for NFRs by design (seespec/artifact-schema.md§2.3). - DO NOT parent an NFR to another NFR — the schema disallows it. NFRs are leaves of the requirement layer, not branches.
- DO NOT set
ratified_byfrom inside the agent. Ratification is the human's signal that the derivation is accepted. The agent leaves it blank. - DO NOT copy the driver's prose into the
targetfield. The target is a number with units; the prose belongs in the body.
Verification
- New
NFR-*.mdfilename equals itsid. parent_idslists at least oneBR-*that exists on disk.targetcontains a numeric threshold and an operating envelope.bash scripts/verify-traceability.sh requirements/<engagement>exits 0.bash scripts/gen-rtm.sh requirements/<engagement>shows the new NFR linked under its driver indocs/rtm.md.bash scripts/verify.shpasses the full gate.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

