Skip to main content
command CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/shadcn-view-plan.md
Open on GitHub

What 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-plan for the registration screen using @prd.md and the view description from ui-plan.md
  • Build a dashboard view plan from @tech-stack.md and the endpoints in @generations.ts
  • Create .ai/login-view-implementation-plan.md from user stories and @types.ts

How to install shadcn-view-plan

Manually: put the files in place

.claude/commands/shadcn-view-plan.md

Call it with /shadcn-view-plan. For all projects use ~/.claude/commands/

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.

Similar slash commands

All slash commands for Frontend and UI →

From the same set24

The whole set →
shadcn-view-implement The shadcn-view-implement command guides Claude Code through building a shadcn/ui view from an implementation plan. It pauses after a small batch of work so you can review the result. CX Codex +1 ★ 267repo stars shadcn-ui-plan shadcn-ui-plan turns a product requirements doc, API plan and planning session notes into a UI architecture saved to .ai/ui-plan.md. CX Codex +1 ★ 267repo stars mermaid-diagram-ui mermaid-diagram-ui guides the agent to analyze requirements and generate Mermaid UI architecture diagrams for Astro and React auth modules. CX Codex +1 ★ 267repo stars mermaid-diagram-auth The mermaid-diagram-auth rule guides Claude Code through project auth requirements and asks it to create a Mermaid sequence diagram. Use it to map sign-up, login, sessions, and token handling. CX Codex +1 ★ 267repo stars mermaid-diagram-journey mermaid-diagram-journey guides Claude Code to build a Mermaid state diagram for login and onboarding flows straight from project requirements. CX Codex +1 ★ 267repo stars supabase This rule guides Supabase Auth setup in Astro apps with SSR. It covers middleware, auth endpoints, protected routes, and server-side cookies. CX Codex +1 ★ 267repo stars 10x-research 10x-research spawns parallel sub-agents to investigate your codebase comprehensively. Finds architectural patterns, component connections, and generates a markdown research report with code references. CX Codex +1 ★ 267repo stars 10x-plan 10x-plan guides Claude Code through an iterative codebase investigation to create technical implementation plans. CX Codex +1 ★ 267repo stars

Project sponsors

Companies that keep this analytics open