Structured Chaos
LumenFlow turns a product brief into executable work units. No more “where do I start?” — the roadmap is generated.
This guide walks through building SpendSense, a personal finance categorizer, from initial idea to deployed app. You’ll see how LumenFlow structures AI-assisted development, enabling any coding agent to understand and execute your project.
SpendSense — a local-first personal finance app that:
This isn’t a trivial example. Building it requires research into transaction categorization, financial data patterns, and local-first architecture — perfect for showcasing LumenFlow’s structured approach.
Before writing code, validate your idea and make key technical decisions. Use your preferred AI tool (Claude, GPT, etc.) for market research and technical discovery.
Your research crystallizes into a product brief — the source of truth for everything that follows.
Create your project and initialize LumenFlow.
When create-next-app fails because your directory is not empty, use a temp directory:
| File | You Use It For | Agents Use It For |
|---|---|---|
AGENTS.md | Reference docs | Entry point — first file any agent reads |
CLAUDE.md | Reference docs | Client-specific instructions, skills, hooks |
.lumenflow.config.yaml | Configure lanes, gates | Lane definitions, gate commands to run |
.lumenflow/constraints.md | Understand rules | Non-negotiable constraints to follow |
docs/.../backlog.md | Track work visually | Find ready WUs to claim |
This is the magic moment. Drop PRODUCT_BRIEF.md into your project and ask your agent:
“Read PRODUCT_BRIEF.md and create a LumenFlow initiative with WUs organized into phases: Foundation, Categorization Engine, UI, Polish.”
Reads PRODUCT_BRIEF.md — extracts requirements, technical decisions, and MVP scope
Creates an Initiative — the container for related work
Generates Work Units — each with full specs the agent (or another agent) can execute
| WU | Title | Lane | Phase |
|---|---|---|---|
| WU-001 | SQLite schema for transactions | Framework: Core | 1 |
| WU-002 | CSV parser for bank formats | Framework: Core | 1 |
| WU-003 | Rule-based categorization engine | Framework: Core | 2 |
| WU-004 | Category learning from corrections | Framework: Core | 2 |
| WU-005 | Transaction list with filters | Experience: UI | 3 |
| WU-006 | Monthly spending dashboard | Experience: UI | 3 |
| WU-007 | Import flow wizard | Experience: UI | 3 |
| WU-008 | Error handling and edge cases | Framework: Core | 4 |
| WU-009 | Deploy to Vercel | Operations: Infra | 4 |
Now execute the roadmap. You can work WU-by-WU, or orchestrate parallel execution across lanes.
Worktree created — isolated git branch, no conflicts with main
Agent reads WU YAML — knows exactly what to build, where to put it
Loads relevant skills — /skill tdd-workflow for test-first approach
Implements against acceptance criteria — each criterion becomes a checklist item
Runs gates — pnpm wu:prep --id WU-001 validates format, lint, types, tests
Completes — pnpm wu:done --id WU-001 merges to main, creates completion stamp
For larger initiatives, orchestrate multiple agents working in parallel:
Output:
Agents don’t work in isolation. The memory layer enables coordination:
Once all WUs complete, verify and deploy:
From the agent’s perspective, here’s what it consumed and how:
| What Agent Read | What Agent Did |
|---|---|
AGENTS.md | Understood project workflow, found entry points |
PRODUCT_BRIEF.md | Extracted requirements, generated WUs |
WU-001.yaml | Knew scope, paths, acceptance criteria |
.lumenflow.config.yaml | Understood lanes, ran correct gate commands |
/skill tdd-workflow | Applied test-first methodology |
pnpm wu:prep output | Fixed issues before completion |
.lumenflow/stamps/ | Verified dependencies before proceeding |
This is the power of LumenFlow: structured context that any agent can consume.
Structured Chaos
LumenFlow turns a product brief into executable work units. No more “where do I start?” — the roadmap is generated.
Agent-Native
AGENTS.md + WU YAML = agents understand your project without special prompting. Works with any AI coding assistant.
Parallel by Default
Worktree isolation + lane separation = safe concurrent execution. Multiple agents, no conflicts.
Gates as Guardrails
Agents can’t merge broken code. Format, lint, typecheck, and tests run before completion.
Coordination Built-In
Memory layer + stamps = agents know what’s done and what’s blocked. Handoffs happen automatically.