sync-learnings-to-harness

sync-learnings-to-harness is a command for Claude Code from visionTw/godot-ai-harness. It costs 0 tokens per session (1,005 once invoked), scanned A, original, MIT.

A command guide for moving reusable lessons from a Godot game project into a shared AI development toolkit. Godot is a game engine, and a harness is a common set of tools and rules used across projects.

In plain words
What is it for?
Use it after a development phase, major cross-system refactor, or notable problem to review commits and session notes and record reusable Godot, Git, shell, or AI-workflow lessons.
Why use it?
It helps separate broadly useful engineering lessons from details that only belong to one game, so shared guidance stays relevant.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit Use it after a development phase, major cross-system refactor, or notable problem to review commits and session notes and record reusable Godot, Git, shell, or AI-workflow lessons.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/visiontw/godot-ai-harness/sync-learnings-to-harness
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/visionTw/godot-ai-harness

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-learnings-to-harness

README.md
[![agentmods](https://agentmods.dev/badge/commands/visiontw/godot-ai-harness/sync-learnings-to-harness/github.svg)](https://agentmods.dev/commands/visiontw/godot-ai-harness/sync-learnings-to-harness)
Your own site
<a href="https://agentmods.dev/commands/visiontw/godot-ai-harness/sync-learnings-to-harness"><img src="https://agentmods.dev/badge/commands/visiontw/godot-ai-harness/sync-learnings-to-harness/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sync-learnings-to-harness

Your own site · 80×15
<a href="https://agentmods.dev/commands/visiontw/godot-ai-harness/sync-learnings-to-harness"><img src="https://agentmods.dev/badge/commands/visiontw/godot-ai-harness/sync-learnings-to-harness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,005 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01005
Opus 5 $0.00000 $0.00502
Sonnet 5 $0.00000 $0.00201
Haiku 4.5 $0.00000 $0.00101

Measured 11d ago against content hash 7f6927305d73, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

sync-learnings-to-harness scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/commands/sync-learnings-to-harness.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/sync-learnings-to-harness

把业务仓最近学到的"可复用通用经验"反向沉淀到 godot-ai-harness,让其他业务仓也能受益。

触发时机(什么时候用这个命令)

  • 每个 Phase 收尾时(建议作为 phase 关闭的最后一个动作)。
  • 完成一次跨系统重构后。
  • 解决了一个值得记录的非平凡踩坑后。
  • 用户明确要求"这次的经验整理沉淀一下"时。

输入材料

  • 最近 N 条 commit(默认 12 条;可配 /generate-harness-sync-brief 先生成清单)。
  • 最近会话中关键的 AI 问答与决策。
  • 阶段开发日志 docs/phases/phase-*/development_log.md

提炼标准(什么算"通用")

通用(沉淀到 harness) 项目专有(留在业务仓)
Godot 引擎踩坑 → core/memory/godot_pitfalls.md 玩法逻辑、卡牌/敌人数值、玩法专有 FSM
harness/git/shell 踩坑 → core/memory/harness_ops_pitfalls.md 项目专有的工程脚本路径
通用 GDScript 规范 → core/rules/godot-4-gdscript-standards.mdc 项目专有命名/资源约束(如 project-roguecard.mdc
跨项目复用的 skill / command 模板 → core/skills/ / core/commands/ 仅在某个项目玩法范畴下的步骤
与 Godot/MCP/Cursor 工作流相关的通用流程 → core/rules/godot-mcp-workflow.mdc 项目专有 smoke/regression 路径

判断口诀:换一个 Godot 4.x 项目还成立 → 通用;只有本项目世界观/玩法/资源结构成立 → 专有。

执行清单(推荐顺序)

  1. 生成基础清单:跑 ./tools/harness/generate-harness-sync-brief.command(输出到 docs/harness-sync-briefs/<date>.md)。
  2. 手工补"AI 问答复盘"段:把会话中关键决策、踩坑、通用方法补进去。
  3. 逐条分类:每个候选项标记"通用 / 专有",在"可提炼到 Harness"和"留在项目仓库"两段下分别填位置。
  4. harness 改动
    • cd vendor/godot-ai-harness
    • 按分类把内容写入对应位置(rules/skills/commands/memory/docs)
    • git add ... && git commit -m "..."
    • git push origin main
  5. 业务仓推进 submodule 指针
    • cd <business-repo>
    • git add vendor/godot-ai-harness
    • git commit -m "Bump godot-ai-harness to <hash>: <what>"
    • git push
  6. 重新跑 bootstrap(可选,让本仓的 .cursor/_harness_* 立刻拿到新内容):
    • ./tools/harness/bootstrap.command
  7. 填同步执行记录:在 docs/harness-sync-briefs/<date>.md 末尾补 harness commit hash 与 业务仓 commit hash。

提交顺序硬性约束

  • 必须先 push harness,再 push 业务仓
  • 否则业务仓的 submodule 指针会指向远端不存在的 commit(CI 会失败,详见 harness_ops_pitfalls.md H-002)。

输出归档

每次执行后:

  • docs/harness-sync-briefs/<date>.md:本次反向同步的完整清单与执行记录
  • harness 仓的 commit log:通用经验沉淀痕迹
  • 业务仓的 commit log:"Bump godot-ai-harness" 提交,便于回溯

与 /generate-harness-sync-brief 的关系

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 65 lines · 0 tokens per session scan A 7f6927305d73

Subscribe to this mod's changes

sync-learnings-to-harness is a command published in the GitHub repository visionTw/godot-ai-harness (2 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,005 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.