Shadcn project workflow

From muratgur/ordinus · View interactive version

Shadcn project workflow is an AI agent skill from the GitHub repository muratgur/ordinus. Work with shadcn/ui in Ordinus. Use when adding, updating, composing, debugging, or styling shadcn-style components; touching components.json; using npx shadcn; changing src/renderer/src/components/ui; applying registry items or presets; or deciding whether to install a UI primitive.

How to use this skill

Skill file

shadcn Project Workflow

Objective

Use shadcn/ui as the standard path for reusable UI primitives while preserving Ordinus product direction.

Use this with ordinus-ui-system: this skill governs shadcn mechanics; ordinus-ui-system governs product feel.

Use DESIGN.md as the canonical source for theme tokens, component vocabulary, status language, and UI density when changing shadcn-style components or renderer styling.

Required Workflow

  1. Run or inspect project context before making component decisions:

npm run ui:info

  1. Read DESIGN.md before changing theme tokens, variants, component styling, status surfaces, or user-facing UI copy.
  2. Check existing installed components before adding new ones.
  3. Prefer shadcn CLI for registry components:

npm run ui:add -- <component>

  1. For unfamiliar components, get docs first:

npx shadcn@latest docs <component>

  1. For updates, preview before changing:

npm run ui:add -- <component> --dry-run

npm run ui:add -- <component> --diff <file>

  1. Read files added by the CLI and fix imports, aliases, composition, and lint issues.
  2. Run npm run ui:check, npm run typecheck, npm run lint, and npm run build.

Ordinus Defaults

Critical Rules

Detailed References

Read only the relevant reference when needed:

Notes

The official shadcn skill includes broader registry, MCP, asset, and eval infrastructure. Ordinus keeps a smaller adapted version focused on this Electron/Vite app.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.