From ba
Initializes ba task tracking by installing ba CLI binary via Homebrew or Cargo if needed, running `ba init` to create .ba/ directory, and updating AGENTS.md.
npx claudepluginhub cloud-atlas-ai/ba --plugin ba# Initialize ba Initialize ba task tracking for this project. ## Step 1: Check current state - Check if `.ba/` already exists - if so, tell user it's already initialized and show status - Check if `ba` binary is available (`command -v ba`) - if yes, skip to Step 3 ## Step 2: Install ba binary **Detect available package managers:** - Homebrew: `command -v brew` - Cargo: `command -v cargo` OR `test -f ~/.cargo/bin/cargo` **Offer installation based on what's available:** If **Homebrew** available (preferred for macOS): If **Cargo** available: If **neither available**, offer to instal...
/initInitializes ba task tracking by installing ba CLI binary via Homebrew or Cargo if needed, running `ba init` to create .ba/ directory, and updating AGENTS.md.
/start-taskAssesses provided task complexity after pre-checks (active plans, priming, PRs, tools), confirms with user, and launches simple streamlined or full BEADS workflow.
/setupBootstraps a new project: initializes beads task tracking, discovers languages/tools, creates tasks for mise env, GitHub Actions CI, and gitleaks security.
/workAuto-classifies tasks from descriptions, folder paths, or issue identifiers (GitHub/Jira/Azure DevOps) and routes to workflow orchestrators. Resumes existing tasks.
/initInitializes guided UI design for dashboards, apps, and tools. Assesses intent, proposes styles with rationale, builds components, and offers to save patterns.
/initInitializes ArcKit project structure for enterprise architecture governance by creating projects/000-global/policies/ and external/ directories, checking for existing setup first.
Share bugs, ideas, or general feedback.
Initialize ba task tracking for this project.
.ba/ already exists - if so, tell user it's already initialized and show statusba binary is available (command -v ba) - if yes, skip to Step 3Detect available package managers:
command -v brewcommand -v cargo OR test -f ~/.cargo/bin/cargoOffer installation based on what's available:
If Homebrew available (preferred for macOS):
brew install cloud-atlas-ai/ba/ba
If Cargo available:
cargo install ba
# or if cargo not in PATH:
~/.cargo/bin/cargo install ba
If neither available, offer to install a package manager:
Install Homebrew (recommended for macOS):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Then: brew install cloud-atlas-ai/ba/ba
Install Rust (cross-platform):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Then restart shell and: cargo install ba
For local development (if user specifies a path):
cargo install --path /path/to/ba
# or: ~/.cargo/bin/cargo install --path /path/to/ba
After ba binary is available, run:
ba init
This creates .ba/ directory with:
config.json - Project config (version, ID prefix)issues.jsonl - Issue storageCheck if AGENTS.md exists in the project root. If not, create it with:
# AGENTS.md
This file provides guidance to Claude Code when working with code in this repository.
## Project Overview
[Add project-specific overview here]
## ba Task Tracking
This project uses ba for task tracking. You have the `$ba` skill available in Codex mode.
**Core workflow:**
1. Check ready queue: `ba ready` - shows open, unblocked issues
2. Claim an issue: `ba claim <id> --session $SESSION_ID`
3. Work on the issue
4. Complete: `ba finish <id>`
5. Or release: `ba release <id>` if not done
**Quick reference:**
- `ba list` - Show all open issues (excludes closed)
- `ba list --all` - Include closed issues
- `ba show <id>` - Show issue details
- `ba mine --session $SESSION_ID` - Show your claimed issues
- `ba create "title" -t task -p 1` - Create new issue
- `ba comment <id> "message"` - Add comment
**Ownership-based state machine:**
- `open` → claim → `in_progress` (you own it)
- `in_progress` → finish → `closed`
- `in_progress` → release → `open` (back to pool)
- Claiming a closed issue reopens it automatically
**Issue types:** task, epic, refactor, spike
**Priorities:** 0 (critical) to 4 (backlog), default 2
See README.md for full details.
If AGENTS.md already exists, append the ba section:
# Quoted heredoc prevents $SESSION_ID expansion in AGENTS.md
cat >> AGENTS.md << 'EOF'
## ba Task Tracking
This project uses ba for task tracking. You have the `$ba` skill available in Codex mode.
**Core workflow:**
1. Check ready queue: `ba ready` - shows open, unblocked issues
2. Claim an issue: `ba claim <id> --session $SESSION_ID`
3. Work on the issue
4. Complete: `ba finish <id>`
5. Or release: `ba release <id>` if not done
**Quick reference:**
- `ba list` - Show all open issues (excludes closed)
- `ba list --all` - Include closed issues
- `ba show <id>` - Show issue details
- `ba mine --session $SESSION_ID` - Show your claimed issues
- `ba create "title" -t task -p 1` - Create new issue
- `ba comment <id> "message"` - Add comment
**Ownership-based state machine:**
- `open` → claim → `in_progress` (you own it)
- `in_progress` → finish → `closed`
- `in_progress` → release → `open` (back to pool)
- Claiming a closed issue reopens it automatically
**Issue types:** task, epic, refactor, spike
**Priorities:** 0 (critical) to 4 (backlog), default 2
See README.md for full details.
EOF
Install the $ba Codex skill files to enable ba commands in Claude Code sessions:
# Create skill directory
SKILL_DIR="$HOME/.codex/skills/ba"
mkdir -p "$SKILL_DIR"
echo "Installing ba Codex skill..."
if curl -fsSL -o "$SKILL_DIR/SKILL.md" \
"https://raw.githubusercontent.com/cloud-atlas-ai/ba/master/codex-skill/SKILL.md" && \
curl -fsSL -o "$SKILL_DIR/AGENTS.md.snippet" \
"https://raw.githubusercontent.com/cloud-atlas-ai/ba/master/codex-skill/AGENTS.md.snippet"; then
echo "✓ Codex skill installed to $SKILL_DIR"
echo ""
echo "The \$ba skill is now available for:"
echo " \$ba ready - Show available issues"
echo " \$ba claim - Claim an issue"
echo " \$ba mine - Show your claimed issues"
echo " \$ba finish - Complete an issue"
else
echo "⚠️ Failed to download Codex skill files"
echo "You can manually install from: https://github.com/cloud-atlas-ai/ba/tree/master/codex-skill"
fi
Check if SESSION_ID is available for ownership operations:
if [ -z "$SESSION_ID" ]; then
echo ""
echo "⚠️ SESSION_ID not set"
echo "Claude Code provides this automatically in active sessions."
echo "To set manually: export SESSION_ID=\$(uuidgen | tr '[:upper:]' '[:lower:]')"
else
echo ""
echo "✓ SESSION_ID is set: $SESSION_ID"
fi
Tell user:
✓ ba initialized and ready
Created .ba/ directory with project config
Installed $ba Codex skill to ~/.codex/skills/ba/
Added ba guidance to AGENTS.md
Quick start:
ba create "Your first task" -t task
ba list
ba claim <id> --session $SESSION_ID
Use $ba commands in Codex mode:
$ba ready, $ba claim <id>, $ba finish <id>
Be concise. Detect what's available, offer appropriate options, guide user through setup.