Agent skill

Branch

by dchu917 in dchu917/ctx

Branch one workstream into a new workstream with a frozen starting snapshot.

MITAuto-check passed

Install Branch

skills CLI
$ npx skills add dchu917/ctx --skill branch -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dchu917/ctx branch --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dchu917/ctx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/claude/branch .claude/skills/branch && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
branch
GitHub stars
127
Token cost
~104 tokens
SKILL.md length
37 words
Files
3 (incl. scripts)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Branch one workstream into a new workstream with a frozen starting snapshot.

  • Runs Shell scripts from its folder

What it does

Branch is an agent skill from dchu917/ctx. Branch one workstream into a new workstream with a frozen starting snapshot.

Its SKILL.md is about 100 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `scripts/branch.sh` and `scripts/skills/branch.sh`).

The repository describes itself as: Local context manager for Claude Code and Codex with workstreams, transcript binding, and branching. The licence is MIT.

Example prompts

  • “/branch”

Requirements

  • A Bash shell

What it can do on your machine

Read from SKILL.md and the folder at commit bdb602c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 2 files in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Branch loads about 104 tokens when it runs. Until then it costs about 21 tokens; SKILL.md has 37 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~104

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from dchu917/ctx at commit bdb602c, republished under its MIT licence (© dchu917). 37 words, ~104 tokens.

Download SKILL.mdSave it as .claude/skills/branch/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
branch
description
Branch one workstream into a new workstream with a frozen starting snapshot.

Usage

  • /branch <source-workstream> <target-workstream>

Backing script

  • scripts/branch.sh

Notes

  • The target workstream must not already exist.
  • The branch gets a snapshot of the source workstream's current context, but it does not inherit the source's external Claude/Codex transcript bindings.

© dchu917, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts) in skills/claude/branch of dchu917/ctx.

  • SKILL.md
  • scripts/branch.sh
  • scripts/skills/branch.sh

Open the folder on GitHubat commit bdb602c

Compare with similar skills

Branch next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Branch compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Branch this skilldchu917/ctx127—~104Automated safety check: PassMIT
StartDonchitos/Claude-Code-Game-Studios26k—~6.5kAutomated safety check: PassMIT
Branchesredis/RedisInsight8.9k—~409Automated safety check: PassCustom licence
Conventional Branchgithub/awesome-copilot40k—~1.1kAutomated safety check: PassMIT
Playground Snapshot Releasemastra-ai/mastra29k—~1.7kAutomated safety check: PassCustom licence
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • Start

    Donchitos/Claude-Code-Game-Studios

    First-time onboarding — asks where you are, then guides you to the right workflow.

    26k GitHub stars~6.5k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Branches

    redis/RedisInsight

    Official

    Create and name git branches following project conventions. An agent skill from redis/RedisInsight.

    8.9k GitHub stars~409 tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Conventional Branch

    github/awesome-copilot

    Official

    Create Git branches following the Conventional Branch specification (feature/, bugfix/, hotfix/, release/, chore/).

    40k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Publish a Playground UI snapshot (@mastra/playground-ui and its workspace dependencies) from main or the current branch via the playground-snapshot mode of the Publish to npm workflow, wait for it…

    29k GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Git Branch Naming

    makeplane/plane

    Names a new Git branch with a type prefix, the lowercased work item ID and a short kebab-case description, so the ID can be extracted later from the branch name.

    61k GitHub stars~594 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from dchu917/ctx

  • Ctx

    dchu917/ctx

    Use or bootstrap the ctx CLI to search, start, resume, rename, delete, branch, and inspect saved coding workstreams.

    127 GitHub stars~503 tokensUpdated 5 mo ago
    Auto-check passed
  • Ctx

    dchu917/ctx

    Show the current workstream, or dispatch ctx subcommands like list, start, resume, delete, and branch.

    127 GitHub stars~231 tokensUpdated 5 mo ago
    Auto-check passed
  • Ctx Resume

    dchu917/ctx

    Resume a ContextFun workstream and print a markdown pack. An agent skill from dchu917/ctx.

    127 GitHub stars~199 tokensUpdated 5 mo ago
    Auto-check passed
  • Ctx Start

    dchu917/ctx

    Create a new ContextFun workstream and its first session, then print a markdown pack.

    127 GitHub stars~272 tokensUpdated 5 mo ago
    Auto-check passed
  • Ctx Delete

    dchu917/ctx

    Delete the latest session in a ContextFun workstream, or delete a specific session id.

    127 GitHub stars~129 tokensUpdated 5 mo ago
    Auto-check passed

Questions about Branch

What does Branch do?

Branch one workstream into a new workstream with a frozen starting snapshot. Branch is an agent skill from dchu917/ctx. Branch one workstream into a new workstream with a frozen starting snapshot.

How do I install Branch in Claude Code?

Run `npx skills add dchu917/ctx --skill branch -a claude-code`. Or copy the skill folder (skills/claude/branch in dchu917/ctx) into .claude/skills/branch in your project. Claude Code loads it when a task matches its description.

How do I install Branch in Codex?

Run `npx skills add dchu917/ctx --skill branch -a codex`. Or copy the skill folder (skills/claude/branch in dchu917/ctx) into .agents/skills/branch in your project. Codex loads it when a task matches its description.

Can I use Branch in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dchu917/ctx --skill branch -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/branch, .gemini/skills/branch, .github/skills/branch and .opencode/skills/branch in your project.

What does Branch need to run?

Going by SKILL.md and its folder, Branch needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

Does Branch access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Branch safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Branch use?

Branch is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Branch use?

About 104 tokens (SKILL.md is roughly 416 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Branch?

Skills that share tags, products or a category with Branch: Start (Donchitos/Claude-Code-Game-Studios, 26k stars), Branches (redis/RedisInsight, 8.9k stars), Conventional Branch (github/awesome-copilot, 40k stars) and Playground Snapshot Release (mastra-ai/mastra, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Branch?

dchu917 (a GitHub user) maintains it in dchu917/ctx, which has 127 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on April 21, 2026.

Source: dchu917/ctx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.