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
plaplanArchitecture decisions + tradeoffs
tastasksDependency-ordered work list
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
One spell — verified, shipped, watched, recorded
hanhandoverNiche-keyword QA on the block
checheckTypecheck + build + visual
shishipVercel --prod with auto-fix
watwatchProduction smoke test
An asset from need to the showroom — the right lane by type
calcalendarWhich brand, which slot, which ad pillar the asset serves
shoshowroomLibrary lookup first — do we already own the shot? (free)
highiggsText-free photography: model/ratio/style from the tables, batch, register --type
carcarouselText-bearing formats: 1-slide card or full deck — Thmanyah type, brand frame
appapproveHuman gate — copy and media staged together
pubpublishApproved media rides the post to its channels
meameasureReach and attribution read back per post
Measure the gap, then work the highest-yield lane — discovery last, never first
concontact gapMeasure — 175 contactable, 2,941 map-pin-only
lealeadsThe 130 contactable tier-A/B schools, unworked
enrenrichFB About + website — ceiling +40 rows
outoutreachEmail first, WhatsApp for the Sudan slice
pippipeline healthStages, tiers, overdue next-actions
A replied lead to a paying customer — count the gates, segment on what was collected, prove every gate has a gift, sweep the stalls, then drain the queue only if someone asked out loud.
funfunnelCount every gate and name the one holding the most stalled leads
quaqualifyCheck the seven facts a sale requires are the questions actually asked
segsegmentRecompute the key; it routes owner, cadence, asset and price path
nurnurtureFind gate/segment pairs with no asset — a question asked with no gift
stastalledWho went quiet, where, for how long; run the DORMANT sweep
folfollow upDraft on the Max pool, gate on a human yes, then dispatch
A scanned textbook to a verified Markdown twin — transcribed, blind-checked, adjudicated, benchmarked
textextbookRender pages/<N>.webp beside textbook.pdf
concontractTemplate the book's contract from structure.json
tratranscribeOne reader per 8 pages, one file per page
agragreementBlind second read of a random + risk sample, six axes
adjadjudicateEvery disagreement settled against the scan; the contract learns
textextbook benchScore the pipeline on the corpus; persist the trend
Nightly: the next unverified textbook to a published, verified Markdown twin at its predictable URL
textextbook statusSense both URLs and the twin gate per subject
textextbook loopPick, stage and run a capped, resumable transcription
agragreementA complete book: blind 24-page re-read by a second model
adjadjudicateSettle every disagreement against the scan
lanland the twinPublish when the twin gate passes
concontractSundays: observed cases become cross-book presets
A product a phone can install — audited, built per tenant, pushed through the deploy lane, verified on the live hosts
pwapwaaudit <url> — install criteria, every icon, the precache list, theme-color
pwapwabuild — icons, per-tenant manifest, service worker, offline page, outbox kind
pwapwapush — PushSubscription, VAPID, web-push processor on the push cron, preferences toggle
chechecktsc + build + i18n validate
depdeployCloudflare cycle: restore point, DDL, secrets, smoke, real-login verify
watwatchAudit both tenants live; offline page renders; push round-trip
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/ |
Content Workflows
Textbook to Markdown twin (textbook <book-dir>)
Every curriculum textbook.pdf gets a textbook.md beside it, read by a vision model — not OCR — and trusted only as far as a blind second read agrees with it. Disagreements are adjudicated against the scan, never averaged away.
| Phase | What happens |
|---|---|
| 1. Prepare | Render pages/<N>.webp at 1000 px; template pages-md/_CONTRACT.md from structure.json |
| 2. Transcribe | 12 pages per transcribe agent, one file per page, one status line back |
| 3. Assemble | Stitch with provenance; lint every page on the reader's grammar (tables without a grid, composed captions, headings not in the structure) |
| 4. Verify | Random + risk sample re-read blind; six axes per page; a failure class per page; right-edge crops settle table direction |
| 5. Adjudicate | Every queued page settled against the scan by the adjudicate agent — page repaired, verdict recorded, contract taught |
| 6. Persist | Grade and queue written to .claude/memory/textbook-scores.json — the only writer |
Modes: full · verify (a twin already on disk) · repair (the saved queue only). The headline is the random sample's agreement; A ≥ 0.95 is provisional.
Textbook benchmark (textbook bench [book-id])
A blind transcription of the corpus's hardest pages into bench-runs/<label>/, scored against objective per-page assertions (repair traps that must survive, interpretive words that must not appear, label sets, table shapes, the crop-verified rightmost column), then the transcript audit that voids a run that peeked. Every entry records the gold hash, the contract hash and the model, so a contract or model change is a comparable number.
Full page: Textbook — run commands, arguments, configuration, the record.
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 Max 5x ($100) + services (~$300)
2. Current burn: ~$400-500/month
3. Runway: $5K / burn ≈ 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: Native Push + Cowork Bridge (Async)
| Surface | Direction | Purpose |
|---|---|---|
PushNotification tool | Captain → Abdout | Decisions, escalations, weekly summary pings (Anthropic mobile app receives) |
~/.claude/bridge.md | Cowork ↔ Code | Bridge between thinking and doing (file both modes read+write) |
GitHub issue (from-abdout label) | Abdout → Captain | Instructions, approvals, priorities — filed via claude.ai/code mobile or /issue |
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 |
| Convert a textbook | textbook <book-dir> | Abdout |
| Score the textbook pipeline | textbook bench | 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])Content WorkflowsTextbook to Markdown twin (textbook <book-dir>)Textbook benchmark (textbook bench [book-id])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: Native Push + Cowork Bridge (Async)Channel 2: GitHub Issues (Structured Work)Channel 3: Claude Native (Real-time)Quick Reference