// Master plugin testing, quality assurance, and validation. Learn unit testing, integration testing, and how to ensure plugin quality.
| name | plugin-testing |
| description | Master plugin testing, quality assurance, and validation. Learn unit testing, integration testing, and how to ensure plugin quality. |
Test your plugin:
# Validate structure
/test-plugin my-plugin
# Run all tests
/test-plugin my-plugin --all
# Detailed report
/test-plugin my-plugin --report
Test individual components:
Agent:
โ
Description present and valid
โ
Capabilities list complete
โ
Content properly formatted
โ
Status and date included
Skill:
โ
Name lowercase-hyphens
โ
Quick Start code runs
โ
3+ concepts documented
โ
Real projects included
Command:
โ
Executes without error
โ
Options documented
โ
Example output provided
Test component interactions:
Agent โ Agent:
โ
Agent A links to Agent B
โ
Both agents available
โ
Integration documented
Agent โ Skill:
โ
Agent recommends skill
โ
Skill accessible
โ
Connection clear
Command โ Agent:
โ
Command invokes agent
โ
Agent responds appropriately
โ
Workflow makes sense
{
"manifest_valid": {
"description": "plugin.json valid JSON",
"check": "JSON.parse(plugin.json)"
},
"files_exist": {
"description": "All referenced files exist",
"check": "For each agent/skill/command file"
},
"naming_correct": {
"description": "Files follow naming conventions",
"check": "lowercase-hyphens pattern"
},
"references_valid": {
"description": "All manifested references valid",
"check": "Check each file path"
}
}
Agent:
โ
YAML frontmatter valid
โ
Description < 1024 chars
โ
Capabilities 5-10 items
โ
Content 250-400 lines
โ
Markdown properly formatted
Skill:
โ
YAML frontmatter valid
โ
Name < 64 chars, lowercase
โ
Quick Start code works
โ
Core concepts explained
โ
Real projects included
Command:
โ
Markdown valid
โ
Usage clear
โ
Options documented
โ
Example provided
โ
Next steps suggested
Agent Invocation:
โ
Agent loads without error
โ
Content renders correctly
โ
Integrations accessible
โ
No broken links
Skill Loading:
โ
Skill accessible from agent
โ
Code examples accurate
โ
Links functional
โ
Metadata correct
Command Execution:
โ
Command recognized
โ
Options work as documented
โ
Output as expected
โ
Next steps provided
PLUGIN TEST REPORT
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Plugin: my-plugin
Version: 1.0.0
Date: 2025-01-18
STRUCTURE TESTS
โ
Manifest valid (5/5)
โ
Files exist (8/8)
โ
Naming correct (6/6)
โโ Result: PASS
CONTENT TESTS
โ
Agents valid (3/3)
โ
Skills valid (5/5)
โ
Commands valid (4/4)
โโ Result: PASS
FUNCTIONALITY TESTS
โ
Agents invoke (3/3)
โ
Skills load (5/5)
โ
Commands execute (4/4)
โโ Result: PASS
QUALITY SCORE: 98% โ
READY FOR PRODUCTION: YES โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Error in plugin.json line 15
Missing comma after "name": "value"
Fix:
"name": "value", โ Add comma
"version": "1.0.0"
โ Agent agents/missing.md referenced but not found
Fix:
1. Create the file, OR
2. Remove reference from plugin.json
โ Invalid YAML in agents/agent.md
Fix:
- Check indentation (use spaces, not tabs)
- Ensure quotes around values with special chars
- Verify array syntax with dashes
โ ๏ธ Warning: Skill content only 150 lines
Recommended: 200-300 lines
Fix:
- Add more examples
- Expand core concepts
- Include more projects
Agent initialization: < 500ms โ
Skill loading: < 300ms โ
Command execution: < 2s โ
Overall workflow: < 5s โ
Agent files: < 400 lines โ
Skill files: < 300 lines โ
Command files: < 150 lines โ
Manifest: < 50KB โ
# Quick test (5 min)
/test-plugin my-plugin
# Full test (10 min)
/test-plugin my-plugin --full
# Continuous monitoring
/test-plugin my-plugin --watch
โ
Structure tests
โ
Content validation
โ
Format checking
โ
Reference validation
โ
Performance baseline
โ
Integration tests
[ ] All structure tests pass
[ ] All content validation passes
[ ] No broken references
[ ] Performance acceptable
[ ] Documentation complete
[ ] Examples working
[ ] Error messages helpful
[ ] Integration smooth
[ ] User acceptance tested
[ ] Ready for marketplace
Before release:
โ
Version bumped
โ
CHANGELOG updated
โ
All tests passing
โ
Documentation updated
โ
Examples verified
โ
Performance baseline met
โ
Code reviewed
Use this skill when: