/virtual-team:git-practicesfrom virtual-team
Enforces Git conventions for branch naming, commit messages, and pull requests. Activates during any git workflow operation.
Ships in virtual-team. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
These are the conventions for all git operations in this project. Every branch, commit, and pull request follows these rules without exception.
Format: <type>/<ticket-id>
Types:
feat — New feature or capabilityfix — Bug fixrefactor — Code restructuring without behavior changechore — Maintenance, tooling, config, dependenciesExamples:
feat/CTR-12
fix/CTR-45
refactor/CTR-78
chore/CTR-99
Rules:
Format:
<type>(<scope>): <short message> [<ticket-id>]
<description>
Line 1 (subject):
type — Same as branch types, plus: docs (documentation), test (tests only)scope — One word indicating the module or layer affected (e.g., auth, api, database, ui, config)short message — Imperative mood, lowercase, no period, under 50 characters after the scopeticket-id — In square brackets at the endLine 2: Blank line (always)
Line 3+ (description):
Examples:
feat(document): implement search by text [CTR-12]
Added full-text search to the document module using the existing
search index. Follows the pattern established in the user search
feature.
fix(auth): prevent token refresh race condition [CTR-45]
Two concurrent requests could both trigger a token refresh,
causing one to fail with an invalid token error. Added a mutex
to ensure only one refresh happens at a time.
refactor(api): extract validation middleware [CTR-78]
Moved request validation logic from individual route handlers
into a shared middleware. Reduces duplication across 12 endpoints.
chore(config): update dependencies to latest stable [CTR-99]
Bumped all non-major dependencies. No breaking changes detected.
test(billing): add edge cases for prorated charges [CTR-33]
Covers: mid-cycle upgrade, downgrade on last day, zero-usage
month, and negative balance scenarios.
docs(api): update endpoint documentation for v2 routes [CTR-55]
Reflects the new response format introduced in the API v2 migration.
Rules:
feat/ branch should have feat() commits, with occasional test() or docs() commits for supporting work)Title format: Same as commit subject line:
<type>(<scope>): <short message> [<ticket-id>]
Body format:
## Summary
[2-4 sentences: what this PR does and why. Written for a reviewer
who hasn't read the ticket — they should understand the change
from this summary alone.]
## Changes
- [Concrete change 1 — what file/module and what was done]
- [Concrete change 2]
- [Concrete change 3]
## Testing
- [How this was verified — tests added, manual testing done]
- [Specific scenarios tested]
- [Edge cases covered]
## Ticket
[TICKET-ID](link to ticket if available)
Examples:
Title: feat(document): implement search by text [CTR-12]
Body:
## Summary
Adds full-text search to the document module, allowing users to
search documents by content rather than just title. Uses the existing
search index infrastructure established in user search.
## Changes
- Added search endpoint `GET /api/documents/search` with query parameter
- Created `DocumentSearchService` following the `UserSearchService` pattern
- Added search result highlighting in the response
- Added 8 unit tests covering: exact match, partial match, no results,
special characters, pagination, and sorting
## Testing
- Unit tests pass: `npm run test -- documents`
- Manual testing: verified search returns expected results with 500+ documents
- Tested edge cases: empty query, very long query, special characters
## Ticket
[CTR-12](https://tracker.example.com/CTR-12)
Rules:
Pull requests are created with the GitHub CLI (gh):
gh pr create --title "<title>" --body "<body>"
For drafts:
gh pr create --draft --title "<title>" --body "<body>"
When in doubt about the commit/branch type:
| If the change... | Type |
|---|---|
| Adds a new user-facing capability | feat |
| Fixes something that was broken | fix |
| Changes code structure without changing behavior | refactor |
| Updates build, CI, deps, config, tooling | chore |
| Only adds or updates documentation | docs |
| Only adds or updates tests | test |
If a commit includes both a feature and its tests, use feat — the tests support the feature. If a commit is purely adding missing tests for existing code, use test.
The scope should be a single word identifying the affected module or layer. Use names that match your project's directory structure or domain concepts:
Examples of good scopes:
auth, api, database, ui, config, billing, search, notificationsuser, document, task, project, teamAvoid:
app, code, misc, stuffuser-profile (use user or profile)userService (use user)We use git worktrees instead of switching branches. Each branch lives in its own directory inside the repo, allowing parallel work across multiple features.
Folder convention:
my-repo/ ← main checkout, always on the default branch
.claude/worktrees/ ← worktree directory (git-ignored)
feat-CTR-12/ ← one worktree per branch: branch name with "/" → "-"
fix-CTR-45/
/ replaced by - (feat/CTR-12 → feat-CTR-12). Only letters, digits, ., _ and -; max 64 chars.<type>/<ticket-id> (see Branch Naming)..claude/worktrees/ must be in the repo's .gitignore, or the main checkout sees every worktree as untracked files..env) are listed in stack.md under worktree_copy: and copied from the main checkout when the worktree is created:
worktree_copy:
- .env
Creating, removing, listing, migrating: use /virtual-team:worktree — it owns the exact steps for each host.
Rules:
<type>/<ticket-id>Stories within a feature can be grouped into execution tracks using backlog tags.
Backlog format with groups:
- [ ] S-010: Create user model | feature:FEAT-005 | group:1 | order:1 | service:be
- [ ] S-011: Add user API endpoints | feature:FEAT-005 | group:1 | order:2 | service:be
- [ ] S-012: Add user validation | feature:FEAT-005 | group:1 | order:3 | service:be
- [ ] S-013: User profile page | feature:FEAT-005 | group:2 | order:1 | service:fe
- [ ] S-014: User settings page | feature:FEAT-005 | group:2 | order:2 | service:fe
Tags:
feature:FEAT-NNN — parent featuregroup:N — execution group. Stories in the same group are sequential and go on one branch.order:N — execution order within the group. Processed in ascending order.service:xx — which service/repoBranch naming for groups:
feat/FEAT-005 (feature ID, not story ID)feat/S-010 (story ID)Group flow:
/virtual-team:implement FEAT-005 picks the first ready story, implements all stories sequentially/virtual-team:pr marks all stories as Done in one commitWhat SKILL.md sets; muted values are Claude Code's defaults
sonnetThree short reads, in order
npx claudepluginhub ovargas/virtual-team --plugin virtual-team51 skills in this plugin
/adr-conventionUse when creating, reviewing, or referencing architectural decision records — defines the ADR format, three-gate creation threshold, and local/hub flavors/architecture-vocabularyUse when evaluating architecture in tech-review — provides formal vocabulary (Depth, Seam, Leverage, Locality, Adapter, Pass-through) with diagnostic heuristics that produce precise, falsifiable findings instead of generic descriptions/backlogAbstract backlog operations interface. Load this skill before any backlog read/write operation — it defines the operations that all commands reference, delegating to the active implementation (local or external).Other plugins' skills for the same job