doctor
Check readiness before implementation, covering the T3 host, the toolchain, whether the project's gates pass, Codex availability, log.sh and the pre-push secret scan.
- License 许可
- GPL-3.0
- 所属仓库
- bendusz/bstack
- 最近更新
- 2026-11-15
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- doctor
- description
- Check readiness before implementation, covering the T3 host, the toolchain, whether the project's gates pass, Codex availability, log.sh and the pre-push secret scan.
- argument-hint
- [sub-path or component]
03 SKILL.md 正文
If you were dispatched as a child agent (your task begins 'You are a bstack … child'), do not use this skill.
references/… below means ${CLAUDE_PLUGIN_ROOT}/skills/project-manager/references/…, and
<plugin> in any reference means ${CLAUDE_PLUGIN_ROOT}. Neither is a shell variable: write the
path out in every command.
Run the bstack:project-manager skill's procedure (load that skill first) for a readiness check.
Install or upgrade nothing, and write no file of your own. Running a gate may leave the artifacts
a normal run produces (build output, caches, coverage); leave them as the run left them.
Scope: $ARGUMENTS (optional, a sub-path or component; default is the whole repo)
Check, in order, each with its evidence:
-
T3 host. Load
ToolSearch select:mcp__t3-code__orchestrator_capabilitiesand call it once (references/host.md## Probe). If it is absent or fails, reportMISSING: bstack requires T3 Codeand stop: the other checks mean nothing without it. -
Toolchain,
OK,MISSINGorUNKNOWN. The runtimes, package manager and dependencies behind the plan's## Commands(or, before a plan exists, what the manifests and lockfiles name): each resolves onPATH, with its version from a--versionprobe, and install has been run (node_modules, a venv, a lockfile in sync). This shows the tools exist, not that gates pass.UNKNOWNtoo when the gates need installed dependencies and the plan'ssetupis missing orN/A: every builder starts in a fresh worktree that could not run them. -
Gates,
PASS,FAIL,UNKNOWNorN/A. Run each of the plan'stest,lintandbuildcommands for real, from the repository root, exactly as the plan writes it. A version or help probe is not evidence here.PASS: it exited 0.FAIL: it did not; quote the command, the exit code and the first error lines.UNKNOWN: it cannot run safely here, for example it needs a service, credentials or a destructive step. Say what it needs and what stays unverified. Never fake the missing piece.N/A: the plan saysN/A. Before a plan exists, every gate isUNKNOWN: no plan yet.runis not a gate: step 2 covers the program it starts.
-
Codex,
OKorMISSING.orchestrator_capabilitieslists thecodexprovider with the modelsreferences/roles.md## Modelsnames. Without it there is no opposite-family reviewer for a Claude build, so the default workflow cannot run: reportMISSINGas a blocker. Recommend restoring Codex in T3, or an explicit change of workflow the user approves and the log records. Never move a Codex default to a Claude model on your own: same-family review breaks the hard rule that the reviewer is never the builder. -
Decision log,
OKorMISSING."${CLAUDE_PLUGIN_ROOT}/scripts/log.sh"exists and is executable (test -x). Do not call it: a call writes a line. -
Secret scan,
OK,MISSING,OUTDATEDorBYPASSED. Checkpre-pushin thehooksdirectory ofgit rev-parse --git-common-dir. Ifgit config core.hooksPathprints a path, git ignores that hook:BYPASSEDunless thepre-pushunder that path calls it; name the path and offer the one-line callreferences/planning.md## 5. Scaffold, after sign-offgives.OK: executable and byte-equal (cmp) to"${CLAUDE_PLUGIN_ROOT}/scripts/scan-secrets.sh".OUTDATED: it has the# bstack secret-scan pre-pushline, or the old# deliver secret-scan pre-pushone, but differs; offer to refresh it with that copy.MISSING: absent, not executable, or another hook without either line (show it; never replace it unasked). Install it asreferences/planning.md## 5. Scaffold, after sign-offsays. -
Merge guard,
OK,OFForBROKEN. Feed it a payload it must refuse:printf '{"cwd":"%s","tool_input":{"command":"BSTACK_NO_ENFORCE=1 git merge pm/S0-0-doctor"}}' "$PWD" | bash "${CLAUDE_PLUGIN_ROOT}/scripts/merge-guard.sh"Exit 2 naming "the user's switch" isOK; anything else isBROKEN, with the output quoted (no jq, python3 or node is the usual cause).OFFwhenprintenv BSTACK_NO_ENFORCEprints1: story merges go unchecked, and only the user unsets it. This proves the script, not that Claude Code loaded the hook:/hookslists it. -
Hygiene, warnings only. Run
bash "${CLAUDE_PLUGIN_ROOT}/scripts/hygiene.sh"from the main checkout and quote everyWARNline:AGENTS.mdover 32 KiB, an integration branch too far or too long ahead of main, a tag missing from main, branches or worktrees of merged stories, PM scripts outside a trackedops/pm/, struck-through or superseded text left in the plan, spec orAGENTS.md. Each names its fix.
End with a one-line verdict: ready only when the host, toolchain, Codex, log, secret scan and
merge guard checks are OK and every gate is PASS or N/A. Otherwise name the blockers and
what each needs. Hygiene warnings never block; list them after the verdict.
04 同仓库更多 Skills
why
Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.
unslop
Cut AI tells from any writing. Must always apply.
typescript-best-practices
TypeScript best practices. Use when reading or editing any .ts or .tsx file.
technical-writing
Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for /poteto:technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.
teach
Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.
reflect
Spawn three parallel review subagents over the active transcript, surface learnings, and route each to a concrete edit on an existing skill. Use when the user says reflect.