AGENT SKILL

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

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:

  1. Inspect the full working tree (staged, unstaged, untracked, and any relevant hunks).
  2. 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).
  3. The normal commit path runs the pre-commit code-review gate (unless the current changes already match its review marker). --no and --no-review skip only that gate.
  4. Write the full Proposed Commit Plan.
  5. Consult the commit-pr-reviewer subagent for approval, in commit mode. Stage nothing until it approves.
  6. 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:

  1. Confirm branch state and base branch (user-provided or upstream default).
  2. Inspect the branch diff against base: git log --oneline <base>..HEAD, git diff --stat <base>...HEAD.
  3. Check commit granularity — each commit must be one logical unit; flag violations.
  4. Size the PR (small / medium / large).
  5. 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 Context only if part of a PR stack (per the pr skill template).
  6. Write the body and the push/create plan (git push -u origin <branch>, gh pr create --draft).
  7. Consult the commit-pr-reviewer subagent for approval, in pull request mode. Push and create nothing until it approves.
  8. 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

maotoumao
maotoumao/Cebian

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.

★ 185
maotoumao
maotoumao/Cebian

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.

★ 185
maotoumao
maotoumao/Cebian

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.

★ 185
maotoumao
maotoumao/Cebian

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.

★ 185
maotoumao
maotoumao/Cebian

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.

★ 185
maotoumao
maotoumao/Cebian

upgrade-pi

升级pi-agent-core和pi-ai到最新版本

★ 185