一键导入
review-conventions
Audit feature code against convention rules, reporting violations with file:line references
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit feature code against convention rules, reporting violations with file:line references
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI. 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".
Automates dependency upkeep for this repo: triages open Dependabot PRs and merges the safe ones, investigates and fixes red CI on dependency PRs, and prunes/reconciles the security lists in pnpm-workspace.yaml (overrides, minimumReleaseAgeExclude, trustPolicyExclude, allowBuilds). Use this whenever the user mentions Dependabot, dependency PRs, dependency updates, bumping or merging deps, "dependency maintenance", a red/failing dependency PR, or cleaning up / pruning pnpm-workspace.yaml — even if they don't name the skill.
Pull structural and infrastructure changes from the upstream nextjs_boilerplate into a project forked from it. Use this whenever the user wants to sync, update, pull, catch up on, or merge boilerplate/upstream/template infra changes into a fork — including CI, configs, tooling, dependencies, shared libs, and app scaffolding. Use it even if the user just says "update from the boilerplate" or "what changed upstream" without naming this skill.
Contribute a fork's infrastructure and structural improvements back UP to the upstream nextjs_boilerplate by opening a pull request. Use this whenever the user wants to upstream, contribute, push back, send, or PR fork changes to the boilerplate/template/upstream — e.g. "open a PR with my CI improvements to the boilerplate", "contribute my eslint changes upstream", "send my infra changes back to the template". This is the opposite direction of sync-from-boilerplate.
| name | review-conventions |
| description | Audit feature code against convention rules, reporting violations with file:line references |
Audits existing code against the project's convention rules. Reports every imperative constraint violation with file:line references.
feature — (optional) feature name or path to audit (e.g. widgets, src/components/WidgetCard.tsx). If omitted, audits all files changed since the branch diverged from origin/main.| Rule file | Applies to paths |
|---|---|
.claude/rules/architecture.md | src/app/**/* |
.claude/rules/code-style.md | src/**/*.ts, src/**/*.tsx |
.claude/rules/features/components.md | src/app/**/_components/** |
.claude/rules/features/actions.md | src/app/**/_actions/** |
.claude/rules/features/hooks.md | src/app/**/_hooks/** |
.claude/rules/features/data-loading.md | src/app/**/_hooks/**, src/app/**/_actions/** |
.claude/rules/features/layout.md | src/app/**/layout.tsx |
.claude/rules/features/page.md | src/app/**/page.tsx |
.claude/rules/features/error.md | src/app/**/error.tsx, src/app/**/global-error.tsx |
Identify files to audit:
git diff --name-only "$(git merge-base HEAD origin/main 2>/dev/null || git rev-parse HEAD~1)" to get changed files. If origin/main is unavailable (fresh clone, offline) the command falls back to HEAD~1.For each file:
NEVER, ALWAYS, Never, or Always, or that contain must as a standalone word. Exclude content inside fenced code blocks and table example columns.Report findings:
VIOLATION: <rule-file> — "<constraint text>" — <source-file>:<line>PASS: <rule-file> — "<constraint text>"X violations found, Y constraints checkedChecking src/app/[locale]/(auth)/_components/login-form.tsx against features/components.md...
PASS: features/components.md — "NEVER fetch data inside a component with raw fetch()"
VIOLATION: features/components.md — "NEVER export default from component files" — login-form.tsx:1
Checking src/app/[locale]/(auth)/login/page.tsx against features/page.md...
PASS: features/page.md — "NEVER add conditional rendering or logic in page.tsx"
PASS: features/page.md — "NEVER call server actions or data fetching functions directly in page.tsx"
Summary: 1 violation found, 4 constraints checked