From mblode-agent-skills
Creates git worktree from main for Linear issues. Parses URLs (https://linear.app/.../issue/ABC-58), copy prompts, or IDs to derive ISSUE_ID/BRANCH and sets up sibling directory.
npx claudepluginhub joshuarweaver/cascade-code-general-misc-4 --plugin mblode-agent-skillsThis skill uses the workspace's default tool permissions.
Creates a git worktree from `main` for a Linear issue as a sibling directory of the current repo.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Creates a git worktree from main for a Linear issue as a sibling directory of the current repo.
Copy and track this checklist:
Worktree creation progress:
- [ ] Step 1: Resolve REPO_ROOT / REPO_NAME / REPOS_BASE
- [ ] Step 2: Parse input into ISSUE_ID and BRANCH
- [ ] Step 3: git fetch origin main
- [ ] Step 4: git worktree add at $REPOS_BASE/$REPO_NAME-$ISSUE_ID
- [ ] Step 5: Report worktree path, branch, and cd command with resolved paths
Resolve three variables:
REPO_ROOT = git rev-parse --show-toplevel, REPO_NAME = its basename, REPOS_BASE = its parent directory.config.json has repos_base: use that as REPOS_BASE. Ask the user which repo folder.The user provides one of:
https://linear.app/myteam/issue/ABC-58/add-dark-mode-toggleABC-58 Add dark mode toggle to settings pageABC-58All parsing produces two values: ISSUE_ID (lowercased) and BRANCH (id + slug).
/issue/ → ISSUE_ID = abc-58BRANCH = abc-58-add-dark-mode-toggleISSUE_ID = abc-58-, strip backticks/parentheses/.../quotes/#/@, collapse consecutive hyphens, trim leading/trailing hyphensBRANCH = abc-58-<slug>Example: ABC-58 Add dark mode toggle (don't break "light" default)
→ abc-58-add-dark-mode-toggle-dont-break-light-default
Lowercase the ID → ISSUE_ID = abc-58. Slugify any description the user provides for the branch, otherwise BRANCH = abc-58.
git -C $REPO_ROOT fetch origin main
git -C $REPO_ROOT worktree add \
-b $BRANCH \
$REPOS_BASE/$REPO_NAME-$ISSUE_ID \
main
This creates a worktree at $REPOS_BASE/$REPO_NAME-$ISSUE_ID (e.g. /Users/you/Code/myrepo-abc-58) — a sibling of the main repo, not inside it.
Tell the user the worktree path, branch name, and cd command using actual resolved paths:
Worktree: /Users/you/Code/myrepo-abc-58
Branch: abc-58-add-dark-mode-toggle
Run: cd /Users/you/Code/myrepo-abc-58
-b — use git worktree add $REPOS_BASE/$REPO_NAME-$ISSUE_ID $BRANCH.--force. Run git worktree list and tell the user to cd to the existing worktree.git fetch origin main before git worktree add, or the worktree gets a stale base.$REPO_ROOT, never inside it.git worktree add, not git checkout -b.cd: the worktree is useless if the user stays in the original repo.