agentleFS
yh594774855yh594774855/skill-collection/skills/feature-design/SKILL.md

feature-design

Skill0 starsChanged 3 months agoMITView on GitHub

Guide users through feature specification development using EARS patterns and INCOSE quality rules. Creates requirements documents and technical design specifications with iterative user feedback.

  • Commits and pushes

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 15 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 15

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No vague terms: - Avoid "quickly", "adequate", "user-friendly"

    line 43
  2. Distinctive:

    No escape clauses: - Avoid "where possible", "if feasible"

    line 44
  3. Distinctive:

    No negative statements: - Avoid "SHALL NOT" (rephrase positively)

    line 45
  4. Distinctive:

    Consistent terminology: - Use defined terms from glossary

    line 48
  5. Distinctive:

    No pronouns: - Avoid "it", "them", "this"

    line 49
  6. Distinctive:

    No absolutes: - Avoid "never", "always", "100%"

    line 50
  7. Very specific:

    Read project documentation from docs/ if available:

    line 136
  8. Distinctive:

    Ask clarifying questions (maximum 3 questions per round)

    line 150
  9. Distinctive:

    Update document based on feedback

    line 152
  10. Distinctive:

    Add pretty-printer requirements for each parser

    line 156
  11. Very specific:

    Create feature name with date prefix (e.g., 2025-01-15-user-authentication)

    line 163
  12. Very specific:

    Create initial design outline in specs/{FEATURE_NAME}/design.md

    line 164
  13. Very specific:

    Read docs/INDEX.md and docs/ARCHITECTURE.md

    line 167
  14. Distinctive:

    Ensure design addresses all requirements from Phase 1

    line 180
  15. Distinctive:

    Ask technical questions (maximum 3 per round)

    line 185
  16. Distinctive:

    Update based on feedback

    line 186
  17. Distinctive:

    Commit changes with git commit

    line 189
  18. Distinctive:

    All communication with users must use the project's configured language

    line 216
  19. Distinctive:

    Always validate requirements against both EARS and INCOSE rules

    line 218

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “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

Feature Design

Transform rough feature ideas into detailed requirements and technical design documents through an iterative, user-collaborative process.

Overview

This skill implements a Spec-Driven Development (SDD) workflow that systematically:

  1. Captures and refines feature requirements using EARS (Easy Approach to Requirements Syntax)
  2. Validates requirements against INCOSE semantic quality rules
  3. Creates technical design documents with architecture, components, and implementation plans

Glossaries

EARS (Easy Approach to Requirements Syntax)

EARS provides standardized templates for writing clear, unambiguous requirements:

PatternTemplateExample
UbiquitousThe <system> SHALL <function>The system SHALL provide user login functionality
Event-DrivenWHEN <trigger>, the <system> SHALL <function>WHEN user clicks "Login", the system SHALL validate credentials
State-DrivenWHILE <state>, the <system> SHALL <function>WHILE user is logged in, the system SHALL display dashboard
Unwanted-BehaviorIF <condition>, the <system> SHALL <function>IF password fails 3 times, the system SHALL lock account for 30 minutes
Complex[WHERE] [WHILE] [WHEN/IF] THE <system> SHALL <function>Clause order: WHERE → WHILE → WHEN/IF → THE → SHALL

INCOSE Semantic Quality Rules

Requirements must comply with these quality rules:

  • Active voice - Clearly state who does what
  • No vague terms - Avoid "quickly", "adequate", "user-friendly"
  • No escape clauses - Avoid "where possible", "if feasible"
  • No negative statements - Avoid "SHALL NOT" (rephrase positively)
  • One thought per requirement - Single, testable concept
  • Explicit conditions - Measurable criteria and thresholds
  • Consistent terminology - Use defined terms from glossary
  • No pronouns - Avoid "it", "them", "this"
  • No absolutes - Avoid "never", "always", "100%"
  • Solution-free - Focus on what, not how

Document Templates

Requirements Document (requirements.md)

