agentleFS
ideshunideshun/AgentCue/.agents/skills/sync-knowledge/SKILL.md

sync-knowledge

Skill2 starsChanged yesterdayMITView on GitHub

维护可版本管理的项目记忆:在实现变化或用户要求记住项目级事实后,同步 `.agents/knowledge` 与相关规则引用。适用于架构、约束、验证方式、适配器清单或 ADR 落地之后。 不把会话核验结果写入公共手册。不替代功能开发。

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

知识同步

触发与边界

  • 功能交付后检查是否改变长期有效的架构、数据与隐私边界、依赖、集成契约、适配器能力或验证方式;有变化就更新受影响知识页。
  • 用户明确要求记住项目事实时,先核实来源和适用范围;不确定的内容标明待确认,不把推测写成事实。
  • .agents/knowledge/ 是项目共享记忆,不读取或同步个人 memory/。不要写入凭据、用户会话、个人信息、临时任务状态或一次性测试结果。
  • 只读审查保持只读,除非用户明确要求更新项目知识;不要自动提交或推送。

输入

  • 刚完成的实现变化(包、进程、API、适配器、验证命令)
  • 受影响的知识页(默认 architecture / constraints / verification)

步骤

  1. 读现有 .agents/knowledge/*.md 与对应源文件,确认哪些句子不再真实。
  2. 只更新变化的段落,替换过时事实并保留其余手工内容。保持结构:适用范围 → 来源路径 → 当前实现 → 待确认 → 更新触发。
  3. 新约束写入 .agents/rules/ 对应主题,不要把长规则复制进知识页。
  4. 核对相对链接:知识页链到 docs/、packages/、tests/ 的路径仍有效。
  5. 不写入本次运行的测试输出、宿主名称、或「已验证通过」快照。

暂停

  • 变化尚未合入源码,只有口头计划。
  • 需要改 AGENTS.md 阅读路由以外的业务代码。

输出

  • 更新了哪些知识/规则文件,以及对应的源码或权威文档依据
  • 仍然过时、但证据不足故未改的条目

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.