Skip to content

新增自动代码评审 Agent 示例#151

Open
douzhenyu wants to merge 1 commit into
trpc-group:mainfrom
douzhenyu:codex/skills-code-review-agent-fixture
Open

新增自动代码评审 Agent 示例#151
douzhenyu wants to merge 1 commit into
trpc-group:mainfrom
douzhenyu:codex/skills-code-review-agent-fixture

Conversation

@douzhenyu

Copy link
Copy Markdown

概述

新增 skills_code_review_agent 示例,实现一个基于 Skill、沙箱执行、Filter 治理、SQLite 落库和结构化报告的自动代码评审 Agent 原型。

Closes #92

主要变更

  • 新增 code-review Skill、规则文档和检查脚本。
  • 新增 diff 解析、沙箱执行、去重降噪、脱敏、落库和报告生成链路。
  • 新增 9 个测试 fixture,包括真实 sandbox runtime failure 场景。
  • 新增 README、架构说明和阶段规格文档。

修改类型

  • 新功能
  • 示例工程
  • 测试补充
  • 文档补充

测试覆盖

  • clean/security/async/db/tests/dedup/sandbox/sensitive fixtures
  • Filter 拦截与 denied script 不执行
  • 沙箱失败降级与 DB/report 记录
  • 敏感信息脱敏与 dry-run 链路

自测清单

  • test_cr_agent.py 23 tests passed
  • 真实 failure fixture 可运行
  • 未提交 .env.tmp_*、SQLite DB 等运行产物

@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@codecov

codecov Bot commented Jul 9, 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        #151   +/-   ##
==========================================
  Coverage        ?   87.51874%           
==========================================
  Files           ?         467           
  Lines           ?       44018           
  Branches        ?           0           
==========================================
  Hits            ?       38524           
  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.

@douzhenyu

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Rook1ex added a commit to trpc-group/cla-database that referenced this pull request Jul 9, 2026
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.

基于 Skills + 沙箱 + 数据库存储构建自动代码评审 Agent

1 participant