Agent Skillsmuratgur/ordinus › shadcn-project-workflow

shadcn-project-workflow

GitHub

用于在 Ordinus 项目中规范化管理 shadcn/ui 组件。涵盖添加、更新、调试及样式定制,强调遵循 DESIGN.md 主题规范、优先使用现有组件组合及语义化变量,确保 UI 风格一致性与代码质量。

.codex/skills/shadcn-project-workflow/SKILL.md muratgur/ordinus

Trigger Scenarios

添加或更新 shadcn 组件 修改组件样式或主题令牌 调试 UI 组件问题 配置 shadcn CLI 或 registry

Install

npx skills add muratgur/ordinus --skill shadcn-project-workflow -g -y
More Options

Non-standard path

npx skills add https://github.com/muratgur/ordinus/tree/master/.codex/skills/shadcn-project-workflow -g -y

Use without installing

npx skills use muratgur/ordinus@shadcn-project-workflow

指定 Agent (Claude Code)

npx skills add muratgur/ordinus --skill shadcn-project-workflow -a claude-code -g -y

安装 repo 全部 skill

npx skills add muratgur/ordinus --all -g -y

预览 repo 内 skill

npx skills add muratgur/ordinus --list

SKILL.md

Frontmatter
{
    "name": "shadcn-project-workflow",
    "description": "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."
}

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
  2. Read DESIGN.md before changing theme tokens, variants, component styling, status surfaces, or user-facing UI copy.
  3. Check existing installed components before adding new ones.
  4. Prefer shadcn CLI for registry components: npm run ui:add -- <component>
  5. For unfamiliar components, get docs first: npx shadcn@latest docs <component>
  6. For updates, preview before changing: npm run ui:add -- <component> --dry-run npm run ui:add -- <component> --diff <file>
  7. Read files added by the CLI and fix imports, aliases, composition, and lint issues.
  8. Run npm run ui:check, npm run typecheck, npm run lint, and npm run build.

Ordinus Defaults

  • Package manager: npm.
  • Electron app directory: app.
  • Renderer alias: @renderer/*.
  • Run shadcn and npm commands from app unless the user explicitly changes the project layout.
  • UI components path: app/src/renderer/src/components/ui.
  • Utility path: app/src/renderer/src/lib/utils.ts.
  • Tailwind version: v3.
  • Icon library: lucide-react.
  • Product style: calm, operational, work-focused.

Critical Rules

  • Align reusable variants and semantic CSS variables with DESIGN.md before adding one-off styling.
  • Compose existing components before writing custom styled markup.
  • Use built-in variants before custom class overrides.
  • Use semantic tokens such as bg-background, text-muted-foreground, border, and bg-primary.
  • Avoid raw Tailwind colors for product UI unless adding an intentional semantic token or variant.
  • Use gap-* for spacing, not space-x-* or space-y-*.
  • Use size-* for equal width and height.
  • Use cn() for conditional class composition.
  • Do not apply presets, overwrite components, or change global theme without explicit user approval.

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.

Version History

  • f507122 Current 2026-07-05 18:19

Same Skill Collection

.agents/skills/lavish/SKILL.md
.claude/skills/code-review-and-quality/SKILL.md
.claude/skills/code-simplification/SKILL.md
.claude/skills/documentation-and-adrs/SKILL.md
.claude/skills/electron-secure-boundary/SKILL.md
.claude/skills/grill-me/SKILL.md
.claude/skills/idea-discovery/SKILL.md
.claude/skills/ipc-contract-design/SKILL.md
.claude/skills/ordinus-ui-system/SKILL.md
.claude/skills/provider-runtime-adapter/SKILL.md
.claude/skills/shadcn-project-workflow/SKILL.md
.claude/skills/sqlite-minimal-persistence/SKILL.md
.codex/skills/code-review-and-quality/SKILL.md
.codex/skills/code-simplification/SKILL.md
.codex/skills/documentation-and-adrs/SKILL.md
.codex/skills/electron-secure-boundary/SKILL.md
.codex/skills/grill-me/SKILL.md
.codex/skills/idea-discovery/SKILL.md
.codex/skills/ipc-contract-design/SKILL.md
.codex/skills/ordinus-ui-system/SKILL.md
.codex/skills/provider-runtime-adapter/SKILL.md
.codex/skills/sqlite-minimal-persistence/SKILL.md

Metadata

Files
0
Version
f507122
Hash
234e4ea9
Indexed
2026-07-05 18:19

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-13 15:45
浙ICP备14020137号-1 $Map of visitor$