// 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: