Workflows
How keywords chain together into complete operations. Single words are charms. Sequences are rituals.
The full pipeline — idea to customer's hands
ideideaStructured GitHub issue with acceptance criteria
spespecData model + file plan + human approval
schschemaPrisma model + migration + Zod validation
codcodeServer actions with auth + tenant isolation
wirwirePages + forms + tables + i18n
checheckType-check + build + visual verify
shishipCommit + deploy to production
watwatchHealth check + close issue
Begin your day
devdevServer rises, Chrome opens
codcodeWrite your changes
buibuildVerify everything compiles
Patch and ship fast
fixfixAuto-repair errors
buibuildVerify clean
quiquickFast commit + push
User reports issue → auto-fix → close
repreportFind open report issues
seeseeScreenshot the reported page
debdebugConsole errors, network failures
fixfixEdit minimum code needed
buibuildVerify no regressions
puspushCommit + push to main
Figma to production
figfigmaGet design context
comcomponentCreate React component
atoatomCompose primitives
temtemplateAssemble layout
bloblockAdd business logic
Full audit before release
testestRun all tests
secsecurityOWASP Top 10
perperformanceCore Web Vitals
checheckBuild + visual verify
Reuse existing work
clocloneFetch from source
extextendAdapt to project
buibuildVerify integration
testestConfirm behavior
Development Workflows
Feature Development
Say a keyword, the orchestration agent routes, specialized agents execute, output code.
"saas billing"
→ orchestration agent
→ prisma agent (schema) + block agent (UI) + stripe MCP
→ Complete billing feature with all layers
Dev Server (dev)
- Hook: Kill port 3000
- Run:
pnpm dev - Hook: Open Chrome to localhost:3000
- Hook: Auto-format on every file change
Build and Validate (build)
- Run
pnpm build - Scan TypeScript errors
- Auto-fix lint + type errors
- Re-build and verify clean
Commit and Push (push / quick)
- Lint check
- Auto-fix issues
- Git add + conventional commit
- Git push to remote
Deployment (deploy / ship)
- Build verification
- Vercel MCP deploy
- Poll status
- Retry up to 5 times
- Report deployment URL
Testing (test [target])
- Read target code
- Generate Vitest + Playwright tests
- Execute test suite
- Report coverage + results
Handover QA (handover [block])
5-pass testing on both localhost and production:
| Pass | Tests |
|---|---|
| 1. Bug-free | Navigate every page, click everything, check console |
| 2. Flow | Complete user journeys, form submissions, data persistence |
| 3. Responsive | 375px (mobile), 768px (tablet), 1440px (desktop) |
| 4. RTL + i18n | Arabic layout mirrors correctly, no LTR remnants |
| 5. Translation | No hardcoded English, no missing dictionary keys |
Fix, re-test, loop until all 5 passes clean.
Report to Fix (report [repo])
User submits "Report an Issue" dialog → GitHub issue created with report label → Claude Code auto-fixes.
User clicks "Report an issue" (footer link on every page)
↓
GitHub Issue created (label: report)
↓
Session start: Claude checks for open report issues
↓
┌─────────────────────────┐
│ 1. READ │ gh issue view → page URL + description
│ 2. LOCATE │ URL → route dir + component dir
│ 3. CONTEXT │ CLAUDE.md, README.md, ISSUE.md
│ 4. VALIDATE │ Real bug? Planned? Safe to fix?
│ 5. SEE + DEBUG │ Screenshot + console errors
│ 6. IDENTIFY │ Root cause from report + visual + errors
│ 7. FIX │ Minimum code change
│ 8. BUILD │ pnpm build — no regressions
│ 9. PUSH │ fix: commit + push to main
│ 10. VERIFY │ See page again after deploy
│ 11. CLOSE │ Close issue with fix summary
└─────────────────────────┘
Trigger: say report (all repos) or report hogwarts (one repo).
Automatic: every session checks for open report issues at start.
Escalation: cannot reproduce → cannot-reproduce label. Needs judgment → needs-human label.
URL to directory mapping (hogwarts example):
| URL | Route Dir | Component Dir |
|---|---|---|
/{lang}/dashboard | app/[lang]/(saas-dashboard)/ | components/saas-dashboard/ |
/{lang} (public) | app/[lang]/(saas-marketing)/ | components/saas-marketing/ |
{subdomain}/dashboard/* | app/[lang]/s/[subdomain]/(school-dashboard)/ | components/school-dashboard/ |
{subdomain} (public) | app/[lang]/s/[subdomain]/(school-marketing)/ | components/school-marketing/ |
Component Creation
Atom (atom [name])
Check codebase, compose shadcn/ui primitives, style with Tailwind + RTL, type with TypeScript, register in memory.
Template (template [name])
Check registry, design full-page layout, responsive breakpoints, mobile-first RTL, connect data layer, register.
Block (block [name])
Check codebase, design UI + business logic, create component + actions + schema, 100-point quality scoring, test, register.
SaaS Feature (saas [feature])
Generate all layers: Prisma model, Server Actions, React components, Next.js pages, auth checks, i18n keys, tests.
Hogwarts Pilot Workflows
Admission Block Development
Developer (Abdout):
> "handover admission"
1. Navigate admission pages (forms, tables, detail views)
2. Test enrollment workflow end-to-end
3. Verify at 375px, 768px, 1440px
4. Check Arabic RTL layout
5. Scan for missing translations
6. Fix → re-test until clean
7. Deploy to ed.databayt.org
King Fahad Schools Onboarding
QA + Sales (Ali):
> Test admission flow end-to-end, report issues on GitHub
> Prepare pitch materials for Ahmed Baha
> Continue outreach: other schools, sponsors, investors, contributors
R&D (Samia):
> Research sharing economy pitch framing
> Study open-source school solution positioning
> Arabic content for pitch and documentation
Team Daily Workflows
Abdout — Builder
> "dev" # Start dev server
> [feature development] # Build with full agent fleet
> "build" # Validate
> "push" # Commit + push
> "deploy" # Ship to Vercel
Ali — QA + Sales
QA:
> Test features from URL checklists on GitHub Issues
> Report bugs as comments
> Re-verify fixes, check off boxes
Sales (sales@databayt.org):
> Outreach: schools, sponsors, investors, early adopters, contributors
> Draft proposals, follow up leads
Samia — R&D
Cowork:
> Research Claude/Anthropic products
> Study sharing economy models
> Investigate revenue distribution
> Take care of Kun engine
Sedon — Executor
> [clear task map] # Well-defined tasks with steps
> Saudi operations # Bank, payments, presence
> Batch weekly # Monday map, Friday delivery
Cross-Device Workflows
Desktop to Phone to Terminal
Desktop (CLI): Start feature work → /desktop hand off
Phone (iOS): Remote Control to monitor → Dispatch: "finish and deploy"
Terminal: /teleport pull session back → "handover" → run QA
Design to Code
"figma https://figma.com/design/abc/..."
→ Figma MCP: get_design_context
→ Map to existing shadcn/ui + atoms
→ Generate components with Tailwind (RTL-aware)
→ Deploy preview
Agent Teams (Parallel Development)
"Build settings: profile tab, notifications tab, billing tab"
→ Lead Agent dispatches:
├── Agent A (worktree) → Profile form + avatar
├── Agent B (worktree) → Notification preferences
└── Agent C (worktree) → Billing + Stripe
→ Lead merges → resolve conflicts → single PR → tests
Scheduled Tasks
| Type | Runs On | Examples |
|---|---|---|
| Cloud | Anthropic infra (computer off) | Daily health check, dependency audit |
| Desktop | Local machine (app open) | Recurring builds, Sentry check |
| /loop | Active session | Poll Vercel deploy status |
Business Workflows
Client Communication
Cowork (Ali):
> "Draft project update for Ahmed Baha"
1. GitHub MCP: Fetch merged PRs this week
2. Summarize features + fixes
3. Draft Arabic email
4. Output as artifact
Financial Tracking
Cowork + Stripe MCP:
> "Monthly burn and runway report"
1. Track expenses: Claude ($200) + services (~$300)
2. Current burn: ~$500/month
3. Runway: $5K / $500 = 10 months
4. Revenue: track when it starts coming in
Sharing Economy Research
Cowork (Samia):
> Study sharing economy models
> Investigate revenue distribution
> Research startup sustainability
> Design databayt's revenue model
Captain Weekly Rhythm
Monday: Plan
- Check Abdout's instructions (Dispatch inbox)
- Check revenue (Stripe MCP)
- Check product health (Sentry MCP)
- Set weekly priorities
- Allocate team
- Dispatch plan
Wednesday: Check
- On track?
- Blockers?
- Adjust allocations
- Handle escalations
Friday: Review
- What shipped this week?
- Revenue update
- Customer feedback
- Set up next Monday
Communication Channels
Channel 1: Dispatch (Apple Notes, Async)
| Note | Direction | Purpose |
|---|---|---|
| Captain | Captain to Abdout | Updates, decisions, summaries |
| Cowork | Cowork to Code | Bridge between thinking and doing |
| Inbox | Abdout to Captain | Instructions, approvals, priorities |
Channel 2: GitHub Issues (Structured Work)
Every piece of work = a GitHub issue. 22 labels, 3 milestones (Phase 1/2/3).
Channel 3: Claude Native (Real-time)
| Mode | When | How |
|---|---|---|
| Code | Building, deploying, fixing | CLI or claude.ai/code |
| Cowork | Planning, strategy, research | Desktop Cowork tab |
| Voice | Quick decisions | Microphone button |
Quick Reference
| I Want To... | Say... | Who |
|---|---|---|
| Start dev server | dev | Abdout |
| Build project | build | Abdout |
| Push code | push / quick | Abdout |
| Deploy | deploy / ship | Abdout |
| Create component | atom / template / block | Abdout |
| Generate feature | saas [feature] | Abdout |
| Run tests | test [target] | Abdout |
| QA testing | GitHub Issue checklists | Ali |
| Report bugs | Comment on GitHub Issue | Ali |
| Fix user reports | report / report hogwarts | Automatic |
| Fix errors | fix | Abdout |
| Client outreach | sales@databayt.org | Ali |
| Sharing economy R&D | Cowork | Samia |
| Claude/Anthropic R&D | Cowork | Samia |
| Saudi operations | Clear task map | Sedon |
On This Page
WorkflowsDevelopment WorkflowsFeature DevelopmentDev Server (dev)Build and Validate (build)Commit and Push (push / quick)Deployment (deploy / ship)Testing (test [target])Handover QA (handover [block])Report to Fix (report [repo])Component CreationAtom (atom [name])Template (template [name])Block (block [name])SaaS Feature (saas [feature])Hogwarts Pilot WorkflowsAdmission Block DevelopmentKing Fahad Schools OnboardingTeam Daily WorkflowsAbdout — BuilderAli — QA + SalesSamia — R&DSedon — ExecutorCross-Device WorkflowsDesktop to Phone to TerminalDesign to CodeAgent Teams (Parallel Development)Scheduled TasksBusiness WorkflowsClient CommunicationFinancial TrackingSharing Economy ResearchCaptain Weekly RhythmMonday: PlanWednesday: CheckFriday: ReviewCommunication ChannelsChannel 1: Dispatch (Apple Notes, Async)Channel 2: GitHub Issues (Structured Work)Channel 3: Claude Native (Real-time)Quick Reference