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

doc-sys-reviewer文档系统审阅者

Agent Skill

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

总安装

652

周安装

28

GitHub Stars

14

下载量

228
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

对系统需求文档进行全面内容审查和质量评估。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 检查完整性、架构对齐度及接口定义等深层质量问题。
  • 作为 REQ 生成前的最终质检环节,确保文档可用性。
  • 需在 SYS 文档生成后立即运行以捕获潜在缺陷。
  • doc-sys-reviewer 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

doc-sys-reviewer

Purpose

Comprehensive content review and quality assurance for System Requirements (SYS) documents. This skill performs deep content analysis beyond structural validation, checking requirement completeness, ADR alignment, quality attribute coverage, interface definitions, and identifying issues that require manual architectural review.

Layer: 6 (SYS Quality Assurance)

Upstream: SYS (from doc-sys-autopilot or doc-sys)

Downstream: None (final QA gate before REQ generation)


When to Use This Skill

Use doc-sys-reviewer when:

  • After SYS Generation: Run immediately after doc-sys-autopilot completes
  • Manual SYS Edits: After making manual changes to SYS
  • Pre-REQ Check: Before running doc-req-autopilot
  • Periodic Review: Regular quality checks on existing SYS
  • Architecture Reviews: During system design reviews

Do NOT use when:

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

Skill vs Validator: Key Differences

Aspectdoc-sys-validatordoc-sys-reviewer
FocusSchema compliance, REQ-Ready scoreContent quality, ADR alignment
ChecksRequired sections, formatQuality attributes, interface completeness
Auto-FixStructural issues onlyContent issues (links, formatting)
OutputREQ-Ready score (numeric)Review score + issue list
PhasePhase 4 (Validation)Phase 5 (Final Review)
BlockingREQ-Ready < threshold blocksReview score < threshold flags

Review Workflow

flowchart TD
    A[Input: SYS Path] --> B[Load SYS Files]
    B --> C{Single or Multiple?}

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

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

    subgraph Review["Review Checks"]
        F --> G[1. Functional Requirement Completeness]
        G --> H[2. ADR Alignment]
        H --> I[3. Quality Attribute Coverage]
        I --> J[4. Interface Definition Completeness]
      J --> J2[4a. System Diagram Contract Compliance]
      J2 --> K[5. Constraint Validation]
        K --> L[6. Placeholder Detection]
        L --> M[7. Naming Compliance]
        M --> N2[8. Upstream Drift Detection]
    end

    N2 --> 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 (BLOCKING)

Validates SYS follows the mandatory nested folder rule.

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

Required Structure:

SYS TypeRequired Location
Monolithicdocs/06_SYS/SYS-NN_{slug}/SYS-NN_{slug}.md

Error Codes:

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

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


1. Functional Requirement Completeness

Validates all functional requirements are complete.

Scope:

  • Each requirement has description
  • Acceptance criteria defined
  • Priority assigned
  • Dependencies documented
  • Rationale provided

Error Codes:

CodeSeverityDescription
REV-FR001ErrorRequirement missing description
REV-FR002ErrorNo acceptance criteria
REV-FR003WarningPriority not assigned
REV-FR004InfoDependencies not documented
REV-FR005InfoRationale missing

2. ADR Alignment

Validates SYS requirements trace to ADR decisions.

Scope:

  • Requirements implement ADR decisions
  • No conflicting requirements
  • Technology choices consistent
  • Architectural constraints honored

Error Codes:

CodeSeverityDescription
REV-AA001ErrorRequirement conflicts with ADR decision
REV-AA002WarningTechnology choice not in ADR
REV-AA003WarningRequirement without ADR traceability
REV-AA004InfoArchitectural constraint may be violated

3. Quality Attribute Coverage

Validates non-functional requirements coverage.

Scope:

  • Performance requirements defined
  • Security requirements present
  • Reliability/availability specified
  • Scalability addressed
  • Maintainability considered

Error Codes:

CodeSeverityDescription
REV-QA001ErrorNo performance requirements
REV-QA002ErrorSecurity requirements missing
REV-QA003WarningAvailability not specified
REV-QA004WarningScalability not addressed
REV-QA005InfoMaintainability not considered

4. Interface Definition Completeness

Validates system interfaces are well-defined.

Scope:

  • External interfaces documented
  • Internal interfaces defined
  • Data formats specified
  • Protocols identified
  • Error handling defined

Error Codes:

CodeSeverityDescription
REV-IF001ErrorExternal interface not documented
REV-IF002WarningData format not specified
REV-IF003WarningProtocol not identified
REV-IF004InfoError handling not defined

4a. System Diagram Contract Compliance

Validates SYS bridge requirements defined by ai_dev_ssd_flow/DIAGRAM_STANDARDS.md and SYS quality-gate contracts.

Scope:

  • Required System Diagram Contract subsection exists
  • Required fields present: downstream_c4_l4_owner, required_sequence_paths, trust_boundaries
  • Required tags present for bridge ownership: @diagram: c4-l4-ownership, @diagram: sequence-l4
  • SYS contract references remain consistent with downstream SPEC ownership location

Error Codes:

CodeSeverityDescription
REV-DC001ErrorMissing System Diagram Contract section
REV-DC002ErrorMissing required bridge fields (downstream_c4_l4_owner, required_sequence_paths, or trust_boundaries)
REV-DC003ErrorMissing required SYS bridge tags (@diagram: c4-l4-ownership, @diagram: sequence-l4)
REV-DC004WarningDownstream SPEC ownership reference appears incomplete or inconsistent

5. Constraint Validation

Validates system constraints are reasonable.

Scope:

  • Resource constraints realistic
  • Time constraints achievable
  • Budget constraints considered
  • Technology constraints compatible

Error Codes:

CodeSeverityDescription
REV-CV001WarningResource constraint may be unrealistic
REV-CV002WarningTime constraint may be unachievable
REV-CV003InfoBudget constraint not documented
REV-CV004WarningTechnology constraint may be incompatible

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 SYS.NN.xxxx format
  • Element type codes valid for SYS (01, 05, 17, 18, 19, 20, 21)
  • No legacy patterns (SR-NNN, SYS-NNN)

Error Codes:

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

8. Upstream Drift Detection (Mandatory Cache)

Detects when upstream ADR documents have been modified after the SYS was created or last updated.

The drift cache is mandatory. All drift detection operations require cache initialization and maintenance.

Purpose: Identifies stale SYS content that may not reflect current architecture decisions. When ADR documents change, the SYS may need updates to maintain alignment with architectural decisions.

Upstream Documents:

  • ADR documents: Architecture Decision Records that SYS requirements must implement

Scope:

  • @adr: tag targets (ADR document references)
  • Traceability section upstream artifact links
  • Any markdown links to ../05_ADR/
  • Technology choice references that trace to ADR decisions

Drift Cache File (MANDATORY)

Location: docs/06_SYS/.drift_cache.json

Schema:

{
  "cache_version": "1.0",
  "created": "2026-02-10T17:00:00",
  "last_checked": "2026-02-10T17:00:00",
  "sys_documents": {
    "SYS-01_f1_iam.md": {
      "sys_hash": "sha256:abc123...",
      "last_updated": "2026-02-10T17:00:00",
      "upstream_refs": {
        "ADR-01_authentication_strategy.md": {
          "path": "../../05_ADR/ADR-01_authentication_strategy.md",
          "hash": "sha256:def456...",
          "checked": "2026-02-10T17:00:00",
          "status": "current"
        },
        "ADR-05_data_storage.md": {
          "path": "../../05_ADR/ADR-05_data_storage.md",
          "hash": "sha256:ghi789...",
          "checked": "2026-02-10T17:00:00",
          "status": "current"
        }
      }
    }
  }
}

Cache Status Values:

  • current: Hash matches, no drift detected
  • drifted: Hash mismatch, upstream modified
  • missing: Upstream file not found
  • new: New reference, not yet cached

Three-Phase Detection Algorithm

Phase 1: Cache Initialization

1. Check if .drift_cache.json exists
   - If missing → Create new cache file
   - If exists → Load and validate schema

2. For each SYS document:
   a. Extract all upstream references:
      - @adr: tags → [ADR document ID]
      - Links to ../05_ADR/ → [path]
      - Traceability table upstream artifacts → [path]
      - Technology choices → [related ADR]
   b. Resolve paths to absolute file paths
   c. Initialize upstream_refs entries if missing

Phase 2: Hash Comparison

1. For each upstream reference in cache:
   a. Read upstream file content
   b. Compute SHA-256 hash
   c. Compare to cached hash:
      - Match → status = "current"
      - Mismatch → status = "drifted", flag REV-D002
      - File missing → status = "missing", flag REV-D006

2. Detect new references not in cache:
   a. Add to upstream_refs with status = "new"
   b. Compute initial hash

Phase 3: Cache Update

1. Update last_checked timestamp
2. For each drifted reference:
   a. Store new hash
   b. Update checked timestamp
   c. Preserve previous hash for delta analysis
3. Write updated cache to disk
4. Generate drift report

Hash Calculation (MANDATORY BASH EXECUTION)

CRITICAL: You MUST execute actual bash commands to compute hashes. DO NOT write placeholder values.

Compute File Hash:

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

Store result 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

Section Hash (for anchor-specific tracking):

