branch-check
Skill459 starsChanged 3 months agoMITView on GitHub
Ensure you're on a correct working branch off up-to-date main before planning or editing — starting from a GitHub issue when one is in play.
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
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
- Distinctive: line 7
Run before anything else, before planning or editing.
- Distinctive: line 9
Check the current branch (git branch --show-current).
- Distinctive: line 10
If you are on main, you must branch — never edit directly on main.
- Very specific: line 11
Ensure main is current first: git pull origin main (rebase onto upstream/main if working from a fork).
- Very specific: line 12
If a GitHub issue is in play, fetch it with gh and derive the branch from it:
- Very specific: line 16
If no issue is in play, name the branch <type>/<short-description> from the change itself (e.g.
- Distinctive: line 18
If it already exists, check it out.
- Very specific: line 20
Check out the branch BEFORE planning.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
Run before anything else, before planning or editing.
- Check the current branch (
git branch --show-current). - If you are on
main, you must branch — never edit directly onmain. - Ensure
mainis current first:git pull origin main(rebase ontoupstream/mainif working from a fork). - If a GitHub issue is in play, fetch it with
ghand derive the branch from it:gh issue view <number> --json number,title,labels— read the title and labels- Pick the
<type>from the labels/intent (fixfor a bug,featfor an enhancement, etc.) - Build the name as
<type>/<number>-<slug>, where<slug>is the issue title lowercased, non-alphanumerics →-, trimmed (e.g. issue #1234 "ScrollView insets wrong on iOS" →fix/1234-scrollview-insets-wrong-on-ios)
- If no issue is in play, name the branch
<type>/<short-description>from the change itself (e.g.feat/date-picker-range). - Resolve the branch:
- If it already exists, check it out.
- Otherwise create it from up-to-date
main.
- Check out the branch BEFORE planning. Interactive: confirm the branch name with the user first.
--auto(caller runs autonomously): skip confirmation, just check out.
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- Akylas/OSS-DocumentScanner★ 2.6k98% same
Wrote their own version · 0
None found.
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 repository11 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- commitSkill
- writing-great-skillsSkill
- documentSkill
- featSkill
- fixSkill
- grill-meSkill
- investigate-contractSkill
- open-prSkill
- save-plan-to-githubSkill
- understand-projectSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

