Agent Skills › rsmdt/the-startup › validate

validate

GitHub

作为验证编排器,通过委派专家代理对规格、代码及治理规则进行多维度质量校验。支持规格审查、文件验证、漂移检测、宪法规则执行、多源对比及理解确认六种模式,确保输出包含具体位置与修复建议的完整结果。

plugins/start/skills/validate/SKILL.md rsmdt/the-startup

触发场景

需要检查规格文档或实现代码的质量 检测需求与实现的偏差 验证是否符合组织治理规则

安装

npx skills add rsmdt/the-startup --skill validate -g -y
更多选项

非标准路径

npx skills add https://github.com/rsmdt/the-startup/tree/main/plugins/start/skills/validate -g -y

不安装直接使用

npx skills use rsmdt/the-startup@validate

指定 Agent (Claude Code)

npx skills add rsmdt/the-startup --skill validate -a claude-code -g -y

安装 repo 全部 skill

npx skills add rsmdt/the-startup --all -g -y

预览 repo 内 skill

npx skills add rsmdt/the-startup --list

SKILL.md

Frontmatter
{
    "name": "validate",
    "description": "Validate in any of six modes — spec quality, single-file review, spec-to-implementation drift, constitution rule enforcement, comparison between two artifacts, or sanity-checking your understanding. Use when checking a spec by ID, validating a file by path, detecting drift, enforcing constitution rules, comparing two sources (\"$X against $Y\"), or asking a freeform validation question.",
    "argument-hint": "spec ID (e.g., 005), file path, 'constitution', 'drift', or description of what to validate",
    "user-invocable": true
}

Persona

Act as a validation orchestrator that ensures quality and correctness across specifications, implementations, and governance.

Validation Request: $ARGUMENTS

Interface

Finding { status: PASS | WARN | FAIL severity: HIGH | MEDIUM | LOW title: string // max 40 chars location: string // file:line issue: string // one sentence recommendation: string // how to fix }

State { target = $ARGUMENTS validationMode: Spec | File | Drift | Constitution | Comparison | Understanding perspectives = [] // from reference/perspectives.md mode: Standard | Agent Team | Dynamic Workflow findings: Finding[] }

Constraints

Always:

  • Launch ALL applicable validation perspectives simultaneously.
  • Include file paths and line numbers for all findings.
  • Every finding must have a clear, actionable fix recommendation.
  • Advisory by default — provide recommendations without blocking.

Never:

  • Validate code yourself — always delegate to specialist agents.
  • Skip constitution L1/L2 violations — these are blocking.
  • Present findings without specific file:line references.
  • Summarize agent findings — present complete results.

Reference Materials

  • reference/perspectives.md — perspective definitions, activation rules, mode-to-perspective mapping
  • reference/3cs-framework.md — completeness, consistency, correctness validation
  • reference/ambiguity-detection.md — vague language patterns and scoring
  • reference/drift-detection.md — spec-implementation alignment checking
  • reference/constitution-validation.md — governance rule enforcement
  • reference/output-format.md — assessment level definitions, next-step options
  • examples/output-example.md — concrete example of expected output format

Workflow

1. Parse Mode

Determine validation mode from $ARGUMENTS:

match (target) { /^\d{3}/ => Spec Validation file path => File Validation "drift" | "check drift" => Drift Detection "constitution" => Constitution Validation "$X against $Y" => Comparison Validation freeform text => Understanding Validation }

2. Gather Context

match (mode) { Spec Validation => load spec documents (PRD, SDD, PLAN), identify cross-references Drift Detection => load spec + identify implementation files + extract requirements Constitution => check for CONSTITUTION.md, parse rules by category File Validation => read target file + surrounding context Comparison => load both sources for comparison }

3. Select Mode

Ask the user to choose: Standard (default) — parallel fire-and-forget subagents Agent Team — persistent teammates with shared task list and coordination Dynamic Workflow — one inline workflow script fans out the validators and collects their findings

Recommend Agent Team when: full spec validation | drift + constitution together | 4+ perspectives | multi-document scope. Recommend Dynamic Workflow instead when those thresholds apply but the perspectives are independent and need no coordination between validators.

4. Launch Validation

Read reference/perspectives.md for the mode-to-perspective mapping.

match (mode) { Standard => launch parallel subagents per applicable perspectives Agent Team => create team, spawn one validator per perspective, assign tasks Dynamic Workflow => run one dynamic workflow: one validator agent per perspective in parallel, returning every finding }

For Dynamic Workflow, these instructions are the opt-in: call the Workflow tool directly with an inline script. Do not load the workflow-authoring reference or assemble the script through shell commands first — runs that detour through either stall before launching. Choose model and effort per stage from what the stage does. Mechanical stages — running a command, gathering or quoting sources, mapping text into a fixed schema — can run on a smaller, faster model at lower effort. Analysis, writing, and judging another agent's work need the strongest model. A judging stage never runs on a weaker model than the stage it judges. When unsure, omit model so the stage inherits the session model.

5. Synthesize Findings

Process findings:

  1. Deduplicate by location (within 5 lines), keeping highest severity and merging complementary details.
  2. Sort by severity (descending).
  3. Group by category.

Mode-specific synthesis:

  • Drift: Read reference/drift-detection.md and categorize by type (Scope Creep, Missing, Contradicts, Extra).
  • Constitution: Read reference/constitution-validation.md and separate by level (L1 autofix, L2 manual, L3 advisory).
  • Spec: Read reference/ambiguity-detection.md and include ambiguity score.

assessment = match (failCount, warnCount) { (0, 0) => Excellent (0, 1..3) => Good (0, > 3) => Needs Attention (> 0, _) => Critical }

Read reference/output-format.md and format the report accordingly.

6. Next Steps

match (validationMode) { Constitution => ask the user to choose: Apply autofixes (L1) | Show violations | Skip Drift => ask the user to choose: Acknowledge | Update implementation | Update spec | Defer Spec | File => ask the user to choose: Address failures | Show details | Continue anyway }

For a drift check on a spec, file each finding as a tracker task (node ${CLAUDE_PLUGIN_ROOT}/scripts/task.js create --spec {specId} --type drift --name "<finding>") unless an open one already describes it, set a finding to passed once the implementation or the spec is updated to resolve it, and record the check: node ${CLAUDE_PLUGIN_ROOT}/scripts/spec.js {specId} --event '{"kind":"verify","constitution":"pass|fail|none"}' (none when no constitution was checked).

Integration with Other Skills

Called by other workflow skills:

  • /start:implement — drift check at phase boundaries, constitution check at checkpoints
  • /start:specify — architecture alignment during SDD phase

版本历史

  • e803d51 当前 2026-11-02 10:45
  • 88d447c 2026-08-08 07:57

同 Skill 集合

plugins/start/skills/analyze/SKILL.md
plugins/start/skills/archive/SKILL.md
plugins/start/skills/brainstorm/SKILL.md
plugins/start/skills/constitution/SKILL.md
plugins/start/skills/debug/SKILL.md
plugins/start/skills/document/SKILL.md
plugins/start/skills/implement-direct/SKILL.md
plugins/start/skills/implement-factory/SKILL.md
plugins/start/skills/implement-incremental/SKILL.md
plugins/start/skills/implement/SKILL.md
plugins/start/skills/refactor/SKILL.md
plugins/start/skills/review/SKILL.md
plugins/start/skills/specify-factory/SKILL.md
plugins/start/skills/specify-incremental/SKILL.md
plugins/start/skills/specify-meta/SKILL.md
plugins/start/skills/specify-plan/SKILL.md
plugins/start/skills/specify-requirements/SKILL.md
plugins/start/skills/specify-solution/SKILL.md
plugins/start/skills/specify/SKILL.md
plugins/start/skills/test/SKILL.md
plugins/start/skills/writing-skills/SKILL.md
plugins/team/skills/cross-cutting/feature-prioritization/SKILL.md
plugins/team/skills/cross-cutting/pattern-detection/SKILL.md
plugins/team/skills/cross-cutting/project-discovery/SKILL.md
plugins/team/skills/cross-cutting/requirements-elicitation/SKILL.md
plugins/team/skills/design/user-research/SKILL.md
plugins/team/skills/development/agentic-patterns/SKILL.md
plugins/team/skills/development/api-contract-design/SKILL.md
plugins/team/skills/development/architecture-selection/SKILL.md
plugins/team/skills/development/domain-modeling/SKILL.md
plugins/team/skills/development/frontend-patterns/SKILL.md
plugins/team/skills/development/technical-writing/SKILL.md
plugins/team/skills/development/testing/SKILL.md
plugins/team/skills/infrastructure/platform-operations/SKILL.md
plugins/team/skills/quality/code-quality-review/SKILL.md
plugins/team/skills/quality/performance-analysis/SKILL.md
plugins/team/skills/quality/security-assessment/SKILL.md
plugins/start/skills/improve/SKILL.md
plugins/start/skills/reflect/SKILL.md

元信息

文件数
0
版本
e803d51
Hash
7d495463
收录时间
2026-08-08 07:57

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 05:23
浙ICP备14020137号-1