agentdev-req-file-manager

Manages requirement file numbering, creation, appending, and updating for REQ documents.

Updated Mar 7, 2026
One-click install
npx skills add https://github.com/yogata/agent-dev-flow --skill agentdev-req-file-manager-yogata
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agentdev-req-file-manager
Source: https://github.com/yogata/agent-dev-flow/tree/main/src/opencode/skills/agentdev-req-file-manager
Command: npx skills add https://github.com/yogata/agent-dev-flow --skill agentdev-req-file-manager-yogata

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires typescript, @types/bun, and includes scripts (resource) and references (resource) components.

What problem does it solve? Keeping requirement documents consistent is hard: REQ numbers must never collide or reuse gaps, requirement line IDs must follow a strict format, and teams need clear rules for deciding whether a change means creating a new requirement file, appending a line, or updating an existing section. This Skill codifies those rules and provides deterministic scripts so numbering and file operations stay correct. ## Core Features & Use Cases - Deterministic ID allocation: TypeScript scripts allocate the next REQ number (max+1, no gap filling) and requirement line IDs (REQ-NNNN-MMM) as pure functions with JSON output. - CREATE/APPEND/UPDATE operation modes: Clear decision flow and five-axis evaluation criteria for matching user intent against existing REQ files before writing. - Validation and consistency rules: Frontmatter conventions (id, title, created, updated), filename-to-ID matching, date validation, classification gates, and merge-conflict resolution patterns. - Use Case: While defining requirements in a wall-bashing session, the agent matches the intent against existing REQ files, decides APPEND is appropriate, allocates the next requirement line ID via script, and updates the file and index consistently. ## Quick Start Ask the agent to create or update a requirement file for your feature, and it will match existing REQs, allocate the correct REQ number, and save the file under docs/requirements.

Frequently Asked Questions about agentdev-req-file-manager

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a new requirement file with the correct REQ number?▼

Run the alloc-req-number.ts script against the docs/requirements directory; it scans existing files, finds the maximum number, and returns the next ID as JSON. Gap numbers are never reused, so allocation is always max plus one.

How do I decide between CREATE, APPEND, and UPDATE for a requirement change?▼

If no matching REQ file exists, use CREATE. If a matching file exists and you are adding new requirement lines, use APPEND. If you are modifying existing section content or frontmatter fields, use UPDATE. A five-axis evaluation covering component, scope, and purpose continuity guides the choice.

What frontmatter fields are required in a REQ file?▼

Each REQ file requires four frontmatter fields: id (matching the REQ-NNNN filename), title (non-empty), created, and updated (both in YYYY-MM-DD format with updated not earlier than created). Related metadata like status and related ADRs goes in the body, not frontmatter.

Does this skill handle bugfix requirements?▼

No. Bugfixes do not create REQ files; requirements are managed only in the Issue body. If a bugfix requires modifying an existing REQ file, it is promoted to a feature work type and handled through the normal REQ file operations.

What happens when a requirement update hits a merge conflict?▼

Automatic conflict resolution is prohibited; conflicts must be resolved manually. The skill defines patterns: keep the older created date, take the newest updated date, merge requirement lines by ID order, and renumber duplicated line IDs to max plus one.