/htd-ai-augmented-education:git-remote-difffrom AI 辅助教育
Checks if a project is a Git repo, fetches remote refs, and compares local, remote default branch, and working tree to produce JSON and Markdown diff reports.
Ships in AI 辅助教育. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
这是一个独立的项目级 Skill,不接入 /hdt。只执行读取、fetch 和报告生成,不执行 push、merge、reset 或 checkout。
从项目根目录运行:
runtime/.venv/Scripts/python.exe skills/git-remote-diff/scripts/cli.py start --root .
恢复暂停或失败运行:
runtime/.venv/Scripts/python.exe skills/git-remote-diff/scripts/cli.py resume --root . --run-id <run-id>
查看已有运行状态:
runtime/.venv/Scripts/python.exe skills/git-remote-diff/scripts/cli.py status --root . --run-id <run-id>
INIT → REPO_CHECK → REMOTE_DISCOVERY → DEFAULT_BRANCH_RESOLUTION → FETCH_REMOTE → COMPARE_COMMITS → COMPARE_FILES → COMPARE_WORKTREE → WRITE_JSON → RENDER_MARKDOWN → VALIDATE_REPORT → COMPLETE。
非 Git 仓库、无远端、无法确定默认分支或 fetch 失败时进入对应 PAUSED_* 状态,保留 logs/git-remote-diff/runs/<run-id>/state.json,不得猜测或伪造一致性结论。
每次运行生成 state.json、diff.json、diff.md 和 events.jsonl。diff.json 是唯一报告数据源,diff.md 由脚本渲染,包含提交差异、已暂存、未暂存和未跟踪文件的 Markdown 表格。
完成门禁:状态为 complete,JSON 结构有效,Markdown 包含 JSON 中的全部差异文件,路径为仓库相对路径,且报告不泄露认证信息。
入口:python skills/git-remote-diff/scripts/cli.py。支持 create-request、start、status、resume、verify;默认状态写入 logs/git-remote-diff/runs/<run-id>/,日志仅为文本且不纳入 Git。退出码遵循 docs/Skills、应用说明书.md。
scenario_examples:
- id: compare-remote-state
user_request: "检查本地分支和远端默认分支有哪些差异"
when_to_call: "用户要求检查 Git 同步状态或本地与远端文件差异时"
invocation: "start → verify"
expected_output: "生成提交、工作区和文件差异报告,不执行 merge 或 reset"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
19 skills in this plugin
/build-curriculum-navigation从项目内一个或多个 Markdown 资料生成知识点依赖图、背景诊断和评分后的候选学习顺序。开始或继续 interactive-tutor 前必须调用;已有有效导航用 verify 校验,资料或目标变化时增量维护。/build-mnemonic-keywords为初高中及其他需要背诵的一句知识生成关键词、联想记忆场景和 Image 2、Image 2.5 或豆包可用的生图提示词,并在用户确认后调用 /imagegen。用户要求背诵、记忆口诀、联想记忆、场景化记忆或把记忆法画成图时使用。/build-word-entry从单词或 UTF-8 词表采集 Cambridge、Oxford、Longman 和 Thesaurus.com 证据,生成可恢复、可校验的英语词条 JSON,并发现批次内候选关系。用户要求建立词汇星图词条、批量处理词表、维护项目拼写关系或恢复词条生成时使用。Generated from the plugin's indexed repository (hytidellegend/ai-aug-edu) — no native marketplace selected
npx claudepluginhub p/hytidellegend-htd-ai-augmented-educationOther plugins' skills for the same job