Purpose
- A small set of reusable shell commands that agents and humans can call directly. These prefer project targets (make/task/just) and default to safe behavior (dry-run where applicable).
General Notes
- All commands live in
bin/and useset -euo pipefail. - Many accept
REPO,PR,DIR,WORKSPACE, orDRY_RUN=1env vars. - DRY_RUN is enabled by default for risky actions (e.g., merges) and must be explicitly disabled:
DRY_RUN=0.
Commands
bin/gh-issue-triage— Summarize open issues with suggested priorities and owners.- Usage:
REPO=org/name bin/gh-issue-triage
- Usage:
bin/gh-dependency-detect— Detect dependencies between issues/PRs.- Usage:
REPO=org/name bin/gh-dependency-detect
- Usage:
bin/gh-pr-review— Fetch PR info and diff; print a compact review context.- Usage:
REPO=org/name PR=123 bin/gh-pr-review
- Usage:
bin/gh-pr-merge— Squash-merge a PR after checks; DRY_RUN=1 by default.- Usage:
REPO=org/name PR=123 DRY_RUN=0 bin/gh-pr-merge
- Usage:
bin/tf-plan-only— Run Terraform plan only; never apply.- Usage:
DIR=./infra WORKSPACE=staging bin/tf-plan-only
- Usage:
bin/ci-fail-investigate— Summarize failing jobs and likely causes.- Usage:
REPO=org/name bin/ci-fail-investigate
- Usage:
bin/test-health-report— Prefer project test target; summarize flakiness/slow tests if logs available.- Usage:
bin/test-health-report
- Usage:
bin/context-scope— Scope repository context with ripgrep and print compact findings.- Usage:
QUERY="auth middleware" bin/context-scopeorPATTERN="src/**/*.ts" bin/context-scope
- Usage:
bin/diff-summarize— Summarize diffs with stats and focused patches.- Usage:
RANGE="origin/main...HEAD" bin/diff-summarize
- Usage:
See hooks/pre_safety_check.sh for the current safety gate and PROMPTING_GUIDE.md for example prompts.