跳到正文
TakoAPI
返回技能列表

pr-risk-analyzer

由 nerdvana-labs 提供

Git & GitHub
449下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Analyze GitHub pull requests for security risks and determine if a PR is safe to merge.

描述

该技能的功能

Evaluates a GitHub pull request for security risks before merging. Checks for exposed secrets, large diffs, and sensitive file modifications. Returns a risk score, flagged issues, and a merge recommendation.

Surfaces security and scope issues in a PR without manually reading every diff or running a separate SAST tool.

何时使用

  • Checking if a dependency update PR introduces secrets
  • Reviewing a contractor's PR before merging to main
  • Scanning a large refactor for risky file changes
  • Quick pre-deployment PR audit in a CI review process
  • Flagging high-risk PRs in a busy open source repo

示例工作流

输入

User asks: Is PR #142 in acme-org/backend safe to merge?

智能体
  1. 1

    Identify repo as acme-org/backend and PR number as 142

  2. 2

    Ask user for GitHub token if repo is private

  3. 3

    POST to pr-risk-analyzer.onrender.com/analyze-pr with repo, pr_number, and token

  4. 4

    Parse riskScore, riskLevel, issues, and summary from response

  5. 5

    Present risk level, bullet-pointed issues, and a clear merge recommendation

输出

Risk level: Medium. Issues: hardcoded API key in config.js, 1,200 lines changed across 34 files. Recommendation: Needs review before merging.

前置要求

  • GitHub personal access token (required for private repositories)

安装

clawhub install nerdvana-labs/pr-risk-analyzer

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接