new-workspace

new-workspace is a skill for Claude Code, Codex from acolomba/pi-claude-marketplace. It costs 96 tokens per session (1,035 once invoked), scanned A, original, MIT.

A workflow for creating an isolated Git worktree, branch, and planning directory for a new piece of work. A worktree is another checkout of the same repository, allowing separate changes without switching the main checkout.

In plain words
What is it for?
Use it when starting a named feature workspace or feature branch in a Git repository.
Why use it?
It avoids manually recreating the project's expected branch, directory, and workspace setup. It also keeps the new work separate from the current checkout.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it when starting a named feature workspace or feature branch in a Git repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/acolomba/pi-claude-marketplace/new-workspace
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add acolomba/pi-claude-marketplace --skill new-workspace
Clone the repo
git clone --depth 1 https://github.com/acolomba/pi-claude-marketplace

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for new-workspace

README.md
[![agentmods](https://agentmods.dev/badge/skills/acolomba/pi-claude-marketplace/new-workspace/github.svg)](https://agentmods.dev/skills/acolomba/pi-claude-marketplace/new-workspace)
Your own site
<a href="https://agentmods.dev/skills/acolomba/pi-claude-marketplace/new-workspace"><img src="https://agentmods.dev/badge/skills/acolomba/pi-claude-marketplace/new-workspace/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for new-workspace

Your own site · 80×15
<a href="https://agentmods.dev/skills/acolomba/pi-claude-marketplace/new-workspace"><img src="https://agentmods.dev/badge/skills/acolomba/pi-claude-marketplace/new-workspace.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,035 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00096 $0.01035
Opus 5.5 $0.00038 $0.00414
Sonnet 5.5 $0.00019 $0.00207
Haiku 4.5 $0.00010 $0.00103

Measured 14d ago against content hash af229037445a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

new-workspace scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/new-workspace/SKILL.md · 69 lines

What it actually says

New Workspace

Create a worktree that is ready to use: when this skill finishes, the user can open a new terminal, cd ~/src/<repo>-<name>, start an agent, and work.

Require exactly one argument, the workspace <name>. If it's missing, ask for it before running anything.

Do not use GSD's /gsd-workspace here. Its worktree strategy nests the repo under <path>/<repo>/ and writes a WORKSPACE.md beside it. This project wants the worktree itself at ~/src/<repo>-<name>, like hwt makes it.

  1. Resolve the repo and the target path once, and use these variables in every later command. A ~ inside quotes does not expand, so use $HOME:

    repo_root=$(git rev-parse --show-toplevel)
    repo=${repo_root##*/}
    name=<name>
    target="$HOME/src/$repo-$name"
    

    If git rev-parse fails, report that you are not inside a git repository and stop.

  2. Validate before you create anything, and report all failures at once:

    • $name is kebab-case: lowercase letters and digits in words joined by single hyphens (^[a-z0-9]+(-[a-z0-9]+)*$). The name becomes both a branch component and a folder name, so a space or a slash would make an odd branch or a nested folder.
    • $target does not exist.
    • The branch features/$name does not exist (git -C "$repo_root" show-ref --verify --quiet "refs/heads/features/$name" succeeds when it does).
  3. Fetch main, and check that it contains the setup script:

    git -C "$repo_root" fetch origin main
    git -C "$repo_root" cat-file -e origin/main:scripts/init.sh
    

    The branch starts from origin/main, not from the current HEAD, so it is never out of date, even when the local checkout is behind. If the fetch fails, report it and stop. Do not fall back to an older base.

  4. Create the worktree:

    git -C "$repo_root" worktree prune
    git -C "$repo_root" worktree add --no-track -b "features/$name" "$target" origin/main
    

    prune removes the records of worktree folders that someone deleted by hand. Without it, worktree add refuses a path that git still has registered. --no-track stops the feature branch from tracking origin/main, so git pull and git push do not target main.

  5. Run the setup script in the new worktree:

    bash "$target/scripts/init.sh"
    

    It installs npm dependencies, GSD, skills, codegraph, and the fallow agent wiring. It takes several minutes and can run longer than a foreground tool timeout, so start it detached (for example, as a background task) and wait for it to exit. Judge the result by its exit code.

    Near the end, the script prints "Failed" for some pre-commit hooks, such as the dash fixer and mdformat. This is expected. The codegraph and fallow installers rewrite AGENTS.md, and those hooks restore the committed text. The script ignores their exit status. Do not report these lines as a problem when the script exits 0 and git status is clean.

    If the script exits non-zero, show the end of its output and stop. Keep the worktree, and tell the user to fix the cause and run scripts/init.sh again from the worktree.

  6. Report:

    • the worktree path, the branch, and the commit it starts from
    • whether init.sh succeeded
    • git -C "$target" status --short. The script can rewrite tracked files, such as package-lock.json or AGENTS.md. List any changes, and do not revert them.
    • next step: open a new terminal, cd ~/src/<repo>-<name>, and start the agent

Leave this session in its current directory. The user starts a new agent in the worktree, so moving this session there would only change where its later commands run.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · +40 lines · +22 tokens per session af229037445a
  2. 1mo ago First seen · 29 lines · 74 tokens per session scan A 5a56fa377522

Subscribe to this mod's changes

new-workspace is a skill published in the GitHub repository acolomba/pi-claude-marketplace (28 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 1,035 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.