/devops-pipeline:git-worktree-statusfrom devops-pipeline
Reports type check, test, and build results that /git-worktree started in the background for the current worktree, reading from .worktree-logs/. Use when asked whether a worktree's checks passed or are still running.
Ships in devops-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Check background verification tasks (type check, tests, build) launched by /git-worktree.
Core principle: Non-blocking feedback on worktree health without interrupting development flow.
Part of: Worktree Lifecycle Suite: /git-worktree | /git-worktree-remove | /git-worktree-clean
.worktree-logs/ for background task results# In a linked worktree, --git-dir is <repo>/.git/worktrees/<name> and
# --git-common-dir is <repo>/.git. In the main working tree they are equal.
[ "$(git rev-parse --git-dir 2>/dev/null)" != "$(git rev-parse --git-common-dir 2>/dev/null)" ] || {
echo "Not inside a linked worktree. Use from a worktree directory."
exit 1
}
# Get worktree info
WORKTREE_PATH=$(git rev-parse --show-toplevel)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
MAIN_REPO=$(dirname "$(git rev-parse --git-common-dir)")
The log is created as soon as a check starts, so it proves nothing about the result. /git-worktree writes a .exit file with the exit status when a check finishes: no .exit file means no result.
LOG=".worktree-logs/typecheck.log"
EXIT_FILE=".worktree-logs/typecheck.exit"
if [ -f "$EXIT_FILE" ]; then
if [ "$(cat "$EXIT_FILE")" = "0" ]; then
echo "Type check: PASS"
else
ERROR_COUNT=$(grep -c "error TS" "$LOG")
echo "Type check: FAIL ($ERROR_COUNT errors)"
# Show first 5 errors, or the end of the log if the command itself failed
if [ "$ERROR_COUNT" -gt 0 ]; then grep "error TS" "$LOG" | head -5; else tail -5 "$LOG"; fi
fi
elif [ -f "$LOG" ]; then
echo "Type check: RUNNING or interrupted (no exit status yet)"
else
echo "Type check: NOT RUN"
fi
LOG=".worktree-logs/tests.log"
EXIT_FILE=".worktree-logs/tests.exit"
if [ -f "$EXIT_FILE" ]; then
if [ "$(cat "$EXIT_FILE")" = "0" ]; then
TOTAL=$(grep -o '"numTotalTests":[0-9]*' "$LOG" | cut -d: -f2)
echo "Tests: PASS ($TOTAL tests)"
else
FAILED=$(grep -o '"numFailedTests":[0-9]*' "$LOG" | cut -d: -f2)
echo "Tests: FAIL ($FAILED failures)"
# Show failed test names
grep '"fullName"' "$LOG" | head -5
fi
elif [ -f "$LOG" ]; then
echo "Tests: RUNNING or interrupted (no exit status yet)"
else
echo "Tests: NOT RUN"
fi
LOG=".worktree-logs/build.log"
# /git-worktree does not start a build, so this log exists only if you ran one yourself.
# A log has no exit status: judge it by its content, and say so in the report.
if [ -f "$LOG" ]; then
if grep -qi "error" "$LOG"; then
echo "Build: FAIL (error found in log)"
tail -10 "$LOG"
else
echo "Build: no error found in log"
fi
elif pgrep -f "cargo build\|next build\|go build" > /dev/null; then
echo "Build: RUNNING..."
else
echo "Build: NOT RUN"
fi
Worktree Status: .worktrees/feat/auth
Branch: feat/auth (from main, 3 commits ahead)
Checks:
Type check: PASS
Tests: PASS (142 tests)
Build: NOT RUN
Dependencies: symlinked from main
Disk usage: 2.3 MB (excl. node_modules)
Log files: .worktree-logs/
If failures detected:
Worktree Status: .worktrees/feat/auth
Branch: feat/auth (from main, 3 commits ahead)
Checks:
Type check: FAIL (3 errors)
src/auth.ts:42 - error TS2345: Argument of type 'string' is not assignable
src/auth.ts:67 - error TS2304: Cannot find name 'AuthConfig'
src/middleware.ts:12 - error TS7006: Parameter 'req' implicitly has an 'any' type
Tests: FAIL (2 failures)
auth.test.ts > should validate token
auth.test.ts > should reject expired token
Build: NOT RUN
Action: Fix type errors before proceeding. Run `npx tsc --noEmit` for full output.
Run these only when the user asks to re-run the checks; a status read never deletes or restarts anything.
# Clean old logs (useful for re-running checks)
rm -f .worktree-logs/*.log .worktree-logs/*.exit
# Re-run all checks
(npx tsc --noEmit > .worktree-logs/typecheck.log 2>&1; echo $? > .worktree-logs/typecheck.exit) &
(npx vitest run --reporter=json > .worktree-logs/tests.log 2>&1; echo $? > .worktree-logs/tests.exit) &
| Situation | Output |
|---|---|
| All checks pass | Green status, ready to work |
| Checks still running or interrupted | "RUNNING or interrupted" (no .exit file yet) |
| Type errors found | Error count + first 5 errors |
| Test failures | Failure count + failed test names |
| No logs found | "NOT RUN" (use --fast or logs deleted) |
| Not in worktree | Error message with instructions |
/git-worktree-status
No arguments needed. Run from inside any worktree directory.
What SKILL.md sets; muted values are Claude Code's defaults
low13 skills in this plugin
/canaryPost-deploy monitoring: watch production after a deploy and alert on regressions/ci-allRun the local test suite and type check, push the current branch, and return the pipeline URL. Use before opening a PR./ci-pipelinePush current branch and return the pipeline tracking URL (GitLab or GitHub Actions)/ci-statusShow the CI pipeline status for the active branch (GitLab CI or GitHub Actions), or for a given MR or PR number. Use when asked whether CI passed, is running, or failed.npx claudepluginhub florianbruniaux/claude-code-plugins --plugin devops-pipelineOther plugins' skills for the same job