agentleFS
ly1836ly1836/spring-ai-rag-demo/.cursor/skills/review/SKILL.md

review

Skill86 starsChanged 7 months agoApache-2.0View on GitHub

对 spring-ai-rag-demo 单模块项目的代码变更进行全面审查,重点检查 Spring Boot 分层、租户隔离、计费扣费、SQL 参数化、前端约束与 OpenSpec 一致性。用于代码审查、检查变更时触发。

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use close-spec, design-with-images and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dzhngSkill

    close-spec

    When a spec under specs/<feature>/ is done shipping (a write-spec build, or any planned task that produced a spec), archive it to specs/done/ and rewrite it from a build-plan into a durable rationale — the why, the principles, the invariants — pointing back to the real code for the how. Use when implementation has landed and the plan no longer matches what shipped, or the user says a feature/spec is finished. Pairs with [write-spec](../write-spec/SKILL.md) (the plan this closes) and [review](../review/SKILL.md) (run before closing).

    Also in 5 projects that use this

  • dzhngSkill

    design-with-images

    Explore UI and visual design with image generation, then iterate the real implementation against the user-selected concept. Use when brainstorming visual directions, offering mockup variants, or implementing an approved generated design; do not stop at the mockups or the first code approximation.

    Also in 5 projects that use this

  • LambenthanSkill

    daily-arxiv

    每日从 arXiv 拉取新论文,过滤相关性,auto-ingest 高优先级论文,检测 SOTA 更新

    Also in 5 projects that use this

  • LambenthanSkill

    exp-eval

    实验判决门:Review LLM 独立评判实验结果 → 4 种判决路径 → 自动更新 claims confidence、ideas status、graph edges

    Also in 5 projects that use this

  • +3 more from dzhng
  • +5 more from Lambenthan

The file

Files
SKILL.md

代码审查

请对提供的代码变更进行全面审查。

审查前准备

  1. 阅读 openspec/config.yaml 获取通用约束。
  2. 阅读 openspec/context/spring-ai-rag-demo.md 获取项目架构、租户隔离、计费扣费、前端规范。
  3. 本项目是单模块 Spring Boot 应用,不使用其他项目的模块前缀或专属架构检查。

审查重点

1. 功能性缺陷

  • 逻辑错误或边界条件缺失
  • 业务逻辑与需求不符
  • 错误处理不完整
  • 后端 API 改动是否同步评估前端影响

2. 安全问题

  • 潜在的安全漏洞(注入、越权、信息泄露等)
  • API Key 等敏感信息是否写入日志
  • SQL 是否参数化(JdbcTemplate ? 占位符 / MyBatis #{} 占位符)
  • 多租户查询是否正确通过 TenantContext、BaseTool 或 MyBatis-Plus 租户插件隔离
  • Controller 是否直接暴露 Entity,是否应转换为 VO

3. 性能与事务

  • 缺失的数据库索引或分页限制
  • 事务范围是否合理
  • 禁止在本地事务内包含第三方 LLM 调用或长耗时操作
  • 计费扣费是否保证账户、流水、用量聚合的一致性

4. 代码质量

  • 是否使用构造器注入 + private final
  • Controller 是否保持薄层,只做参数绑定、调用 Service、返回 RespVO
  • 是否遵循业务域包结构:chat / billing / conversation / tool / config / vo / dao
  • 代码可读性、重复代码、注释是否准确

输出要求

  • 使用中文回复
  • 先简要说明本次审查覆盖的业务域
  • 按 功能性缺陷、安全问题、性能与事务、代码质量 组织发现的问题
  • 每个问题请注明:
    • 位置:文件及行号(如可获取)
    • 问题描述:具体是什么问题
    • 风险等级:高/中/低
    • 建议修改:具体的修复建议
  • 如未发现问题,请明确说明「未发现重大问题」

审查范围

  • 如未指定具体代码,请审查最近变更的文件
  • 如已选中代码片段,仅审查选中部分

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.