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

doc-tasks-reviewer文档任务审阅者

Agent Skill

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

总安装

648

周安装

27

GitHub Stars

14

下载量

216
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

深度审查任务分解文档的完整性与实现契约一致性。

  • 检查任务依赖关系、SPEC 对齐情况及人工复核点识别。
  • 作为代码实现前的最后一道质量关卡,保障实施可行性。
  • 应在 doc-tasks-autopilot 生成后立即执行全面审查。
  • doc-tasks-reviewer 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

doc-tasks-reviewer

Purpose

Comprehensive content review and quality assurance for Task Breakdown (TASKS) documents. This skill performs deep content analysis beyond structural validation, checking task completeness, SPEC alignment, implementation contracts, dependency accuracy, and identifying issues that require manual review.

Layer: 11 (TASKS Quality Assurance)

Upstream: TASKS (from doc-tasks-autopilot or doc-tasks)

Downstream: None (final QA gate before code implementation)


When to Use This Skill

Use doc-tasks-reviewer when:

  • After TASKS Generation: Run immediately after doc-tasks-autopilot completes
  • Manual TASKS Edits: After making manual changes to TASKS
  • Pre-Implementation: Before starting code implementation
  • Sprint Planning: When assessing task readiness for development
  • Periodic Review: Regular quality checks on existing TASKS

Do NOT use when:

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

Skill vs Validator: Key Differences

Aspectdoc-tasks-validatordoc-tasks-reviewer
FocusSchema compliance, CODE-Ready scoreContent quality, implementation readiness
ChecksRequired sections, formatTask atomicity, dependency accuracy
Auto-FixStructural issues onlyContent issues (formatting)
OutputCODE-Ready score (numeric)Review score + issue list
PhasePhase 4 (Validation)Phase 5 (Final Review)
BlockingCODE-Ready < threshold blocksReview score < threshold flags

Review Workflow

flowchart TD
    A[Input: TASKS Path] --> B[Load TASKS File]
    B --> C{Valid Format?}

    C -->|Yes| D[Parse TASKS Structure]
    C -->|No| E[Report Format Error]

    D --> F0[0. Structure Compliance]
    E --> F0
    F0 --> F0C{BLOCKING Check}
    F0C -->|FAIL| BLOCK[STOP - Fix Structure First]
    F0C -->|PASS| F[Run Review Checks]

    subgraph Review["Review Checks"]
        F --> G[1. Task Completeness]
        G --> H[2. SPEC Alignment]
        H --> I[3. Implementation Contracts]
        I --> J[4. Dependency Accuracy]
        J --> K[5. Task Atomicity]
        K --> L[6. AI Implementation Hints]
        L --> M[7. Placeholder Detection]
        M --> M2[8. Naming Compliance]
        M2 --> M3[9. Upstream Drift Detection]
    end

    M3 --> 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 TASKS follows the mandatory nested folder rule.

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

Required Structure:

TASKS TypeRequired Location
Monolithicdocs/11_TASKS/TASKS-NN_{slug}/TASKS-NN_{slug}.md

Error Codes:

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

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


1. Task Completeness

Validates all tasks have required elements.

Required Elements:

  • Task ID
  • Description
  • Acceptance criteria
  • Priority
  • Estimated complexity
  • Dependencies

Error Codes:

CodeSeverityDescription
REV-TC001ErrorTask missing required element
REV-TC002WarningAcceptance criteria insufficient
REV-TC003WarningPriority not assigned
REV-TC004InfoComplexity estimate missing

2. SPEC Alignment

Validates tasks trace to SPEC requirements.

Scope:

  • Every task maps to SPEC component/method
  • Full SPEC coverage achieved
  • No orphaned tasks
  • Implementation order logical

Error Codes:

CodeSeverityDescription
REV-SA001ErrorTask without SPEC source
REV-SA002WarningSPEC component not covered
REV-SA003WarningOrphaned task detected
REV-SA004InfoImplementation order may need adjustment

3. Implementation Contracts

Validates Section 7-8 implementation contracts.

Scope:

  • Protocol interfaces defined
  • Exception hierarchies documented
  • State machine contracts present
  • Data models specified
  • DI interfaces defined

Error Codes:

CodeSeverityDescription
REV-IC001WarningProtocol interface missing
REV-IC002WarningException hierarchy not documented
REV-IC003InfoState machine contract missing
REV-IC004InfoDI interface not defined

4. Dependency Accuracy

Validates task dependencies are correct.

Scope:

  • Dependencies exist
  • No circular dependencies
  • Blocking dependencies identified
  • External dependencies documented

Error Codes:

