Quickstart
This guide gets you from zero to a working LumenFlow setup in under 5 minutes.
Quick Setup (No CLI Required)
Section titled “Quick Setup (No CLI Required)”The fastest way to start using LumenFlow is with just the GitHub App.
-
Install the GitHub App
Go to the GitHub Marketplace and click Install. Select your repository and authorize.
-
Add configuration file
Create
.lumenflow.config.yamlin your repo root:version: 1project:name: my-projecttasksDir: docs/tasksstampsDir: .beacon/stampslanes:- id: Coredescription: Core application features- id: Opsdescription: DevOps and infrastructuregates:lint: npm run linttypecheck: npm run typechecktest: npm test -
Create the tasks directory
Create
docs/tasks/backlog.md:# Backlog## Ready- [WU-001 — My first task](wu/WU-001.yaml)## In Progress## Done -
Create your first Work Unit
Create
docs/tasks/wu/WU-001.yaml:id: WU-001title: My first tasklane: Coretype: featurestatus: readypriority: P2description: |A simple task to test LumenFlow.acceptance:- The feature workscode_paths:- src/ -
Open a Pull Request
Create a branch, make changes, and open a PR. The LumenFlow GitHub App will:
- Validate your WU spec
- Run your configured gates
- Add status checks to the PR
Full Setup with CLI
Section titled “Full Setup with CLI”For the complete experience with automated workflows:
Prerequisites
Section titled “Prerequisites”- Node.js 18+ or 22+
- pnpm (recommended) or npm
- A Git repository
-
Install the CLI
bash pnpm add -D @lumenflow/clibash npm install -D @lumenflow/cli -
Initialize LumenFlow
Terminal window npx lumenflow initThis creates:
.lumenflow.config.yaml– Your configurationdocs/tasks/backlog.md– Your task boarddocs/tasks/wu/– Where WU specs live.beacon/stamps/– Completion proofs
-
Add scripts to package.json
{"scripts": {"wu:create": "wu-create","wu:claim": "wu-claim","wu:done": "wu-done","gates": "gates"}} -
Create your first Work Unit
Terminal window npx wu-create \--id WU-001 \--title "Add user authentication" \--lane Core -
Claim and start work
Terminal window npx wu-claim --id WU-001 --lane Corecd worktrees/core-wu-001
CLI Workflow
Section titled “CLI Workflow”Once set up, your daily workflow is:
# 1. Claim a WU from the backlognpx wu-claim --id WU-XXX --lane Core
# 2. Work in the worktree (isolated branch)cd worktrees/core-wu-xxx# ... make changes ...
# 3. Run gates (checks your work)npx gates
# 4. Complete the WU (merges to main)cd ../..npx wu-done --id WU-XXXVerify It’s Working
Section titled “Verify It’s Working”After your first PR or wu:done, you should see:
- ✅ WU status changed to
done - ✅ Stamp file created in
.beacon/stamps/ - ✅ PR checks pass (if using GitHub App)
- ✅ Backlog updated
Sample Configuration
Section titled “Sample Configuration”Here’s a complete .lumenflow.config.yaml for reference:
version: 1
project: name: my-project tasksDir: docs/tasks stampsDir: .beacon/stamps
lanes: - id: Core description: Core application features gates: [lint, typecheck, test] - id: UI description: Frontend components gates: [lint, typecheck, test] - id: Ops description: DevOps and infrastructure gates: [lint]
gates: lint: npm run lint typecheck: npm run typecheck test: npm test build: npm run build
defaults: requiresReview: true exposure: backend-onlyNext Steps
Section titled “Next Steps”- Install GitHub App – PR validation and team enforcement
- Work Units – Deep dive on WUs
- Gates – Understanding quality gates
- Configuration – Full config reference