Skip to content
Apothem
对比

Apothem 对比原生 GitHub Copilot 配置

手工维护 GitHub Copilot 的 copilot-instructions.md,与从 Apothem 的共享配置档案渲染它。

GitHub Copilot 从 .github/copilot-instructions.md 读取其指令。Apothem 的 github-copilot 适配器从共享配置档案渲染该文件。本页将手工维护该配置与用 Apothem 管理它进行对比。

工作量对比

任务手工配置Apothem 管理
编写指令手工编辑 .github/copilot-instructions.md渲染:共享规则内嵌进该文件
与其他工具保持指令对齐手工,逐工具在 apothem update 时自动完成
安装 / 移除配置手工写入和删除该文件apothem install / apothem uninstall
共享可复用的技能和命令把每个技能文件夹手工复制到 ~/.agents/skills/ 并保持这些副本最新由适配器写入 ~/.agents/skills/,所有项目共用一份副本,并在 apothem update 时刷新
验证配置是否正确手工检查apothem verify --harness github-copilot --project <path>

Apothem 管理什么

github-copilot 适配器将共享规则内嵌进 .github/copilot-instructions.md。 Copilot 在 .github/hooks/*.json 中记载钩子,而适配器不写入这些文件,因此护栏意图完全承载于渲染出的 指令之中。每次对共享规则的变更都会在下一次 apothem update 时重新渲染该文件。

迁移路径

  1. 如果你还没有创建共享配置档案,运行 apothem profile init。
  2. 把现有 .github/copilot-instructions.md 的内容移入共享语料库。
  3. 运行 apothem install --harness github-copilot --project <path>,以渲染指令文件。
  4. 运行 apothem verify --harness github-copilot --project <path> 来确认配置已落地。
  5. 之后的每次更改都使用 apothem update --harness github-copilot --project <path>。

继续阅读

On this page