knowledge-work-plugins icon indicating copy to clipboard operation
knowledge-work-plugins copied to clipboard

feat: add automated plugin validation scripts

Open gn00295120 opened this issue 8 months ago • 0 comments

Summary

  • Adds scripts/validate-plugin.sh to validate a single plugin's structure and content
  • Adds scripts/validate-all.sh to run validation across all plugins in the repository
  • Zero external dependencies — only bash + python3 (for JSON parsing)

What It Validates

Check Level
.claude-plugin/plugin.json exists and is valid JSON FAIL
plugin.json has required fields (name, version, description) FAIL
commands/*.md files have YAML frontmatter with description FAIL
skills/*/SKILL.md files have frontmatter with name and description FAIL
.mcp.json is valid JSON with mcpServers key WARN
~~ placeholders have matching CONNECTORS.md WARN

Usage

# Validate a single plugin
./scripts/validate-plugin.sh sales/

# Validate all plugins
./scripts/validate-all.sh

Current Results

19 plugins discovered, all pass (5 warnings on cowork-plugin-management for ~~ placeholders without CONNECTORS.md — expected for a meta-plugin).

Motivation

From issue discussion: "It's proven hard to develop these locally. Getting the formatting correct... it's easy to make a mistake but hard to spot." — @Rucknar

Fixes #18

gn00295120 avatar Mar 12 '26 03:03 gn00295120