一键导入
best-practices
[pr-review-focus-area: Code Hygiene] Review code for functional style, component composition, hooks/context usage, and general code hygiene.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
[pr-review-focus-area: Code Hygiene] Review code for functional style, component composition, hooks/context usage, and general code hygiene.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Research a work item, draft an implementation plan, and begin work after approval.
Guided one-shot install — discover installed plugins (or help install new ones), pick install scope, calibrate risk tolerance into a concrete allowlist + hooks, scaffold or merge CLAUDE.md, and sanity-check the result.
Finalize work — commit via /commit, push, and create PRs on feature branches.
Reviewer-side PR workflow — checks out the branch in a worktree, runs focus-area reviews plus a senior-engineering pass, optionally cross-checks against an autonomous reviewer, and posts inline findings only on explicit approval. Read-only — never edits, commits, or pushes.
Fetch PR review comments, classify by severity and confidence, and fix the selected subset.
Triage CVE and SBOM scanner output (Trivy, Grype, Snyk, Docker Scout, Dependabot) into a ranked, deduplicated action list.
| name | best-practices |
| description | [pr-review-focus-area: Code Hygiene] Review code for functional style, component composition, hooks/context usage, and general code hygiene. |
| user-invocable | true |
| disable-model-invocation | true |
| allowed-tools | ["Read","Grep","Glob"] |
Review changed code for adherence to modern web development best practices.
/best-practices — reviews all changed files for code quality patterns.
any type usage. Flag every instance.as) unless accompanied by a comment explaining why.is, has, should, can prefixes.on prefix (e.g., onClick, onSubmit).console.log in production code (use the project's logger).Dispatch to the principal-frontend subagent with the line-level findings collected above. Ask it to apply its senior lens — composition over configuration, hook discipline, when useEffect is a smell — to the findings. Integrate its top findings into the Report Format below; do not replace the skill's verdict contract.
Invocation:
Agent({
subagent_type: "principal-frontend",
description: "Best-practices senior review",
prompt: "Review these best-practice findings: <summary of style, SRP, type-safety, naming, error-handling, and hygiene findings>. Apply senior scrutiny to composition over configuration, hook discipline, and cases where useEffect is a smell hiding a deeper design issue. Return top design risks in severity order."
})
For each file, list findings as [WARN] with the specific line and suggestion. Provide a summary count at the end.