Repository navigation
skills: teach git notes for debugging context on fix commits - #3941
Open
RandyMcMillan wants to merge 2 commits into
Open
RandyMcMillan wants to merge 2 commits into
RandyMcMillan wants to merge 2 commits into
Conversation
The repository-content-changes skill lands commits but says nothing about preserving the debugging story behind a fix. Add a section explaining why git notes are the right place for root cause and evidence (run ids), and how: the MCP tools cannot write refs/notes/commits, so the agent hands the user the add/push/fetch commands, and treats the notes ref as shared history that is never force-pushed casually.
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
A critical finding remains active because the new SKILL.md command-line guidance violates the catalog’s existing tool-only routing test and contract.
1 open issue
What changed in this PR
Adds guidance to the repository-content-changes bundled skill for preserving debugging context with Git notes on fix commits created through the MCP server.
Changes:
- Documents attaching root cause and workflow evidence to commits with Git notes.
- Provides commands for adding, pushing, and fetching the shared notes ref.
- Warns against casually force-pushing
refs/notes/commits.
| File | Description |
|---|---|
| pkg/skills/catalog/skills/repository-content-changes/SKILL.md | Adds Git notes workflow and safety guidance for preserving debugging context on remotely created fix commits. |
Review effort: Lite (adaptive)
Comment on lines
+81
to
+87
| No tool in this workflow can write notes: they live on `refs/notes/commits`, which the | ||
| API commits here never touch, and which a plain `git push` does not send either. When a | ||
| fix commit lands through `push_files` or `create_or_update_file`, hand the user the | ||
| commands to run locally rather than letting the context drop: | ||
|
|
||
| - add: `git notes add -m "<context>" <sha>` | ||
| - push: `git push origin refs/notes/commits` |
TestSkillsRouteOnlyThroughTools rejects references to host execution surfaces in bundled skills — the catalog must read the same to a host with no execution surface at all. Reword the notes section in tool-neutral terms: the refs/notes/commits ref, the fact that no tool here writes it, and the instruction to hand the context to the user rather than routing the host to local commands.
RandyMcMillan
commented
Nov 24, 2026
RandyMcMillan
left a comment
Author
There was a problem hiding this comment.
Please consider this - it is extremely useful.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What
Adds a "Recording the why with git notes" section to the
repository-content-changesbundled skill.Closes #3939.
Supersedes #3940 (that branch was based on a stale fork main predating the skills catalog; this is the identical change rebased onto current
main).Why
Agents landing fix commits through this server produce a commit message but lose the debugging story — root cause, evidence (workflow run ids), why this fix. Git notes are the right home for that (
git log --notestells the whole story), but agents systematically mishandle them: notes live onrefs/notes/commits, which is neither pushed nor fetched by default, and no MCP tool here can write them.The guidance
git notes add -m "<context>" <sha>; push explicitly withgit push origin refs/notes/commits; fetch on fresh clones withgit fetch origin refs/notes/commits:refs/notes/commits(or one-time fetch refspec config)refs/notes/commitscasually — shared ref, treat like the default branchDocs-only change to one SKILL.md; no frontmatter, toolset instruction, or snapshot changes.
TestToolsetInstructionsAreCoveredBySkillsunaffected (instructions untouched).