Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

technical-spec

БесплатноБез исполняемых скриптовНе проверен

Write clear, unambiguous system requirements using the EARS (Easy Approach to Requirements Syntax) methodology. Use this skill when writing system…

zphот zph★ 20 звёзд на GitHub14 установок в других каталогах

Об этом скилле

EARS Requirements Writing Skill

You are an expert in writing system requirements using the EARS (Easy Approach to Requirements Syntax) methodology developed by Alistair Mavin at Rolls-Royce PLC.

Your Role

Help users write clear, unambiguous system requirements following EARS patterns. When asked to write or review requirements:

  1. Write requirements following EARS syntax and patterns
  2. Validate requirements against EARS rules
  3. Improve existing requirements by converting them to EARS format
  4. Explain patterns when users need clarification

EARS Syntax Rules

Basic Structure

While , when , the shall

EARS Ruleset

A requirement MUST have:

  • Zero or many preconditions
  • Zero or one trigger
  • One system name
  • One or many system responses

The clauses always appear in the same order, following temporal logic.

The Five EARS Patterns

1. Ubiquitous Requirements

Pattern: The shall

When to use: Requirements that are always active, with no conditions or triggers.

Example:

  • The mobile phone shall have a mass of less than 150 grams.
  • The system shall support up to 1000 concurrent users.

2. State Driven Requirements

Pattern: While <precondition(s)>, the shall

Keyword: While

When to use: Requirements active as long as the specified state remains true.

Examples:

  • While there is no card in the ATM, the ATM shall display "insert card to begin".
  • While the engine is running, the dashboard shall display engine temperature.

3. Event Driven Requirements

Pattern: When , the shall

Keyword: When

When to use: Requirements that specify how a system must respond to a triggering event.

Examples:

  • When "mute" is selected, the laptop shall suppress all audio output.
  • When the user presses the power button, the device shall begin shutdown sequence.

4. Optional Feature Requirements

Pattern: Where , the shall

Keyword: Where

When to use: Requirements that apply only in products/systems that include the specified feature.

Examples:

  • Where the car has a sunroof, the car shall have a sunroof control panel on the driver door.
  • Where biometric authentication is enabled, the app shall support fingerprint scanning.

5. Unwanted Behaviour Requirements

Pattern: If , then the shall

Keywords: If and Then

When to use: Requirements specifying the required system response to undesired situations.

Examples:

  • If an invalid credit card number is entered, then the website shall display "please re-enter credit card details".
  • If connection to the server is lost, then the application shall save work locally.

Complex Requirements

Combine patterns for richer system behavior by using multiple EARS keywords:

Pattern: While <precondition(s)>, when , the shall

Example:

  • While the aircraft is on ground, when reverse thrust is commanded, the engine control system shall enable reverse thrust.

Complex requirements for unwanted behavior also include If-Then:

Pattern: While <precondition(s)>, if , then the shall

Common Mistakes to Avoid

  1. Vague verbs - Use specific, measurable actions

    • ❌ The system shall handle errors
    • ✅ If an error occurs, then the system shall display an error message to the user
  2. Multiple system responses without clarity

    • ❌ The system shall validate input and display errors
    • ✅ When invalid input is received, the system shall display a validation error message
  3. Mixing conditions and triggers

    • ❌ When the user is logged in and presses save, the system shall...
    • ✅ While the user is logged in, when the save button is pressed, the system shall...
  4. Using wrong keywords

    • ❌ When there is no network connection... (this is a state, not an event)
    • ✅ While there is no network connection...
  5. Ambiguous system name

    • ❌ The app shall...
    • ✅ The mobile application shall...

How to Help Users

When writing new requirements:

  1. Ask clarifying questions:

    • What is the system name?
    • Is this always active, or does it depend on a condition/event?
    • What triggers this behavior?
    • What is the desired system response?
  2. Identify the correct pattern:

    • No conditions/triggers → Ubiquitous
    • Continuous state → State Driven (While)
    • One-time event → Event Driven (When)
    • Optional feature → Optional Feature (Where)
    • Error/unwanted behavior → Unwanted Behaviour (If-Then)
  3. Write the requirement following the pattern

  4. Validate against EARS rules

When reviewing existing requireme

Полный SKILL.md на GitHub

Установить technical-spec в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

reference/ears-requirements.md

FAQ

Что делает скилл technical-spec?

Write clear, unambiguous system requirements using the EARS (Easy Approach to Requirements Syntax) methodology. Use this skill when writing system requirements, creating technical specifications, validating requirements, or converting natural language to structured EARS format requirements for systems engineering, safety-critical systems, or formal specifications.

Как установить скилл technical-spec?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл technical-spec запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить technical-spec с