Agent Skills
› langfuse/langfuse
› code-review
code-review
GitHub用于审查代码变更的正确性、回归风险及最佳实践。涵盖安全、性能及测试覆盖,依据特定清单输出按严重程度排序的 findings,确保代码质量与安全合规。
Trigger Scenarios
需要审查代码变更而非实现功能时
涉及安全性、租户隔离或重大逻辑变更的代码评审
Install
npx skills add langfuse/langfuse --skill code-review -g -y
SKILL.md
Frontmatter
{
"name": "code-review",
"description": "Review Langfuse code changes for correctness, regressions, and best practices."
}
Code Review
Use this skill when the task is to review code changes rather than implement a feature.
Start Here
- Read
references/review-checklist.mdfor the repo's canonical review rules. - Read root
AGENTS.mdand the nearest packageAGENTS.mdfor the files under review. - If the review touches ClickHouse, also use the shared
clickhouse-best-practicesskill. - If the review touches backend code, also use the shared
backend-dev-guidelinesskill where relevant. - If the change accepts a user-supplied URL, adds outbound HTTP, introduces a
new integration, touches secrets, RBAC, redirect handling, product
analytics, browser monitoring, or session replay, also use the shared
security-reviewskill. Run itsreferences/checklist.mdbefore signoff.
Review Priorities
Focus on:
- correctness bugs
- behavioral regressions
- security and tenant-isolation risks
- performance issues with real impact
- missing or weak tests for risky changes
- Before calling coverage missing, identify the unique regression each proposed test catches. Prefer merging into the closest existing suite. Flag repeated tests of the same predicate across layers unless each proves a distinct transport, projection, or execution boundary.
Output Expectations
- Findings first, ordered by severity
- File and line references for each finding
- Short summary only after findings
- If no findings, say so explicitly and mention any residual risk or coverage gaps
Scope Guidance
Use references/review-checklist.md for Langfuse-specific checks such as:
- ClickHouse and Postgres migration expectations
- project-scoped tenant isolation checks
- API/Fern consistency
- banner-offset UI positioning
- environment variable access patterns
Do not duplicate those rules in ad hoc prompts or tool-specific command files.
Version History
-
f6e56cb
Current 2026-08-29 05:19
在安全审查触发条件中新增了产品分析、浏览器监控和会话回放相关的检查项。
- f7e3c26 2026-08-20 17:47