CodeSeverityDescription
REV-DA001ErrorDependency does not exist
REV-DA002ErrorCircular dependency detected
REV-DA003WarningBlocking dependency not marked
REV-DA004InfoExternal dependency not documented

5. Task Atomicity

Validates tasks are appropriately sized.

Scope:

  • Single responsibility
  • Independently implementable
  • Clear completion criteria
  • Reasonable scope

Error Codes:

CodeSeverityDescription
REV-TA001WarningTask too large (should be split)
REV-TA002WarningTask has multiple responsibilities
REV-TA003InfoCompletion criteria unclear
REV-TA004InfoTask scope may be too narrow

6. AI Implementation Hints

Validates AI-friendly implementation guidance.

Scope:

  • File paths specified
  • Method signatures suggested
  • Import statements provided
  • Test patterns documented

Error Codes:

CodeSeverityDescription
REV-AI001WarningFile path not specified
REV-AI002InfoMethod signature not suggested
REV-AI003InfoImport statements not provided
REV-AI004InfoTest patterns not documented

7. 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

8. Naming Compliance

Validates element IDs follow doc-naming standards.

Scope:

  • Element IDs use TASKS.NN.xxxx format
  • Element type codes valid for TASKS (18, 30)
  • Task naming convention

Error Codes:

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

9. Upstream Drift Detection (Mandatory Cache)

Detects when upstream SPEC and TSPEC documents have been modified after the TASKS was created or last updated.

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

Purpose: Identifies stale TASKS content that may not reflect current SPEC and TSPEC documentation. When SPEC documents (methods, interfaces, components) or TSPEC documents (test cases, coverage requirements) change, the TASKS may need updates to maintain implementation alignment.

Scope:

  • @spec: tag targets (SPEC documents)
  • @tspec: tag targets (TSPEC documents)
  • Traceability section upstream artifact links
  • Any markdown links to ../09_SPEC/ or ../10_TSPEC/ source documents

Drift Cache File (MANDATORY)

Location: docs/11_TASKS/.drift_cache.json

Schema:

{
  "schema_version": "1.0",
  "cache_created": "2026-02-10T17:00:00Z",
  "cache_updated": "2026-02-10T17:00:00Z",
  "tasks_files": {
    "TASKS-03_f3_observability.md": {
      "tasks_version": "1.0",
      "tasks_updated": "2026-02-10T14:30:00",
      "last_review": "2026-02-10T17:00:00",
      "upstream_hashes": {
        "../../09_SPEC/SPEC-03.yaml": "a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0",
        "../../09_SPEC/SPEC-03.yaml#methods": "b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1",
        "../../09_SPEC/SPEC-03.yaml#components": "c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2",
        "../../10_TSPEC/TSPEC-03.md": "d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3",
        "../../10_TSPEC/TSPEC-03.md#test_cases": "e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4"
      },
      "upstream_mtimes": {
        "../../09_SPEC/SPEC-03.yaml": "2026-02-08T10:15:00",
        "../../10_TSPEC/TSPEC-03.md": "2026-02-09T16:45:00"
      }
    }
  }
}

Cache Management:

  • Cache file is created on first review if not present
  • Cache is updated after each successful review
  • Missing cache triggers REV-D006 error
  • Corrupted cache triggers cache rebuild with warning

Three-Phase Detection Algorithm

Phase 1: Cache Validation

1. Check if .drift_cache.json exists
   - If missing → ERROR REV-D006: "Drift cache not initialized"
   - If corrupted → Rebuild cache, emit WARNING

2. Validate cache schema version
   - If outdated → Migrate cache to current schema

3. Load TASKS entry from cache
   - If TASKS not in cache → Initialize entry

Phase 2: Reference Extraction

1. Extract all upstream references from TASKS:
   - @spec: tags → [path, section anchor]
   - @tspec: tags → [path, section anchor]
   - Links to ../09_SPEC/ → [path]
   - Links to ../10_TSPEC/ → [path]
   - Traceability table upstream artifacts → [path]

