Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions pkg/skills/catalog/skills/repository-content-changes/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,25 @@ everything; both are covered under confirmation below.
repository created without `autoInit` has no default branch, and nothing can be
branched from it until the first commit lands.

## Recording the why with commit notes

A commit message says what changed; a fix often also carries a debugging story — root
cause, evidence such as workflow run ids, and why this fix and not another. Commit
notes hold that context on the commit without rewriting its message: they live on the
`refs/notes/commits` ref, and a history view that includes notes tells the whole
story.

No tool in this workflow writes that ref — commits made through this server never
touch it, and the notes ref is neither sent nor received by default. When a fix
commit lands through `push_files` or `create_or_update_file`, hand the user the
context — root cause, evidence, the why — so they can record it on the commit with
their own client rather than letting it drop. Mention that the notes ref needs an
explicit send, and an explicit receive on a fresh clone (`+refs/notes/*:refs/notes/*`
is the mapping to configure once so routine transfers include it).

The notes ref is shared history. Never rewrite it casually — treat force-updating
`refs/notes/commits` like force-updating the default branch, and confirm first.

## Confirm before every write

These are the only tools in this workflow that are not reversible by another call, and
Expand Down