ワンクリックで
ワンクリックで
| name | truecourse-analyze |
| description | Run TrueCourse architecture analysis on this repository |
| user_invocable | true |
| triggers | ["analyze this repo","run analysis","check my code","run a diff check"] |
Run architecture analysis on the current repository using TrueCourse.
npx -y — without -y, npx will hang on the "Ok to proceed?" prompt whenever the user hasn't cached the latest truecourse version (which happens every time we publish a new release).--llm without first relaying the token estimate to the user and getting approval. See the LLM flow below.Ask the user whether they want a full analysis or a diff check. If they said "diff" in their request, default to diff.
npx -y truecourse analyzenpx -y truecourse analyze --diffLLM rules add higher-value insights but cost tokens per run. Ask the user one question: "Run LLM-powered rules this time?" If the user is unsure, offer to run deterministic-only first (no tokens, fast) and add LLM later.
--llm to the command.--no-llm.You MUST pass either --llm or --no-llm — running without either in a non-interactive shell will exit with an error naming the flags.
Use the Bash tool. This is long-running (minutes, especially with --llm) — use a timeout of at least 600000ms (10 minutes).
When the command finishes, read the printed summary and relay the key numbers:
15 violations (2 critical, 5 high, 8 medium).Changed files: N (X modified, Y new, Z deleted) and Summary: N new issues, N resolved. If you see ⚠ Results may be stale — baseline analysis has changed., surface that warning to the user and suggest running a full npx -y truecourse analyze to refresh the baseline.Tell the user they can:
/truecourse-list to see the full violation list./truecourse-fix to apply suggested fixes.If the run was a full analyze on main (not a feature branch, not --diff), also suggest committing .truecourse/LATEST.json:
git add .truecourse/LATEST.json && git commit -m "refresh truecourse baseline"
That's the baseline --diff and the pre-commit hook read. Committing it on main lets fresh clones and git worktree add checkouts use the hook without re-running analyze. Don't suggest this on feature branches — LATEST.json updates from multiple PRs will conflict on a large generated JSON.
Install, configure, or remove the TrueCourse pre-commit hook
Fix TrueCourse violations that have suggested fixes
List TrueCourse violations found in this repository