2. For each upstream reference:
   a. Resolve path to absolute file path
   b. Check file exists (already covered by Check #2)
   c. Get file modification time (mtime)

Phase 3: Drift Comparison

1. For each upstream reference:
   a. Compare mtime > cached mtime
      - If newer → flag as TIMESTAMP_DRIFT
   b. Compute SHA-256 hash of content
   c. Compare to cached hash
      - If differs → flag as CONTENT_DRIFT
   d. Calculate change percentage
      - If > 20% → flag as SUBSTANTIAL_DRIFT

2. Update cache with current values after comparison

Hash Calculation (MANDATORY BASH EXECUTION)

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

Full File Hash:

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

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

Section Hash (for anchor references):

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

# For YAML sections
yq '.<section_name>' <file_path> | sha256sum | cut -d' ' -f1

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

Error Codes

CodeSeverityDescription
REV-D001WarningUpstream SPEC/TSPEC document modified after TASKS creation
REV-D002WarningReferenced section content has changed (hash mismatch)
REV-D003InfoUpstream document version incremented
REV-D004InfoNew content added to upstream document
REV-D005ErrorCritical upstream document substantially modified (>20% change)
REV-D006ErrorDrift cache not initialized or missing
REV-D009ErrorInvalid hash placeholder detected (verified_no_drift, pending_verification)

Report Output

## Upstream Drift Analysis

**Cache Status**: Valid (last updated: 2026-02-10T17:00:00Z)

| Upstream Document | TASKS Reference | Last Modified | Cached Modified | Hash Match | Days Stale | Severity |
|-------------------|-----------------|---------------|-----------------|------------|------------|----------|
| SPEC-03.yaml | @spec Section methods | 2026-02-08T10:15:00 | 2026-02-05T09:00:00 | No | 3 | Warning |
| SPEC-03.yaml | @spec components | 2026-02-10T14:30:00 | 2026-02-05T09:00:00 | No | 5 | Warning |
| TSPEC-03.md | @tspec test_cases | 2026-02-09T16:45:00 | 2026-02-05T09:00:00 | Yes | 4 | Info |

**Recommendation**: Review upstream SPEC/TSPEC changes and update TASKS if methods, components, or test cases have changed.

**Cache Updated**: 2026-02-10T17:00:00Z (3 entries refreshed)

Auto-Actions

  • Create .drift_cache.json if not present (first review)
  • Update cache with current hashes and mtimes after review
  • Add [DRIFT] marker to affected @spec/@tspec tags (optional)
  • Generate drift summary in review report

Configuration

SettingDefaultDescription
cache_enabledtrueMandatory - Cache is always enabled
drift_threshold_days7Days before drift becomes Warning
critical_threshold_days30Days before drift becomes Error
tracked_patterns@spec:, @tspec:Patterns to track for drift

Review Score Calculation

Scoring Formula:

CategoryWeightCalculation
Task Completeness19%(complete_tasks / total) × 19
SPEC Alignment19%(aligned_tasks / total) × 19
Implementation Contracts14%(contracts_present / required) × 14
Dependency Accuracy14%(valid_deps / total_deps) × 14
Task Atomicity10%(atomic_tasks / total) × 10
AI Implementation Hints5%(hints_present / 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 TASKS
/doc-tasks-reviewer TASKS-03

# Review TASKS by path
/doc-tasks-reviewer docs/11_TASKS/TASKS-03_f3_observability.md

# Review all TASKS
/doc-tasks-reviewer all

Output Report

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

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

File Naming: TASKS-NN.R_review_report_vNNN.md

Location: Inside the TASKS nested folder: docs/11_TASKS/TASKS-NN_{slug}/

Versioning Rules

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

Example:

docs/11_TASKS/TASKS-03_f3_observability/
├── TASKS-03_f3_observability.md
├── TASKS-03.R_review_report_v001.md    # First review
├── TASKS-03.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-tasks-autopilot

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

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

Related Skills

SkillRelationship
doc-namingNaming standards for Check #8
doc-tasks-autopilotInvokes this skill in Phase 5
doc-tasks-validatorStructural validation (Phase 4)
doc-tasks-fixerApplies fixes based on review findings
doc-tasksTASKS creation rules
doc-spec-reviewerUpstream QA
doc-tspec-reviewerUpstream QA (for test specifications)

Version History

VersionDateChanges
1.42026-02-11Added Check #0: Structure Compliance as BLOCKING check; REV-STR001-STR003 error codes; Enforces nested folder rule before other checks proceed
1.32026-02-10Made drift cache mandatory; Added REV-D006 error code for missing cache; Defined cache schema with schema_version; Added Three-Phase Detection Algorithm; Added hash calculation examples; Cache location at docs/11_TASKS/.drift_cache.json; Added cache status to report output
1.22026-02-10Added Check #9: Upstream Drift Detection - detects when SPEC/TSPEC documents modified after TASKS creation; REV-D001-D005 error codes; drift cache support; configurable thresholds; added doc-tasks-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 8 review checks; Task completeness; SPEC alignment; Implementation contracts; Dependency accuracy; Task atomicity

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.74%
按下载量换算79

Claude

30.45%
按下载量换算66

Cursor

19.99%
按下载量换算43

Gemini CLI

9.72%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

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

来源信息

继续浏览同类 Skills