원클릭으로
validate
Use at cadence gates or to validate repo state. Resolves and runs the project's configured fast-test command.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use at cadence gates or to validate repo state. Resolves and runs the project's configured fast-test command.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Rotational arch audit — scores systems, audits top-priority, packages spinoff candidates. Never edits code; updates Last-targeted-audit clock.
Use for new feature requests, vague/ambiguous requirements, or multi-subsystem decomposition before plan mode.
Systematic codebase bug hunt — find and fix all AI-fixable bugs in-session, defer blocked ones to backlog
Night-shift code health review — queries completion entries for today's surfaces, dispatches reviewer, applies findings, updates health tracking.
Run a Codex code review as a second-opinion gate. Returns structured result with findings or graceful skip. Used by /bug-sweep --codex-verify and /workweek-complete Step 7.4.
Cleans up branch sprawl. Triggers: consolidate branches, clean up branches, stale branches, merge all branches.
| name | validate |
| description | Use at cadence gates or to validate repo state. Resolves and runs the project's configured fast-test command. |
| description-budget | 175 |
| version | 2.0.0 |
| spec_backlink | archive/specs/2026-05/2026-05-28-workday-complete-fast-test-resolution.md §3.5 |
Resolve and run the project's fast-tier validation command at cadence gates — merging, completing a workday/workstream, or an explicit 'does everything pass?' check.
Resolves the fast-test command via a three-step resolver (cs_resolve_fast_test_cmd), then executes the resolved command and captures its exit code into the Validation: enum.
COORDINATOR_FAST_TEST_CMD env var — if set and non-empty, use it verbatim. Escape hatch for one-off runs, CI overrides, and dogfood sessions.coordinator.local.md flat fast_test_cmd: key — if coordinator.local.md exists at repo root and fast_test_cmd: is a non-empty string, use it.Validation: skipped and proceed to the next workday/workweek step.There is no conventional fallback to .github/scripts/run-all-checks.py. The meta-repo (~/.claude) opts in explicitly by setting fast_test_cmd: python .github/scripts/run-all-checks.py in its own coordinator.local.md. Every repo must declare its fast-test or receive skip-with-notice.
COORDINATOR_FAST_TEST_CMD is invoked verbatim with no sanitization — set it only from trusted contexts (local shell, CI-managed env, dogfood session). The coordinator.local.md fast_test_cmd: key is repo-local committed config and inherits whatever trust attaches to that file's review history (it ships through normal PR review). The resolver does NOT validate, escape, or filter either value — the assumption is that whoever set it is trusted to execute arbitrary commands in this repo. An agent or pipeline should NEVER set COORDINATOR_FAST_TEST_CMD from an untrusted source (a memo body, a webhook payload, a third-party file).
Source the resolver lib, call cs_resolve_fast_test_cmd, then execute the resolved command:
_cc_root="${CLAUDE_PLUGIN_ROOT:-$(cat "${CLAUDE_HOME:-$HOME}/.claude/.doe-root" 2>/dev/null)/coordinator}"
_cc_doe="$(cat "${CLAUDE_HOME:-$HOME}/.claude/.doe-root" 2>/dev/null || true)"
_cc_doe="${_cc_doe%/}" # trailing-slash normalization: prevents //* false-reject on stale/hand-edited .doe-root
_cc_trusted=0
case "$_cc_root" in
"${CLAUDE_HOME:-$HOME}/.claude/"*) _cc_trusted=1 ;;
esac
[ -n "$_cc_doe" ] && case "$_cc_root" in "$_cc_doe"/*) _cc_trusted=1 ;; esac
case "$_cc_root" in *"/.."*) _cc_trusted=0 ;; esac # load-bearing traversal check; dotdot-prefixed name (e.g. ..cache) is accepted false-reject edge
[ "${COORDINATOR_PLUGIN_ROOT_TRUSTED:-}" = 1 ] && _cc_trusted=1 # sanctioned --plugin-dir spike opt-out
[ "$_cc_trusted" = 1 ] || { echo "ERROR: coordinator root '$_cc_root' outside trusted prefix — refusing to source; re-run coordinator:install (or set COORDINATOR_PLUGIN_ROOT_TRUSTED=1 for a sanctioned --plugin-dir spike)" >&2; exit 1; }
[ -d "$_cc_root" ] || { echo "ERROR: coordinator root unresolved — ~/.claude/.doe-root missing/invalid; re-run coordinator:install" >&2; exit 1; }
_LIB="${_cc_root}/lib/coordinator-resolve-validation-cmd.sh"
_DIAG_TMP=$(mktemp)
trap 'rm -f "$_DIAG_TMP"' EXIT
if [[ -f "$_LIB" ]]; then
source "$_LIB"
FAST_CMD=$(cs_resolve_fast_test_cmd 2>"$_DIAG_TMP")
RESOLVER_EXIT=$?
else
echo "WARN: resolver lib not found at $_LIB" >&2
RESOLVER_EXIT=2
FAST_CMD=""
fi
if [[ $RESOLVER_EXIT -eq 2 ]]; then
# skip-with-notice — emit the diagnostic captured to the per-process tmp file
[[ -s "$_DIAG_TMP" ]] && cat "$_DIAG_TMP" >&2
VALIDATION_RESULT="skipped"
elif [[ $RESOLVER_EXIT -ne 0 ]]; then
# Any OTHER resolver non-zero (canonical: exit 127 — bare `python` token but no
# python3/python on PATH) is a HARD environment failure, NOT a skip. FAST_CMD is
# empty here, so running it would `bash -c ""` → exit 0 and silently pass. Surface
# the resolver's diagnostic and mark blocked instead.
[[ -s "$_DIAG_TMP" ]] && cat "$_DIAG_TMP" >&2
VALIDATION_RESULT="interp-missing"
else
"${BASH:-bash}" -c "$FAST_CMD" # $BASH forwards the current interpreter (DR-148: never bare bash)
CMD_EXIT=$?
if [[ $CMD_EXIT -eq 0 ]]; then
VALIDATION_RESULT="0"
else
VALIDATION_RESULT="$CMD_EXIT"
fi
fi
echo "Validation: $VALIDATION_RESULT"
Run this using the Bash tool from the repo root. Read the full output — every script's pass/fail status and any error details.
Validation: Mapping| Condition | Validation: value |
|---|---|
| Resolver exit 2 (skip-with-notice) | skipped |
Resolver exit 127 (bare python token, no python3/python on PATH) | interp-missing (blocking — NOT a skip) |
| Resolver exit 0, configured command exits 0 | 0 |
| Resolver exit 0, configured command exits non-zero | <exit-code> (the non-zero integer) |
The resolver does not pre-parse or probe the command string before execution. A configured command that fails to invoke (missing script, missing binary, syntax error) returns non-zero from the shell and surfaces as a normal Validation: <exit-code> — same as a test failure. Exit-code semantics are the contract; no heuristic on the command string.
docs/wiki/test-design-discipline.md § Posture: Proportional Test-Running.Validation: 0 — all checks passed. Safe to proceed with commit/merge.Validation: <non-zero> — configured command reported failure. Fix the failing check before proceeding. The command's own output includes the script name and error details.Validation: skipped — resolver found no configured command. Proceed to the next step; fast-tier validation was not run. To enable: set fast_test_cmd: in coordinator.local.md, or set $COORDINATOR_FAST_TEST_CMD. This is distinct from a PM-authorized skip (which is recorded as N/A).This skill complements verification-before-completion. That skill requires evidence before claims; this skill provides the evidence for repo-level validation claims.
/workday-complete Step 1 and /workweek-complete Step 2 both delegate to this skill. They do not inline their own resolution logic — this is the single owner.
.env files, API keys, and private tokens before staging. CI may catch these, but prevention is better.docs/plans/ or tasks/ directories can confuse downstream pipeline tools — delete or populate before committing.skipped means passing. Validation: skipped means no command was configured, not that checks passed. Configure fast_test_cmd: to get an actionable signal.