/claude-skills:prepare-skeleton-brieffrom claude-skills
Generates a structured agent brief for creating a single-file skeleton deliverable under 300 lines, following Pattern B conventions. Accepts target path and description arguments.
Ships in claude-skills. Installing the plugin adds it to Claude Code.
Generates a complete, copy-paste-ready Agent brief for a single-file skeleton deliverable,
following Pattern B from rules/agent-resilience-discipline.md.
/prepare-skeleton-brief src/worker/routes/invoices.ts "Hono route handler for invoice CRUD with Drizzle D1"
<target-path> and <description> from args.rules/agent-resilience-discipline.md (if present) and extract the Pattern B prompt
template — look for the block that starts with "Pattern B" or "single-file skeleton".Agent tool call).## Agent Brief — Skeleton: <basename>
**Role:** Skeleton author — writes the initial file, nothing else.
**Scope:** ONE file: `<target-path>` — < 300 lines, no stubs, no TODOs.
**Description:** <description>
### Context (read-only)
- Sibling files: <list of up to 5 siblings>
- Stack: <inferred stack from extension + project root>
- Contracts to honour: <relevant Zod schemas or types found via grep>
### Deliverable
Write `<target-path>` with the content below as the starting structure.
Flesh out EVERY function body — no empty functions, no placeholder comments.
Respect the project's import style and naming conventions.
```<lang>
// <target-path>
// <description>
// Generated skeleton — flesh out before shipping.
<SCAFFOLD — filled in by the skill at runtime based on extension>
Return the final file content only — no preamble, no explanation.
File will be written to <target-path> by the caller.
Max 300 lines.
## Scaffold hints by extension
| Extension | Scaffold opener |
|-----------|-----------------|
| `.ts` | `import { z } from 'zod'` + typed fn signatures |
| `.tsx` | React 19 functional component + Tailwind className |
| `.py` | `from __future__ import annotations` + typed dataclass |
| `.sql` | `-- Migration: <basename>` + CREATE TABLE skeleton |
| `.md` | `# <title>` + section headers |
| `.json` | `{}` with required top-level keys inferred from description |
| other | bare file with comment header |
## Execution script (runs in-process)
```bash
TARGET="$1"
DESCRIPTION="$2"
if [[ -z "$TARGET" || -z "$DESCRIPTION" ]]; then
echo "Usage: /prepare-skeleton-brief <target-path> <description>"
exit 1
fi
BASENAME=$(basename "$TARGET")
DIR=$(dirname "$TARGET")
EXT="${BASENAME##*.}"
# Collect siblings (up to 5)
SIBLINGS=$(ls "$DIR" 2>/dev/null | grep -v "^${BASENAME}$" | head -5 | tr '\n' ', ')
echo "## Agent Brief — Skeleton: ${BASENAME}"
echo ""
echo "**Role:** Skeleton author — writes the initial file, nothing else."
echo "**Scope:** ONE file: \`${TARGET}\` — < 300 lines, no stubs, no TODOs."
echo "**Description:** ${DESCRIPTION}"
echo ""
echo "### Context (read-only)"
echo "- Sibling files: ${SIBLINGS:-none}"
echo "- Extension: .${EXT}"
echo ""
echo "### Deliverable"
echo "Write \`${TARGET}\` fully fleshed — no empty fn bodies, no TODO lines."
echo ""
echo "### Non-goals"
echo "- Do NOT create any other file."
echo "- Do NOT modify existing files."
echo ""
echo "### Output format"
echo "Return the final file content only. Max 300 lines."
What the command file sets; muted values are Claude Code's defaults
agent-brief, skeleton, code-generation, prompt-template, single-file
7-day visitors to each command page
npx claudepluginhub heymegabyte/agent-skills --plugin claude-skills37 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-appendsOther plugins' commands for the same job