From ac-git
Creates new git branch, initializes spec directory at YYYY/MM/branch-name/ with 000-backlog.md, commits it. Requires clean git state. Triggers on 'create branch' keywords.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ac-git:branchThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create a new git branch and its corresponding spec directory.
Create a new git branch and its corresponding spec directory.
Verify clean git state:
Validate branch name:
Create and checkout branch:
git checkout -b $ARGUMENTS
Resolve and create spec directory:
# Source spec resolver (plugin-aware)
source "${CLAUDE_PLUGIN_ROOT}/scripts/spec-resolver.sh"
# Resolve spec path (handles external vs local)
RELATIVE_PATH="$(date +%Y)/$(date +%m)/$ARGUMENTS/000-backlog.md"
SPEC_FILE=$(resolve_spec_path "$RELATIVE_PATH")
SPEC_DIR="${SPEC_FILE%/*}" # Pure bash dirname equivalent
# Create backlog file
touch "$SPEC_FILE"
.specs/specs/<YYYY>/<MM>/<branch-name>/specs/<YYYY>/<MM>/<branch-name>/000-backlog.md (empty file)Commit spec directory:
# Extract NNN and title for commit_spec_changes
# For backlog, use "000" and "backlog"
commit_spec_changes "$SPEC_FILE" "CREATE" "000" "backlog"
Confirm:
- Branch: $ARGUMENTS
- Spec dir: <resolved-path>
- Backlog: 000-backlog.md (committed)
When configuring external specs repository or modifying spec path resolution, read:
${CLAUDE_PLUGIN_ROOT}/scripts/spec-resolver.sh${CLAUDE_PLUGIN_ROOT}/scripts/external-specs.sh${CLAUDE_PLUGIN_ROOT}/scripts/lib/config-loader.shnpx claudepluginhub waterplanai/agentic-config --plugin ac-gitCreates or reuses Git branches and feature directories (changes/...). Parses input to decide branch/directory actions, outputs BRANCH_NAME, FEATURE_DIR, SPEC_FILE.
Creates a feature branch or worktree before writing artifacts. Detects the base branch, infers a branch name from context, and confirms with the user.
Creates git branches following Sentry naming conventions by analyzing changes and classifying branch types. Useful for standardizing branch creation.