new-feature
Skill1 starsChanged 3 months agoMITView on GitHub
Start a new task in an isolated Git worktree branched from origin/main so multiple agents can work on the same repo in parallel without conflicts. Use at the beginning of every new feature, fix, or task — before writing any code.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- nerviz-ai/nerviztheir own version, first seen Oct 3, 2026
- alfredobs97/flutter_agentic_templatetheir own version, first seen Sep 24, 2026
- dan-the-dev/xp-developer-skillstheir own version, first seen Sep 23, 2026
- chenson42/stackkeeltheir own version, first seen Sep 22, 2026
- Wrosinski/heddletheir own version, first seen Sep 20, 2026
- Lance0724/agent-skillstheir own version, first seen Sep 18, 2026
Other versions18 projects use a version of this.
Word for word · 2
- michaelshimeles/skills★ 1.2k100% same
- imornar/skills★ 0100% same
Edited · 0
None found.
Wrote their own version · 16
- undeadlist/claude-code-agents★ 149same name
- X-isdoingreat/canvas-pilot★ 125same name
- dan-the-dev/xp-developer-skills★ 30same name
- yerdaulet-damir/vibe-coding-rules★ 28same name
- jeremymcs/skills★ 8same name
- Eipi-Tong/agentic-coding-starter-kit★ 3same name
- nerviz-ai/nerviz★ 3same name
- SaketMunda/claude-org-template★ 3same name
- samsam007b/claude-code-standards-kit★ 2same name
- bibektimilsina00/runmycrew★ 1same name
6 more not listed
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 repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- naga-factory/AGENTS.mdAGENTS.md
- before-and-afterSkill
- code-structureSkill
- evidence-driven-testingSkill
- greploop-appsSkill
- greploopSkill
- naga-factorySkill
- unslopSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 1 is distinctive, and 3 are very specific to this project.
0
Common
Most of the 14 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Every task gets its own worktree and branch, created from the latest origin/main.
- Very specific: line 26
Scope check: run gh pr list and skim the open PRs' changed files (gh pr diff <n> --name-only).
- Very specific: line 43
Use a gitignored directory for worktrees (e.g.
- Distinctive: line 65
Keep the worktree until the PR is merged or closed.
“Common” is measured: kept by at least 6 in 10 of the 14 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
New Feature
Every task gets its own worktree and branch, created from the latest
origin/main. Never build on main, and never reuse another agent's
worktree or branch.
Harness deltas — read first
- Claude Code: the harness creates and manages worktrees itself (under
.claude/worktrees/<name>). Skip steps 3–4 below (no manualgit worktree add/remove), and keep the harness-assigned branch name. Steps 1–2 and 5 still apply. - Cursor-managed worktrees (branches named
worktree-*): same idea — keep the assigned branch and worktree, apply steps 2 and 5. - Any other harness: follow all steps.
Steps
- Sync:
git fetch origin. - Scope check: run
gh pr listand skim the open PRs' changed files (gh pr diff <n> --name-only). If your task needs files another open PR is editing, stop and ask for direction instead of proceeding. Also check for uncommitted work in the checkout — another agent may be mid-task. - Name the task: lowercase-with-hyphens plus a short unique suffix,
e.g.
user-auth-0816a. Ifgit worktree addfails because the name exists, pick a different name — never force or reuse. Create the worktree from the repo root:
git worktree add <worktrees-dir>/<task-name> \ -b <branch-prefix>/<task-name> origin/mainUse a gitignored directory for worktrees (e.g.
.claude/worktrees/or.worktrees/) so they can never be committed by accident, and a consistent branch prefix (e.g.agent/). Follow the repo's conventions if it defines them.Enter and verify:
cd <worktrees-dir>/<task-name> git branch --show-current # must print your new branch, not mainThen install dependencies fresh inside the worktree (worktrees don't share
node_modules/virtualenvs) and confirm the runtime version the repo requires before running anything.
Remember
- Worktrees do not isolate shared resources: dev-server ports, shared
databases, and dependency lockfiles are global. Confirm a port answers
your process (
lsof -i :<port>) before trusting what it serves, and resolve lockfile conflicts by regenerating, never by hand-merging. Keep the worktree until the PR is merged or closed. Cleanup after merge:
git worktree remove <worktrees-dir>/<task-name> git branch -D <branch-prefix>/<task-name>-Dis expected: after a squash- or rebase-merge,-drefuses even though the work is merged.
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.

