knowledge-work-plugins
knowledge-work-plugins copied to clipboard
feat: add automated plugin validation scripts
Summary
- Adds
scripts/validate-plugin.shto validate a single plugin's structure and content - Adds
scripts/validate-all.shto 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