agent-audit
Audit agents spawned in the current/last run against the agent-selection taxonomy
Generate a Project Requirements Plan (PRP) — research-driven, ULTRATHINK-gated, confidence-scored implementation blueprint
> /plugin marketplace add heymegabyte/claude-skillsHow it fires
How this command gets triggered: by you, by Claude, or both.
/generate-prpContext preview
What this command does when you run it.
Generate a Project Requirements Plan (PRP) — research-driven, ULTRATHINK-gated, confidence-scored implementation blueprint
description: Generate a Project Requirements Plan (PRP) — research-driven, ULTRATHINK-gated, confidence-scored implementation blueprint argument-hint: <feature-name-or-path-to-brief> allowed-tools: Read, Bash, Glob, Grep, WebFetch, WebSearch, Agent, Write, Edit model: claude-opus-4-7
ULTRATHINK before responding. The user wants a PRP (Project Requirements Plan) for: $ARGUMENTS
Spawn parallel research agents per `[[monitor-orchestration]]` § Parallel-agent playbook:
Fold their outputs into `PRPs/{feature-slug}.md` with these sections:
# PRP: {feature}
## Confidence: X/10 (10 = ready to execute one-shot; <7 = needs more research)
## Goal
1-paragraph user-outcome description.
## Why (business value)
- Bullet 1
- Bullet 2
## What (concrete deliverables)
- File: `apps/web/src/...` — what changes
- Route: `POST /api/...` — what it does
## Context
### Existing patterns (from codebase)
- `apps/web/src/foo.ts:42` — reuse this shape
- `rules/hono-api.md` — adhere to this convention
### External libraries
- `@hono/zod-openapi` — schema-first API (link to docs)
- `drizzle-orm/d1` — D1 adapter (link)
### Gotchas (researched)
- Cloudflare Workers limits: 128MB memory, 30s CPU on standard plan
- D1 batch limit: 100 statements
- Vectorize index dimensions must match embedding model exactly
## Implementation blueprint
### Files to create
- `apps/web/src/feature/foo.ts`
- `e2e/feature/foo.spec.ts` (Playwright — written FIRST per `[[verification-loop]]`)
### Files to modify
- `apps/web/src/router.ts` — add route
### Validation gates (in order)
1. **TDD**: `e2e/feature/foo.spec.ts` written + failing
2. **Implement**: minimum code to make spec pass
3. **Typecheck**: `tsc --noEmit` clean
4. **Lint**: `oxlint && eslint --fix` clean
5. **Deploy**: `wrangler deploy` to PROD
6. **Prod E2E**: `npx playwright test --config=playwright.prod.config.ts`
7. **AI vision QA**: ≥9/10 per `[[always]]` § new-section
8. **A11y**: axe-core 0 violations at 6 breakpoints
## Anti-patterns to avoid
- Don't add new packages without a real demand
- Don't introduce a new state library / framework / auth flow without explicit user ask
- Don't hand-roll auth — use Clerk or Better Auth per `[[code-style]]`
- Don't `page.goto()` for internal nav in E2E — click through UI
## Score breakdown
- Codebase research coverage: X/10
- External library currency: X/10
- Gotchas surfaced: X/10
- Validation gates concrete: X/10
- **Overall**: X/10
If overall < 7, this PRP needs more research before `/execute-prp` should fire.Write the PRP to `PRPs/{slug}.md` (create `PRPs/` dir if missing). Then return:
1. Path to the PRP file 2. Confidence score 3. Top 3 risks the executor should know 4. Suggested next command: `/execute-prp PRPs/{slug}.md` (or "re-research" if score <7)
14-category autonomous product-building OS for 32+ AI coding tools. One-line prompts → deployed products.
Repo: heymegabyte/claude-skills
Audit agents spawned in the current/last run against the agent-selection taxonomy
Run the Agent Diversity Review gate and emit the result table
Meta-analyze the effectiveness of a /loop arc — per-iteration metrics, LOC delta trend, saturation detection, and a keep/lengthen/delete recommendation.
Audit the rules/ directory for missing foundational principles; output gap list with priority and justification
Validate ~/.claude/settings.json hooks block — event names, file existence, executability, matcher syntax; --fix repairs common issues
Catch Resend-class bug (isError: false on HTTP 4xx/5xx) across all MCP server tool handlers