/claude-skills:prepare-multi-file-brief <file-list-csv> <description>from claude-skills
Generates a structured multi-file agent brief from a CSV list of file paths and a description, with ordered writes, per-file schemas, and a verification step.
Ships in claude-skills. Installing the plugin adds it to Claude Code.
Generates a complete, copy-paste-ready Agent brief for a multi-file deliverable following
Pattern A from [[agent-resilience-discipline]]: each file is written in its own
separate Write tool call, ordered by importance, with per-file structure guidance embedded.
/prepare-multi-file-brief src/worker/routes/auth.ts,src/worker/schemas/auth.ts,e2e/auth.spec.ts "Clerk JWT auth guard for Hono with D1 user lookup and Playwright E2E"
<file-list-csv> by splitting on , (trim whitespace). Parse <description> as remaining args..ts → TypeScript, .tsx → React/TSX, .sql → SQL, .md → Markdown, .py → Python, .json → JSON, other → text).schema|types|zod → 1, route|handler|service → 2, spec|test|e2e → 3, readme|docs|md → 4).Agent tool call.## Agent Brief — Multi-file Write: <description>
**Role:** File author — writes each file completely, nothing else.
**Scope:** <N> files listed below. No other files touched, no deps added.
**Description:** <description>
> ⚠️ Pattern A — Write each file in a **SEPARATE** Write tool call.
> Never batch multiple file contents into one Write. Never truncate.
> Complete each file fully before moving to the next.
---
### Write order (most important first)
| # | Path | Type | Notes |
|---|------|------|-------|
| 1 | `<path-1>` | <lang> | <role inferred from basename> |
| 2 | `<path-2>` | <lang> | <role inferred from basename> |
| … | … | … | … |
---
### File 1 — `<path-1>`
**Purpose:** <one-line role>
**Structure to follow:**
- <inferred structure for this file type — see § Structure hints>
- <sibling context: "mirrors `<sibling-basename>` in same dir — match its import style">
---
### File 2 — `<path-2>`
**Purpose:** <one-line role>
**Structure to follow:**
- <inferred structure>
- Imports from File 1 via `<expected import path>`
---
<!-- repeat for each file -->
---
### Verification (final step — run after all Writes)
```bash
# Confirm every file was written
<for each path: ls -la <path> 2>/dev/null || echo "MISSING: <path>">
# Line count sanity (each file must be > 10 lines)
<for each path: wc -l <path>>
Expected: all files exist, each > 10 lines, no "MISSING" output.
## Structure hints by extension
| Extension | Opener | Required exports |
|-----------|--------|-----------------|
| `.ts` (schema) | `import { z } from 'zod'` | named `Schema` + inferred `Type` |
| `.ts` (route) | `import { Hono } from 'hono'` | default `app` or named router |
| `.ts` (service) | typed class or exported fns | no default export |
| `.tsx` | React 19 FC + Tailwind className | default component export |
| `.spec.ts` / `e2e` | `import { test, expect } from '@playwright/test'` | no exports — test blocks only |
| `.test.ts` | `import { describe, it, expect } from 'vitest'` | no exports |
| `.sql` | `-- Migration: <basename>` | `CREATE TABLE IF NOT EXISTS` |
| `.md` | `# <title>` + ## sections | n/a |
| `.json` | `{}` with top-level keys from description | n/a |
## Priority scoring (used to sort write order)
basename matches /schema|types|zod|model/i → priority 1 basename matches /route|handler|service|api/i → priority 2 basename matches /spec|test|e2e/i → priority 3 basename matches /readme|docs|changelog/i → priority 4 everything else → priority 2
Files with the same priority keep the order given in the CSV input.
## Execution script (runs in-process)
```bash
# Split args: everything before the first space is csv, rest is description
CSV="${ARGUMENTS%% *}"
DESCRIPTION="${ARGUMENTS#* }"
if [[ -z "$CSV" || -z "$DESCRIPTION" || "$CSV" == "$DESCRIPTION" ]]; then
echo "Usage: /prepare-multi-file-brief <file-list-csv> <description>"
exit 1
fi
IFS=',' read -ra FILES <<< "$CSV"
echo "## Agent Brief — Multi-file Write: ${DESCRIPTION}"
echo ""
echo "> ⚠️ Pattern A — Write each file in a **SEPARATE** Write tool call."
echo "> Never batch multiple file contents into one Write. Never truncate."
echo ""
echo "### Write order"
echo ""
I=1
for F in "${FILES[@]}"; do
F="$(echo "$F" | xargs)" # trim whitespace
BASENAME="$(basename "$F")"
EXT="${BASENAME##*.}"
DIR="$(dirname "$F")"
SIBLING="$(ls "$DIR" 2>/dev/null | grep -v "^${BASENAME}$" | head -1)"
echo "#### File $I — \`$F\`"
echo "- Extension: .$EXT"
[[ -n "$SIBLING" ]] && echo "- Sibling context: \`$DIR/$SIBLING\` (match its import/naming style)"
echo "- Structure: see § Structure hints for .$EXT"
echo ""
I=$((I+1))
done
echo "### Verification"
echo ""
echo "\`\`\`bash"
for F in "${FILES[@]}"; do
F="$(echo "$F" | xargs)"
echo "ls -la \"$F\" 2>/dev/null || echo \"MISSING: $F\""
echo "wc -l \"$F\""
done
echo "\`\`\`"
echo ""
echo "All files must exist and exceed 10 lines. No TODOs, no stubs."
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
37 commands in this plugin
/agent-diversity-reviewAgent Diversity ReviewRun the Agent Diversity Review gate and emit the result table/bootstrap-statusGatherReport the Claude control-plane environment (auth mode, tooling, connectors, resolved target). Fires when you need to confirm the sandbox can deploy./claude-bootstrapStepsBring ANY repo into compliance with the shared Claude control plane so Claude Code on the web can run /ship autonomously./cloudflare-bootstrap/cloudflare-bootstrapReconcile the Cloudflare agent fabric: official skills, API MCP, MCP Portal candidates, AI Search, Secrets Store, Dynamic Routes, Browser Run and telemetry./create-specialist-agentCreate Specialist AgentScaffold a new spawnable specialist agent def and register it in the agent taxonomy/customer-changelog-checkStep 1 — Identify changed filesAudit whether user-visible changes in the current session have matching CHANGELOG.md entries; report MISSING with suggested lines; --fix auto-appendsnpx claudepluginhub heymegabyte/agent-skills --plugin claude-skillsOther plugins' commands for the same job