Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/WaterplanAI/agentic-confignpx agentmods add skills/waterplanai/agentic-config/ac-git-branchWrote 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.
[](https://agentmods.dev/skills/waterplanai/agentic-config/ac-git-branch)<a href="https://agentmods.dev/skills/waterplanai/agentic-config/ac-git-branch"><img src="https://agentmods.dev/badge/skills/waterplanai/agentic-config/ac-git-branch/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.
<a href="https://agentmods.dev/skills/waterplanai/agentic-config/ac-git-branch"><img src="https://agentmods.dev/badge/skills/waterplanai/agentic-config/ac-git-branch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00030 | $0.00503 |
| Opus 5 | $0.00015 | $0.00251 |
| Sonnet 5 | $0.00006 | $0.00101 |
| Haiku 4.5 | $0.00003 | $0.00050 |
Grade A, and why
ac-git-branch 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 9d 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.
What it actually says
Create Branch with Spec Directory
Create a new git branch and its corresponding spec directory.
Pre-Flight Checks
-
Verify clean git state:
- If dirty: STOP and list uncommitted changes
-
Validate branch name:
- Must be provided as argument
- If empty: STOP with "Branch name required"
Execution
-
Create and checkout branch:
git checkout -b $ARGUMENTS -
Resolve and create spec directory:
# Source the bundled spec resolver from this pi package source "../../assets/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"- Path: Auto-resolved based on .env configuration
- External:
.specs/specs/<YYYY>/<MM>/<branch-name>/ - Local:
specs/<YYYY>/<MM>/<branch-name>/
- External:
- Creates
000-backlog.md(empty file)
- Path: Auto-resolved based on .env configuration
-
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"- CRITICAL: Must commit BEFORE creating worktree, otherwise spec files are lost
-
Confirm:
- Branch: $ARGUMENTS - Spec dir: <resolved-path> - Backlog: 000-backlog.md (committed)
Conditional Documentation
When configuring external specs repository or modifying spec path resolution, read:
../../assets/scripts/spec-resolver.sh../../assets/scripts/external-specs.sh../../assets/scripts/lib/config-loader.sh
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.
- 9d ago First seen · 69 lines · 30 tokens per session scan A 5e5685aad64c
ac-git-branch is a skill published in the GitHub repository WaterplanAI/agentic-config (30 stars, last pushed 1mo ago), licensed MIT. It adds 30 tokens to every session and 503 once invoked, about $0.0002 per session on Opus 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-08-30.
Other skills, from other repositories
share-a-library
Use when a managed library is ready to publish to GitHub and hand to teammates as an install command. Run the GitHub publishing steps, then return the exact shareable install command.
generate-release-notes
Generate categorized release notes from any source (GitHub, Linear, Jira, or manual input) with optional publishing.
git-flow-pr
Executes the full PR-driven development workflow: create an isolated feature branch from the current work, commit all staged changes, rebase cleanly onto the selected base branch (skipping any ancestor commits already merged), push the branch, and open a GitHub pull request linked to a related issue. Includes guidance…
new-gh-issue-orchestration
Orchestrates a GitHub-issue-driven delivery workflow from issue intake to PR creation using reviewer-first then worker execution. Invoked when the user provides a GitHub issue link/number and asks to start end-to-end delivery.
git-worktree-workspaces
Sets up and uses Git worktrees for parallel task workspaces in the same repository clone, including safe cleanup of local worktrees. Invoked when the user asks to work on multiple branches at once, isolate tasks without extra clones, or create/remove worktrees.
archive
Finalize a completed change — sync its specs into canonical, then move it to the archive. Use when a change is done and merged-ready: "archive the change", "finalize X", "close out the change". Part of speclaw's lawbook module (draft → build → sync → archive). Archiving belongs in the same PR that implements the…