databasement: Skill for Claude Code

.ai/skills/worktree-development/SKILL.md

worktree-development is a skill for Claude Code, Codex from David-Crty/databasement. It costs 114 tokens per session (1,290 once invoked), scanned A, original, MIT.

A workflow guide for running tests, analysis, formatting, and other commands inside a Git worktree, an alternate checkout of the same repository. It explains how the shared Docker Compose environment exposes that worktree.

In plain words
What is it for?
Use it before running Make, Docker Compose, Artisan, Pest, PHPStan, or Pint commands, or committing changes from a worktree.
Why use it?
It prevents commands from connecting to the wrong container project or failing because a separate worktree container was never started.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

This is David-Crty/databasement's own configuration. It tells Claude Code and Codex how to work on databasement itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything databasement configures →

About the project

Databasement is a self-hosted web application for scheduling, storing, and restoring backups of several kinds of databases. It is for managing database backups across local storage, S3-compatible storage, SFTP, Samba, and other configured destinations, including databases in private networks. The catalogue instruction and MCP integration connect coding agents to its backup-management workflows.

David-Crty/databasement · 2,606 stars · on GitHub · david-crty.github.io

Reuse

Borrowing it

Nothing to install: this file belongs to David-Crty/databasement. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/David-Crty/databasement/main/.ai/skills/worktree-development/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/David-Crty/databasement

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for worktree-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/david-crty/databasement/worktree-development/github.svg)](https://agentmods.dev/skills/david-crty/databasement/worktree-development)
Your own site
<a href="https://agentmods.dev/skills/david-crty/databasement/worktree-development"><img src="https://agentmods.dev/badge/skills/david-crty/databasement/worktree-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for worktree-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/david-crty/databasement/worktree-development"><img src="https://agentmods.dev/badge/skills/david-crty/databasement/worktree-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,290 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.01290
Opus 5.5 $0.00046 $0.00516
Sonnet 5.5 $0.00023 $0.00258
Haiku 4.5 $0.00011 $0.00129

Measured 1mo ago against content hash c22c9dbe50c1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

worktree-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.ai/skills/worktree-development/SKILL.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Working in a worktree

The stack runs as one Compose project started from the main checkout, which bind-mounts the whole repo at /app. A worktree under .claude/worktrees/<name>/ is therefore already visible inside the container at /app/.claude/worktrees/<name>/. Nothing needs to be mounted, rebuilt or restarted.

Worktrees must live inside the repo. The Makefile maps the worktree to /app/<path relative to the repo>, so one created elsewhere (git worktree add ../x) points at a path the container does not have.

Always go through make

make test, make phpstan, make lint-fix and the rest work unchanged from a worktree: the COMPOSE_ROOT block at the top of the Makefile finds the Compose project through the shared git dir and runs in the worktree's container path.

Never run a bare docker compose there. docker-compose.yml is tracked, so the worktree has its own copy, and Compose silently addresses a different project named after the worktree directory, with no containers. Hence service "app" is not running about a container that is running fine. Starting that second project is no fix either: its host ports are already taken.

If the Makefile has no COMPOSE_ROOT block, the branch predates worktree support. Merge origin/main first.

Setting up a fresh worktree

  1. make install. vendor/ is gitignored and absent, so Pest, PHPStan and Pint have nothing to run. It takes a few minutes.
  2. make ide-helper. _ide_helper_models.php is gitignored and listed in PHPStan's scanFiles, so a standalone make phpstan dies with Scanned file .../_ide_helper_models.php does not exist until it exists.

Do not symlink vendor to the main checkout's. Composer's autoloader resolves __DIR__ through the symlink to /app/vendor, so app/ classes load from the main branch's copies and the tests run against code you did not write. The symptom is a missing enum case or method that is plainly there in the file you just edited.

Read the full file on GitHub · 115 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 115 lines · 114 tokens per session scan A c22c9dbe50c1

Subscribe to this mod's changes

worktree-development is a skill published in the GitHub repository David-Crty/databasement (2,606 stars, last pushed 2d ago), licensed MIT. It adds 114 tokens to every session and 1,290 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-30.

Related

worktree-development compared with skills from other repositories

worktree-development next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
worktree-developmentDavid-Crty/databasementSkill2.6k2d agoMITA114Claude Code, Codex
mysqlericrisco/rsc-harnessSkill5032d agoMITA116Claude Code, Codex
Drizzle ORM TestingPramodDutta/qaskillsSkill2453d agoMITA36Claude Code, Codex
use-gfs-mcpGuepard-Corp/gfsSkill163yesterdayMITA30Claude Code, Codex
mysql-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0A99Claude Code
use-gfs-cliGuepard-Corp/gfsSkill163yesterdayMITC33Claude Code, Codex
mysql-aiopsAIops-tools/MySQL-AIopsSkill07d agoMITA490Claude Code