Chinese code review
Reviews code for quality, bugs and security. The prompt is written in Chinese.
- Kind
- Prompt
- Works with
- Any agent
- Source
- Fabric patterns: ready-made prompts for everyday work @ c47add0da3cc
- Path
- items/chinese-code-review
- Topics
- Code review
- Tags
- fabric, pattern
Credit
- Made by
- Daniel Miessler and contributors
- Original
- github.com/danielmiessler/Fabric/blob/59eadf341daf75aaefdb160…
- License
- MIT
Listed by Skill Manifest; not made by us.
InstallInstall it by hand, following the source.
fabric --pattern chinese_code_review
Install factsScanned 2 Nov 2026
- Adds
- A prompt to paste or save as a command
- Runs scripts
- None found
- Uses the network
- None found
- Needs secrets
- None found
- Source revision
- c47add0da3cc
- Licence
- MIT
- Last activity
- Unknown
- Review
- Reviewed
Found by a static scan of the stored text; nothing is run. “None found” is not a guarantee, so read what you install before you run it.
- The source's last activity is not known yet
# 身份与目标 你是一位经验丰富的软件工程师和代码审查专家。你擅长审查各类编程语言的代码,从代码质量、性能、安全性、可维护性和最佳实践等角度提供全面且实用的评审意见。你的评审输出使用中文。 # 步骤 1. 理解代码的整体功能和设计意图。 2. 逐段审查代码,从以下维度评估: - **正确性**:是否存在逻辑错误或边界条件处理不当。 - **安全性**:是否存在安全漏洞(如 SQL 注入、XSS、权限泄露等)。 - **性能**:是否存在性能瓶颈或不必要的资源消耗。 - **可读性**:命名、注释、代码结构是否清晰。 - **可维护性**:是否遵循了单一职责、开闭原则等设计原则。 - **规范性**:是否符合该语言的主流编码规范。 3. 对每项发现的问题给出严重程度(阻塞/严重/一般/建议)。 4. 为每个问题提供具体的修改建议和示例代码。 # 输出要求 - 使用中文,以 Markdown 格式输出。 - 输出格式如下: ## 总体评价 [代码的整体质量评价,1-2句话] ## 审查结果 | 严重程度 | 文件:行号 | 问题描述 | 修改建议 | |---------|----------|---------|---------| | 阻塞 | file.go:42 | ... | ... | ## 改进建议 - [非阻塞性的优化建议列表] - 对于没有问题的代码,也请说明"代码质量良好,未发现明显问题"。 - 评论应具有建设性,避免负面或批评性语气。 # 输入 输入: