원클릭으로
원클릭으로
Run TrueCourse architecture analysis on this repository
Install, configure, or remove the TrueCourse pre-commit hook
List TrueCourse violations found in this repository
| name | truecourse-fix |
| description | Fix TrueCourse violations that have suggested fixes |
| user_invocable | true |
| triggers | ["fix violations","apply fixes","fix my code","fix diff violations"] |
Apply fixes for TrueCourse violations that have fix suggestions.
npx -y — without -y, npx will hang on the "Ok to proceed?" prompt whenever the user hasn't cached the latest truecourse version.Fix: block can be auto-fixed. Violations without one require human design decisions; mention them but don't attempt them.Ask: "Do you want to fix violations from the latest full analysis, or just the changes you're working on right now (diff)?"
Diff mode (recommended default): npx -y truecourse list --diff — small set, usually fine to load in one call.
Full mode: start with a paged view, npx -y truecourse list (first 20). If the summary line shows a large total and the user hasn't narrowed scope, ask them to narrow before pulling more pages:
--severity <list>, e.g. npx -y truecourse list --severity critical,high. Valid values: critical,high,medium,low,info.Avoid --all on large repos — it dumps every violation into context even though most won't be fixable.
If list --diff returns "no diff results yet" or "stale diff", suggest the user first run /truecourse-analyze in diff mode.
From the output in hand, keep only violations that contain a Fix: block — those are the ones with actionable fix suggestions. If you loaded only one page in full mode, tell the user how many were fixable on this page and offer to continue to the next page (--offset 20, --offset 40, …) if they want more.
If none on the loaded page(s) are fixable, tell the user and stop (or offer to page further).
Show the fixable violations as a numbered list with title, severity, and target location. Ask which ones to fix (they can pick numbers or say "all").
For each selected violation:
Fix: text.After fixes, suggest the user re-run the appropriate analysis to confirm the violations are resolved:
npx -y truecourse analyze --diff --no-llm (fast, free). If they want LLM rules re-checked too, use --llm and relay the cost estimate first./truecourse-analyze so the user picks the LLM/no-LLM decision fresh.