Track Claude Code project config - #12
Merged
Merged
Conversation
added 2 commits
September 12, 2026 19:19
Add .claude/ and CLAUDE.md, previously untracked, so a fresh clone gets the project instructions, the repo graph and its Stop-hook checker, the headless-pob skill, and the /sync-upstream command. /sync-upstream now calls two scripts for its deterministic work: preflight.sh does the read-only opening for both repos in one invocation, and verify-port.sh mechanizes the P4/P5 macOS-port checks. Every decision and every push stays in the prompt. settings.local.json and .DS_Store stay out via .claude/.gitignore.
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.
Adds
.claude/andCLAUDE.md, previously untracked, so a fresh clone carries the project setup: the instructions file, the repo graph plus its Stop-hook checker, theheadless-pobskill, and the/sync-upstreamcommand./sync-upstreamgains two scripts under.claude/scripts/sync-upstream/for its deterministic work:preflight.sh— the read-only opening for both repos in one invocation (dirty/branch/remote checks, fetch, both-direction commit lists, fork-only file list, P3 intersection, submodule pins). Replaces roughly 20 serial commands.verify-port.sh <PRE> <branch>— the P4/P5 mechanics: fork delta compared before and after the merge against the same upstream point, per-file dropped lines, merge-resolution lines no fork commit accounts for, file modes, new versioned sibling port dirs, and an ancestry verdict on dropped submodule pins.Every decision and every mutating step (push,
gh pr create,gh pr merge, branch deletion) stays in the prompt, as individual commands with a literal--repo.Verified against the 2026-09-12 syncs of both repos: 47/47 safeguards from the previous version still present, both scripts exercised on real history including the dropped-patch, merge-resolution and P5 sibling-dir paths.
settings.local.json,.DS_Storeand__pycache__/stay untracked via.claude/.gitignore.