feat: formalize branch naming convention {issue-num}-{kebab-slug} #179
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/claude-custom!179
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "129-enforce-branch-naming-convention"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Formalizes the
{issue-number}-{kebab-case-purpose}branch naming convention that 6+ hooks already depend on. Adds documentation across agent profiles and a soft-validation PostToolUse hook that warns on non-compliant branch names without blocking.Changes
hooks/validate-branch-name.sh-- new PostToolUse hook (soft warn, not block) that checks branch names fromcreate_issue_and_branchmatch the{issue-num}-{kebab-slug}conventionsettings.json-- registersvalidate-branch-name.shalongsidelabel-on-branch.shon thecreate_issue_and_branchmatcheragents/dev.md-- adds "Branch Naming Convention" section documenting the format, examples, and the 6 hooks that depend on it; adds constraint bulletagents/qa.md-- updates SOP compliance checklist from vague "Branch named after issue number?" to explicit convention referencehooks/inject-subagent-context.sh-- adds branch naming convention to dev agent context injectionhooks/check-issue.sh-- updates comments to reference the formal convention and distinguish primary vs legacy patternsschemas/agent-spawn-requirements.json-- adds convention reference to dev agent type descriptiontests/test_validate_branch_name.sh-- 14 test cases covering valid names, missing prefix, wrong number, empty slug, non-kebab-case, missing fields, and result text fallbackTest Plan
bash tests/test_validate_branch_name.sh-- 14/14 passbash tests/test_block_groupme_send.sh-- 21/21 pass (no regressions)jq . settings.jsonandjq . schemas/agent-spawn-requirements.json-- valid JSONReview Checklist
Related Notes
agent-spawn-conventionsandconvention-agent-designupdates separately.Related
Closes #129