Token导航 LogoToken导航

Agent Skill · 开发

doc-bdd-reviewer(文档 bdd 审稿人)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

doc-bdd-reviewer 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在开发类的 21,746 个 Skill 里排第 15,217。

总安装 618周安装 26GitHub Stars 14下载 216核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill doc-bdd-reviewer

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

对 BDD 文档进行深度内容审查与质量保障。适用于 Gherkin 语法正确性、场景完整性与步骤复用性检查。执行 EARS 对齐与人工复核建议生成,作为最终 QA 门。需在 doc-bdd-autopilot 生成后立即调用,仅限指定宿主。

doc-bdd-reviewer 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/doc-bdd-reviewer

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill doc-bdd…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

doc-bdd-reviewer 怎么安装?

在终端执行 npx skills add https://github.com/vladm3105/aidoc-flow-framework --skill doc-bdd-reviewer。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

doc-bdd-reviewer 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

doc-bdd-reviewer 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

doc-bdd-reviewer 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

doc-bdd-reviewer 用的人多吗?

公开数据是累计安装 618 次,近一周安装 26 次,下载 216 次,GitHub 14 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

doc-bdd-reviewer 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
doc-bdd-reviewer

文档 bdd 审稿人 · 本页

61814只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

doc-bdd-reviewer

Purpose

Comprehensive content review and quality assurance for Behavior-Driven Development (BDD) documents. This skill performs deep content analysis beyond structural validation, checking Gherkin syntax correctness, scenario completeness, EARS alignment, step definition reusability, and identifying issues that require manual review.

Layer: 4 (BDD Quality Assurance)

Upstream: BDD (from doc-bdd-autopilot or doc-bdd)

Downstream: None (final QA gate before ADR generation)


When to Use This Skill

Use doc-bdd-reviewer when:

  • After BDD Generation: Run immediately after doc-bdd-autopilot completes
  • Manual BDD Edits: After making manual changes to BDD scenarios
  • Pre-ADR Check: Before running doc-adr-autopilot
  • Periodic Review: Regular quality checks on existing BDD
  • CI/CD Integration: Automated review gate in documentation pipelines

Do NOT use when:

  • BDD does not exist yet (use doc-bdd or doc-bdd-autopilot first)
  • Need structural/schema validation only (use doc-bdd-validator)
  • Generating new BDD content (use doc-bdd)

Skill vs Validator: Key Differences

Aspectdoc-bdd-validatordoc-bdd-reviewer
FocusSchema compliance, ADR-Ready scoreContent quality, step reusability
ChecksRequired sections, Gherkin syntaxScenario coverage, EARS traceability
Auto-FixStructural issues onlyContent issues (syntax, formatting)
OutputADR-Ready score (numeric)Review score + issue list
PhasePhase 4 (Validation)Phase 5 (Final Review)
BlockingADR-Ready < threshold blocksReview score < threshold flags

Review Workflow

flowchart TD
    A[Input: BDD Path] --> B[Load BDD Files]
    B --> B2[0. Structure Compliance]
    B2 --> B3{Structure Valid?}
    B3 -->|No| B4[BLOCKING - Stop Review]
    B3 -->|Yes| C{Single or Multiple Features?}

    C -->|Multiple| D[Load All Feature Files]
    C -->|Single| E[Load Single File]

    D --> F[Run Review Checks]
    E --> F

    subgraph Review["Review Checks"]
        F --> G[1. Gherkin Syntax Compliance]
        G --> H[2. Scenario Completeness]
        H --> I[3. EARS Alignment]
        I --> J[4. Step Definition Reusability]
        J --> K[5. Data Table Validation]
        K --> L[6. Placeholder Detection]
        L --> M[7. Naming Compliance]
        M --> M2[8. Upstream Drift Detection]
    end

    M2 --> N{Issues Found?}
    N -->|Yes| O[Categorize Issues]
    O --> P{Auto-Fixable?}
    P -->|Yes| Q[Apply Auto-Fixes]
    Q --> R[Re-run Affected Checks]
    P -->|No| S[Flag for Manual Review]
    R --> N
    S --> T[Generate Report]
    N -->|No| T
    T --> U[Calculate Review Score]
    U --> V{Score >= Threshold?}
    V -->|Yes| W[PASS]
    V -->|No| X[FAIL with Details]

