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.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ss-archiveSkill
- ss-cleanupSkill
- ss-code-reviewSkill
- ss-codingSkill
- ss-coding-workflowSkill
- ss-create-prSkill
- ss-feature-workflowSkill
- ss-guardrailsSkill
- ss-inspectSkill
- ss-list-changesSkill
- ss-multi-repo-workflowSkill
- ss-planSkill
- ss-proposalSkill
- ss-referencesSkill
- ss-reverse-specSkill
- ss-show-specSkill
- ss-trace-specSkill
- ss-troubleshooting-workflowSkill
- ss-write-specSkill
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
- Distinctive: line 8
Read workflow policy and checkpoint.
- Distinctive: line 28
Do not claim current upstream when only stale local references are known.
- Very specific: line 38
Use an authorized exact path outside the source project and a unique descriptive branch from the verified base, e.g.
- Distinctive: line 49
Do not commit, push, test or clean up merely because workspace preparation finished.
≈ “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.
Files
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.
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.

