Dependency Checker
Validate dependencies declared in extends-plugin.json files against installed and enabled plugins.
Usage
/utils:dependency-checker- Check all enabled plugins/utils:dependency-checker --installed- Check all installed plugins/utils:dependency-checker --all- Check all plugins in all marketplaces/utils:dependency-checker --plugin <name>- Check specific plugin
Workflow
Step 1: Determine Flags
Parse the user's request to determine appropriate flags:
- Default (no args): Check enabled plugins only
- "check installed": Use
--installed - "check all": Use
--all - "check <plugin-name>": Use
--plugin <name>
Step 2: Generate CPR Resolver
First, generate the Claude Plugin Root resolver:
# Invoke the find-claude-plugin-root skill to create /tmp/cpr.py
Skill(skill="utils:find-claude-plugin-root")
Step 3: Execute Scripts
# Get plugin root
PLUGIN_ROOT=$(python3 /tmp/cpr.py utils)
# Run dependency checker
python3 "$PLUGIN_ROOT/scripts/dependency-checker.py" [FLAGS] > /tmp/dependency-check.json
# Render tables
python3 "$PLUGIN_ROOT/scripts/table-renderer.py" /tmp/dependency-check.json
# Show resolution steps
python3 "$PLUGIN_ROOT/scripts/resolution-steps.py" /tmp/dependency-check.json
Step 4: Interpret Results
After displaying tables and resolution steps, provide a summary including:
- Total dependencies checked
- Satisfied vs unsatisfied count
- Priority order for fixes (required before optional)
- Additional context from the JSON data
Error Handling
If scripts fail:
- Verify Python 3 is available
- Confirm plugin paths exist
- Check extends-plugin.json for valid JSON syntax
Additional Resources
Scripts
$PLUGIN_ROOT/scripts/dependency-checker.py- Core validation logic$PLUGIN_ROOT/scripts/table-renderer.py- ASCII table formatting$PLUGIN_ROOT/scripts/resolution-steps.py- Resolution guidance
微信扫一扫