Review Checks

0. Structure Compliance (12/12) - BLOCKING

Validates BDD follows the mandatory nested folder rule.

Nested Folder Rule: ALL BDD documents MUST be in nested folders.

Required Structure:

BDD TypeRequired Location
Markdowndocs/04_BDD/BDD-NN_{slug}/BDD-NN_{slug}.md
Featuredocs/04_BDD/BDD-NN_{slug}/BDD-NN_{slug}.feature

Error Codes:

CodeSeverityDescription
REV-STR001ErrorBDD not in nested folder (BLOCKING)
REV-STR002ErrorFolder name doesn't match BDD ID
REV-STR003WarningFile name doesn't match folder name

This check is BLOCKING - BDD must pass structure validation before other checks proceed.


1. Gherkin Syntax Compliance

Validates all scenarios follow correct Gherkin syntax.

Scope:

  • Feature files have proper structure
  • Given-When-Then order correct
  • Background used appropriately
  • Scenario Outline with Examples
  • Tags properly formatted

Error Codes:

CodeSeverityDescription
REV-GS001ErrorMissing Feature keyword
REV-GS002ErrorGiven-When-Then order incorrect
REV-GS003WarningBackground could simplify scenarios
REV-GS004WarningScenario Outline missing Examples
REV-GS005InfoTag format non-standard

2. Scenario Completeness

Validates scenarios cover all requirement aspects.

Scope:

  • Happy path covered
  • Error conditions tested
  • Edge cases identified
  • Boundary values checked
  • Negative scenarios present

Error Codes:

CodeSeverityDescription
REV-SC001ErrorNo happy path scenario
REV-SC002WarningError condition not tested
REV-SC003WarningEdge case not covered
REV-SC004InfoBoundary value not tested
REV-SC005InfoNegative scenario missing

3. EARS Alignment

Validates BDD scenarios trace to EARS requirements.

Scope:

  • Every scenario maps to EARS requirement
  • No orphaned scenarios
  • Coverage complete for all EARS
  • Feature IDs consistent

Error Codes:

CodeSeverityDescription
REV-EA001ErrorScenario without EARS source
REV-EA002WarningEARS requirement without scenario
REV-EA003WarningFeature ID mismatch
REV-EA004InfoMultiple scenarios for single EARS (acceptable)

4. Step Definition Reusability

Analyzes step definitions for reuse potential.

Scope:

  • Similar steps identified
  • Parameterized steps suggested
  • Duplicate steps flagged
  • Step library consistency

Error Codes:

CodeSeverityDescription
REV-SD001WarningDuplicate step definition
REV-SD002InfoStep could be parameterized
REV-SD003InfoSimilar steps could be combined
REV-SD004WarningStep not reusable (too specific)

5. Data Table Validation

Validates Examples and data tables are complete.

Scope:

  • Examples table has headers
  • Data rows present
  • Column values appropriate
  • Boundary values included

Error Codes:

CodeSeverityDescription
REV-DT001ErrorExamples table empty
REV-DT002WarningMissing column header
REV-DT003InfoConsider boundary value
REV-DT004WarningInconsistent data format

6. Placeholder Detection

Identifies incomplete content requiring replacement.

Error Codes:

CodeSeverityDescription
REV-P001Error[TODO] placeholder found
REV-P002Error[TBD] placeholder found
REV-P003WarningTemplate value not replaced

7. Naming Compliance

Validates element IDs follow doc-naming standards.

Scope:

  • Element IDs use BDD.NN.xxxx format
  • Element type codes valid for BDD (35, 36, 37)
  • No legacy patterns (SC-NNN, TC-NNN)

Error Codes:

CodeSeverityDescription
REV-N001ErrorInvalid element ID format
REV-N002ErrorElement type code not valid for BDD
REV-N003ErrorLegacy pattern detected

8. Upstream Drift Detection (Mandatory Cache)

Detects when upstream source documents have been modified after the BDD was created or last updated.

Purpose: Identifies stale BDD content that may not reflect current EARS documentation.

The drift cache is mandatory - the reviewer MUST create/update it after every review.

Scope:

  • @ref: tag targets
  • @ears: tag references
  • Traceability section upstream artifact links
Drift Cache File (MANDATORY)

Location: docs/04_BDD/.drift_cache.json

Cache Schema:

{
  "cache_version": "1.0",
  "last_updated": "2026-02-10T17:00:00Z",
  "upstream_type": "EARS",
  "documents": {
    "BDD-01_f1_iam.feature": {
      "bdd_hash": "sha256:abc123...",
      "bdd_mtime": "2026-02-10T15:00:00Z",
      "upstream_refs": {
        "docs/03_EARS/EARS-01_f1_iam.md": {
          "content_hash": "sha256:def456...",
          "version": "1.2",
          "mtime": "2026-02-09T12:00:00Z",
          "sections_referenced": ["REQ-F1-001", "REQ-F1-002"]
        }
      },
      "last_review": "2026-02-10T16:30:00Z",
      "drift_status": "fresh"
    }
  }
}
Three-Phase Detection Algorithm

Phase 1: Load Cache

  1. Check if .drift_cache.json exists
  2. If exists, load and validate schema
  3. If not exists, initialize empty cache structure

Phase 2: Detect Drift

  1. For each BDD document being reviewed:

- Extract all @ears: and @ref: references - For each upstream reference: - Calculate current content hash - Compare with cached hash - Check mtime and version fields - Flag drift if any mismatch detected

Phase 3: Update Cache (MANDATORY)

  1. Update document entry with current hashes
  2. Update last_review timestamp
  3. Set drift_status based on detection results
  4. Write cache file atomically
  5. Log cache update in review report
Hash Calculation (MANDATORY BASH EXECUTION)

CRITICAL: Execute actual bash commands. DO NOT write placeholder values.

sha256sum <file_path> | cut -d' ' -f1

Store as: "hash": "sha256:<64_hex_characters>"

REJECTED VALUES (re-compute immediately):

  • sha256:verified_no_drift
  • sha256:pending_verification
  • Any value where hex portion!= 64 characters

Verification:

grep -oP '"hash":\s*"sha256:[0-9a-f]{64}"' .drift_cache.json

Detection Methods:

MethodDescriptionPrecision
Timestamp ComparisonCompares source doc mtime vs BDD creation/update dateMedium
Content HashSHA-256 hash of referenced sectionsHigh
Version TrackingChecks version field in YAML frontmatterHigh

Error Codes:

CodeSeverityDescription
REV-D001WarningUpstream document modified after BDD creation
REV-D002WarningReferenced section content changed
REV-D003InfoUpstream document version incremented
REV-D004InfoNew content added to upstream
REV-D005ErrorCritical upstream modification (>20% change)
REV-D006InfoCache created (first review of this document)
REV-D009ErrorInvalid hash placeholder detected (verified_no_drift, pending_verification)

Report Output:

### Drift Detection Results

**Cache Status**: Updated (docs/04_BDD/.drift_cache.json)
**Documents Checked**: 5
**Fresh**: 4
**Drifted**: 1 (BDD-03_f3_observability.feature)

| Document | Upstream | Status | Hash Match | Details |
|----------|----------|--------|------------|---------|
| BDD-01 | EARS-01 | Fresh | Yes | - |
| BDD-03 | EARS-03 | Drifted | No | Section 4.2 modified |

Configuration:

SettingDefaultDescription
cache_enabledtrueMandatory - cannot be disabled
drift_threshold_days7Days before drift becomes Warning
critical_threshold_days30Days before drift becomes Error
enable_hash_checktrueSHA-256 content hashing (mandatory with cache)

Review Score Calculation

Scoring Formula:

CategoryWeightCalculation
Gherkin Syntax Compliance19%(valid_syntax / total) × 19
Scenario Completeness23%(complete / total_scenarios) × 23
EARS Alignment19%(aligned / total_scenarios) × 19
Step Definition Reusability10%(reusable / total_steps) × 10
Data Table Validation9%(valid_tables / total_tables) × 9
Placeholder Detection5%(no_placeholders? 5: 5 - count)
Naming Compliance10%(valid_ids / total_ids) × 10
Upstream Drift5%(fresh_refs / total_refs) × 5

Total: Sum of all categories (max 100)

Thresholds:

  • PASS: ≥ 90
  • WARNING: 80-89
  • FAIL: < 80

Command Usage

# Review specific BDD
/doc-bdd-reviewer BDD-01

# Review BDD by path
/doc-bdd-reviewer docs/04_BDD/BDD-01_f1_iam.feature

# Review all BDD
/doc-bdd-reviewer all

Output Report

Review reports are stored alongside the reviewed document per project standards.

Nested Folder Rule: ALL BDD suites use nested folders (BDD-NN_{slug}/). This ensures review reports, fix reports, and drift cache files are organized with their parent document.

Audit Wrapper Note: doc-bdd-audit combines this reviewer output with validator findings and writes BDD-NN.A_audit_report_vNNN.md (preferred for fixer). Reviewer-native report naming remains BDD-NN.R_review_report_vNNN.md.

File Naming: BDD-NN.R_review_report_vNNN.md

Location: Inside the BDD nested folder: docs/04_BDD/BDD-NN_{slug}/

Versioning Rules

  1. First Review: Creates BDD-NN.R_review_report_v001.md
  2. Subsequent Reviews: Auto-increments version (v002, v003, etc.)
  3. Same-Day Reviews: Each review gets unique version number

Version Detection: Scans folder for existing BDD-NN.R_review_report_v*.md files and increments.

Example:

docs/04_BDD/BDD-01_f1_iam/
├── BDD-01.md
├── BDD-01.1_authentication.feature
├── BDD-01.2_authorization.feature
├── BDD-01.R_review_report_v001.md    # First review
├── BDD-01.R_review_report_v002.md    # After fixes
└── .drift_cache.json

Delta Reporting

When previous reviews exist, include score comparison in the report.

See REVIEW_DOCUMENT_STANDARDS.md for complete versioning requirements.


Integration with doc-bdd-autopilot

This skill is invoked during Phase 5 of doc-bdd-autopilot:

flowchart LR
    A[Phase 4: Validation] --> B[Phase 5: Final Review]
    B --> C{doc-bdd-reviewer}
    C --> D[Phase 6: Continue]

Related Skills

SkillRelationship
doc-namingNaming standards for Check #7
doc-bdd-autopilotInvokes this skill in Phase 5
doc-bdd-validatorStructural validation (Phase 4)
doc-bdd-fixerApplies fixes based on review findings
doc-bddBDD creation rules
doc-ears-reviewerUpstream QA
doc-adr-autopilotDownstream consumer

Version History

VersionDateChanges
1.52026-02-27Migrated frontmatter to metadata; documented audit-wrapper contract with preferred BDD-NN.A_audit_report_vNNN.md output and legacy reviewer report compatibility
1.42026-02-11Added Check #0: Structure Compliance as BLOCKING check - validates BDD follows mandatory nested folder rule; REV-STR001-STR003 error codes; Updated workflow diagram with structure validation gate
1.32026-02-10Mandatory drift cache implementation - cache at docs/04_BDD/.drift_cache.json; Three-phase detection algorithm (Load Cache, Detect Drift, Update Cache); SHA-256 hash calculation; REV-D006 error code (Cache created); Report output with cache status; cache_enabled: true mandatory
1.22026-02-10Added Check #8: Upstream Drift Detection - detects when EARS documents modified after BDD creation; REV-D001-D005 error codes; drift configuration; Added doc-bdd-fixer to related skills
1.12026-02-10Added review versioning support (_vNNN pattern); Delta reporting for score comparison
1.02026-02-10Initial skill creation with 7 review checks; Gherkin syntax compliance; Scenario completeness; Step definition reusability

Implementation Plan Consistency (IPLAN-004)

  • Treat plan-derived outputs as valid source mode and verify intent preservation from implementation plan scope/objectives.
  • Validate upstream autopilot precedence assumption: --iplan > --ref > --prompt.
  • Flag objective/scope conflicts between plan context and artifact output as blocking issues requiring clarification.
  • Do not introduce legacy fallback paths such as docs-v2.0/00_REF.

平台分布

Codex

36.92%
按下载量换算80

Claude

27.79%
按下载量换算60

Cursor

20.07%
按下载量换算43

Gemini CLI

8.89%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

继续浏览同类 Skills