worktree-per-agent SKILL.md skillA
This file is byte-identical to the first copy the registry indexed, one of 4 indexed copies. Same content hash, so the same checks give both the same grade.
worktree-per-agent from jakeselby/model-citizen is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add jakeselby/model-citizen/worktree-per-agent@git:20260929.1af83d7Pins git:20260929.1af83d7 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- jakeselby/model-citizen
- Path
primitives/skills/worktree-per-agent/SKILL.md- Versions recorded
- 5
- Latest version
- git:20260929.1af83d7, committed Sep 29, 2026
- First version recorded
- Sep 19, 2026
- Size
- 3,609 bytes
- Repository stars
- 24
- License
- MIT
Isolate an agent's work in its own git worktree branched off the default branch, so two agents never land conflicting changes on the shared checkout. Use at the start of any implementation task in a repo where others may also be working, and whenever a repo's instructions say "work in a worktree".
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# One worktree per agent The shared checkout belongs to the human. An agent that edits it directly races every other agent and every uncommitted human change. So: branch a worktree off the default branch, work there, land the result through the repo's normal path, remove the worktree. ## Create ```bash REPO=$(git rev-parse --show-toplevel) NAME=<task-slug> DEST=$(citizen worktree create "$NAME" "$REPO") cd "$DEST" ``` The dedicated root keeps temporary task checkouts separate from permanent clones. It defaults to `~/worktrees/<repo>/<task>`; `HARNESS_WORKTREE_ROOT` may replace `~/worktrees`. The helper fetches `origin` and defaults to `origin/main`. Confirm the repository's default branch first and pass `--base origin/<default>` when it differs, or the explicit base required by the task. Follow repository-specific location instructions. Never create a task worktree as a sibling under the directory holding permanent repositories. ## Work - Install dependencies in the worktree if the repo needs them per checkout; do not assume the shared checkout's `node_modules` or virtualenv is reachable. - Run the repo's quality gate in the worktree before pushing, per `verification.md`. …
Read the whole file at its exact version.
How to install
mdr add jakeselby/model-citizen/worktree-per-agent@sha256:6bfcfb0f20f528b9The line at the top of this page pins the label git:20260929.1af83d7, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_yshberheleklzubk)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 5 versions of this file, between Sep 19, 2026 and Sep 29, 2026, about one every 3 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260929.1af83d7 latest | 2026-09-29 | 1af83d7 | 3,609 B | A | view · diff |
| git:20260926.1fa0eb8 | 2026-09-26 | 1fa0eb8 | 3,211 B | A | view · diff |
| git:20260923.097bdb0 | 2026-09-23 | 097bdb0 | 3,211 B | A | view · diff |
| git:20260921.fdfaa9a | 2026-09-21 | fdfaa9a | 3,229 B | A | view · diff |
| git:20260919.6cf18f7 | 2026-09-19 | 6cf18f7 | 2,705 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3609 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
jakeselby/model-citizen · 24 stars · license MIT · pushed 2026-10-15 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_yshberheleklzubk GET https://markdownregistry.com/api/v1/resolve?ref=jakeselby/model-citizen/worktree-per-agent GET https://markdownregistry.com/api/v1/blob/6bfcfb0f20f528b91118bfd6adefda4a96b08e7c52133c55af7e33da3ab888b6
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from jakeselby/model-citizen
Every file in jakeselby/model-citizen