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

doc-tasks-validator文档任务验证器

Agent Skill

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

总安装

618

周安装

26

GitHub Stars

14

下载量

216
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

验证任务文档是否符合 Layer 11 架构标准与嵌套目录规则。

  • 强制要求所有 TASKS 文件必须位于子文件夹内。
  • 提供结构化校验清单,确保输出符合流水线准入条件。
  • 引用 ai_dev_flow/TASKS/TASKS_SCHEMA.yaml 作为验证基准。
  • doc-tasks-validator 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

doc-tasks-validator

Validate Task Breakdown (TASKS) documents against Layer 11 schema standards.

Activation

Invoke when user requests validation of TASKS documents or after creating/modifying TASKS artifacts.

Validation Schema Reference

Schema: ai_dev_flow/TASKS/TASKS_SCHEMA.yaml Layer: 11 Artifact Type: TASKS

Validation Checklist

0. Folder Structure Validation (BLOCKING)

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

Required Structure:

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

Validation:

1. Check document is inside a nested folder: docs/11_TASKS/TASKS-NN_{slug}/
2. Verify folder name matches TASKS ID pattern: TASKS-NN_{slug}
3. Verify file name matches folder: TASKS-NN_{slug}.md
4. Parent path must be: docs/11_TASKS/

Example Valid Structure:

docs/11_TASKS/
├── TASKS-01_f1_iam/
│   ├── TASKS-01_f1_iam.md         ✓ Valid
│   ├── TASKS-01.R_review_report_v001.md
│   └── .drift_cache.json
├── TASKS-02_f2_session/
│   └── TASKS-02_f2_session.md     ✓ Valid

Invalid Structure:

docs/11_TASKS/
├── TASKS-01_f1_iam.md             ✗ NOT in nested folder

Error Codes:

CodeSeverityDescription
TASKS-E020ERRORTASKS not in nested folder (BLOCKING)
TASKS-E021ERRORFolder name doesn't match TASKS ID
TASKS-E022ERRORFile name doesn't match folder name
VAL-H001ERRORDrift cache missing hash for upstream document
VAL-H002ERRORInvalid hash format (must be sha256:<64 hex chars>)

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


1. Metadata Validation

Required custom_fields:
  - document_type: ["tasks", "template"]
  - artifact_type: "TASKS"
  - layer: 11
  - architecture_approaches: [array format]
  - priority: ["primary", "shared", "fallback"]
  - development_status: ["active", "draft", "deprecated", "reference"]

Required tags:
  - tasks (or tasks-template)
  - layer-11-artifact

Forbidden tag patterns:
  - "^task-breakdown$"
  - "^implementation-tasks$"
  - "^tasks-\\d{3}$"

2. Structure Validation

Required Sections (12 sections):

  • Title (H1): # TASKS-NNN: Title
  • Section 1: Document Control
  • Section 2: Executive Summary (Objectives, Scope, Dependencies)
  • Section 3: Scope (Inclusions, Exclusions, Boundaries)
  • Section 4: Implementation Plan (Phases, Tasks, Dependencies)
  • Section 5: Implementation Contracts (Protocols, Exceptions, State Machines)
  • Section 6: Constraints (Technical, Business, Operational)
  • Section 7: Acceptance Criteria (Functional, Technical, Quality)
  • Section 8: Risk Assessment (Risk Matrix, Mitigation Strategies)
  • Section 9: Success Metrics (Completion, Quality, Performance)
  • Section 10: Traceability
  • Section 11: Implementation Notes
  • Section 12: Change History

Optional Sections:

  • Section 13: References

Document Control Required Fields:

  • TASKS ID
  • Document Name
  • Version
  • Date Created
  • Last Updated
  • Author
  • Status
  • Source SPEC

File Naming: Pattern: TASKS-NNN_descriptive_name.md

3. Content Validation

Task Format:

  • Pattern: TASK-NNN
  • Components: task_id, task_name, description, dependencies, acceptance_criteria, estimated_hours, status

Phase Format:

  • Pattern: Phase N:
  • Structure: phase_number, phase_name, objective, tasks, deliverables, duration

Task Status Values:

  • Not Started
  • In Progress
  • Blocked
  • Review
  • Completed
  • Deferred

Implementation Contracts Categories:

  • Protocol Interfaces: typing.Protocol with type hints
  • Exception Hierarchies: class XxxError(BaseError) with error codes
  • State Machine Contracts: enum State with transitions
  • Data Models: Pydantic BaseModel with validation
  • Dependency Injection: ABC interface patterns

