Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

GitHub Smart Code Digest

v1.0.0

GitHub Smart Code Digest — 自动监控仓库 Commits/PRs,AI 智能代码审查, 生成可视化审查卡片,汇总发布到飞书 Wiki。适用于团队代码质量追踪和工程管理者日报/周报生成。 触发词:代码审查报告、GitHub 监控、PR 审查日报、代码质量汇总、工程师日报。

0· 55·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zlszhonglongshen/github-smart-code-digest.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "GitHub Smart Code Digest" (zlszhonglongshen/github-smart-code-digest) from ClawHub.
Skill page: https://clawhub.ai/zlszhonglongshen/github-smart-code-digest
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install github-smart-code-digest

ClawHub CLI

Package manager switcher

npx clawhub@latest install github-smart-code-digest
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The skill's name/description match the runtime actions (use GitHub data, run reviews, generate images, publish to Feishu). It declares dependencies on other skills (github, code-review-skill, card-renderer, feishu-wiki) inside SKILL.md which explains many referenced commands. However the registry metadata lists no required environment variables or primary credential even though the SKILL.md explicitly requires GitHub authentication (gh auth) and Feishu app credentials — an inconsistency that should be resolved.
!
Instruction Scope
SKILL.md instructs the agent to run gh CLI commands, generate per-PR diffs, write/read /tmp artifacts, run a python script (generate_digest_card.py), and use FEISHU_APP_ID/FEISHU_APP_SECRET. Those operations are within the stated purpose, but SKILL.md references environment variables and a local script that are not present in the declared metadata or file list. The instruction set also gives broad discretion (parallel agents, filtering thresholds) which is normal for a combo but could lead to unexpected autonomous behavior if dependent skills are untrusted.
Install Mechanism
This is an instruction-only skill with no install spec and no code files beyond SKILL.md/README/workflow.json, which minimizes direct installation risk. It relies on external skills and host binaries (gh, python) being available; no downloads or archive extraction are specified in this skill.
!
Credentials
The SKILL.md lists FEISHU_APP_ID and FEISHU_APP_SECRET as required environment variables and requires 'gh auth login' (GitHub credentials), but the registry metadata shows no required env vars or primary credential. Requesting Feishu app secrets is proportionate to publishing to Feishu, and GitHub auth is expected for GH CLI usage — but the omission in the metadata is an incoherence and increases risk because you can't see at a glance which secrets will be used. Also the SKILL.md references a file/agent artifact (CLAUDE.md) in compliance checks which is unusual and unexplained.
Persistence & Privilege
The skill does not request always: true and does not modify other skills' configs. It expects to create transient /tmp artifacts and to create Wiki pages in the user's Feishu space. Autonomous invocation is allowed (platform default) but not combined with any extra persistent privileges in the skill manifest.
What to consider before installing
Before installing or running this skill: 1) Clarify and confirm the required credentials — SKILL.md expects FEISHU_APP_ID and FEISHU_APP_SECRET and a logged-in GitHub CLI, but the registry metadata lists none. Only provide these secrets if you trust the skill and its dependent skills. 2) Verify the provenance of the dependent skills (code-review-skill, card-renderer, feishu-wiki) and the source of the python rendering script (generate_digest_card.py) — those components will be executed but are not included in this package. 3) Review Feishu app permissions and grant least privilege (Wiki write only) and test first on a non-sensitive repo / a sandbox Feishu space. 4) Ask the publisher to update the manifest to declare required env vars and to explain the 'CLAUDE.md' reference and where the card-renderer script lives; absence of these details is the primary reason this is flagged as suspicious. 5) If you have limited trust, run the workflow manually in a controlled environment rather than enabling scheduled/automated runs.

Like a lobster shell, security has layers — review code before you run it.

latestvk973m53dwdvf9372j4e356fj6x84z7ma
55downloads
0stars
1versions
Updated 1w ago
v1.0.0
MIT-0

GitHub Smart Code Digest

自动化 GitHub 代码审查与飞书 Wiki 推送工作流,5 分钟生成团队代码质量报告。

适用场景

  • 工程团队每日/每周代码审查汇总
  • 技术负责人追踪多个仓库的 PR 质量
  • 自动化生成工程师日报/周报内容
  • 开源项目维护者追踪贡献代码质量
  • CI/CD 流水线失败后的审查报告归档

工作流程

Step 1 → github
   │   获取仓库列表 → 筛选目标仓库
   │   获取指定时间范围内的 Commits + PR 列表
   ↓
Step 2 → code-review-skill
   │   对每个 Open/Recent PR 执行 5 维度 AI 审查
   │   输出:问题列表 + 置信度评分 + 修复建议
   ↓
Step 3 → card-renderer
   │   生成审查摘要卡片(封面图 + 详情页)
   │   包含:仓库名、PR 数量、问题分布、质量评分
   ↓
Step 4 → feishu-wiki
       创建/更新飞书 Wiki 页面
       支持定时任务自动触发

使用方式

手动触发

# 审查单个仓库(默认最近 7 天)
openclaw run github-smart-code-digest --repo owner/repo

# 指定时间范围和仓库
openclaw run github-smart-code-digest \
  --repo owner/repo \
  --since "2026-04-10" \
  --until "2026-04-17" \
  --feishu-space-id <知识空间ID>

定时自动推送(推荐)

# 每天早上 9:00 推送代码审查日报
openclaw cron add "0 9 * * *" "github-smart-code-digest" \
  --name "代码审查日报" \
  --repo owner/repo

