Skip to content
Back to skills

066 Easy A85e1f25

ASecurity

Easy Approach to Requirements Syntax for clear, unambiguous requirements.

  • 9 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 11, 2026
security

Works with

  • cli

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 066-easy_a85e1f25 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 066 Easy A85e1f25?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 066 Easy A85e1f25
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-066-easy-a85e1f25/badge)](https://www.skillsdirectory.com/skills/tools-only-066-easy-a85e1f25)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# EARS Syntax

## EARS Format

Easy Approach to Requirements Syntax for clear, unambiguous requirements.

### Basic Pattern

```
While <precondition>, when <trigger>, the system shall <response>.
```

### Pattern Types

**Ubiquitous (Always True)**
```
The system shall [action].
```
Example: The system shall encrypt all passwords using bcrypt.

**Event-Driven**
```
When [trigger], the system shall [action].
```
Example: When the user clicks "Submit", the system shall save the form data.

**State-Driven**
```
While [state], the system shall [action].
```
Example: While the user is logged in, the system shall display the dashboard.

**Conditional (Most Common)**
```
While [state], when [trigger], the system shall [action].
```
Example: While the cart contains items, when the user clicks "Checkout", the system shall navigate to the payment page.

**Optional**
```
Where [feature enabled], the system shall [action].
```
Example: Where two-factor authentication is enabled, the system shall require a verification code.

## Examples by Domain

### Authentication

```markdown
**FR-AUTH-001**: Login
While credentials are valid, when POST /auth/login is called,
the system shall return JWT access token (15min) and refresh token (7d).

**FR-AUTH-002**: Invalid Login
When invalid credentials are provided,
the system shall return 401 and increment failed login counter.

**FR-AUTH-003**: Account Lockout
While failed login count exceeds 5, when login is attempted,
the system shall reject the attempt and require password reset.
```

### E-commerce

```markdown
**FR-CART-001**: Add to Cart
While user is logged in, when they click "Add to Cart",
the system shall add the item and update the cart badge count.

**FR-CART-002**: Apply Coupon
While the cart contains items, when a valid coupon code is applied,
the system shall reduce the total by the discount amount.

**FR-ORDER-001**: Checkout
While payment method is valid, when user confirms order,
the system shall create order, charge payment, and send confirmation email.
```

### Data Management

```markdown
**FR-EXPORT-001**: CSV Export
While user has data access permission, when they click "Export",
the system shall generate a CSV file and initiate download.

**FR-DELETE-001**: Soft Delete
When a resource is deleted,
the system shall set deleted_at timestamp instead of removing the record.
```

## Quick Reference

| Type | Structure | Use When |
|------|-----------|----------|
| Ubiquitous | shall [action] | Always applies |
| Event | When [X], shall | On trigger |
| State | While [X], shall | Continuous state |
| Conditional | While [X], when [Y], shall | State + trigger |
| Optional | Where [X], shall | Feature flag |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.