sync-upstream
Skill4 starsChanged 7 months agoApache-2.0View on GitHub
Check the Genesis upstream repo (freskhu/genesis) for new commits, classify each one (additive / breaking / cosmetic), recommend whether to apply, and merge only with user confirmation. Run daily if the user opted in during /genesis.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- garfiec/Librechat-Mobiletheir own version, first seen Oct 4, 2026
- KUNDURUHIMANEESHREDDY/sabertheir own version, first seen Sep 21, 2026
- ric03uec/clawriumtheir own version, first seen Sep 8, 2026
- patterson-agents/skillstheir own version, first seen Aug 12, 2026
- leandrocfe/skillstheir own version, first seen Aug 10, 2026
Used with
Projects with it also use improve-codebase-architecture and tdd.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AWSSkillimprove-codebase-architecture
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Also in 3 projects that use this
AWSSkilltdd
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
Also in 3 projects that use this
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- microsoft/vscode★ 196ksame name
- nklisch/claude-code-modes★ 116same name
- garfiec/Librechat-Mobile★ 106same name
- ric03uec/clawrium★ 61same name
- leandrocfe/skills★ 38same name
- toverux/cantrips★ 3same name
- KUNDURUHIMANEESHREDDY/saber★ 0same name
- patterson-agents/skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- db-healthSkill
- dreamSkill
- forum-pulseSkill
- genesisSkill
- grill-meSkill
- handoffSkill
- hireSkill
- inbox-processSkill
- kaizenSkill
- quality-gateSkill
- quarterly-reviewSkill
- session-endSkill
- session-startSkill
- twin-updateSkill
- voice-gateSkill
- weekly-reviewSkill
- write-a-skillSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 7 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Check git is set up and there's an upstream remote pointing at freskhu/genesis.
- Very specific: line 19
Read Database/genesis_config.json to get last_synced_commit.
- Very specific: line 31
If NEW_COMMITS is empty — tell the user "Already up to date." and exit.
- Distinctive: line 81
Ask the user one of:
- Distinctive: line 88
When the user confirms applies:
- Very specific: line 128
Don't pretend to understand a commit you couldn't classify: When in doubt, tag [UNCLEAR] and ask the user.
- Distinctive: line 135
If the user prefers raw git, point them to:
“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sync upstream
This skill keeps a forked Genesis in step with freskhu/genesis without surprising the user. It never auto-merges. It always shows what changed and waits for explicit confirmation.
Step 0 — Pre-flight
- Check git is set up and there's an
upstreamremote pointing atfreskhu/genesis. If not, add it:git remote get-url upstream 2>/dev/null || \ git remote add upstream https://github.com/freskhu/genesis.git - Read
Database/genesis_config.jsonto getlast_synced_commit. If file doesn't exist, create with currentHEADSHA and a fresh-install timestamp. - Confirm working tree is clean. If dirty, abort and tell the user to commit or stash first.
Step 1 — Fetch and diff
git fetch upstream main
NEW_COMMITS=$(git log "${LAST_SYNCED_COMMIT}..upstream/main" --oneline)If NEW_COMMITS is empty — tell the user "Already up to date." and exit.
Otherwise, count how many new commits and which paths changed:
git log "${LAST_SYNCED_COMMIT}..upstream/main" --pretty=format:"%h|%s" --name-statusStep 2 — Classify each commit
For each commit, read the diff and classify into one of three buckets:
| Class | Heuristic | Default action |
| Additive | New skill file, new hook, new doc, new agent template — no existing file deleted or signature changed | RECOMMEND APPLY |
| Breaking | Schema migration, removed file, changed function signature, changed CLAUDE.md fundamentals | FLAG REVIEW — do not apply without explicit user OK |
| Cosmetic | Typo fixes, README copy edits, comment improvements | RECOMMEND APPLY |
To detect:
- Additive:
git diff --name-statusshows onlyA(added) lines in.claude/skills/,.claude/hooks/,docs/,Database/migrations/. - Breaking:
MorDonCLAUDE.md,Database/schema.sql,scripts/palace.py, or any agent file the user has customised (check against the user's git log). - Cosmetic: changes to
README.md,*.mdindocs/, comments only (no code lines changed).
Step 3 — Build the report
Format as a table the user can scan in 30 seconds:
Genesis upstream — 4 new commits since 2026-05-08
abc1234 Add /mine-conversations skill [ADDITIVE] apply ✓
def5678 Fix typo in docs/architecture.md [COSMETIC] apply ✓
ghi9012 Refactor palace.py: rename TEAM_DB → DB_PATH [BREAKING] review ⚠
jkl3456 Add NOTICE clause about commercial use [COSMETIC] apply ✓
3 of 4 commits are recommended to apply. 1 needs your review.For BREAKING commits: include a 3-line summary of WHY it's breaking. Example:
ghi9012renamesTEAM_DBtoDB_PATHinscripts/palace.py. If you've forked palace.py or have skills referencingTEAM_DB, they'll fail. Recommend: review the diff, update your forks, then merge.
Step 4 — Confirm + apply
Ask the user one of:
- Apply all recommended (skip the breaking one) — applies the 3 additive/cosmetic, leaves the breaking commit unmerged with a TODO note.
- Apply everything (including breaking) — full merge.
- Apply nothing — only update
last_synced_commitso we don't ask again about these specific commits. - Show me a specific diff —
git show {sha}for any commit.
When the user confirms applies:
# Cherry-pick the chosen commits in order, OR merge upstream/main if applying all
git merge upstream/main
# (or)
git cherry-pick {sha1} {sha2} {sha3}Update genesis_config.json:
{
"last_synced_commit": "{new_HEAD_SHA}",
"last_sync_check": "2026-05-08T22:30:00Z",
"auto_sync_enabled": true,
"skipped_commits": ["ghi9012"]
}Log to activity_history:
INSERT INTO activity_history (actor_id, action, entity_type, summary)
VALUES (1, 'upstream_synced', 'system',
'Synced N commits from freskhu/genesis main. Skipped: {list}.');Step 5 — If anything fails
- Merge conflict: abort the merge, show the user the conflicting files, suggest
/handoffto package the state for a clean resolution session. - Network / GitHub down: save state, retry on next run.
- Upstream removed a file the user customised: flag prominently, never silently delete.
Anti-patterns
- Never auto-apply breaking commits. Even if the user said "yes apply all" once, breaking commits always re-confirm.
- Never overwrite user-customised files without showing the diff.
- Don't pretend to understand a commit you couldn't classify. When in doubt, tag
[UNCLEAR]and ask the user. - Don't run more than once a day unless the user explicitly asks. Daily is enough; chasing every commit is noise.
Quick CLI for power users
If the user prefers raw git, point them to:
git fetch upstream main
git log HEAD..upstream/main --oneline
git diff HEAD upstream/main -- path/of/interest
git merge upstream/main # take everything
git cherry-pick <sha> # take one commitThe skill exists so users don't have to — but advanced users can drive it themselves.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