# 每周一早上 9:30 推送周报
openclaw cron add "0 9:30 * * 1" "github-smart-code-digest" \
  --name "代码审查周报" \
  --repo owner/repo1,owner/repo2 \
  --period weekly

配置项 (config.yaml)

github:
  # 监控的仓库列表
  repos:
    - owner/repo1
    - owner/repo2
  # 默认审查时间范围(天)
  default_days: 7
  # 最小 PR 变更行数(过滤小修改)
  min_pr_lines: 10

feishu:
  # 飞书知识空间 ID
  wiki_space_id: ""
  # 飞书 Wiki 父节点(可选,指定挂载位置)
  wiki_parent_node: ""

card:
  # 卡片风格
  style: macbook-pro   # macbook-pro | cyberpunk | bauhaus
  # 输出格式
  format: png          # png | jpg

cron:
  # 默认启用定时任务
  enabled: true
  # 推送时间(HH:MM)
  push_time: "09:00"
  # 报告周期
  period: daily        # daily | weekly

Step 详解

Step 1: github — 仓库信息采集

# 获取仓库最近 PR 列表(最近 7 天)
gh pr list --repo owner/repo \
  --state open \
  --search "created:>=$(date -d '7 days ago' +%Y-%m-%d)" \
  --json number,title,author,createdAt,changedFiles,additions,deletions

# 获取指定 PR 的文件变更
gh pr diff <pr-number> --repo owner/repo

# 获取最近 Commits
gh api repos/owner/repo/commits?since=<unix-timestamp>

输出中间结果(JSON):

{
  "repo": "owner/repo",
  "period": "2026-04-10 ~ 2026-04-17",
  "prs": [
    {
      "number": 123,
      "title": "feat: add user authentication",
      "author": "dev1",
      "changed_files": 8,
      "additions": 245,
      "deletions": 32,
      "created_at": "2026-04-14T10:00:00Z"
    }
  ],
  "commits": 12
}

Step 2: code-review-skill — AI 代码审查

对每个 PR 独立执行 5 维度审查(并行处理):

维度检查内容最低报告置信度
正确性业务逻辑、边界条件、错误处理80%
安全性注入、认证绕过、数据暴露80%
可维护性代码复杂度、命名、可读性80%
性能N+1 查询、内存泄漏、资源管理80%
规范合规CLAUDE.md、编码规范、测试覆盖80%

审查输出

{
  "pr_number": 123,
  "issues": [
    {
      "severity": "important",
      "file": "src/auth/service.ts",
      "line": "45-47",
      "description": "数据库操作缺少事务保护",
      "confidence": 85,
      "suggestion": "使用 BEGIN...COMMIT 包装多个写操作"
    }
  ],
  "summary": {
    "total_issues": 3,
    "critical": 0,
    "important": 2,
    "minor": 1
  },
  "approval_ready": false
}

Step 3: card-renderer — 可视化卡片生成

生成审查汇总卡片(两张图):

卡片 ① 封面图

  • 标题:GitHub 代码审查日报 / 周报
  • 仓库名称 + 时间范围
  • 总体质量评分(五星或雷达图)
  • PR 总数 / 问题总数

卡片 ② 详情页

  • 各仓库 PR 分布柱状图
  • 问题类型分布饼图
  • 高置信度问题列表(Top 5)
  • 审查覆盖率(%)
# 调用 card-renderer
python3 scripts/generate_digest_card.py \
  --data /tmp/digest_data.json \
  --style macbook-pro \
  --output /tmp/digest_card.png

Step 4: feishu-wiki — 发布飞书 Wiki

在指定知识空间创建 Wiki 页面:

# GitHub 代码审查报告

**仓库**: owner/repo  
**时间范围**: 2026-04-10 ~ 2026-04-17  
**生成时间**: 2026-04-17 09:00

## 审查概览

| 指标 | 数值 |
|------|------|
| PR 总数 | 12 |
| 问题总数 | 8 |
| 高置信度问题 | 3 |
| 审查覆盖率 | 100% |

## 详细审查结果

### PR #123: feat: add user authentication

- 问题数:3
- 状态:⚠️ 需要修改
- 关键问题:
  - `src/auth/service.ts:45` — 数据库操作缺少事务保护(置信度 85%)
  - `src/auth/middleware.ts:22` — 缺少权限验证中间件(置信度 82%)

## 审查卡片

![审查汇总卡片](file:///tmp/digest_card.png)

输出文件

文件路径说明
PR 数据/tmp/digest_prs.json原始 PR 列表
审查报告/tmp/digest_reviews.jsonAI 审查结果
封面卡片/tmp/digest_cover.png封面图
详情卡片/tmp/digest_detail.png详情页图
Wiki 页面飞书 Wiki最终发布的报告

注意事项

  • 仅报告置信度 ≥ 80% 的问题,避免信息噪音
  • 过滤小 PR(变更 < 10 行),减少误报
  • 代码审查使用 5 个独立 Agent 并行审查,确保全面性
  • 飞书 Wiki 每次运行会创建新页面(历史报告保留)
  • 建议一个知识空间用于归档,形成可追溯的审查历史

前置条件

  1. GitHub CLI (gh) 已安装并完成 gh auth login
  2. 飞书 App 具备 Wiki 写入权限
  3. 环境变量
    • FEISHU_APP_IDFEISHU_APP_SECRET(飞书应用凭证)

Comments

Loading comments...