agentleFS
agent-ixagent-ix/spec-skills/spec-write-fr/SKILL.md

spec-write-fr

Skill1 starsChanged 6 months agoMITView on GitHub

Define a normative Functional Requirement (FR) with complete specification.

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
  1. Distinctive:

    Every FR file MUST contain the following YAML frontmatter:

    line 41

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Select ID: Next available FR-XXX.
  2. Determine domain type. See object-type-guide.md.
  3. Use template:
    • Domain-typed FR: select template from the guide.
    • Standard behavioral FR: assets/functional-requirement-template.md
    • Example: assets/FR-001-example.md
  4. 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).
  5. Save to correct location:
    • Single Repo: spec/functional/FR-XXX-description.md
    • Multi-Repo: specs/<category>/<component>/spec/functional/FR-XXX-description.md

[!IMPORTANT] Domain-typed FRs use domain-specific top-level sections (e.g. ## Properties, ## Event Types, ## Endpoint). For dependencies, you MUST use the relationships: YAML frontmatter array instead of plain text under a ## Dependencies section. 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).

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.