Implementation-Ready Score:

  • Minimum threshold: 90%
  • Components: Task completeness (20%), Dependency mapping (15%), Acceptance criteria (20%), Implementation contracts (15%), Risk assessment (10%), Effort estimation (10%), Traceability (10%)

4. Traceability Validation

Layer 11 Cumulative Tags:

  • @brd: BRD.NN.EE.SS (required)
  • @prd: PRD.NN.EE.SS (required)
  • @ears: EARS.NN.EE.SS (required)
  • @bdd: BDD.NN.EE.SS (required)
  • @adr: ADR-NN (required)
  • @sys: SYS.NN.EE.SS (required)
  • @req: REQ.NN.EE.SS (required)
  • @spec: SPEC-NN (required)
  • @impl: IMPL.NN.EE.SS (optional)
  • @ctr: CTR-NN (optional)

Implementation Contracts Tags:

  • @icon: TASKS-NN:ContractName
  • @icon-role: provider|consumer (optional)

Downstream Expected:

  • Code (src/...)
  • Tests (tests/...)

Same-Type References:

  • @related-tasks: TASKS-NN
  • @depends-tasks: TASKS-NN

Error Codes

CodeSeverityDescription
TASKS-E001errorMissing required tag 'tasks'
TASKS-E002errorMissing required tag 'layer-11-artifact'
TASKS-E003errorInvalid document_type
TASKS-E004errorInvalid architecture_approaches format
TASKS-E005errorForbidden tag pattern detected
TASKS-E006errorMissing required section
TASKS-E007errorMultiple H1 headings detected
TASKS-E008errorSection numbering not sequential (1-12)
TASKS-E009errorDocument Control missing required fields
TASKS-E010errorMissing Implementation Plan (Section 4)
TASKS-E011errorMissing Traceability (Section 10)
TASKS-E012errorImplementation Plan has no Phases
TASKS-E013warningFile name does not match format
TASKS-E014errorSource SPEC not in valid format
TASKS-W001warningTasks not using TASK-NNN format
TASKS-W002warningPhase has no tasks defined
TASKS-W003warningTask missing acceptance criteria
TASKS-W004warningMissing upstream tags (require 8)
TASKS-W005warningImplementation-Ready Score below 90%
TASKS-W006warningTask missing effort estimate
TASKS-W007warningImplementation Contracts empty but parallel development indicated
TASKS-I001infoConsider defining Implementation Contracts
TASKS-I002infoConsider adding Risk Assessment for complex tasks
TASKS-I003infoConsider using @icon tags for contracts

Validation Commands

# Validate single TASKS document
python ai_dev_flow/scripts/validate_tasks.py docs/11_TASKS/TASKS-001_example.md

# Validate all TASKS documents
python ai_dev_flow/scripts/validate_tasks.py docs/11_TASKS/

# Check with verbose output
python ai_dev_flow/scripts/validate_tasks.py docs/11_TASKS/ --verbose

Validation Workflow

  1. Parse YAML frontmatter
  2. Check required metadata fields
  3. Validate tag taxonomy
  4. Verify section structure (1-12)
  5. Validate Document Control table
  6. Check Implementation Plan (at least one Phase)
  7. Validate Task format (TASK-NNN)
  8. Check each task has acceptance criteria
  9. Validate Implementation Contracts (if parallel development)
  10. Validate upstream references (8 required)
  11. Calculate Implementation-Ready Score
  12. Verify file naming convention
  13. Generate validation report

Integration

  • Invoked by: doc-flow, doc-tasks (post-creation)
  • Feeds into: trace-check (cross-document validation)
  • Reports to: quality-advisor

Output Format

TASKS Validation Report
=======================
Document: TASKS-001_example.md
Status: PASS/FAIL

Implementation Plan:
- Phases defined: N
- Total tasks: N
- Using TASK-NNN format: N

Task Coverage:
- With acceptance criteria: N/N
- With effort estimates: N/N
- With dependencies: N/N

Implementation Contracts:
- Protocols: N
- Exceptions: N
- State Machines: N
- Data Models: N

Implementation-Ready Score: N%

Errors: N
Warnings: N
Info: N

[Details listed by severity]

Version History

VersionDateChangesAuthor
1.12026-02-11Nested Folder Rule: Added Section 0 Folder Structure Validation (BLOCKING); TASKS must be in docs/11_TASKS/TASKS-NN_{slug}/ folders; Added error codes TASKS-E020, TASKS-E021, TASKS-E022
1.02026-02-08Initial validator skill definition with YAML frontmatterSystem

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

Claude

29.78%
按下载量换算64

Cursor

20.19%
按下载量换算44

Gemini CLI

9.17%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills