Skip to content

Add skills code review agent example#140

Open
zzp1221 wants to merge 1 commit into
trpc-group:mainfrom
zzp1221:feat/issue-92-code-review-agent
Open

Add skills code review agent example#140
zzp1221 wants to merge 1 commit into
trpc-group:mainfrom
zzp1221:feat/issue-92-code-review-agent

Conversation

@zzp1221

@zzp1221 zzp1221 commented Jul 8, 2026

Copy link
Copy Markdown

概要

  • 新增 skills_code_review_agent 示例,并保持与 quickstart 一致的目录结构。
  • 实现基于 Skill 的自动代码评审流程,包含沙箱执行、Filter 治理、SQLite 持久化、敏感信息脱敏、finding 去重和结构化报
    告。
  • 新增 8 条公开 diff 样例和验收测试,覆盖报告生成、数据库存储、沙箱失败、超时与输出限制、高风险脚本拦截、敏感信息脱敏
    等场景。

主要内容

  • examples/skills_code_review_agent/run_agent.py
  • examples/skills_code_review_agent/agent/
  • examples/skills_code_review_agent/skills/code-review/
  • examples/skills_code_review_agent/schema.sql
  • examples/skills_code_review_agent/fixtures/
  • examples/skills_code_review_agent/sample_outputs/
  • tests/examples/test_skills_code_review_agent.py

测试

.venv\Scripts\python.exe -m pytest tests\examples\test_skills_code_review_agent.py
py -3.13 -m compileall examples\skills_code_review_agent tests\examples\test_skills_code_review_agent.py

结果:

- 15 passed
- compileall passed

@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@cbb6979). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             main        #140   +/-   ##
==========================================
  Coverage        ?   87.51591%           
==========================================
  Files           ?         467           
  Lines           ?       44008           
  Branches        ?           0           
==========================================
  Hits            ?       38514           
  Misses          ?        5494           
  Partials        ?           0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant