with one click
trunk-based-dev
// Trunk-based development practices with short-lived branches, feature flags, small PRs, and continuous integration. Enforced via hooks and agents.
// Trunk-based development practices with short-lived branches, feature flags, small PRs, and continuous integration. Enforced via hooks and agents.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | trunk-based-dev |
| description | Trunk-based development practices with short-lived branches, feature flags, small PRs, and continuous integration. Enforced via hooks and agents. |
| user-invocable | false |
!git branch --show-current 2>/dev/null || echo "Not on a branch."
This skill documents the trunk-based development practices enforced by blueprint-dev. TBD is a source-control branching model where developers collaborate on code in a single branch called "trunk" (main/master), resist any pressure to create other long-lived development branches, and use feature flags to manage incomplete features.
feature/{ticket-or-slug}The PreToolUse hook on Bash commands detects:
feature/ → warnsThe trunk-guard agent runs during /review and /ship:
CLAUDE.md should document TBD rules. The claude-md-advisor suggests TBD sections when trunk-based-dev is detected as the workflow.
See references/flag-patterns.md for stack-specific feature flag patterns.
| Feature Size | Split Strategy |
|---|---|
| Small (<200 LOC) | Single PR |
| Medium (200-600 LOC) | 2 PRs: backend + frontend |
| Large (600+ LOC) | 3+ PRs: data model → backend → frontend → integration |
A/B variants work naturally with TBD: