agentleFS
OutThisLifeOutThisLife/brooklyn-skills/skills/work/SKILL.md

work

Skill197 starsChanged 4 months agoMITView on GitHub

Kick off a task in a fresh isolated git worktree instead of the current checkout. Use when the user invokes /work (optionally with a slug or description) to start something new without touching their working tree.

21 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use docs, review and 4 more.

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.
  • Microsoft AzureSkill

    docs

    Also in 5 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 6 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

  • AnthropicSkill

    debug

    Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.

    Also in 3 projects that use this

  • AWSSkill

    ship

    Finalize dev work on an issue branch — update docs, push, and open a PR.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 7

    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
  1. Distinctive:

    Look at what the repo already does, and copy it.

    line 17
  2. Very specific:

    Create the worktree + branch and cd into it.

    line 18
  3. Distinctive:

    Do the requested work there.

    line 19
  4. Distinctive:

    Never git stash in a worktree while other agents run: the stash list is shared repo-wide, so a pop can grab another worker's WIP.

    line 50
  5. Distinctive:

    Do the task in the worktree.

    line 54
  6. Very specific:

    Never git stash in a worktree: refs/stash is shared by every worktree of the repo, so a parallel agent can pop your entry (or you pop …

    line 56
  7. Very specific:

    Every worker and subagent gets its own hermes-agent worktree, and the worktree path is in its instructions.

    line 60
  8. Distinctive:

    Prefer direct execution for focused fixes.

    line 65
  9. Distinctive:

    Default to pnpm for JavaScript package commands and install examples when the repository supports it.

    line 68
  10. Distinctive:

    When handing off, tell the user the worktree path and how to run it.

    line 70

“Common” is measured: kept by at least 6 in 10 of the 17 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/work

/work [slug] is a declaration for this task: "spin up a dedicated worktree and do the work there." It applies to what the user is starting right now — it is not a standing rule that all work always happens in worktrees.

When invoked:

  1. Look at what the repo already does, and copy it.
  2. Create the worktree + branch and cd into it.
  3. Do the requested work there.

Read the repo's conventions

git worktree list                                   # sibling dirs + branches
git branch -a --sort=-committerdate | head -20      # branch prefix/slug pattern
git remote show origin | sed -n 's/.*HEAD branch: //p'   # default branch
  • Branch prefix — mirror the dominant one (e.g. <initials>/<slug>). None obvious → ask.
  • Worktree dir — mirror sibling naming/location (commonly <repo>-<short> next to the primary checkout). Short suffix ≠ full branch is fine.
  • Base — current default branch unless they name another.
  • Slug — from the /work argument, else the task description.

Create it

repo="$(git rev-parse --show-toplevel)"
parent="$(dirname "$repo")"
default="$(git -C "$repo" remote show origin | sed -n 's/.*HEAD branch: //p')"
git -C "$repo" fetch origin "$default"
git -C "$repo" worktree add -b <prefix>/<slug> "$parent/$(basename "$repo")-<short>" "origin/$default"
cd "$parent/$(basename "$repo")-<short>"

Reuse a matching worktree/branch if one already exists — don't duplicate. Match how siblings handle node_modules / .venv / symlinks.

  • Never git stash in a worktree while other agents run: the stash list is shared repo-wide, so a pop can grab another worker's WIP. Commit WIP instead.

Then

  • Do the task in the worktree; never in the primary checkout, and never in another agent's worktree.
  • Never git stash in a worktree: refs/stash is shared by every worktree of the repo, so a parallel agent can pop your entry (or you pop theirs). To test against base, copy the file aside (git show HEAD:<path> > …) or use a throwaway worktree instead.
  • Every worker and subagent gets its own hermes-agent worktree, and the worktree path is in its instructions. Fixes use a bb/* branch. Verification, typecheck, and tests use a detached worktree at origin/main. Each worktree runs its own npm ci. Never edit, install, build, typecheck, or test in ~/Developer/hermes-agent. tsc -b there emits .js beside the sources.
  • Prefer direct execution for focused fixes. Do not delegate routine sibling-path audits or cleanup; reserve subagents for substantial independent work that clearly saves time.
  • Default to pnpm for JavaScript package commands and install examples when the repository supports it. Respect an existing different package-manager/lockfile contract rather than introducing a second lockfile.
  • UI → ui-only + ui-system. Tests → whatever the repo uses.
  • When handing off, tell the user the worktree path and how to run it.
  • Ship → commit, push the branch, open a PR/MR to the default branch.
  • Cleaning up → offer to remove worktrees whose branch is already merged.
  • Reviewing an existing PR instead of new work → pr-triage.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.