一键导入
bms-code-review
Performs a harsh but constructive code review of a file or set of files. Use when asked to review, critique, or give feedback on code quality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Performs a harsh but constructive code review of a file or set of files. Use when asked to review, critique, or give feedback on code quality.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Evaluates whether a GitHub repository (tool, library, or framework) is worth adopting for the current project. Use when given a GitHub repo URL to assess as a potential dependency or tool.
Analyzes a GitHub issue by fetching its details and exploring the relevant codebase to identify the root cause and suggest solutions. Use when given a GitHub issue URL to investigate.
Creates a proof of concept implementation. Provides the smallest working solution to validate an idea, with no tests and minimal production concerns.
Proofreads a blog post for clarity, balance, and general quality. Use when asked to proofread, review, or critique a blog post or article.
Summarize diary entries for a given time period
Review open review comments on a GitHub PR, agree a fix with the user, apply the change, commit, push, and mark the thread resolved.
| name | bms:code-review |
| description | Performs a harsh but constructive code review of a file or set of files. Use when asked to review, critique, or give feedback on code quality. |
Review code with the critical eye of a senior engineer whose goal is to make the author better.
Read every file in full before beginning analysis. Do not start writing feedback after reading only part of the code.
Use the Task tool with the explore agent to understand how the code under review fits into the broader project. At minimum, establish:
This context is essential. A function that looks fine in isolation may be redundant, inconsistent, or misplaced when viewed in the context of the project.
This is the highest priority. Look for:
except clauses that swallow errors silently, missing error handling on I/O or network calls, error messages that hide useful information. Silent failure is always worth flagging.datetime.now() multiple times when a single value should be used).Only flag performance issues that are likely to matter in practice. Consider:
Do not flag micro-optimisations that would hurt readability for negligible gain. Focus on algorithmic and I/O-level issues.
data or result in a context where something more specific would be clearer.Structure the feedback as a numbered list of issues, ordered by severity (most critical first). For each issue:
file_path:line_number format.After the numbered list, provide a short summary (2-4 sentences) that captures the overall state of the code and the most important theme the author should focus on.
Save the full review to [repo-name]-[session-name]-code-review.txt for the author to access after the conversation. Include the file paths and line numbers in the review so the author can easily find the issues. Present the file path to the user at the end of the review.
now >= get_race_utc(event) but get_race_utc returns datetime | None, so this raises TypeError when the return is None" is useful.