Triage a regression by comparing the failing path against the last known good commit
npx claude-code-templates@latest --skill ••••••••••••••••••••Unlock this skill to run and inspect the interactive installation sequence.
Investigate a regression for: $ARGUMENTS
Find the smallest code change that introduced a failing test, broken workflow, or user-reported regression.
test -z "$(git status --porcelain)" || { echo "Working tree is dirty; commit or stash changes first."; exit 1; }git branch --show-current git rev-parse --short HEAD
$ARGUMENTS.Run the narrowest available command first. Treat $ARGUMENTS as a description or test selector, not as a shell command: identify the reproduction/test command from the issue and repository documentation, then append only a validated selector (quoted as needed).
For example, after identifying packages/foo/test/foo.test.ts as the selector:
npm test -- packages/foo/test/foo.test.ts
If no narrow command exists, run the documented test command from the repository README or CONTRIBUTING guide.
Inspect recent commits that touched the failing area:
git log --oneline --decorate --max-count=20 -- <path-to-failing-area>
For each suspicious commit, inspect the focused diff:
git show --stat <commit> git show <commit> -- <path-to-failing-area>
If the regression window is unclear, use git bisect only with a wrapper that distinguishes a real test failure from an indeterminate environment failure. The wrapper must exit 0 for pass, 1 for a reproducible failure, and 125 when the test cannot run:
cat > /tmp/triage-bisect.sh <<'EOF' #!/usr/bin/env bash set -o pipefail <validated-test-command> status=$? # Replace this classification with the repository-specific environment errors. case "$status" in 0) exit 0;; 1) exit 1;; *) exit 125;; esac EOF chmod +x /tmp/triage-bisect.sh git bisect start git bisect bad git bisect good <known-good-commit> git bisect run /tmp/triage-bisect.sh git bisect reset
Stop and report the environment failure if it cannot be classified reliably. Only run bisect when the test command is deterministic and reasonably fast.
Return a concise report with:
# Step 1: Initialize skill agent setup
npx skills add Regression Triage --install-production
python -m pip install -r requirements.txt
codex plugin install Regression Triage@latest
export API_KEY=secret_token_key_here
Unlock this skill to reveal complete step-by-step setup guides, terminal commands, configuration recipes, repository links, and interactive installation video walkthroughs.
Get instant access to complete setup guides, repository source code, and integration assets.
Generate a complete test file for a specified source file or component. Use when the user explicitly asks to write, create, or generate tests for a specific file.
Multi-framework structured analysis: surfaces hidden assumptions, generates competing solutions, stress-tests each with adversarial reasoning, and delivers confidence-calibrated recommendations
Generate comprehensive architecture documentation with diagrams, ADRs, and interactive visualization