From idea-to-code
Redirects verbose output from test scripts, end-to-end tests, and long-running commands to logs/ files to avoid Bash tool truncation. Monitors with tail and docker ps.
How this skill is triggered — by the user, by Claude, or both
Slash command
/idea-to-code:test-output-to-logfileThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
When running test scripts or any command that may produce large output (e.g. end-to-end tests, integration tests, build scripts):
When running test scripts or any command that may produce large output (e.g. end-to-end tests, integration tests, build scripts):
logs/ directory exists in the project root.gitignore (either logs/ or *.log)Redirect both stdout and stderr to a file under logs/, and run in the background:
./build-and-test-all.sh > logs/build-and-test.log 2>&1
Use run_in_background: true on the Bash tool so you can monitor progress immediately rather than waiting for completion.
Keep commands simple. Avoid compound commands with &&, quoted flag characters, or other complexity that may be rejected by the Bash tool permission system. Run each command as a separate Bash call.
tail -30 logs/build-and-test.log
docker ps --format "table {{.Names}}\t{{.Status}}"
tail or Grep on the log file to find the error:
Grep with pattern="FAILED|error|Exception" path="logs/build-and-test.log" output_mode="content"
TEST-*.xml files rather than parsing log output — they contain full stack tracesThis prevents the Bash tool from truncating output and losing important error details.
npx claudepluginhub humansintheloop-dev/humansintheloop-dev-workflow-and-tools --plugin idea-to-codeEnforces monitoring of all terminal commands via run_command: announces intent, sets wait times, reads output, detects errors, and stops on failures. For builds, installs, tests, git, deploys.
Guides creation of robust bash scripts with defensive patterns, error handling, structured logging, and automated testing via Bats and ShellCheck.
Debugs bash scripts using set -x, custom PS4 prompts, conditional logging, function tracing, and execution profiling techniques.