parallel-fullstack-scaffold

/home/avalon/.hermes/skills/software-development/parallel-fullstack-scaffold/SKILL.md · raw

Parallel Full-Stack Scaffold

When to Use

vs. subagent-driven-development: That skill is sequential task-by-task with review loops. This skill is "blast out the whole app in parallel, then build-test-fix." Better for greenfield scaffolds; worse for incremental features on existing codebases.

Prerequisites

Before delegating, gather ALL context yourself: 1. DB schema — Run \d table_name for every relevant table. Get column names, types, FKs. 2. Sample data — Query a few rows from key tables so subagents write realistic code. 3. Design tokens — Colors, fonts, spacing, component patterns. 4. Screen list — Every screen with its elements, data sources, and user flows. 5. API endpoints — Full list with query params, joins needed, response shapes. 6. Existing infra — Check for pre-existing nginx configs, PM2 processes, repos.

The Split: 3 Parallel Workstreams

Workstream 1: Frontend (all screens + components)

Largest workstream. Provide: - Complete file list with paths - Full DB schema (so hooks/types are correct) - Design system tokens - Screen-by-screen specs with every UI element - API endpoint signatures (so hooks call the right paths) - State management structure

Workstream 2: Backend (API server)

Workstream 3: Config + Assets (build config, PWA, icons)

Smallest/fastest. Usually finishes first. - Vite config with aliases and proxy - index.html with meta tags - PWA manifest + service worker - Icon generation (SVG → PNG via ImageMagick) - .gitignore

Context Tips for Subagents

Be exhaustive. Subagents have NO conversation history. Include: - Every table schema with column names and types - All 3 locations, all reservation statuses, all class types — real data - Full color palette with hex codes - Every screen element described explicitly - Import paths and alias conventions (@/ → src/) - Specific library versions and API patterns

Don't say "see the plan file." Copy the relevant content into the context string. Subagents reading files burns iterations.

After Delegation

1. Check file output

find src -name "*.tsx" -o -name "*.ts" -o -name "*.css" | sort

2. Build test immediately

npx vite build 2>&1 | tail -30

Build errors reveal missing imports, type issues, bad paths. Fix these directly — don't re-delegate.

3. Start server + smoke test

pm2 start npx --name app -- tsx server.ts
curl localhost:PORT/api/health
curl -o /dev/null -w "%{http_code}" localhost:PORT/

4. Visual verification

Use browser_navigate + browser_vision to check each screen looks correct.

5. Fix forward

Small issues (wrong import, missing type, bad query) — fix directly with patch. Large issues (missing screen, broken API) — delegate a focused fix subagent.

Pitfalls

Efficiency

Typical timing for a 12-screen React + Express app: - Workstream 3 (config): ~2 min - Workstream 2 (API): ~5-6 min
- Workstream 1 (frontend): ~6-8 min - Build + deploy + test: ~3 min - Total: ~10-12 min wall clock (parallel)

vs. sequential: ~30-40 min

When NOT to Use