AgentSkillsCN

verify-validate-skill

/assist:verify 命令的验证阶段——逐一验证每个组件

SKILL.md
--- frontmatter
name: verify-validate-skill
description: Validation phase for /assist:verify command - validates each component
triggers:
  - verify validate phase
  - component validation
  - schema validation

Verify Validation Phase

The second phase of the /assist:verify workflow. Validates each discovered component against schemas.

Purpose

Perform detailed validation of each component found in the discovery phase.

Validation Checks Per Component Type

Skills

CheckRule
File existsSKILL.md must exist in skill directory
YAML frontmatterMust have valid YAML between --- delimiters
Required fieldsname, description, triggers
Triggers formatMust be a list with at least one item
Content presentMust have content after frontmatter

Agents

CheckRule
File exists<name>.md must exist in agents/
YAML frontmatterMust have valid YAML between --- delimiters
Required fieldsname, description, tools
Tools formatMust be a list of valid tool names
System promptMust have content (system prompt) after frontmatter

Commands

CheckRule
File exists<name>.md must exist in commands/
YAML frontmatterMust have valid YAML between --- delimiters
Required fieldsname, description
Optional fieldsallowed-tools, argument-hint

Hooks

CheckRule
hooks.json syntaxMust be valid JSON
Event typesMust use valid event types (PreToolUse, PostToolUse, etc.)
Script referencesReferenced Python scripts must exist
Python syntaxHook scripts must have valid Python syntax

plugin.json

CheckRule
Valid JSONMust be parseable
Required fieldsname, version, description, author
Author formatMust be object with name field
Version formatSemantic version recommended

Output Format

code
VALIDATION_REPORT
=================

RESULTS:

skills/router-skill/SKILL.md:
  [PASS] File exists
  [PASS] YAML frontmatter valid
  [PASS] Required fields present
  [PASS] Triggers format valid

agents/my-agent.md:
  [PASS] File exists
  [FAIL] Missing 'tools' field
  
SUMMARY:
- Checked: 10 components
- Passed: 9
- Failed: 1

ISSUES:
- agents/my-agent.md: Missing required 'tools' field

Transition Evidence

To proceed to the connectivity phase, provide:

  • validated_count: Number of components validated
  • passed_count: Number passing all checks
  • failed_count: Number with failures
  • issues: List of issues found