sed -n '/^## Section Name/,/^## /p' <file_path> | head -n -1 | sha256sum | cut -d' ' -f1

Verification:

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

Error Codes

CodeSeverityDescription
REV-D001WarningUpstream ADR modified after SYS creation
REV-D002WarningReferenced ADR decision section has changed (hash mismatch)
REV-D003InfoUpstream ADR version incremented
REV-D004InfoNew content added to upstream ADR
REV-D005ErrorCritical ADR substantially modified (>20% change)
REV-D006ErrorDrift cache missing or corrupted - requires initialization
REV-D009ErrorInvalid hash placeholder detected (verified_no_drift, pending_verification)

Report Output

## Upstream Drift Analysis

**Cache Status**: Loaded from docs/06_SYS/.drift_cache.json (last checked: 2026-02-10T17:00:00)

| Upstream Document | SYS Reference | Cached Hash | Current Hash | Status | Severity |
|-------------------|---------------|-------------|--------------|--------|----------|
| ADR-01_authentication_strategy.md | @adr Decision | sha256:abc123... | sha256:xyz789... | DRIFTED | Warning |
| ADR-05_data_storage.md | Traceability | sha256:def456... | sha256:def456... | Current | - |

**Drift Summary**:
- Total upstream references: 2
- Current: 1
- Drifted: 1
- Missing: 0

**Recommendation**: Review upstream ADR changes and update SYS if architecture decisions have changed.

Auto-Actions

  • Initialize .drift_cache.json if missing (mandatory)
  • Update cache with current hashes after review
  • Add [DRIFT] marker to affected @adr tags (optional)
  • Generate drift summary in review report
  • Preserve hash history for trend analysis

Configuration

SettingDefaultDescription
cache_enabledtrueMandatory - Cache must be enabled
drift_threshold_days7Days before drift becomes Warning
critical_threshold_days30Days before drift becomes Error
hash_algorithmSHA-256Hash algorithm for content comparison
tracked_patterns@adr:Patterns to track for drift

Review Score Calculation

Scoring Formula:

CategoryWeightCalculation
Functional Requirement Completeness24%(complete / total_reqs) × 24
ADR Alignment19%(aligned / total_reqs) × 19
Quality Attribute Coverage19%(covered / required_attrs) × 19
Interface Definition Completeness14%(complete_interfaces / total) × 14
Constraint Validation5%(valid_constraints / total) × 5
Placeholder Detection5%(no_placeholders? 5: 5 - count)
Naming Compliance9%(valid_ids / total_ids) × 9
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 SYS
/doc-sys-reviewer SYS-01

# Review SYS by path
/doc-sys-reviewer docs/06_SYS/SYS-01_f1_iam.md

# Review all SYS
/doc-sys-reviewer all

Output Report

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

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

File Naming: SYS-NN.R_review_report_vNNN.md

Location: Inside the SYS nested folder: docs/06_SYS/SYS-NN_{slug}/

Versioning Rules

  1. First Review: Creates SYS-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 SYS-NN.R_review_report_v*.md files and increments.

Example:

docs/06_SYS/SYS-01_f1_iam/
├── SYS-01_f1_iam.md
├── SYS-01.R_review_report_v001.md    # First review
├── SYS-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-sys-autopilot

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

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

Related Skills

SkillRelationship
doc-namingNaming standards for Check #7
doc-sys-auditWraps validator + reviewer into combined audit report
doc-sys-autopilotInvokes this skill in Phase 5
doc-sys-validatorStructural validation (Phase 4)
doc-sys-fixerApplies fixes based on review findings
doc-sysSYS creation rules
doc-adr-reviewerUpstream QA
doc-req-autopilotDownstream consumer

Version History

VersionDateChanges
1.62026-02-27Migrated frontmatter to metadata; normalized SYS report location paths to docs/06_SYS; documented relationship with doc-sys-audit wrapper
1.42026-02-11Added Check #0: Structure Compliance (BLOCKING) - validates SYS in nested folders; REV-STR001-STR003 error codes; Must pass before other checks proceed
1.32026-02-10Mandatory Drift Cache: Cache now required for all drift detection; Three-phase detection algorithm; SHA-256 hash calculation with Python implementation; REV-D006 error code for missing/corrupted cache; Enhanced report output with cache status; cache_enabled=true is mandatory
1.22026-02-10Added Check #8: Upstream Drift Detection - detects when ADR documents modified after SYS creation; REV-D001-D005 error codes; drift cache support; configurable thresholds; Added doc-sys-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; ADR alignment; Quality attribute coverage; Interface completeness

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

37.89%
按下载量换算86

Claude

29.64%
按下载量换算68

Cursor

19.62%
按下载量换算45

Gemini CLI

8.26%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills