agentleFS
patrick-fupatrick-fu/awesome-skills/git-task-workspace/SKILL.md

git-task-workspace

Skill66 starsChanged 2 months agoMITView on GitHub

Manage task-oriented Git worktree workspaces from an upstream source pool. Use when starting a task, checking out worktrees, adding multi-repo dependencies, tearing down workspaces, or setting up the directory layout.

  • Deletes or force-pushes

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Do not make dirty edits, run builds, or place temporary artifacts here.

    line 16
  2. Distinctive:

    Start points can be the default trunk, an older commit, or an existing branch.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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.

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

Git Task Workspace

Operate isolated, task-oriented worktrees from an upstream repository pool.

Invariants

  • source-pool: Clean, read-only upstream repository pool tracking trunk branches. Do not make dirty edits, run builds, or place temporary artifacts here.
  • workspace: Task directory root where every work item gets a dedicated folder (<workspace>/<task-name>/). Worktrees are checked out here.
  • single-owner: A task directory belongs to one active work stream. Multi-repo dependencies co-locate under that same task directory.

Workflow

  1. start-task: Create <workspace>/<task-name>/. For each required repository in the source pool, add a worktree into the task directory: git -C <source>/<repo> worktree add <workspace>/<task-name>/<repo> -b <branch> [start-point] Start points can be the default trunk, an older commit, or an existing branch.
  2. multi-repo: When a task spans multiple repositories, check out worktrees for all affected repositories directly into <workspace>/<task-name>/.
  3. add-repo: If an un-cloned dependency is needed mid-task, clone it into the source pool first, then add a worktree into the active task directory.
  4. tear-down: After code is merged or abandoned, remove the task directory (rm -rf <workspace>/<task-name>) and prune worktree references: git -C <source>/<repo> worktree prune The source pool remains pristine.

Setup and Migration

To initialize a new source/workspace layout, generate local AGENTS.md rules, or migrate existing repositories, read references/setup.md.

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.