merge-latest
Skill1 starsChanged 6 days agoUnlicenseView on GitHub
Merge the latest upstream changes into the current branch, resolve conflicts, and verify builds, tests, and lint. Auto-discovers the VCS (Git, Fig/Hg, JJ) and project toolchain from the working directory.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ad-copy-writerSkill
- ae-inspect-describeSkill
- algorithmic-artSkill
- animation-directorSkill
- assembly-guideSkill
- brainstorming-and-ideatingSkill
- brainstorming-research-ideasSkill
- brainstormingSkill
- brief-to-tasksSkill
- canvas-designSkill
- cli-designSkill
- cli-output-hierarchySkill
- commit-messageSkill
- craft-uiSkill
- creative-directorSkill
- design-briefSkill
- design-flowSkill
- design-mock-auditSkill
- design-reviewSkill
- design-system-patternsSkill
- design-tokensSkill
- deslopifySkill
- diagnoseSkill
- diagramming-app-routesSkill
- doc-restructureSkill
- eval-criticSkill
- formatting-open-markdownsSkill
- frontend-designSkill
- frontend-slidesSkill
- gdocs-tab-writerSkill
- gemini-apiSkill
- gif-creationSkill
- github_repo_researchSkill
- grill-meSkill
- grill-with-docsSkill
- hallmarkSkill
- handoffSkill
- html-presentationSkill
- humanizerSkill
- i-have-adhdSkill
- improve-codebase-architectureSkill
- information-architectureSkill
- install-skill-from-githubSkill
- markdown-output-hierarchySkill
- marketing-psychologySkill
- modern-web-performanceSkill
- motion-designSkill
- pdf-readerSkill
- pm-brainstormingSkill
- pm-discovery-brainstormSkill
- product-marketingSkill
- prototypeSkill
- pull-requestSkill
- ralph_loopSkill
- react-best-practicesSkill
- review-loopSkill
- sandbox-explainerSkill
- skill-creatorSkill
- skill-optSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 8 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 21
If Git: proceed with Git steps.
- Distinctive: line 22
If Fig/Mercurial: proceed with Fig steps.
- Distinctive: line 23
If JJ (Jujutsu): proceed with JJ steps.
- Distinctive: line 24
If none found, stop and ask the user to navigate to a repository.
- Very specific: line 27
Git: Run gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' and fall back to main.
- Very specific: line 45
Prefer pnpm over npm if pnpm-lock.yaml exists.
- Distinctive: line 72
Prefer the local (HEAD/ours) side for feature work.
- Very specific: line 74
After resolving all files, stage and commit: git add -A && git commit --no-edit.
- Very specific: line 79
Run the appropriate install command from the toolchain table (e.g., pnpm install, cargo fetch, go mod download).
- Very specific: line 117
Run each applicable step from the detected toolchain.
- Distinctive: line 120
Tests: Run the test command for the detected toolchain.
- Very specific: line 121
Lint (with auto-fix): Run the lint command. For Fig, use hg lint.
- Distinctive: line 122
Build: Run the build command.
- Distinctive: line 147
Use ⏭️ for steps that were skipped (no toolchain detected, no lockfile change, etc.).
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Merge Latest Upstream Changes
// turbo-all
Merge upstream changes into the current branch, resolve any conflicts, then verify the result builds, tests, and passes lint. End by listing any assumptions or follow-up items.
Environment Discovery
- Detect VCS by checking for
.git/,.hg/, or.jj/in the current directory or its parents.- If Git: proceed with Git steps.
- If Fig/Mercurial: proceed with Fig steps.
- If JJ (Jujutsu): proceed with JJ steps.
- If none found, stop and ask the user to navigate to a repository.
- Detect the base branch / upstream target:
- Git: Run
gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name'and fall back tomain. Store as$BASE. - Fig/Hg: The upstream is the sync target (typically
defaultor the CitC baseline). No explicit base branch needed —hg synchandles it. - JJ: The upstream is the trunk bookmark (typically
main@origin).
- Git: Run
Detect the project toolchain for verification by checking indicator files at the repo root:
Indicator file Test Lint Build package.jsonnpm test/pnpm testnpm run lint/pnpm lintnpm run build/pnpm buildMakefilemake testmake lintmake buildCargo.tomlcargo testcargo clippycargo buildgo.modgo test ./...golangci-lint rungo build ./...BUILD/BUILD.bazelblaze test/bazel testbuildifier -lint=warnblaze build/bazel buildpyproject.toml/setup.pypytestruff check .(skip) Prefer
pnpmovernpmifpnpm-lock.yamlexists. Only run commands whose indicator files are present. If none are found, skip verification and inform the user.
Part A — Merge Upstream
Git
Fetch origin:
git fetch origin "$BASE"Merge into the current branch:
git merge "origin/$BASE" --no-editIf merge conflicts occur:
- List conflicted files with
git diff --name-only --diff-filter=U. - For each conflict, open the file, read the diff markers (
<<<<<<<,=======,>>>>>>>), and resolve by keeping the intent of both sides. Prefer the local (HEAD/ours) side for feature work; prefer upstream (theirs) for dependency bumps, lockfile regeneration, and CI config. - After resolving all files, stage and commit:
git add -A && git commit --no-edit.
- List conflicted files with
Install dependencies (if lockfile changed):
Run the appropriate install command from the toolchain table (e.g.,
pnpm install,cargo fetch,go mod download). Skip if no lockfile was modified.
Fig / Mercurial
Sync the workspace:
hg syncIf rebase conflicts occur:
- List conflicted files with
hg resolve --list. - Open each unresolved file (
U-marked), read the conflict markers, and resolve the same way as the Git conflict strategy. - Mark resolved:
hg resolve --mark <file>. - Continue the rebase:
hg rebase --continue.
- List conflicted files with
JJ (Jujutsu)
Fetch and rebase:
jj git fetch jj rebase -d "main@origin"If rebase conflicts occur:
- List conflicts with
jj status. - Resolve each conflict, then
jj squashorjj resolveas appropriate.
- List conflicts with
Part B — Verification
Run each applicable step from the detected toolchain. Pipe output through
tail -40 to keep logs manageable.
- Tests: Run the test command for the detected toolchain.
- Lint (with auto-fix): Run the lint command. For Fig, use
hg lint. - Build: Run the build command.
If any step fails: Present the errors clearly and ask whether to fix now or continue.
For Fig/Google3 workspaces with modified files under packages that have test
targets: identify changed files with hg diff --stat -r .^, discover test
targets with blaze query 'tests(//path/to:all)', and run blaze test on
affected targets.
Part C — Summary
Report results. Present a concise table (omit rows for steps that don't apply to the detected VCS/toolchain):
Area Step Status Upstream merge origin/$BASE→<branch>✅ / ⚠️ / ⏭️ Dependency sync lockfile install ✅ / ⏭️ Tests <test command>✅ / ❌ / ⏭️ Lint (fix) <lint command>✅ / ❌ / ⏭️ Build <build command>✅ / ❌ / ⏭️ Use ⏭️ for steps that were skipped (no toolchain detected, no lockfile change, etc.).
- List assumptions and follow-ups. Note every conflict resolution choice, any skipped or auto-resolved files, lockfile regeneration decisions, and anything else that warrants the user's attention. Ask any questions that require follow-up input.
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.

