frontend-code-review by langgenius/dify
npx skills add https://github.com/langgenius/dify --skill frontend-code-review当用户要求审查前端代码(特别是 .tsx、.ts 或 .js 文件)时使用此技能。支持两种审查模式:
对于每个适用的文件和模式,请严格遵守下面的检查清单。
请参阅 references/code-quality.md、references/performance.md、references/business-logic.md 获取按类别划分的动态检查清单——将其视为需要遵循的规范规则集。
为每个规则违反情况标记紧急程度元数据,以便未来的审查者可以优先处理修复。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
当被调用时,响应必须严格遵循以下两个模板之一:
# 代码审查
发现 <N> 个需要修复的紧急问题:
## 1 <错误简要描述>
文件路径:<路径> 第 <行号> 行
<相关代码片段或指针>
### 建议修复
<建议修复的简要描述>
---
...(为每个紧急问题重复)...
发现 <M> 个改进建议:
## 1 <建议简要描述>
文件路径:<路径> 第 <行号> 行
<相关代码片段或指针>
### 建议修复
<建议修复的简要描述>
---
...(为每个建议重复)...
如果没有紧急问题,则省略该部分。如果没有建议,则省略该部分。
如果问题数量超过 10 个,则总结为“10+ 个紧急问题”或“10+ 个建议”,并且只输出前 10 个问题。
不要压缩各部分之间的空行;为了可读性,请保持原样。
如果使用模板 A(即,存在问题需要修复)并且至少有一个问题需要代码更改,请在结构化输出后附加一个简短的后续问题,询问用户是否希望您应用建议的修复。例如:“您希望我使用建议修复部分来解决这些问题吗?”
## 代码审查
未发现问题。
每周安装量
4.0K
代码仓库
GitHub 星标数
134.1K
首次出现
Jan 20, 2026
安全审计
安装于
claude-code3.0K
opencode1.9K
gemini-cli1.9K
cursor1.8K
codex1.8K
github-copilot1.6K
Use this skill whenever the user asks to review frontend code (especially .tsx, .ts, or .js files). Support two review modes:
Stick to the checklist below for every applicable file and mode.
See references/code-quality.md, references/performance.md, references/business-logic.md for the living checklist split by category—treat it as the canonical set of rules to follow.
Flag each rule violation with urgency metadata so future reviewers can prioritize fixes.
When invoked, the response must exactly follow one of the two templates:
# Code review
Found <N> urgent issues need to be fixed:
## 1 <brief description of bug>
FilePath: <path> line <line>
<relevant code snippet or pointer>
### Suggested fix
<brief description of suggested fix>
---
... (repeat for each urgent issue) ...
Found <M> suggestions for improvement:
## 1 <brief description of suggestion>
FilePath: <path> line <line>
<relevant code snippet or pointer>
### Suggested fix
<brief description of suggested fix>
---
... (repeat for each suggestion) ...
If there are no urgent issues, omit that section. If there are no suggestions, omit that section.
If the issue number is more than 10, summarize as "10+ urgent issues" or "10+ suggestions" and just output the first 10 issues.
Don't compress the blank lines between sections; keep them as-is for readability.
If you use Template A (i.e., there are issues to fix) and at least one issue requires code changes, append a brief follow-up question after the structured output asking whether the user wants you to apply the suggested fix(es). For example: "Would you like me to use the Suggested fix section to address these issues?"
## Code review
No issues found.
Weekly Installs
4.0K
Repository
GitHub Stars
134.1K
First Seen
Jan 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
claude-code3.0K
opencode1.9K
gemini-cli1.9K
cursor1.8K
codex1.8K
github-copilot1.6K
99,500 周安装