worktree-development
Skill by David-Crty
Guides an AI assistant through working in a git worktree of this repo, located under .claude/worktrees/. It covers running make, Docker Compose, artisan, Pest, PHPStan and Pint commands, setting up fresh worktrees, branching, committing and reviewing pull requests.
Install worktree-development
Built from the published package, never by AI.
git clone --depth 1 https://github.com/David-Crty/databasement /tmp/databasement && mkdir -p ~/.claude/skills && cp -r /tmp/databasement/.ai/skills/worktree-development ~/.claude/skills/worktree-developmentRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/David-Crty/databasement /tmp/databasement && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/databasement/.ai/skills/worktree-development ~/.gemini/antigravity-cli/skills/worktree-developmentAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install worktree-development in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill tells the assistant how to work in a git worktree of this repository, created under .claude/worktrees/. The stack runs as one Compose project started from the main checkout, which bind-mounts the whole repo at /app. A worktree is already visible inside the container at /app/.claude/worktrees/<name>/, so nothing needs to be mounted or restarted. The skill warns that a bare docker compose command in a worktree addresses a second, empty project.
The skill says to run commands through make, which finds the Compose project through the shared git dir. It describes setting up a fresh worktree with make install and make ide-helper, and why vendor/ must not be symlinked to the main checkout. It also covers branching from origin/main, committing without skipping the Husky hook, and checking out a pull request. It is written for developers and assistants working in this repository, not in the main checkout.
Written from the project's SKILL.md and checked against it.
What it can do
- Run make targets from a worktreeRuns make test, make phpstan, make lint-fix and other targets from a worktree through the shared Compose project.
- Set up a fresh worktreeInstalls vendor with make install and generates the IDE helper file with make ide-helper.
- Avoid stale dependenciesExplains why vendor must not be symlinked to the main checkout, since tests would load the main branch's code.
- Create a branch from origin/mainFetches origin and creates a branch with git checkout --no-track -b based on origin/main.
- Commit with the pre-commit hookExplains that the Husky pre-commit hook runs Pint, ide-helper, PHPStan and the test suite, and must not be skipped.
- Review or rework a pull requestFetches a PR head ref, resets the current branch to it and merges origin/main.
- Work in isolated sessionsGives rules for shell commands and file-based commit or PR bodies when worktree isolation is enabled.
What you need
- Git with a worktree of this repository under .claude/worktrees/
- Docker with the project's Compose stack running from the main checkout
- Make and the repository's Makefile
- Composer and Node.js for make install and asset tasks
- GitHub CLI (gh) for creating pull requests
Try asking
- Set up this worktree so I can run the tests.
- Create a branch for a new PR based on origin/main.
- Check out PR 42 in this worktree and merge origin/main into it.
Good to know
- Worktrees must be created inside the repo, or the container path will not exist.
- Asset builds must run from the main checkout, since public/build/ is absent in a worktree.
- Pushing to a contributor's fork branch needs their remote and user confirmation.
- The stash stack is shared with the main checkout and all other worktrees.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .ai/skills/worktree-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to worktree-development
All alternatives →Runs the full Next.js deployment test suite for an internal vercel/next.js pull request. It validates the commit's preview package, then dispatches the test_e2e_deploy_release.yml workflow. Meant for maintainers who explicitly ask for the entire suite.
Instruments Python AI applications with DeepEval's native tracing so their execution appears span by span in Confident AI's Observatory. It is for developers building LLM apps, agents, RAG pipelines and chatbots.
Manages Azure Container Registry through the az acr Azure CLI command group. It covers registries, images, cloud builds, ACR Tasks, tokens, geo-replication and networking. Built for developers and operators who work with ACR in Azure.
Opens, runs, and shows apps on a temporary Crabbox machine, including native desktops and web previews. It is for OpenClaw users who want an app running and visible in their chat side panel.
Runs batch and HPC workloads on GKE using job queues and parallel processing. Aimed at teams running batch pipelines, HPC simulations, or ML training jobs on Google Kubernetes Engine.
Answers questions about GKE cluster and workload costs using BigQuery billing exports and live cluster metrics. Built for platform engineers and cloud teams who need to analyze and diagnose GKE spend.
Compare with deploy-release-test, deepeval-tracing or azure-container-registry-cli
worktree-development: common questions
Why does docker compose say service app is not running in a worktree?
A bare docker compose in a worktree uses a second Compose project named after the worktree directory, which has no containers. The skill says to run commands through make instead.
Can I symlink vendor from the main checkout into a worktree?
No. The skill says Composer's autoloader then loads app classes from the main branch's copies, so tests run against code you did not write.
Can a worktree be created outside the repository folder?
The source says worktrees must live inside the repo, because the Makefile maps the worktree to a path under /app that only exists inside the repo.
How do I install worktree-development?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is worktree-development free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is worktree-development safe to use?
It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to worktree-development?
Similar skills: deploy-release-test, deepeval-tracing, azure-container-registry-cli, crabbox-apps.
