Use when verifying plugin integrity, testing hooks, or validating agent routing - runs comprehensive self-tests to ensure all plugin components function correctly. Tests structure, hooks, agents, skills, and commands against their schemas. Do NOT use for application testing or runtime validation - this is specifically for popkit plugin component verification.
/plugin marketplace add jrc1883/popkit-claude/plugin install popkit@popkit-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
Comprehensive testing framework for validating plugin components. Tests hooks, agents, skills, commands, and routing logic to ensure everything works as expected.
Announce at start: "I'm using the plugin-test skill to run self-tests."
# All tests
/plugin-test
# Specific category
/plugin-test hooks
/plugin-test agents
/plugin-test skills
/plugin-test routing
[PASS] hook/pre-tool-use - JSON response valid
[PASS] hook/post-tool-use - JSON response valid
[FAIL] hook/notification - Missing timestamp field
[SKIP] agent/rapid-prototyper - No test file
Summary: 42 passed, 1 failed, 3 skipped
Tests live in tests/ directory:
tests/
hooks/
test-pre-tool-use.json # Input/expected output pairs
test-post-tool-use.json
agents/
test-routing.json # Routing verification
skills/
test-structure.json # Structure validation
{
"name": "pre-tool-use",
"tests": [
{
"name": "blocks dangerous commands",
"input": {
"tool_name": "Bash",
"tool_input": {"command": "rm -rf /"}
},
"expected": {
"decision": "block"
}
},
{
"name": "allows safe reads",
"input": {
"tool_name": "Read",
"tool_input": {"file_path": "/tmp/test.txt"}
},
"expected": {
"decision": "allow"
}
}
]
}
{
"name": "agent-routing",
"tests": [
{
"name": "bug keyword routes to bug-whisperer",
"prompt": "fix this bug in the authentication code",
"expected_agent": "bug-whisperer",
"min_confidence": 0.6
}
]
}
Called by:
Outputs:
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.