agentsclimarketplace

Flow validation

Skill Dokkabei97/hardened-claude-code/skills/flow-validation

Validation rules and checklists for Claude Code plugin components. Contains structural, content, and security validation rules for agents, commands, skills, and hooks. Used by the /verify-flow command.From its SKILL.md

Install
npx -y skills add Dokkabei97/hardened-claude-code --skill flow-validation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

4.3 KB, as published. Nobody here has run it

Flow Validation Rules

Comprehensive validation ruleset for Claude Code plugin components. Rules are organized by component type and severity to enable systematic quality checks.

When to Apply

Reference these rules when:

  • Running /verify-flow to validate components
  • Creating new components and need to verify compliance
  • Reviewing pull requests that modify plugin components
  • Setting up CI validation for plugin repositories

Rule Categories

PrefixComponentRule Count
CMD-Commands13 rules
AGT-Agents20 rules
SKL-Skills18 rules
HK-Hooks12 rules
XRF-Cross-Reference9 rules
SEC-Security6 rules
QUA-Quality7 rules

Severity Scale

LevelImpactAuto-FixableAction
CriticalComponent brokenSomeMust fix immediately
HighConvention violationSomeFix before merge
MediumStyle deviationMostFix when convenient
LowOptimization hintAllOptional

Validation Order

Execute validation in this order for optimal dependency resolution:

  1. Structural (CMD/AGT/SKL/HK rules) - File exists, frontmatter valid, sections present
  2. Content Quality (QUA rules) - Descriptions specific, examples present, triggers concrete
  3. Security (SEC rules) - No credentials, safe scripts, no dangerous commands
  4. Cross-Reference (XRF rules) - Component references valid, no orphans

Quick Reference: Required Sections

Command Required Sections

---
frontmatter (6 fields)
---
# /{name} - {Title}
## Triggers (3+ items)
## Usage (code block with options)
## Behavioral Flow (phased, numbered)
## Tool Coordination (tool list)
## Examples (2+ with code blocks)
## Boundaries (Will + Will Not)

Agent Required Sections

---
frontmatter (2 required + 11 optional fields)
---
Persona description paragraph
## Your Role (5+ responsibilities)
## Analysis Workflow (numbered steps)
## Output Format (report template)
## Boundaries (Will + Will Not)

Skill Required Structure

skills/{name}/
  SKILL.md (< 5,000 tokens)
    ---
    frontmatter (2 recommended + 8 optional fields)
    ---
    # {Title}
    ## When to Apply (3+ conditions)
    ## {Domain Content}
    ## How to Use
  references/ (optional, {prefix}-{topic}.md naming)
  templates/ (optional, referenced in SKILL.md)

Plugin Required Structure

.claude-plugin/
  plugin.json (name, description, version required)
skills/              (optional)
agents/              (optional)
hooks/hooks.json     (optional)
.mcp.json            (optional)

Note: As of Claude Code v2.1.3, commands and skills have been unified. Both formats create slash commands. Skill format is recommended for new components.

Reference Files

Detailed rule definitions with examples:

Token Budget Estimation

For skill SKILL.md files, estimate token count:

tokens ≈ word_count × 1.3
BudgetWordsStatus
< 3,500< 2,700Optimal
3,500-5,0002,700-3,850Acceptable
> 5,000> 3,850Over budget - split into references

Health Score Calculation

Base Score: 100

Deductions per finding:
  Critical: -20
  High:     -10
  Medium:    -3
  Low:       -1

Rating Scale:
  90-100: Excellent - Ready for production use
  75-89:  Good - Minor improvements recommended
  60-74:  Fair - Notable gaps need attention
  40-59:  Poor - Significant issues found
   0-39:  Critical - Not ready for use

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.