quickstart
/quickstart — Get Started
Purpose: Walk a new user through their first Research-Plan-Implement cycle on their actual codebase. Under 10 minutes to first value.
YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.
CLI dependencies: None required. All external CLIs (bd, ao, gt) are optional enhancements.
References (load as needed):
references/getting-started.md— Detailed first-time walkthroughreferences/troubleshooting.md— Common issues and fixes
Execution Steps
Step 0: Pre-flight
Check environment before starting. Failures here are informational, not blocking.
# 1. Git repo check
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo "GIT_REPO=true"
else
echo "GIT_REPO=false"
echo "Not a git repo. Some features (recent changes, vibe) need git."
echo "Options: run 'git init' to enable full features, or continue in manual mode."
fi
# 2. ao CLI availability
if command -v ao &>/dev/null; then
echo "AO_CLI=true"
ao status 2>/dev/null | head -3
else
echo "AO_CLI=false — optional, enables persistent knowledge flywheel"
fi
# 3. .agents/ directory
if [ -d ".agents" ]; then
echo "AGENTS_DIR=exists"
elif mkdir -p .agents 2>/dev/null; then
echo "AGENTS_DIR=created"
rmdir .agents 2>/dev/null # clean up test dir
else
echo "AGENTS_DIR=no_write — cannot create .agents/ directory (check permissions)"
fi
# 4. Claude Code version (informational)
claude --version 2>/dev/null || echo "Claude Code version: unknown"
If GIT_REPO=false: Continue the walkthrough but skip git-dependent steps (Steps 3, 5). Replace them with file-browsing equivalents. Tell the user which steps were adapted and why.
Step 1: Detect Project
# Detect language/framework (monorepo-friendly)
# - Uses a shallow scan to avoid walking giant repos
# - Prints the path that triggered detection (helps when you're in the wrong subdir)
ROOT="."
GIT_ROOT=""
if git rev-parse --show-toplevel >/dev/null 2>&1; then
GIT_ROOT="$(git rev-parse --show-toplevel)"
ROOT="$GIT_ROOT"
fi
# Pretty-print paths relative to repo root when possible.
relpath() {
local p="$1"
if [[ -n "$GIT_ROOT" ]]; then
echo "${p#"$GIT_ROOT"/}"
return
fi
echo "${p#./}"
}
find_first() {
# Usage: find_first <name-pattern> (e.g., "go.mod" or "*.py")
find "$ROOT" -maxdepth 4 \
-type d \( -name .git -o -name .agents -o -name .beads -o -name node_modules \) -prune \
-o -type f -name "$1" -print -quit 2>/dev/null
}
python="$(find_first pyproject.toml)"
[[ -n "$python" ]] || python="$(find_first requirements.txt)"
[[ -n "$python" ]] || python="$(find_first setup.py)"
[[ -n "$python" ]] || python="$(find_first '*.py')"
[[ -n "$python" ]] && echo "Python detected ($(relpath "$python"))"
go="$(find_first go.mod)"
[[ -n "$go" ]] || go="$(find_first '*.go')"
[[ -n "$go" ]] && echo "Go detected ($(relpath "$go"))"
ts="$(find_first tsconfig.json)"
[[ -n "$ts" ]] || ts="$(find_first package.json)"
[[ -n "$ts" ]] || ts="$(find_first '*.ts')"
[[ -n "$ts" ]] || ts="$(find_first '*.tsx')"
[[ -n "$ts" ]] && echo "TypeScript detected ($(relpath "$ts"))"
rust="$(find_first Cargo.toml)"
[[ -n "$rust" ]] || rust="$(find_first '*.rs')"
[[ -n "$rust" ]] && echo "Rust detected ($(relpath "$rust"))"
java="$(find_first pom.xml)"
[[ -n "$java" ]] || java="$(find_first build.gradle)"
[[ -n "$java" ]] || java="$(find_first '*.java')"
[[ -n "$java" ]] && echo "Java detected ($(relpath "$java"))"
infra="$(find_first Dockerfile)"
[[ -n "$infra" ]] || infra="$(find_first Makefile)"
[[ -n "$infra" ]] || infra="$(find_first '*.sh')"
[[ -n "$infra" ]] && echo "Shell/Infra detected ($(relpath "$infra"))"
If no language detected: Tell the user: "I couldn't auto-detect a language. What is the primary language of this project? (Python, Go, TypeScript, Rust, Java, Shell, or other)" Then continue with whatever they choose.
# Check git state (skip if GIT_REPO=false)
git log --oneline -5 2>/dev/null
git diff --stat HEAD~3 2>/dev/null | tail -5
# Check for existing workflow setup
ls .agents/ 2>/dev/null && echo "Workflow artifacts found"
ls .beads/ 2>/dev/null && echo "Beads issue tracking found"
# Repo-specific instructions (optional but high-signal)
test -f AGENTS.md && echo "AGENTS.md found (repo-specific workflow)"
Step 2: Welcome and Orient
Present this to the user:
Welcome! Here are the 3 skills that matter most:
/research — Deep dive into your codebase to understand it
/plan — Break a goal into trackable issues
/vibe — Validate code before shipping
Let's do a quick tour using YOUR code.
Step 3: Mini Research
Run a focused research pass on the most recently changed area:
# Find what changed recently (dirty tree first; fall back to last commit if clean)
if git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
STAGED="$(git diff --name-only --cached 2>/dev/null || true)"
UNSTAGED="$(git diff --name-only 2>/dev/null || true)"
UNTRACKED="$(git ls-files --others --exclude-standard 2>/dev/null || true)"
RECENT_FILES="$(printf "%s\n%s\n%s\n" "$STAGED" "$UNSTAGED" "$UNTRACKED" | sed '/^$/d' | sort -u)"
# Clean repo: fall back to last commit, then fall back to "some tracked files"
if [[ -z "$RECENT_FILES" ]] && git rev-parse --verify HEAD >/dev/null 2>&1; then
RECENT_FILES="$(git show --name-only --pretty="" HEAD 2>/dev/null | sed '/^$/d')"
fi
[[ -z "$RECENT_FILES" ]] && RECENT_FILES="$(git ls-files 2>/dev/null | head -50)"
# Best-effort noise filtering; keep unfiltered list if filtering drops everything
FILTERED="$(echo "$RECENT_FILES" | grep -Ev '^(\\.agents/|cli/\\.agents/|\\.beads/)' || true)"
[[ -n "$FILTERED" ]] && RECENT_FILES="$FILTERED"
echo "$RECENT_FILES" | head -10
else
echo "Not a git repo; skipping recent-change detection."
fi
Read 2-3 of the most recently changed files. Provide a brief summary:
- What area of the codebase is active
- What patterns are used
- One observation about code quality
Tell the user: "This is what /research does — deep exploration of your codebase. Use it before planning any significant work."
Step 4: Mini Plan
Based on the research, suggest ONE concrete improvement:
Based on what I found, here's a task we could plan:
"<specific improvement based on what was found>"
This is what /plan does — decomposes goals into trackable issues with
dependencies and waves.
Step 5: Mini Vibe Check
Run a quick validation on recent changes:
# Use the same RECENT_FILES list from Step 3.
# If you didn't run Step 3 in the same shell, re-run the Step 3 snippet to rebuild RECENT_FILES.
if [[ -n "${RECENT_FILES:-}" ]]; then
echo "$RECENT_FILES" | head -10
else
echo "RECENT_FILES is empty; re-run the Step 3 snippet to rebuild it."
fi
Perform a brief inline review (similar to /council --quick) of the most recent changes:
- Check for obvious issues
- Note any complexity concerns
- Provide a quick PASS/WARN/FAIL assessment
Tell the user: "This is what /vibe does — complexity analysis + multi-model council review. Use it before committing significant changes."
Step 6: Show Available Tools
You've just completed a mini RPI cycle:
Research → Plan → Validate
CORE SKILLS (start here)
/research - explore and understand code
/plan - break down a goal into tasks
/implement - execute a single task
/vibe - review code quality
/status - see what you're working on
For the complete catalog, use the Read tool on skills/quickstart/references/full-catalog.md.
Step 7: The Path Forward
Present the progression from standalone skills to hands-free improvement:
When you're comfortable with individual skills:
/rpi "goal" ← full lifecycle: research → plan → validate → ship → learn
One command does everything you just did, end to end.
/product ← define your mission, personas, and value props
Creates PRODUCT.md — the identity your agent works from.
/goals generate ← scan your repo and propose fitness goals
Mechanically verifiable checks in GOALS.yaml.
/evolve ← measure goals, fix the worst gap, compound
Hands-free improvement loop. Runs /rpi per gap,
auto-reverts regressions, suggests next work.
The path:
/quickstart → individual skills → /rpi → /product → /goals → /evolve
Then suggest the most useful immediate next action based on project state:
| State | Suggestion |
|---|---|
| Recent commits, no tests | "Try /vibe recent to check your latest changes" |
| Open issues/TODOs | "Try /plan to decompose a goal into trackable issues" |
| Complex codebase, new to it | "Try /research <area> to understand a specific area" |
| Bug reports or failures | "Try /bug-hunt to investigate systematically" |
| Clean state, looking for work | "Try /rpi \"<improvement from mini-research>\" to run the full lifecycle" |
Graduation hints (state-aware, based on pre-flight + detection):
# Gather state from pre-flight (Step 0)
command -v ao &>/dev/null && AO_AVAILABLE=true || AO_AVAILABLE=false
command -v bd &>/dev/null && BD_AVAILABLE=true || BD_AVAILABLE=false
command -v codex &>/dev/null && CODEX_AVAILABLE=true || CODEX_AVAILABLE=false
ls .agents/ &>/dev/null && AGENTS_DIR=true || AGENTS_DIR=false
ls .beads/ &>/dev/null && BEADS_DIR=true || BEADS_DIR=false
git rev-parse --is-inside-work-tree &>/dev/null && GIT_REPO=true || GIT_REPO=false
Present ONLY the row matching current state (do not show all tiers):
| Current State | Tier | Next Step |
|---|---|---|
| No git repo | — | "Initialize git with git init to unlock change tracking, /vibe, and full RPI workflow." |
Git repo, no ao, no .agents/ |
Tier 0 | "You're at Tier 0 — skills work standalone. When you want learnings to persist across sessions, install the ao CLI: brew tap boshu2/agentops https://github.com/boshu2/homebrew-agentops && brew install agentops && ao init --hooks" |
ao installed, no .agents/ yet |
Tier 0+ | "Run ao init to create the .agents/ directory and .gitignore. Add --hooks to also install flywheel hooks (SessionStart + Stop). Your knowledge flywheel starts capturing learnings automatically." |
ao + .agents/, no beads |
Tier 1 | "Knowledge flywheel is active. When you have multi-issue epics, add beads for issue tracking: brew install boshu2/agentops/beads && bd init --prefix <your-prefix>" |
ao + beads, no Codex |
Tier 2 | "Full RPI stack. Start with repo instructions (check AGENTS.md if present), then try bd ready (find work) or /crank (run an epic)." |
ao + beads + Codex |
Tier 2+ | "Full stack with cross-vendor. Try /council --mixed for Claude + Codex consensus, or /vibe --mixed for cross-vendor code review." |
Examples
First-Time User in a Go Project
User says: /quickstart
What happens:
- Agent runs pre-flight checks (git repo: yes, ao CLI: no, .agents/: no)
- Agent detects Go (finds go.mod at root)
- Agent reads recently changed files (auth.go, config.go from last commit)
- Agent provides mini-research summary: "Active area: authentication. Patterns: standard library HTTP handlers. Observation: missing error wrapping in 3 locations."
- Agent suggests improvement: "Add error wrapping to auth.go error returns"
- Agent runs mini-vibe on auth.go: WARN for missing error context
- Agent displays skill menu and next steps
- Agent shows Tier 0 graduation hint: "Install ao CLI to enable knowledge flywheel"
Result: User completes mini RPI cycle in under 10 minutes, sees real value on their code.
Non-Git Repository
User says: /quickstart (in a directory without .git/)
What happens:
- Agent runs pre-flight, detects GIT_REPO=false
- Agent continues walkthrough but skips git-dependent steps (recent commits, vibe)
- Agent detects Python (finds pyproject.toml)
- Agent browses recent files using
ls -ltinstead ofgit diff - Agent suggests: "Initialize git with
git initto unlock change tracking and full RPI workflow" - Agent completes quickstart with adapted steps
Result: Quickstart works without git, user sees value and learns what git unlocks.
Monorepo with Multiple Languages
User says: /quickstart (in a monorepo with Go + TypeScript)
What happens:
- Agent detects both Go (go.mod) and TypeScript (tsconfig.json) with relative paths
- Agent displays: "Go detected (backend/go.mod), TypeScript detected (frontend/tsconfig.json)"
- Agent asks: "Which area should we explore?" (backend or frontend)
- User chooses backend. Agent focuses mini-research on Go code
- Agent completes quickstart scoped to selected area
Result: Quickstart adapts to monorepo structure, user picks focus area.
Troubleshooting
| Problem | Cause | Solution |
|---|---|---|
| "No language detected" | Shallow scan missed project files or in wrong directory | Change to project root directory or manually specify language when prompted |
| "Cannot create .agents/ directory" | Permissions issue or read-only filesystem | Check directory permissions or continue without persistent artifacts (functionality reduced) |
| Pre-flight shows all "false" | Running in minimal environment or empty directory | Verify you're in the correct project directory with code files |
| Mini-vibe step skipped | GIT_REPO=false or no recent changes | Expected behavior for non-git repos or clean trees. Vibe requires git history. |
| Graduation hint shows wrong tier | Detection logic using cached state | Re-run pre-flight checks in Step 0 to refresh environment state |
See Also
skills/vibe/SKILL.md— Code validationskills/research/SKILL.md— Codebase explorationskills/plan/SKILL.md— Epic decomposition