cleanup-cache
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Create parallel worktrees for multi-task development with Ghostty panels
$ npx -y skills add davila7/claude-code-templates --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/worktree-initContext preview
What this command does when you run it.
Create parallel worktrees for multi-task development with Ghostty panels
allowed-tools: Bash(git:*), Bash(mkdir:*), Bash(ls:*), Bash(cat:*), Bash(basename:*), Bash(pwd:*), Bash(sed:*) argument-hint: task 1 | task 2 | task 3 description: Create parallel worktrees for multi-task development with Ghostty panels
Create multiple git worktrees for parallel development: $ARGUMENTS
You are setting up parallel worktrees so the user can work on multiple tasks simultaneously in separate Ghostty terminal panels, each running its own Claude instance.
1. Check this is a git repository: `git rev-parse --is-inside-work-tree` 2. Get the repo name: `basename $(git rev-parse --show-toplevel)` 3. Get the main branch name (check for `main` or `master`): `git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@'` — if that fails, default to `main` 4. Ensure working tree is clean: `git status --porcelain`. If dirty, warn the user and ask if they want to continue. 5. Fetch latest: `git fetch origin`
Parse tasks from `$ARGUMENTS`. Tasks are separated by `|` (pipe character).
If `$ARGUMENTS` is empty, use AskUserQuestion to ask the user to describe their tasks (they can provide multiple separated by `|`).
For each task description:
For each task:
1. Create the parent directory if needed: `mkdir -p ../worktrees/<repo-name>` 2. Create the worktree:
git worktree add -b claude/<name> ../worktrees/<repo-name>/claude-<name> origin/<main-branch>
3. Write a `.worktree-task.md` file inside the new worktree with this content:
# Worktree Task **Branch:** claude/<name> **Task:** <original task description> **Created:** <ISO date> **Source repo:** <path to main repo>
If a `package.json` exists in the repo root, note that each worktree may need `npm install` (or the appropriate package manager).
Check for:
Display a clear summary table:
| # | Task | Branch | Path | |---|------|--------|------| | 1 | ... | claude/... | ../worktrees/repo/claude-... |
Then display ready-to-copy commands for Ghostty panels. For each worktree:
# Panel <N>: <task description> cd <absolute-path-to-worktree> && claude
If dependencies were detected, add a note:
# Note: Run <package-manager> install in each worktree before starting
Finally, remind the user:
Ready-to-use configurations for Anthropic's Claude Code. A comprehensive collection of AI agents, custom commands, settings, hooks, external integrations (MCPs), and project templates to enhance your development workflow.
Repo: davila7/claude-code-templates
Clean system caches (npm, Homebrew, Yarn, browsers, Python/ML) to free disk space
Create an SEO-optimized blog article for a Claude Code component with AI-generated cover image