nightly-review

Nightly automated code review workflow. Uses off-peak hours (00:00–06:00) and Claude Code (Zhipu GLM-5.1) to automatically review code changes in organization repositories, find bugs and submit issues. Trigger conditions: (1) setting/managing nightly review scheduled tasks; (2) keywords: "nightly review", "automated review", "nightly review", "code inspection", "cron review". Dependency: myserver3 Claude Code environment (or CNB Workspaces).

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "nightly-review" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-9beb40eb97ac1a655f28dba503a51481cfeaa4727a39167325e4142dcaf328bc. Verify the upstream source and version against https://skillhub.cn/skills/user_f12a44b7/self-dev-skill-nightly-review before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Nightly automated code review workflow. Uses off-peak hours (00:00–06:00) and Claude Code (Zhipu GLM-5.1) to automatically review code changes in organization repositories, find bugs and submit issues. Trigger conditions: (1) setting/managing nightly review scheduled tasks; (2) keywords: "nightly review", "automated review", "nightly review", "code inspection", "cron review". Dependency: myserver3 Claude Code environment (or CNB Workspaces).

0 Downloads

Introduction source: third_party · user_f12a44b7 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: nightly-review
slug: self-dev-skill-nightly-review
version: 1.0.0
displayName: "Self Dev Skill Nightly Review"
description: 夜间自动代码评审工作流。利用凌晨 0:00-6:00 非高峰时段,通过 Claude Code(智谱 GLM-5.1)自动评审组织下仓库的代码变更,发现 Bug 并提交 Issue。触发条件:(1) 设置/管理夜间评审定时任务 (2) "夜间评审"、"自动评审"、"nightly review"、"代码巡检"、"cron review"。依赖:myserver3 Claude Code 环境(或 CNB Workspaces)。

夜间自动代码评审

每天凌晨自动评审组织仓库代码变更,发现 Bug 并提交 Issue。

工作原理

1:00 AM ── cron 触发 ──→ 克隆目标仓库 ──→ 检查近 24h 变更
                                              │
                                    无变更 → 跳过
                                    有变更 → Claude Code 评审
                                              │
                                    提取最近变更文件列表
                                    逐文件/逐模块运行 claude --print
                                    收集评审结果
                                              │
                              创建 Issue 提交评审报告到 CNB

评审范围

所有组织下的活跃仓库,按优先级:

优先级 组织 仓库 说明
P0 cnbvv dzflzx-h5 当前主项目
P0 yunjinhong linghang 领航小程序
P1 cnbmm linghang 领航客户版
P1 cnbnn cloudbase-engineer NPC 工具
P1 cnbnn nodejs Node SDK
P2 cnbll cloudbase-skills 技能仓库
P2 cnbll cloudbase-auth 认证模块
P2 cnbvv workspace 工作空间
P3 cnbmm browser-agent 浏览器自动化
P3 cnbmm ai-office AI 办公
P3 cnbmm chem-* 化工知识库

配置

详见 references/config.md。

执行脚本

详见 scripts/run-review.sh。

评审策略

  1. 变更检测:只评审最近 24 小时有 commit 的仓库
  2. 增量评审:只评审 git diff HEAD~5(最近 5 个 commit)变更的文件
  3. 分块评审:每次 claude --print 只评审 3-5 个文件,避免 OOM
  4. 问题分级:P0 安全/Bug、P1 逻辑/质量、P2 建议
  5. 结果提交:有 P0/P1 问题 → 创建 Issue;仅有 P2 → 跳过(避免噪音)
  6. 去重:同仓库同文件 24h 内不重复 Issue

Claude Code 提示词

claude --print "请审查以下代码变更,重点关注安全漏洞、逻辑错误、并发问题。

## 变更文件
$(git diff HEAD~5 --name-only)

## 变更内容
$(git diff HEAD~5)

## 评审要求
1. P0 严重:安全漏洞、数据丢失、权限绕过
2. P1 重要:逻辑错误、竞态条件、边界遗漏
3. P2 建议:代码风格、性能优化、可维护性

## 输出格式
对每个问题输出:
- 文件: {path}
- 严重程度: P0/P1/P2
- 问题描述: ...
- 建议修复: ...

如果代码质量良好没有发现问题,回复'NO_ISSUES_FOUND'。
最后给出总结:发现 {数量} 个问题(P0: {n}, P1: {n}, P2: {n})。"

定时调度

通过 OpenClaw cron 在凌晨 1:00 触发:

0 1 * * * bash /home/ubuntu/.openclaw/workspace/skills/nightly-review/scripts/run-review.sh

非高峰额度

GLM-5.1 在非高峰期(0:00-6:00 UTC+8 之前)仅 1 倍抵扣,性价比最高。 高峰期 14:00-18:00 为 3 倍。每个评审周期约消耗 50k-200k tokens。

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 针对开发团队的高频刚需场景,自动化代码评审能显著提升代码质量
  • 利用非高峰时段执行,成本效益高
  • 覆盖多个优先级仓库,评审策略完善
Trigger Precision95/100

Highlights

  • 触发条件清晰,包含设置/管理定时任务和多个关键词
  • 关键词覆盖全面,边界清晰
  • 支持中英文多种触发方式
Structure and Standards95/100

Highlights

  • 结构完整,包含工作原理、评审范围、配置、执行脚本等
  • 有详细的工作流程图和步骤说明
  • 包含端到端示例和完整的 frontmatter
Execution Reliability90/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md 引用了 references/config.md 和 scripts/run-review.sh 文件,但未传入

    Recommendation: 请补充 references/config.md 和 scripts/run-review.sh 文件,或移除相关引用

Highlights

  • 工具来源明确,参数正确
  • 覆盖主要异常情况,有去重机制
  • 不可逆操作有确认机制,避免噪音
Evidence Verifiability (mean of the first four)93/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Invoke commands or scripts

    Read the script and arguments first. Use ordinary privileges and a scoped directory; confirm installation or execution in your host tool.

    Mentioned in main document · lines 95

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.