# Requirements Document

## Introduction

[Summary of the feature/system]

## Glossary

- **System/Term**: [Definition]

## Requirements

### Requirement 1

**User Story:** AS [role], I want [feature], so that [benefit]

#### Acceptance Criteria

1. WHEN [event], [system] SHALL [response]
2. WHILE [state], [system] SHALL [response]
3. IF [unwanted event], [system] SHALL [response]
... (2-5 EARS definitions per requirement)

[Repeat for other requirements]

Design Document (design.md)

# [Feature Title]

Feature Name: feature-name
Updated: yyyy-mm-dd

## Description

[Feature description]

## Architecture

[Mermaid diagrams as needed]
[Architecture explanation]

## Components and Interfaces

[Component and interface descriptions]

## Data Models

[Data structure descriptions]

## Correctness Properties

[Invariants and constraints]

## Error Handling

[Error scenarios and handling strategies]

## Test Strategy

[Testing approach and coverage]

## References

[^1]: (Website) - [Page description](URL)
[^2]: (Filename#Lnnn) - [File link](relative/path)

Workflow

Phase 1: Requirements Generation

  1. Initialize Feature
    • Generate a short feature name in kebab-case format (e.g., user-authentication)
    • Create directory specs/{FEATURE_NAME}/
  2. Gather Context
    • Read project documentation from docs/ if available:
      • INDEX.md - Project overview
      • ARCHITECTURE.md - System architecture
    • Scan specs/*/ for related historical requirements
    • Understand existing code structure
  3. Generate Initial Requirements
    • Decompose the feature idea into user stories
    • Apply EARS patterns to each acceptance criterion
    • Validate against INCOSE quality rules
    • Write to specs/{FEATURE_NAME}/requirements.md
  4. Iterate with User
    • Present requirements document to user
    • Ask clarifying questions (maximum 3 questions per round)
    • Provide options with reasonable defaults
    • Update document based on feedback
  5. Special Handling for Parsers/Serializers
    • Explicitly list all parsers and serializers as requirements
    • Add pretty-printer requirements for each parser
    • Include round-trip validation in acceptance criteria

Phase 2: Technical Design

  1. Initialize Design Document
    • Get current date via date '+%Y-%m-%d'
    • Create feature name with date prefix (e.g., 2025-01-15-user-authentication)
    • Create initial design outline in specs/{FEATURE_NAME}/design.md
  2. Gather Technical Context
    • Read docs/INDEX.md and docs/ARCHITECTURE.md
    • Analyze project structure and existing patterns
    • Review related specifications in specs/
  3. Generate Design Document
    • Include all required sections:
      • Description
      • Architecture (with Mermaid diagrams)
      • Components and Interfaces
      • Data Models
      • Correctness Properties
      • Error Handling
      • Test Strategy
    • Ensure design addresses all requirements from Phase 1
    • Highlight design decisions and rationale
  4. Iterate with User
    • Present design document to user
    • Ask technical questions (maximum 3 per round)
    • Update based on feedback
  5. Finalize
    • Commit changes with git commit
    • Push to remote with git push
    • Summarize deliverables to user

Decision Points

During the workflow, ask the user about:

TopicExample Questions
ScopeWhich user roles need this feature?
IntegrationShould this integrate with existing systems?
PerformanceWhat are the expected load requirements?
SecurityWhat authentication/authorization is needed?
DataWhat data needs to be persisted?
Error HandlingHow should failures be communicated to users?

Output Files

specs/{FEATURE_NAME}/
├── requirements.md    # EARS-compliant requirements
└── design.md          # Technical design specification

Notes

  • All communication with users must use the project's configured language
  • Maximum 3 clarifying questions per iteration round
  • Always validate requirements against both EARS and INCOSE rules
  • Correct non-compliant user inputs and explain corrections
  • Design documents should be solution-agnostic where possible
  • Include Mermaid diagrams for complex architectures
  • Reference specific files with line numbers when applicable

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.