wwwfiberdirekt/.claude/commands/build-site.md

78 lines
2.5 KiB
Markdown

---
description: Build a complete Fiber Direkt website, campaign, and content package from a single brief. Orchestrates specialist agents in sequence.
argument-hint: <path-to-brief.md>
---
## Mission
Take a project brief and produce a complete, deployment-ready content package by delegating to specialist agents.
## Execution Plan
Read the brief file provided as the argument. Then execute the following agent chain:
### Phase 1: Architecture (must complete first)
**Step 1: Site Architect**
Use the `site-architect` agent with the brief to produce `site-architecture.md`.
Wait for completion before proceeding.
### Phase 2: Content + Images + Campaign (can run in parallel)
**Step 2a: Content Writer**
Use the `content-writer` agent with `site-architecture.md` + brief to produce `page-content.md`.
**Step 2b: Image Director**
Use the `image-director` agent with `site-architecture.md` + brief to produce `image-brief.md` + `nano-banan-prompts.txt`.
**Step 2c: Campaign Strategist** (if brief has campaign section)
Use the `campaign-strategist` agent with brief + `site-architecture.md` to produce `campaign-plan.md`.
### Phase 3: Implementation (depends on Phase 2)
**Step 3: Seed Script Builder**
After `page-content.md` is complete:
Use the `seed-script-builder` agent with `site-architecture.md` + `page-content.md` to produce `seed-*.mjs`.
**Run `node --check seed-*.mjs` to verify syntax before delivering.**
**Step 4: LinkedIn Writer** (if campaign in scope)
After `campaign-plan.md` is complete:
Use the `linkedin-writer` agent with `campaign-plan.md` to produce `linkedin-posts.md`.
**Step 5: Carousel Builder** (if campaign in scope)
After `campaign-plan.md` is complete:
Use the `carousel-builder` agent with carousel briefs from `campaign-plan.md`.
### Phase 4: Summary
After all agents complete, present:
```
## Build Complete ✓
### Site
- Pages: [count] with [total block count] blocks
- Seed scripts: [list files]
- Status: All drafts — run seed scripts against Payload to create
### Images
- Total needed: [count]
- Nano Banan prompts: nano-banan-prompts.txt
- Image brief: image-brief.md
### Campaign (if applicable)
- Carousels: [count]
- LinkedIn posts: [count] for [weeks] weeks
- Plan: campaign-plan.md
### All Output Files
[list every file produced]
```
## Error Handling
- If an agent fails, report which one and what went wrong
- If the brief is missing required fields, ask the user before proceeding
- If a block type from the architecture isn't in the project reference, flag it
- Always validate seed scripts with `node --check` before delivering