agentleFS
lbk-openlbk-open/super-spec/skills/ss-create-branch/SKILL.md

ss-create-branch

Skill2 starsChanged 5 months agoApache-2.0View on GitHub

Prepare an authorized isolated workspace or explicitly requested safe in-place branch without losing user work.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read workflow policy and checkpoint.

    line 8
  2. Distinctive:

    Do not claim current upstream when only stale local references are known.

    line 28
  3. Very specific:

    Use an authorized exact path outside the source project and a unique descriptive branch from the verified base, e.g.

    line 38
  4. Distinctive:

    Do not commit, push, test or clean up merely because workspace preparation finished.

    line 49

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

Prepare Development Workspace

Read workflow policy and checkpoint. This skill prepares only workspace/branch; it does not install dependencies, run tests or approve scope. In prebranch feature/repair workflows run only after the applicable gate.

Inputs and precedence

Goal/issue, stable task/repo identity, project root, delivery mode and normalized workspace flags. Selection is explicit flag > repository default > isolated default. --worktree/-w requests isolation; --no-worktree/-W requests in-place only where safe and authorized. Reject conflicts; absence never silently means in-place permission. Existing approved workspace is reused after identity checks, not recreated.

Verify before creating

Inspect actual repository root, origin identity, remote default reference/tip, current branch/HEAD, status including ignored/untracked and recursive submodule dirt, worktree list, branch/path collisions and instructions. Fetch only when permitted, from the existing origin; never rewrite remote or assume main/master. Record verified default/base SHA or disclose that network refresh was unavailable. Do not claim current upstream when only stale local references are known.

User dirty work is not toolkit scratch. Preserve it; no automatic stash, reset, clean, submodule discard or .gitignore mutation. Never check out a dirty submodule or change its identity merely to make a worktree command succeed. If pending work must be incorporated, obtain explicit consent and protect secret-screened recoverable external evidence. Unknown worktree ownership/process blocks creation/replacement.

Creation

Use an authorized exact path outside the source project and a unique descriptive branch from the verified base, e.g. git worktree add <exact-path> -b <branch> <base>. Validate canonical parent/path and reject symlink escape/collision. Do not insert untrusted input directly into shell code. In-place mode may create/switch a branch only after dirty work and base safety are established. Permissions or unsupported worktree capabilities stop the task: no silent in-place fallback or CLI switch.

There is no dependency installation/bootstrap ritual; don't install globally or run package manager lifecycle hooks. No automatic change to project instructions, submodules, shared config or existing checkout. Update checkpoint with exact workspace, branch/base/current fingerprint and workspace policy. Return path and actual result. Do not commit, push, test or clean up merely because workspace preparation finished.

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.