Test command that invokes plugin script to validate wrapper pattern
Tests the script wrapper pattern for plugin distribution. Validates that scripts bundled in plugins can be executed via commands with proper project context access. Essential for proving the 85 SDLC framework scripts can be distributed as plugins.
/plugin marketplace add Zal4DW/claude-plugin-test/plugin install sdlc-test-plugin@odta-sdlc-marketplace[--verbose]This command tests the script wrapper pattern - critical for distributing the framework's 85 scripts via plugin system.
Validate that:
/scripts/ directoryPlugin Structure:
/scripts/test-script.sh ← Script file in plugin
/commands/test-script-wrapper.md ← Command that invokes script
Execution Flow:
User: /test-script-wrapper
→ Claude Code loads command from plugin
→ Command uses Bash tool to execute script
→ Script runs in project context
→ Results returned to user
When this command is invoked:
scripts/test-script.shplugin-script-test-output.txt was createdSince plugin scripts are bundled with the plugin, we need to execute the script. The challenge is determining the script's location within the plugin installation.
Approach 1 - Relative Path (if commands run from plugin root):
bash ./scripts/test-script.sh
Approach 2 - Project Copy (if scripts must be copied to project):
# Command first copies script to project, then executes
cp [plugin-path]/scripts/test-script.sh .claude/scripts/
bash .claude/scripts/test-script.sh
Approach 3 - Inline Execution (embed script logic in command):
# Execute script logic directly in command
bash -c "echo 'Script test'; date > output.txt"
For this test, try Approach 1 first. If that fails due to path issues, document the error and try alternative approaches.
===============================================
PLUGIN SCRIPT EXECUTION TEST
===============================================
Script: test-script.sh
Plugin: sdlc-test-plugin
Execution time: [timestamp]
Working directory: [project-path]
✅ SUCCESS: Plugin script executed successfully
This validates that:
- Scripts can be included in plugin packages
- Scripts can be invoked from plugin commands
- Scripts have access to project environment
Framework implication:
All 85 SDLC framework scripts can be distributed
via plugin and invoked through command wrappers
===============================================
Created: plugin-script-test-output.txt
plugin-script-test-output.txt is createdIf successful, this proves:
If unsuccessful, we need alternative approach: