spec-write-fr
Skill1 starsChanged 6 months agoMITView on GitHub
Define a normative Functional Requirement (FR) with complete specification.
In this repository19 other files it gives its agents.
- spec-app-reviewSkill
- spec-blueprintSkill
- spec-dependency-analysisSkill
- spec-evidence-analysisSkill
- spec-failure-domain-analysisSkill
- specifySkill
- spec-integrity-analysisSkill
- spec-matrixSkill
- spec-object-reviewSkill
- spec-reviewSkill
- spec-risk-complexity-analysisSkill
- spec-scope-boundary-analysisSkill
- spec-security-analysisSkill
- spec-to-planSkill
- spec-us-to-frSkill
- spec-write-itSkill
- spec-write-nfrSkill
- spec-write-strSkill
- spec-write-usSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 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.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 41
Every FR file MUST contain the following YAML frontmatter:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Create Functional Requirement
Specify detailed system behavior and technical implementation requirements.
Rules
- Specific: Unambiguous definitions.
- Normative: Use
SHALL/SHALL NOT. - Complete: Inputs, outputs, errors, dependencies.
- Separation of Concerns: Domain-typed FRs must be purely structural (defining schemas, payloads, or endpoints). Behavioral triggers and validations (the "when", "if", and "why") must remain in non-domain Source FRs. Do NOT copy behavioral Acceptance Criteria into Domain FRs.
Process
- Select ID: Next available
FR-XXX. - Determine domain type. See object-type-guide.md.
- Use template:
- Domain-typed FR: select template from the guide.
- Standard behavioral FR:
assets/functional-requirement-template.md - Example:
assets/FR-001-example.md
- Specify sections:
- Domain-typed FRs: use domain-specific sections from the template.
- Standard FRs: Inputs, Outputs, Behavior, States.
- Options: Implementation alternatives (
FR-XXX-OPT-A). - Constraints: Limiters (
FR-XXX-CON-1). - Errors: Conditions, codes, recovery.
- Acceptance Criteria: Verifiable checks (
FR-XXX-AC-1).
- Save to correct location:
- Single Repo:
spec/functional/FR-XXX-description.md - Multi-Repo:
specs/<category>/<component>/spec/functional/FR-XXX-description.md
- Single Repo:
[!IMPORTANT] Domain-typed FRs use domain-specific top-level sections (e.g.
## Properties,## Event Types,## Endpoint). For dependencies, you MUST use therelationships:YAML frontmatter array instead of plain text under a## Dependenciessection. For Domain-typed FRs, Acceptance Criteria must only test structural compliance (e.g. schema validation).
Frontmatter (Required)
Every FR file MUST contain the following YAML frontmatter:
---
id: FR-XXX
title: "<Title>"
artifact_type: FR
relationships: # Required: Structured array of all dependencies
- target: "ix://org/repo/Target"
type: "calls" # Valid types: calls, implements, publishes, consumes, reads, writes, triggers, requires, depends_on
cardinality: "1:1"
---When defining dependencies, use precise semantic verbs. For example, if a process makes a synchronous API call to another system, use a calls relationship. If an endpoint publishes an event to a broker, use a publishes relationship. If an endpoint is secured by a specific permission, use a requires relationship to the scope FR.
Structure
Define all fields with types, validation rules, and descriptions.
Domain-typed FRs additionally include object: and optionally parent_process: (see object-type-guide).
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.

