initialize-worktree
Installation
SKILL.md
Initialize Worktree — From Problem to PR
Study a problem or GitHub issue, research the codebase, plan a fix, optionally implement it, and open the initial PR. Assumes the branch is already checked out.
Startup
- Read the root
AGENTS.md,agent_docs/index.mdand its relevant topic guides, plus every directory-specificAGENTS.mdgoverning a file you expect to touch. Reading these from the checked-out tree is correct here and only here: this skill starts fresh work on your own branch off the target branch, so nobody else has written them. Check that before you rely on it — if the branch already carries commits you did not author, stop and use/adopt-pr, which reads them from a policy-base checkout instead. - Read pushing-commits-to-the-repo before following the common PR handoff below.
Step 1 — Parse Input
Parse $ARGUMENTS:
- GitHub issue URL or number (e.g.
https://github.com/pydantic/pydantic-ai/issues/1234or#1234) → fetch viagh issue view <number> --json title,body,comments,labels,state,updatedAt - Free text → treat as problem description
- Empty → ask the user to link an issue or describe the problem.