Skip to content

Latest commit

 

History

History
103 lines (79 loc) · 2.8 KB

File metadata and controls

103 lines (79 loc) · 2.8 KB

Getting Started

Prerequisites

# Claude Code (native installer)
curl -fsSL https://claude.ai/install.sh | bash

# Beads (task tracking)
npm install -g @beads/bd
# or: brew install beads

# OpenSpec
npm install -g @fission-ai/openspec@latest

Setup

From template (recommended)

./setup.sh my-project-name
cd my-project-name

This copies the template, initializes git, and sets up beads tracking in one step.

Manual setup

cp -r project-template my-project-name
cd my-project-name
rm -rf .git
git init
bd init
bd hooks install          # Auto-syncs JSONL on commit/pull
cp .env.example .env      # Edit with your values

Then start Claude Code

claude
> /brain-dump

Share your project idea. Claude will populate openspec/project.md, create feature specs in openspec/specs/, fill out project docs, and create beads issues linked to each spec.

Daily Workflow

1. CHECK      bd list --json / bd ready --json
2. START      bd create "feat: description" -p 1 --json
              bd update <id> --status in_progress
3. WORK       claude  (AI-assisted development)
4. CHECKPOINT git add [files] && git commit -m "checkpoint: msg (bd-xxx)"
              bd sync
5. TEST       npm test
6. FINISH     bd close <id> --reason "Completed" --json
              bd sync && git push

Slash Commands (in Claude Code)

Command Purpose
/start-bead Create/pick a beads issue and start work
/complete-bead Run tests, commit, close issue, sync
/checkpoint Stage, commit, sync current progress
/status Show issues, git state, ready tasks
/plan Plan before implementing (waits for approval)
/tdd Test-driven development cycle
/code-review Security and quality review
/brain-dump Turn unstructured ideas into docs

Beads Commands Reference

Command Purpose
bd create "msg" -p N --json Create issue (priority 1-4)
bd update <id> --status in_progress Mark issue active
bd close <id> --reason "msg" --json Close issue
bd list --json List all issues
bd ready --json Show unblocked issues
bd sync Sync database with git
bd update <id> --notes "msg" Add notes to issue
bd show <id> --json Show issue details

Never use bd edit — it opens an interactive editor. Use bd update with flags.

Token Efficiency Tips

  • Reference files by path: src/services/auth.ts:45-60
  • Small, focused requests — one thing at a time
  • Break large tasks into steps
  • Use @file syntax in Claude Code to reference files

Documentation

  • CLAUDE.md — Agent instructions (auto-loaded)
  • docs/SPEC.md — Project specification
  • docs/DECISIONS.md — Architecture decisions
  • openspec/specs/ — Feature specifications