beevibe-ai/beevibe/beevibe-pre-task-setup
Claude Code and agent skill by beevibe-ai/beevibe
- community
Checking that the SKILL.md file is still in the repository.
Cold-start git workspace setup for a fresh beevibe task. Use at the start of a session whose intent has a `<task>` block but NO `<context type="revision">` or `<context type="post_escalation">` block — i.e. the first dispatch of this task. Checks for an existing repo clone, pulls the base branch if present (clone if missing), prunes any per-task worktrees from earlier tasks whose work has already landed on the default branch, and creates a fresh worktree for this task on a dedicated branch. Do NOT use on a resumed session — the executor passes `--resume` to Claude Code on revisions, so your prior turn's `cd` and worktree state are already in your conversation history; just continue. Do NOT work directly in the base clone — that stays on the default branch for easy pulls and is shared across tasks. Use only when running as a beevibe agent.
Install
npx vskill@latest install beevibe-ai/beevibe/beevibe-pre-task-setupSKILL.md
Pre-Task Setup
When this fires
Every session that starts with a <task id="..."/> intent block. The session lifecycle (per the beevibe umbrella) requires you to set up your worktree before doing any work.
The protocol
1. Find the repo URL
Check for repo_url on the task. Fetch the task with get_task(task_id) if you don't already have it. The repo_url field tells you where to clone.
If task.repo_url is null:
- Parse the task description for git context (URLs, branch hints, "the foo repo")
- If still ambiguous, call
report_blocker(task_id, "Cannot determine repo for this task")— the parent agent or operator will clarify
2. Check for existing clone
Your cwd is the workspace root (~/.beevibe/workspaces/<your_agent_id>/). The base clone lives at <repo_name>/:
3. Clone or pull
- If missing:
git clone <task.repo_url> - If present: refresh the base:
``bash cd <repo_name> git fetch --prune origin git checkout <default_branch> git pull --ff-only ``
4. Prune landed worktrees from earlier tasks
Before adding a new worktree, reclaim sibling <repo_name>-<task_id_short> dirs from earlier tasks whose work has already landed on origin/<default_branch>. git cherry compares by patch-id, so this catches both merge-commit and squash-merge cases:
Worktrees with uncommitted state or unmerged commits stay — those may be pending revision or post-escalation. No --force here on purpose: if git worktree remove refuses, the worktree was still doing something useful.
5. Create a fresh worktree
Always create a NEW worktree for this task — never work in the base clone:
<task_id_short> is the first ~8 chars of task.id. The branch name agent/<task_id_short> makes it obvious in git branch -a who created the branch.
6. Now do the work
You're now in a clean per-task worktree. Make changes, commit them, push the branch, open a PR — all inside this directory.
Why a separate worktree (with pruning)
- Concurrent tasks: each task gets its own worktree, so
max_task_sessions > 1works without contention - Clean base: the base clone stays on the default branch for easy pulls
- No accumulation: step 4 reclaims dirs from tasks whose PRs are merged, so the workspace doesn't pile up
<repo>-AAAA1234,<repo>-BBBB5678, … over time
Resumed sessions are NOT this skill
If your spawn intent contains <context type="revision"> or <context type="post_escalation">, the executor used --resume to spawn you, so your prior turn's cd <worktree> and tool calls are already in your conversation history. Don't re-clone, don't re-worktree, don't re-invoke this skill — just continue from where you left off.
Non-code tasks
If the task is research/drafting/etc. with no repo_url, this skill mostly doesn't apply. You can work directly in your workspace dir without a worktree. When you produce a deliverable, follow the deliverable-handling rule in your <beevibe_lifecycle> reminder (call list_work_products(task_id) first to dedupe, then create_work_product or update_work_product).
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/beevibe-pre-task-setup/SKILL.md
Popularity
- Repository stars
- 273
- Repository forks
- 11
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
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/beevibe-ai/beevibe/beevibe-pre-task-setup)