shadcn
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn/ui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for "shadcn init", "create an app with --preset", or "switch to --preset".
- License 许可
- AGPL-3.0
- 所属仓库
- maotoumao/Cebian
- 最近更新
- 2026-11-09
- Stars
- ★ 185
- Forks
- 38
01 前言 Front Matter
- name
- wf
- description
- Commit the current work with the commit skill, then push and open a PR via the pr skill — one concern, with commit-pr-reviewer subagent approval before each step. Use when the user says "wf", "wf --no", "wf --no-review", "commit and PR", "ship this", or wants the full commit → push → PR flow for the current branch.
- argument-hint
- [--no|--no-review] [base-branch]
- disable-model-invocation
- true
02 资源文件 14
- 参考文档agents/openai.yaml259 B
- 资产文件assets/shadcn-small.png1.0 KB
- 资产文件assets/shadcn.png3.8 KB
- 参考文档cli.md16.9 KB
- 参考文档customization.md5.9 KB
- 参考文档evals/evals.json6.2 KB
- 参考文档mcp.md3.4 KB
- 参考文档registry.md8.6 KB
- 参考文档rules/base-vs-radix.md6.8 KB
- 参考文档rules/chat.md6.8 KB
- 参考文档rules/composition.md4.8 KB
- 参考文档rules/forms.md4.7 KB
- 参考文档rules/icons.md1.9 KB
- 参考文档rules/styling.md4.6 KB
03 SKILL.md 正文
Commit and PR in One Flow (wf)
Runs the full ship path for the current branch: atomic commits → PR. One concern per branch (see Concern Discipline in AGENTS.md); if the working tree mixes concerns, stop and flag it.
Input
--no and --no-review are supported wrapper invocations. The selected flag is forwarded only to the nested commit phase, where it skips only commit's pre-commit code-review gate.
An optional base branch (e.g. main, development) may also be provided. Default: upstream default. For example: wf --no or wf --no-review development.
Steps
Before the commit phase: if the diff has not been through code-judgment, run it now. The pre-commit review gate verifies a frozen diff, so cleanup happens before it — never during.
1. Commit phase (commit skill)
Invoke the commit skill at ~/.agents/skills/commit/SKILL.md:
- Inspect the full working tree (staged, unstaged, untracked, and any relevant hunks).
- Inventory responsibilities, then propose the most-split valid atomic plan — no commit joins two responsibilities without a named dependency (see the commit skill's Responsibility Unit).
- The normal
commitpath runs the pre-commit code-review gate (unless the current changes already match its review marker).--noand--no-reviewskip only that gate. - Write the full Proposed Commit Plan.
- Consult the
commit-pr-reviewersubagent for approval, in commit mode. Stage nothing until it approves. - Execute the approved plan commit by commit: stage whole files when a file belongs to one concern; use hunk-level staging only for mixed-concern or deliberately partial files, with pre/post-commit verification.
2. PR phase (pr skill)
Invoke the pr skill at ~/.agents/skills/pr/SKILL.md, /pr submode:
- Confirm branch state and base branch (user-provided or upstream default).
- Inspect the branch diff against base:
git log --oneline <base>..HEAD,git diff --stat <base>...HEAD. - Check commit granularity — each commit must be one logical unit; flag violations.
- Size the PR (
small/medium/large). - Write the PR body with the core sections:
## Rationale(the human/system why),## Observable Behavior(what the system does, not code implementation details), and## Verification(tests added to verify behavior). If summary and rationale overlap, combine them as## Summary & Rationale— do not repeat yourself. Include## Stack Contextonly if part of a PR stack (per the pr skill template). - Write the body and the push/create plan (
git push -u origin <branch>,gh pr create --draft). - Consult the
commit-pr-reviewersubagent for approval, in pull request mode. Push and create nothing until it approves. - Execute the approved plan: push, then
gh pr create --draft --title <type>(<scope>): <summary> --body <body>. Create as draft so the user reviews before marking ready.
3. Report
Return:
- Commits created (short SHA + message)
- Reviewer verdicts for the commit plan and the PR
- PR URL + branch name
- Remaining working tree state
Rules
- Never stage, commit, push, or open a PR without the commit-pr-reviewer's approval of that exact plan.
- One concern per branch. If the tree mixes concerns, do not commit them together — follow Concern Discipline (finish current concern, sequence or worktree the rest).
- Respect both skills fully: their proposal formats and approval gates override this summary.
04 同仓库更多 Skills
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
my-skill
Replace this with 1–1024 characters describing what the skill does AND when to use it. Include synonyms a user might say (e.g. "summarize", "digest", "tl;dr"). See the description-tuning reference in the skill-creator skill for guidance.
skill-creator
Create new Cebian skills, edit or improve existing ones, scaffold multi-file skill packages, and validate them against the agentskills.io specification. Use when the user wants to author, refactor, or debug a skill (including questions like "why isn't my skill firing"), declare metadata.permissions for scripts that call chrome.* APIs or inject code into pages, or rewrite a description for better trigger accuracy.
artifact
Build a standalone, single-file HTML page the user can open and use — a report, dashboard, data visualization, interactive tool or calculator, mockup, landing page, poster/one-pager, or small game — write it into the session workspace and hand back a link that renders it in Cebian's file preview. Use when the user asks for a web page, dashboard, chart, visualization, interactive demo, prototype, "something I can open / click / share", or to "render this as HTML"; also when a plain-text answer would be a poor fit for the content (tabular data to explore, a layout to judge, a UI to try). Not for ordinary answers, Markdown notes, or edits to files that are not HTML.
vercel-react-best-practices
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
upgrade-pi
升级pi-agent-core和pi-ai到最新版本