shadcn-view-plan — Claude Code command: frontend view implementation plan
shadcn-view-plan — a Claude Code command that produces a structured implementation plan for a single frontend view and writes it to .ai/{view}-view-implementation-plan.md.
AGPL-3.0 ★ 267 updated 2026-02-20
.claude/commands/shadcn-view-plan.mdWhat shadcn-view-plan does
The command works through seven placeholders that reference project files: prd.md, a view description from ui-plan.md, endpoint specs from api-plan.md, endpoint implementations such as @generations.ts or @flashcards.ts, types.ts, and tech-stack.md. Before writing the plan, the agent runs an internal breakdown inside <implementation_breakdown> tags — that analysis stays out of the final file.
The output covers component hierarchy, per-component details including HTML elements and props, DTO and ViewModel types, state management, API integration with request and response types, user interaction handling, validation conditions, error scenarios, and a step-by-step implementation guide. All of this is written in Polish — the prompt hardcodes the output language.
Every placeholder must be filled before the command runs: missing prd.md or an empty view description from ui-plan.md will leave sections blank.
What it helps with
- generate a view implementation plan before writing any code
- break a UI screen into components with props and event descriptions
- document DTOs and ViewModels for a specific frontend route
- map PRD user stories to concrete components and functions
- describe API endpoint integration at the frontend layer
Example prompts for the agent
- Run
/shadcn-view-planfor the registration screen using@prd.mdand the view description fromui-plan.md - Build a dashboard view plan from
@tech-stack.mdand the endpoints in@generations.ts - Create
.ai/login-view-implementation-plan.mdfrom user stories and@types.ts
How to install shadcn-view-plan
Manually: put the files in place
.claude/commands/shadcn-view-plan.mdCall it with /shadcn-view-plan. For all projects use ~/.claude/commands/
Manually: put the files in place
~/.codex/prompts/shadcn-view-plan.mdCall it with /prompts:shadcn-view-plan. Codex marks this format deprecated in favour of skills
Manually: put the files in place
.github/prompts/shadcn-view-plan.prompt.mdManually: put the files in place
.gemini/commands/shadcn-view-plan.tomlGemini stores commands as TOML: the prompt text goes into the prompt field
Questions about shadcn-view-plan
How do I install shadcn-view-plan in Claude Code?
Copy the command file to .claude/commands/shadcn-view-plan.md in your project root. Claude Code will then pick it up automatically.
What does the shadcn-view-plan command produce?
It outputs a Markdown file with eleven sections covering component structure, types, state management, API integration, and a step-by-step implementation guide. The file is saved to .ai/{view}-view-implementation-plan.md.
What language is the generated plan written in?
The prompt explicitly sets Polish as the output language, so the final document will be in Polish regardless of the language used in your project files.