YH-UI Skills Setup
YH-UI Skills is an AI coding knowledge pack for this repository. It gives AI tools source-aligned component exports, priority APIs, Vue practices, workflows, deep recipes, retrieval entry files, and anti-hallucination rules.
Quick Install
Install the skill package globally, then run the interactive installer for the current IDE or agent workspace.
# Install globally
npm i -g @yh-ui/yh-ui-skill
# Inject into the current IDE
npx yh-ui-skill# Install globally
pnpm add -g @yh-ui/yh-ui-skill
# Inject into the current IDE
pnpm dlx yh-ui-skill# Install globally
yarn global add @yh-ui/yh-ui-skill
# Inject into the current IDE
yarn dlx yh-ui-skillThe interactive installer copies the YH-UI Skills files into the current project or the configured skills directory for tools such as Cursor, Claude, Codex, local agents, or generic Markdown context.
Repository development
When developing inside this repository, use skills/yh-ui/, llms.txt, and llms-full.txt directly.
Main Files
skills/yh-ui/SKILL.md
llms.txt
llms-full.txtHigh-value references:
skills/yh-ui/references/source-truth.md
skills/yh-ui/references/api-cheatsheet.md
skills/yh-ui/references/agent-workflows.md
skills/yh-ui/references/vue-component-practices.md
skills/yh-ui/references/codegen-rubric.md
skills/yh-ui/references/recipes-table.md
skills/yh-ui/references/recipes-form-schema.md
skills/yh-ui/references/recipes-ai.md
skills/yh-ui/references/recipes-flow.mdUse With AI Tools
For ChatGPT or Claude, attach skills/yh-ui/SKILL.md first, then add source-truth.md, api-cheatsheet.md, and the task-specific recipe.
For Cursor, Windsurf, Codex, or local agents, open the repository root and explicitly ask the agent to read:
skills/yh-ui/SKILL.mdExample:
Use skills/yh-ui/SKILL.md as the YH-UI rules. Generate a Vue 3 page with YhTable, filters, pagination, loading, empty state, and typed rows.Regenerate Source Truth
Run this after component exports or priority APIs change:
pnpm generate:yh-ui-skillIt updates:
skills/yh-ui/references/source-truth.md
skills/yh-ui/references/api-cheatsheet.mdThe generator uses TypeScript AST extraction for exported props/emits, typed defineEmits, slot/expose interfaces, and defineExpose(expose) patterns. Vue template slots are scanned as a supplement.
Verify
pnpm verify:yh-ui-skillRecommended full check:
pnpm generate:yh-ui-skill
pnpm verify:yh-ui-skill
pnpm typecheckPrompt Pattern
Read skills/yh-ui/SKILL.md first. Use source-truth.md and api-cheatsheet.md to choose real YH-UI components and APIs. Do not invent components, props, emits, slots, or old APIs.For complex features, add the matching recipe, such as recipes-table.md, recipes-form-schema.md, recipes-ai.md, or recipes-flow.md.