pasky/pi-side-agents/agent-setup
Claude Code and agent skill by pasky/pi-side-agents
- community
Checking that the SKILL.md file is still in the repository.
Initialize or update setup for pi-side-agents (running asynchronous agents spawned/controlled from main session)
Install
npx vskill@latest install pasky/pi-side-agents/agent-setupSKILL.md
Parallel Agent Setup
Set up the pi-side-agents lifecycle scripts for this project.
Initial first time setup (no .pi/side-agent* yet): Work through two phases: interview, then file creation. Finish by backing up this agent-setup SKILL.md to .pi/side-agents/agent-start~/ for easy future upgrades.
Update setup: Chat with the user about what needs changing, use file examples below as reference for comparison.
Upgrade setup to new pi-side-agents version: Diff this file with the current backup .pi/side-agents/agent-start~/ and discuss the changes to apply (or not) with the user. When upgrade is finished, update the backup to the current version.
Important (local-only files): everything this skill creates is under .pi/ and is runtime/local configuration. Do not git add, git add -f, or commit these files. They should remain untracked. If they were accidentally committed, remove them from git tracking while keeping them locally.
Phase 1: Interview
Ask the user the following questions. You may ask them all at once or one at a time — use your judgment based on how they engage.
- Main branch name – What is the primary integration branch? (default: `main`)
- Bootstrap steps – Does each agent worktree need custom setup before work begins? For example:
npm install, copying.envfiles, running migrations. If yes, what commands specifically?
- Finish policy – When an agent finishes, should it:
- Rebase locally, then fast-forward into the main branch in the parent checkout (default), or
- Open a pull request instead?
- Overwrite existing files – If
.pi/side-agent-start.shor similar already exist, overwrite them? (default: no — skip existing files)
Before asking the questions, autonomously try to answer questions 1, 2 and 4, and propose project-specific answers to the user.
Collect all answers before proceeding to Phase 2.
Phase 2: Create Setup Files
Determine the git repo root:
Create the three files below. For each file, check whether it already exists before writing — if it exists and the user said not to overwrite, skip it and tell the user. Otherwise write (or overwrite) it.
File 1: $GIT_ROOT/.pi/side-agent-start.sh
Write this file and make it executable (chmod +x).
Use MAIN_BRANCH set to whatever the user specified in question 1 (or main by default). The start script validates the branch but does not reset HEAD — the TypeScript extension already sets the worktree to the parent's HEAD. Do not force-update the local MAIN_BRANCH ref (e.g. git branch -f) because that branch is often checked out in the parent worktree.
Default content — substitute MAIN_BRANCH_VALUE with the actual branch name, then append bootstrap steps based on question 2. Keep the ${PI_SIDE_PARENT_BRANCH:-...} fallback verbatim: for a nested side agent (one spawned by another side agent) the extension sets PI_SIDE_PARENT_BRANCH to the spawning agent's branch, which is that agent's integration target instead of the main branch.
- If the user wants no custom bootstrap: append the optional hook block:
``bash # Optional project bootstrap hook — create .pi/side-agent-bootstrap.sh to use. if [[ -x "$WORKTREE/.pi/side-agent-bootstrap.sh" ]]; then "$WORKTREE/.pi/side-agent-bootstrap.sh" fi ``
- If the user gave specific bootstrap commands: append them directly instead, e.g.:
``bash # Project bootstrap cd "$WORKTREE" npm install cp .env.example .env 2>/dev/null || true ``
File 2: $GIT_ROOT/.pi/side-agent-finish.sh
Write this file and make it executable (chmod +x).
Use MAIN_BRANCH set to whatever the user specified (or main by default).
For local rebase policy (default), use this content — substituting MAIN_BRANCH_VALUE with the actual branch name:
For PR policy: write a finish script that pushes the branch and opens a PR via the gh CLI:
File 3: $GIT_ROOT/.pi/side-agent-skills/finish/SKILL.md
This is a skill for the child agent (not this session) that tells it how to finalize its work.
For local rebase policy, write:
PI_SIDE_PARENT_REPO="$PI_SIDE_PARENT_REPO" .pi/side-agent-finish.sh
For PR policy, write a simpler finish skill:
.pi/side-agent-finish.sh
Phase 3: Report
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-setup/SKILL.md
Popularity
- Repository stars
- 126
- Repository forks
- 11
- Repository npm downloads, 7 days
- 22
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 20 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/pasky/pi-side-agents/agent-setup)