Test an AIWG package (addon, extension, or framework)
Run comprehensive tests on an AIWG package to verify structure, content, and deployment readiness. Use this before publishing to catch manifest errors, missing files, and invalid component definitions.
/plugin marketplace add jmagly/ai-writing-guide/plugin install jmagly-utils-plugins-utils@jmagly/ai-writing-guideRun comprehensive tests on an AIWG package to verify structure, functionality, and deployment readiness.
Resolve the package path from $ARGUMENTS:
Identify package type from manifest.json:
"type": "addon" → Addon tests"type": "framework" → Framework tests"type": "extension" → Extension testsManifest Validation:
Directory Structure:
Component Files:
Agent Validation: For each agent file:
Command Validation: For each command file:
Skill Validation: For each skill:
Addon Tests:
requires field (addons are standalone)Extension Tests:
requires field present and validFramework Tests:
Simulate deployment to temporary directory:
# Create temp test directory
mkdir -p /tmp/aiwg-test-$$
# Attempt deployment
aiwg -deploy-agents --source <package-path> --target /tmp/aiwg-test-$$ --dry-run
# Check expected output structure
When --fix is specified, attempt to repair:
Fixable Issues:
Non-Fixable Issues (report only):
Summary Format:
Package Test: <package-id>
Type: <addon|extension|framework>
─────────────────────────────────
Structure Tests: <pass/fail count>
Content Tests: <pass/fail count>
Type Tests: <pass/fail count>
Deployment Test: <pass/fail>
Overall: <PASS|FAIL>
Detailed Format (--verbose):
Package Test: <package-id>
─────────────────────────────────
[Structure Tests]
✓ manifest.json exists
✓ manifest.json is valid JSON
✓ Required fields present
✓ agents/ directory exists
✗ commands/ directory missing
...
[Content Tests]
✓ agent-one.md: valid frontmatter
✓ agent-one.md: valid model (sonnet)
✗ agent-two.md: missing tools field
...
[Type Tests]
✓ No requires field (addon)
...
[Deployment Test]
✓ Dry-run deployment successful
[Issues Found]
ERROR: commands/ directory missing
WARNING: agent-two.md missing tools field
[Auto-Fixed] (if --fix)
✓ Created commands/ directory
# Test addon
/devkit-test aiwg-utils
# Test with verbose output
/devkit-test sdlc-complete --verbose
# Test and auto-fix
/devkit-test my-addon --fix --verbose
# Test extension
/devkit-test sdlc-complete/extensions/hipaa