用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/truecourse-ai/truecourse --skill truecourse-fix命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| 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.