Token导航 LogoToken导航

Agent Skill · 研究检索

doc-req-validator(文档请求验证器)

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

doc-req-validator 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 51,536。

总安装 582周安装 25GitHub Stars 14下载 204核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

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

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

验证 REQ 文档是否符合 Layer 7 架构标准。强制要求嵌套文件夹存储与 subtype 标签正确性。检查 65-68 类风险分类与概率影响矩阵。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。阻断不符合 schema 的文档进入开发阶段。

doc-req-validator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/doc-req-validator

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

doc-req-validator 怎么安装?

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

doc-req-validator 支持哪些 AI 工具?

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

doc-req-validator 需要什么权限?

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

doc-req-validator 是免费的吗?

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

doc-req-validator 用的人多吗?

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

doc-req-validator 安全吗?

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

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

值得选的地方

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

先想清楚的地方

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

适不适合你

更适合

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

不太适合

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

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
doc-req-validator

文档请求验证器 · 本页

58214只读未明确通过

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

SKILL.md 原文

doc-req-validator

Validate Atomic Requirements (REQ) documents against Layer 7 schema standards.

Activation

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

Validation Schema Reference

Schema: ai_dev_ssd_flow/07_REQ/REQ_MVP_SCHEMA.yaml Layer: 7 Artifact Type: REQ

Validation Checklist

0. Folder Structure Validation (BLOCKING)

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

Required Structure:

REQ TypeRequired Location
Monolithicdocs/07_REQ/REQ-NN_{slug}/REQ-NN_{slug}.md

Validation:

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

Example Valid Structure:

docs/07_REQ/
├── REQ-01_f1_iam/
│   ├── REQ-01_f1_iam.md           ✓ Valid
│   ├── REQ-01.R_review_report_v001.md
│   └── .drift_cache.json
├── REQ-02_f2_session/
│   └── REQ-02_f2_session.md       ✓ Valid

Invalid Structure:

docs/07_REQ/
├── REQ-01_f1_iam.md               ✗ NOT in nested folder

Error Codes:

CodeSeverityDescription
REQ-E020ERRORREQ not in nested folder (BLOCKING)
REQ-E021ERRORFolder name doesn't match REQ ID
REQ-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 - REQ must pass folder structure validation before other checks proceed.


1. Metadata Validation

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

Required tags:
  - req (or req-template)
  - layer-7-artifact

Forbidden tag patterns:
  - "^req-document$"
  - "^requirements$"
  - "^atomic-requirements$"
  - "^req-\\d{3}$"

2. Structure Validation

Required Sections (11 sections - MVP):

  • Title (H1): # REQ-NN: [RESOURCE_TYPE] Title
  • Section 1: Document Control
  • Section 2: Requirement Description
  • Section 3: Functional Specification
  • Section 4: Interface Definition
  • Section 5: Error Handling
  • Section 6: Quality Attributes
  • Section 7: Configuration
  • Section 8: Testing Requirements
  • Section 9: Acceptance Criteria (≥3 measurable criteria)
  • Section 10: Traceability
  • Section 11: Implementation Notes

Note: MVP template intentionally omits Change History to maintain 11-section structure.

Document Control Required Fields:

  • Status
  • Version
  • Date Created
  • Last Updated
  • Author
  • Priority
  • Category
  • Source Document
  • Verification Method
  • Assigned Team
  • SPEC-Ready Score

File Naming: Pattern: REQ-NNN_descriptive_name.md

3. Content Validation

Requirement Keywords:

  • SHALL: Mandatory requirement
  • SHOULD: Recommended requirement
  • MAY: Optional requirement

Acceptance Criteria Format:

  • Pattern: AC-NNN
  • Minimum count: 15 criteria
  • Categories: Primary Functional (5), Error/Edge Case (5), Quality/Constraint (3), Data Validation (2), Integration (3)

Interface Specifications:

  • Protocol/ABC definition with type hints
  • DTO definitions (dataclass or Pydantic)
  • REST endpoints (optional)

