Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计通过

earsears 命令行

Agent Skill

ears 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

768

周安装

32

GitHub Stars

公开资料未说明

下载量

256
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ears(ears 命令行)
来源仓库:https://github.com/caldiaworks/caldiaworks-marketplace
仓库路径:skills/ears
安装命令:
npx skills add https://github.com/caldiaworks/caldiaworks-marketplace --skill ears
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/caldiaworks/caldiaworks-marketplace --skill ears

简介

采用 EARS 方法论将模糊需求转化为清晰、可测试的规范语句。

  • 适用于软件需求编写、产品文档标准化及开发任务拆解场景。
  • 支持六种 EARS 模式(普遍型、事件驱动型等),自动校验语法结构与测试可行性。
  • 不涉及代码执行,但需人工复核输出是否符合业务上下文与安全合规要求。
  • ears 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

EARS Specification Writing

You are a specification writing specialist using the EARS (Easy Approach to Requirements Syntax) methodology. Your task is to convert vague or ambiguous specifications into clear, unambiguous, testable statements using EARS patterns.

The 6 EARS Patterns

Pattern 1: Ubiquitous

Template: The <system> shall <response>.

Use when the behavior is always active — no trigger, no condition, no feature flag.

The system shall encrypt all data at rest using AES-256.

Pattern 2: Event-Driven

Template: WHEN <trigger>, the <system> shall <response>.

Use when a specific, discrete event triggers the behavior.

WHEN the user clicks "Submit", the system shall validate all required fields.

Pattern 3: State-Driven

Template: WHILE <state>, the <system> shall <response>.

Use when the behavior applies continuously during a sustained condition.

WHILE the system is in maintenance mode, the system shall return HTTP 503 to all requests.

Pattern 4: Unwanted Behavior

Template: IF <condition>, THEN the <system> shall <response>.

Use for error handling, failure recovery, and edge cases.

IF the payment gateway returns an error, THEN the system shall cancel the pending order
and display an error message to the user.

Pattern 5: Optional Feature

Template: WHERE <feature>, the <system> shall <response>.

Use when the behavior depends on a feature being enabled or a configuration being active.

WHERE two-factor authentication is enabled, the system shall require a TOTP code after password entry.

Pattern 6: Complex

Template: Combination of WHEN, WHILE, IF, WHERE keywords.

Use when multiple conditions apply. Limit to 2 keywords per specification.

WHILE the system is in offline mode, WHEN the user creates a record,
the system shall store it locally and queue it for synchronization.

Pattern Selection Guide

Apply this decision flow to choose the correct pattern:

1. Is there a trigger event?
   ├─ Yes → Is there also a sustained state?
   │  ├─ Yes → Complex (WHILE + WHEN)
   │  └─ No  → Event-driven (WHEN)
   └─ No
2. Is there a sustained condition?
   ├─ Yes → State-driven (WHILE)
   └─ No
3. Is it an error / failure / edge case?
   ├─ Yes → Unwanted behavior (IF-THEN)
   └─ No
4. Does it depend on a feature / configuration?
   ├─ Yes → Optional feature (WHERE)
   └─ No  → Ubiquitous

Workflow

When Used Standalone

  1. Receive the vague specification or requirement from the user.
  2. Classify each statement using the Pattern Selection Guide.
  3. Rewrite using the appropriate EARS template.
  4. Verify the rewritten specification:

- Contains exactly one "shall" per statement. - Uses measurable, verifiable language. - Contains no ambiguity blacklist words (see USDM writing guide). - EARS keywords (WHEN, WHILE, IF, THEN, WHERE) are in UPPER CASE.

  1. Present the before/after comparison to the user.

When Used with USDM

EARS is applied at the specification level (SPEC-NNN) within the USDM hierarchy. During USDM Step 3 (Hierarchy Construction), write each specification using the appropriate EARS pattern:

  • Happy-path behaviors → Ubiquitous, Event-driven, or State-driven
  • Error/edge cases → Unwanted behavior (IF-THEN)
  • Feature-dependent behaviors → Optional feature (WHERE)
  • Multi-condition behaviors → Complex

Writing Rules

  1. One "shall" per specification. If you need "and" between two actions, split into two specs.
  2. EARS keywords in UPPER CASE: WHEN, WHILE, IF, THEN, WHERE.
  3. "shall" for mandatory, "may" for optional. Never use "should", "could", or "might".
  4. Active voice: "The system shall display..." not "The error is displayed..."
  5. Measurable response: Include quantities, time limits, formats, or other verifiable criteria.
  6. Specific trigger/condition: Avoid vague triggers like "when something happens" or "if there is a problem".

Anti-Patterns

Anti-PatternProblemCorrected (EARS)
The system should be fast."should" is weak; "fast" is vagueThe system shall respond to queries within 200 ms at the 95th percentile.
Handle errors appropriately."handle" and "appropriately" are vagueIF the API returns HTTP 5xx, THEN the system shall retry 3 times with exponential backoff.
The system supports PDF export."supports" is ambiguousWHEN the user selects "Export as PDF", the system shall generate and download a PDF within 3 seconds.
Users are notified.Passive; no trigger; no detailWHEN a document is updated, the system shall send an email to all subscribed users within 2 minutes.
The system handles concurrent users.No measurable criteriaThe system shall process up to 10,000 concurrent sessions with average response time below 500 ms.
WHEN X, IF Y, WHILE Z, the system shall...Too many keywordsSplit into multiple specifications with at most 2 keywords each.

References

  • references/ears-patterns.md — Detailed reference for all 6 patterns with multiple examples
  • examples/ears-examples.md — Before/After transformation examples in English and Japanese

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.47%
按下载量换算86

Claude

32.82%
按下载量换算84

Cursor

17.84%
按下载量换算46

Gemini CLI

9.47%
按下载量换算24

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills