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

doc-bdd-reviewer文档 bdd 审稿人

Agent Skill

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

总安装

618

周安装

26

GitHub Stars

14

下载量

216
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

简介

对 BDD 文档进行深度内容审查与质量保障。

  • 适用于 Gherkin 语法正确性、场景完整性与步骤复用性检查。
  • 执行 EARS 对齐与人工复核建议生成,作为最终 QA 门。
  • 需在 doc-bdd-autopilot 生成后立即调用,仅限指定宿主。
  • doc-bdd-reviewer 属于开发类 Skill,可作为该场景下的辅助能力补充。

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

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