No slash command · from workflow-setup
Setup development environment with git worktree for ticket-based workflows.
Ships in workflow-setup. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Automate the development environment setup for worktree-based workflows. This skill is called by workflow during the "start" phase to create an isolated development environment for each ticket.
This skill is not user-invocable. It is called internally by the workflow skill when:
/workflow start PROJ-123)workflow skill configure.claude/workflow-config.jsonCalled during framework setup wizard (via workflow skill) to configure worktree preferences:
/workflow configure # Includes workflow-setup configuration
Discovers:
Outputs: .claude/workflow-config.json
{
"worktreeBasePath": "../worktrees/my-project",
"ide": "Cursor",
"copyEnvFiles": true
}
package.json, pyproject.toml, go.mod, Cargo.toml, or directory name../worktrees/<project-name>cursor, code, webstorm commands.claude/workflow-config.json.env* files from source repo.claude/workflow/<branch>/.claude/plan.md exists in sourceConfigured via /workflow configure during framework setup. Stored in .claude/workflow-config.json:
| Field | Description | Default |
|---|---|---|
worktreeBasePath | Directory where worktrees are created | ../worktrees/<project> |
ide | IDE to open: Cursor, WebStorm, VSCode | Auto-detected |
copyEnvFiles | Whether to copy .env* files | true |
Created in the new worktree at .claude/workflow/<branch>/:
.claude/workflow/<branch>/
├── plan.md # Implementation plan (copied if exists)
├── context.json # Ticket metadata, branch info
└── pending-action.json # Handoff to next Claude session
Tells the new Claude session what to do:
{
"action": "continue-workflow",
"phase": "review-plan",
"ticketId": "PROJ-123",
"branch": "feat/proj-123-add-feature",
"message": "Workflow setup complete. Review the implementation plan and confirm to proceed.",
"planFile": "plan.md",
"createdAt": "2026-01-21T10:30:00Z"
}
| Phase | Description | Next Action |
|---|---|---|
review-plan | Plan exists, needs review | Show plan, ask to confirm or modify |
create-plan | No plan exists | Invoke developer to create plan |
if .claude/workflow-config.json exists:
load config
else:
error: run `/workflow configure` first
Config is created during framework setup wizard via /workflow configure.
CRITICAL: Update main before creating worktree to avoid branching from stale code.
git fetch origin main
git checkout main
git pull origin main
git worktree add <basePath>/<branch> -b <branch> main
# Find and copy all .env* files
for file in .env*; do
cp "$file" <worktree>/
done
cd <worktree>
# Auto-detect and run appropriate setup command
Detection order:
.claude/setup-cache.yaml → use cached commands.setupTaskfile.yaml → task setup or task installMakefile → make setup or make installpackage.json → npm installpyproject.toml → pip install -e . or poetry installgo.mod → go mod downloadCargo.toml → cargo buildRun /setup learn first to cache the setup command for faster detection.
mkdir -p <worktree>/.claude/workflow/<branch>
if [ -f .claude/plan.md ]; then
cp .claude/plan.md <worktree>/.claude/workflow/<branch>/plan.md
fi
Write context.json with ticket metadata.
Write pending-action.json with phase based on whether plan exists.
| IDE | macOS Command |
|---|---|
| WebStorm | open -a "WebStorm" <path> |
| Cursor | cursor <path> |
| VSCode | code <path> |
This skill is called from workflow after branch name generation:
workflow start PROJ-123
1. Detect source type (Linear)
2. Fetch ticket details
3. Safety checks
4. Determine type (feat/fix/etc)
5. Generate branch name
6. >>> Call workflow-setup <<<
7. --- HANDOFF to new Claude session ---
Called internally by workflow:
/workflow start PROJ-123
-> workflow generates branch: feat/proj-123-add-feature
-> workflow-setup:
- Creates worktree at .../my-project/proj-123-add-feature
- Copies .env files
- Runs setup command
- Copies plan.md
- Writes pending-action.json
- Opens Cursor
-> User sees new IDE window with worktree
-> New Claude session reads pending-action.json
-> Prompts: "Review the plan or start implementing?"
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub dohernandez/claude-skills --plugin workflow-setup