Command Palette

Search for a command to run...

Назад к скиллам
скилл № 91201

spec-audit

Evaluate the project's YAML spec corpus against IEEE/ISO/IEC 29148:2018 requirements quality attributes. Produces a Deficient/Marginal/Satisfactory finding…

БесплатноБез исполняемых скриптов
CERTCCот CERTCC★ 22 звезды на GitHub

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

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

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

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

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

Skill: Spec Audit (IEEE 29148:2018)

Purpose

Apply the IEEE/ISO/IEC 29148:2018 requirements quality rubric to the project's spec corpus. Two evaluation tiers:

  1. Per-requirement — score each requirement against the nine 29148 quality attributes and surface findings with before/after rewrites.
  2. Corpus-level — check whether the spec set as a whole satisfies 29148 document-level requirements (scope statement, defined terms, stakeholder identification, traceability, rationale).

Invocation

/spec-audit [filter]

filter is optional. It may be a topic ID (ARCH), a requirement ID prefix (CM-03), or a YAML filename stem (case-management). When omitted, all topics are evaluated.

Rating Scale (29148-native)

Rating Meaning
Deficient Attribute clearly violated; requirement needs correction before use
Marginal Attribute partially satisfied; improvement would meaningfully reduce risk
Satisfactory Attribute adequately met; no action required
QUESTION Attribute cannot be assessed without human input; elicitation prompt included

Every Deficient or Marginal finding MUST include both the current text and a proposed replacement — never just a description of the problem.

The Nine 29148 Attributes

Automatable (score Deficient / Marginal / Satisfactory)

Necessary — The requirement defines something the system genuinely needs. Watch for: duplicates of other requirements; gold-plating; requirements that describe internal implementation detail rather than observable behaviour.

Unambiguous — Only one valid interpretation exists. Watch for: vague adverbs (appropriately, as needed, sufficiently, adequately, in a timely manner); and/or; etc.; pronouns without clear referents; comparative adjectives without a baseline (better, improved).

Verifiable — A test or inspection can confirm compliance. Watch for: non-measurable adjectives (fast, reliable, easy, flexible, robust, secure, user-friendly); no testable condition; passive voice where the actor is unstated and ambiguous.

Complete — No information is missing; no placeholders. Watch for: TBD, TODO, TBC, [placeholder]; missing units on quantified claims; undefined cross-references within the statement.

Singular — Exactly one requirement stated. Watch for: multiple SHALL/MUST obligations in one statement; and connecting two independent behavioural obligations; compound conditions that could be split without loss.

Conforming — Follows project YAML schema and writing conventions. Check: required fields present (id, type, priority, statement); priority value is a valid keyword (MUST/SHALL/SHOULD/MAY/MUST NOT); statement uses the keyword vocabulary consistently.

Elicitation-Only (always emit QUESTION, never score)

Feasible — Can be implemented within current constraints. Elicitation prompt: "Is this achievable with the current technology stack, timeline, and team capacity? What assumptions or constraints would make it infeasible?"

Correct — Accurately reflects actual stakeholder needs. Elicitation prompt: "Has this been validated with the stakeholder(s) it represents? Could the current wording lead to implementing something different from what they intended?"

Appropriate — Right altitude for a requirements specification. Elicitation prompt: "Is this stated at the right level of detail — neither so abstract it provides no implementable guidance, nor so detailed it over-specifies the implementation?"


Workflow

Phase 1 — Load Context

  1. Write the full corpus to a file — this audit legitimately needs every requirement, but the dump (~2.5 MB) is far too large to print: PYTHONPATH= uv run spec-dump > /tmp/specs.json (the stderr size warning is expected). The JSON has three keys: topics (array), requirements (array), edges (array). Query it with jq or python (per topic, per check) rather than reading it whole. With a filter argument, prefer a targeted load (--topic, --group, --ids) instead.
  2. Read docs/reference/glossary.md to extract the defined term table.
  3. Read all files under docs/_acronyms/ to collect defined acronyms.
  4. Build a defined-terms set: every term in the glossary + every acronym.
  5. If a filter argument was provided, restrict requirements to those whose topic, id, or source file matches the filter. Log how many requirements remain after filtering.

Phase 2 — Per-Topic Evaluation (Parallel Workflow)

Launch a Workflow with one agent per topic in the filtered requirement set. Each agent receives:

  • The list of requirements for its topic (JSON array)
  • The defined-terms set
  • The rubric from this skill (the nine attributes above)

Each agent returns a JSON array of findings. Schema per finding:

{
  "req_id": "CM-03-001",
  "topic": "CM",
  "attribute": "unambiguous",
Полный SKILL.md на GitHub

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

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

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

FAQ

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

Evaluate the project's YAML spec corpus against IEEE/ISO/IEC 29148:2018 requirements quality attributes. Produces a Deficient/Marginal/Satisfactory finding per requirement, inline elicitation questions for attributes requiring human judgment, a corpus-level completeness check, suggested rewrites, and an interactive follow-up flow (GitHub issue, auto-fix, grill-me session).

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

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

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

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

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

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