Data Schema Patterns:

  • JSON Schema (draft-07)
  • Pydantic BaseModel with validators
  • Database schema (optional)

SPEC-Ready Score:

  • Minimum threshold: 90%
  • Components: Interface completeness, data schema, error handling, configuration, quality attributes, implementation guidance, acceptance criteria, traceability

4. Traceability Validation

Layer 7 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)

Downstream Expected:

  • IMPL documents
  • CTR documents
  • SPEC documents
  • TASKS documents

Same-Type References:

  • @related-req: REQ-NN
  • @depends-req: REQ-NN

Error Codes

CodeSeverityDescription
REQ-E001errorMissing required tag 'req'
REQ-E002errorMissing required tag 'layer-7-artifact'
REQ-E003errorInvalid document_type
REQ-E004errorInvalid architecture_approaches format
REQ-E005errorForbidden tag pattern detected
REQ-E006errorMissing required section
REQ-E007errorMultiple H1 headings detected
REQ-E008errorSection numbering not sequential (1-11)
REQ-E009errorDocument Control missing required fields
REQ-E010errorMissing Interface Specifications (Section 3)
REQ-E011errorMissing Data Schemas (Section 4)
REQ-E012errorMissing Error Handling (Section 5)
REQ-E013errorMissing Acceptance Criteria (Section 9)
REQ-E014warningFile name does not match format
REQ-E015errorMissing Protocol/ABC definition
REQ-E016errorMissing JSON Schema or Pydantic models
REQ-E017errorMissing Exception Catalog
REQ-W001warningSPEC-Ready Score below 90%
REQ-W002warningAcceptance Criteria count below 15
REQ-W003warningMissing upstream tags (require 6)
REQ-W004warningMissing Description Context subsections
REQ-W005warningMissing Performance targets (p50/p95/p99)
REQ-W006warningMissing Implementation Guidance patterns
REQ-W007warningCode paths appear to be placeholders
REQ-I001infoConsider adding database schema
REQ-I002infoConsider adding REST endpoints
REQ-I003infoPython code should include type hints

Validation Commands

# Validate single REQ document
./ai_dev_ssd_flow/07_REQ/scripts/validate_req_template.sh docs/07_REQ/REQ-001_example/REQ-001_example.md

# Validate all REQ documents
find docs/07_REQ -name "REQ-*.md" -exec ./ai_dev_ssd_flow/07_REQ/scripts/validate_req_template.sh {} \;

# Check with verbose output
python3 ai_dev_ssd_flow/07_REQ/scripts/validate_req_spec_readiness.py docs/07_REQ/REQ-001_example/REQ-001_example.md --verbose

Validation Workflow

  1. Parse YAML frontmatter
  2. Check required metadata fields
  3. Validate tag taxonomy
  4. Verify section structure (1-11)
  5. Validate Document Control table
  6. Check Interface Specifications (Protocol/ABC)
  7. Check Data Schemas (JSON/Pydantic)
  8. Check Error Handling (Exception Catalog)
  9. Verify Acceptance Criteria count (≥15)
  10. Validate upstream references (6 required)
  11. Calculate SPEC-Ready Score
  12. Verify file naming convention
  13. Generate validation report

Integration

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

Output Format

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

Interface Coverage:
- Protocol/ABC: Present/Missing
- DTOs: Present/Missing
- REST Endpoints: Present/Missing

Data Schema Coverage:
- JSON Schema: Present/Missing
- Pydantic Models: Present/Missing
- Database Schema: Present/Missing

Acceptance Criteria: N/15

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); REQ must be in docs/07_REQ/REQ-NN_{slug}/ folders; Added error codes REQ-E020, REQ-E021, REQ-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.

平台分布

Codex

36.01%
按下载量换算73

Claude

28.84%
按下载量换算59

Cursor

19.16%
按下载量换算39

Gemini CLI

9.89%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

继续浏览同类 Skills