Skip to content

Track Claude Code project config - #12

Merged
pathanin merged 2 commits into
devfrom
add-claude-config
Sep 12, 2026
Merged

pathanin merged 2 commits into
devfrom
add-claude-config

Conversation

@pathanin

Copy link
Copy Markdown
Owner

Adds .claude/ and CLAUDE.md, previously untracked, so a fresh clone carries the project setup: the instructions file, the repo graph plus its Stop-hook checker, the headless-pob skill, and the /sync-upstream command.

/sync-upstream gains 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_Store and __pycache__/ stay untracked via .claude/.gitignore.

oat 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.
@pathanin
pathanin merged commit 7add84b into dev Sep 12, 2026
5 checks passed
@pathanin
pathanin deleted the add-claude-config branch September 12, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant