Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

propel-code-review-smoke-1773429953推进代码审查烟雾 1773429953

Agent Skill

propel-code-review-smoke-1773429953 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,108

周安装

328

GitHub Stars

公开资料未说明

下载量

2,545
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:propel-code-review-smoke-1773429953(推进代码审查烟雾 1773429953)
来源仓库:https://github.com/jasonyuezhang/propel-code-review-smoke-1773429953
安装命令:
openclaw skills install propel-code-review-smoke-1773429953
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install propel-code-review-smoke-1773429953

简介

调用 Propel Review API 执行异步差异代码审查。

  • 轮询任务状态并获取结构化评审结果与建议。
  • 支持自动发送评论反馈至代码仓库。propel-code-review-smoke-1773429953 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 适用于代码质量门禁与团队协作规范检查。
  • 需配置有效的 API 密钥与仓库访问权限。

SKILL.md

name
propel-code-review
description
Run async diff-based code reviews using the Propel Review API, poll for completion, retrieve structured findings, and send comment feedback. Use when reviewing the current branch diff or any Git diff with Propel.
metadata
{"clawdbot":{"requires":{"env":["PROPEL_API_KEY"],"bins":["curl","git","jq"]},"primaryEnv":"PROPEL_API_KEY","homepage":"https://www.propelcode.ai/"}}

Propel Review API Skill

Use this guide to interact with the Propel Review API from an AI agent. Always target the production API unless told otherwise.

Purpose

Run async, diff-based code reviews via the production API and retrieve comments.

Quick Permission Check

Before rollout to a new workspace/repo, run this from the target repository root:

plugins/propel-code-review/skills/propel-code-review/scripts/smoke_test_permissions.sh

It validates:

  • good token + connected repo
  • good token + unconnected repo
  • invalid token + connected repo

Pre-flight: Verify API Key

Before making any API call, check whether PROPEL_API_KEY is set:

if [ -n "$PROPEL_API_KEY" ]; then echo "PROPEL_API_KEY is set"; else echo "PROPEL_API_KEY is not set"; fi

If the variable is empty, unset, or you just received a 401/403 from the Review API, do not attempt any API calls with the current value. Follow these steps to capture a fresh token — each step is a separate action:

Step 1 — Tell the user and open the browser. Send this message and run the Bash command in the same response (in parallel):

Message to user:

PROPEL_API_KEY is not set. Opening the token creation page: https://app.propelcode.ai/administration/settings?tab=review-api-tokens&token_name=Claude+Code&scopes=reviews:read,reviews:write The name and scopes are pre-filled. Click Create token, copy it, and paste it here.

Bash command:

URL="https://app.propelcode.ai/administration/settings?tab=review-api-tokens&token_name=Claude+Code&scopes=reviews:read,reviews:write"
if command -v xdg-open >/dev/null; then xdg-open "$URL"; else open "$URL"; fi

Step 2 — Wait for the user to paste the token. Do not proceed until the user pastes a value starting with rev_. If the value doesn't start with rev_, tell them it doesn't look valid and ask them to try again.

Step 3 — Once you have a valid token, persist it and load it into the session. Run this in a single Bash call (replace <TOKEN> with the actual token):

case "$SHELL" in */zsh) SHELL_RC="$HOME/.zshrc" ;; */bash) SHELL_RC="$HOME/.bashrc" ;; *) SHELL_RC="" ;; esac; if [ -z "$SHELL_RC" ] && [ -f "$HOME/.zshrc" ]; then SHELL_RC="$HOME/.zshrc"; fi; if [ -z "$SHELL_RC" ] && [ -f "$HOME/.bashrc" ]; then SHELL_RC="$HOME/.bashrc"; fi; if [ -n "$SHELL_RC" ]; then printf '\
# Propel Review API token\
export PROPEL_API_KEY="%s"\
' "<TOKEN>" >> "$SHELL_RC" && echo "Saved to $SHELL_RC"; else echo "No shell profile found"; fi; export PROPEL_API_KEY="<TOKEN>"

Tell the user where the key was saved (e.g. "Saved to ~/.zshrc").

Step 4 — Continue with the review workflow.

Setup (Manual)

If you prefer to set the token yourself ahead of time:

export PROPEL_API_KEY="rev_..."

The token must be a Review API token (scoped to both reviews:write and reviews:read).

Base URL

https://api.propelcode.ai

Authentication

Use a bearer token in the Authorization header:

Authorization: Bearer $PROPEL_API_KEY

Endpoints (Only These)

Do not assume any other Review APIs exist. Only use the async endpoints below.

Create Review (Async)

POST /v1/reviews

Request body:

{
  "diff": "string (required)",
  "repository": "string (required)",
  "base_commit": "string (required)",
  "head_commit_sha": "string (optional)",
  "branch": "string (optional)"
}

Constraints:

  • diff max size: 1,000,000 bytes
  • repository max length: 255
  • base_commit max length: 255
  • head_commit_sha max length: 255
  • branch max length: 255

Notes:

  • base_commit should be a commit that exists in the remote repo history

(typically the base commit of the branch you are reviewing).

  • repository should be the canonical repo slug (for example, owner/repo)

derived from the git remote URL.

Response (202):

{
  "review_id": "uuid",
  "status": "queued",
  "repository": "owner/repo",
  "base_commit": "sha",
  "created_at": "...",
  "updated_at": "..."
}

Get Review Status/Results

GET /v1/reviews/:review_id

Response (200):

{
  "review_id": "uuid",
  "status": "queued|running|completed|failed",
  "poll_after_ms": 3000,
  "comments": [
    {
      "comment_id": "string",
      "file_path": "path",
      "line": 123,
      "message": "...",
      "severity": "error|warning|info"
    }
  ],
  "error": {
    "code": "generation_failed",
    "message": "..."
  }
}

Post Comment Feedback

POST /v1/reviews/:review_id/comments/feedback

Request body:

{
  "comment_id": "string (required)",
  "incorporated": true,
  "notes": "string (optional)"
}

Response (200):

{
  "review_id": "uuid",
  "comment_id": "string",
  "incorporated": true
}

Scripts Used by This Skill

Use the helper scripts in scripts/ instead of ad-hoc inline curl loops. Paths below are relative to this skill directory:

  • scripts/create_review.sh wraps POST /v1/reviews.
  • scripts/poll_review.sh wraps polling GET /v1/reviews/:review_id until

terminal status (completed or failed) or timeout.

  • scripts/post_comment_feedback.sh wraps

POST /v1/reviews/:review_id/comments/feedback.

Approval-Friendly Prefixes (One-Time)

If your client supports prefix-based trust/approval, approve these once before running this skill:

  • scripts/create_review.sh
  • scripts/poll_review.sh
  • scripts/post_comment_feedback.sh
  • git diff
  • git rev-parse
  • git remote get-url
  • gh pr view
  • jq

Workflow (Recommended)

  1. Resolve the base branch (PR base when available; otherwise remote default branch):

- BASE_BRANCH=$(gh pr view --json baseRefName -q '.baseRefName' 2>/dev/null || git remote show origin | sed -n '/HEAD branch/s/.*: //p')

  1. Compute the base commit (must exist in the remote repo history):

- git rev-parse "$BASE_BRANCH"

  1. Compute the current head commit and branch (for local review dedup context):

- git rev-parse HEAD - git rev-parse --abbrev-ref HEAD

  1. Compute the repository slug:

- git remote get-url origin | sed -E 's#(git@github.com:|https://github.com/)##; s/\\.git$//'

  1. Generate the diff:

- git diff "$BASE_BRANCH" > /tmp/review_api.diff

  1. Call scripts/create_review.sh with diff, base commit, repository slug, head commit, and branch.
  2. Handle create-review failures before polling (script exits non-zero and

prints the API response body): - 401/403: token invalid/expired/missing scope. Stop and ask user to refresh token. - 404: repository is not connected to the Propel workspace (or slug is wrong). Stop and ask user to connect/fix repo slug. - 400/413: invalid request or diff too large. Stop and show actionable fix. - 5xx: transient API error. Retry with bounded backoff, then stop and report if still failing.

  1. Poll with scripts/poll_review.sh until status is completed or failed.

The script keeps the existing 15 minute timeout budget, and honors poll_after_ms from the API when present.

  1. Present comments to the user with file/line context.
  2. For each comment, determine whether it is valid and applicable to the code.
  3. If valid, incorporate the change in the codebase. If invalid, do not change

the codebase.

  1. Immediately call scripts/post_comment_feedback.sh for each comment with

comment_id, incorporated true/false, and brief notes explaining the decision. Do not wait for user confirmation.

Example (Production)

BASE_BRANCH=$(gh pr view --json baseRefName -q '.baseRefName' 2>/dev/null || git remote show origin | sed -n '/HEAD branch/s/.*: //p')
BASE_COMMIT=$(git rev-parse "$BASE_BRANCH")
HEAD_COMMIT=$(git rev-parse HEAD)
BRANCH=$(git rev-parse --abbrev-ref HEAD)
REPO_SLUG=$(git remote get-url origin | sed -E 's#(git@github.com:|https://github.com/)##; s/\\.git$//')
git diff "$BASE_BRANCH" > /tmp/review_api.diff

CREATE_RESPONSE=$(
  scripts/create_review.sh \
    --diff-file /tmp/review_api.diff \
    --repo "$REPO_SLUG" \
    --base-commit "$BASE_COMMIT" \
    --head-commit-sha "$HEAD_COMMIT" \
    --branch "$BRANCH"
)

REVIEW_ID=$(echo "$CREATE_RESPONSE" | jq -r '.review_id // empty')
if [ -z "$REVIEW_ID" ]; then
  echo "$CREATE_RESPONSE"
  exit 1
fi

scripts/poll_review.sh \
  --review-id "$REVIEW_ID" \
  --max-attempts 30 \
  --sleep-seconds 30 \
  --output-file /tmp/review_api.result.json

# The poller uses the 30x30s budget above, but will follow API-provided
# poll_after_ms hints when the server returns them.

cat /tmp/review_api.result.json

# Example feedback posts after deciding incorporate true/false per comment.
jq -c '.comments[]?' /tmp/review_api.result.json | while read -r comment; do
  COMMENT_ID=$(echo "$comment" | jq -r '.comment_id // empty')
  if [ -z "$COMMENT_ID" ]; then
    continue
  fi
  scripts/post_comment_feedback.sh \
    --review-id "$REVIEW_ID" \
    --comment-id "$COMMENT_ID" \
    --incorporated true \
    --notes "Applied in this branch."
done

Troubleshooting

  • 401/403 — re-run the pre-flight check above. The token may be missing,

expired, or missing scopes. Guide the user to generate a new one at: https://app.propelcode.ai/administration/settings?tab=review-api-tokens&token_name=Claude+Code&scopes=reviews:read,reviews:write

  • 404 {"error":"Repository not found"} — the repository string does not match

a repo connected to the account. Treat this as an access/config problem, not a retryable failure.

  • 413 — the diff exceeded the 1,000,000 byte limit.

Permission Handling Contract

If review creation returns 401, 403, or 404, do all of the following:

  1. Stop the review flow immediately (do not poll and do not retry in a loop).
  2. Report the exact repository slug used.
  3. Report an actionable next step:

- 401/403: "refresh token and confirm reviews:read + reviews:write scopes". - 404: "connect this repository in Propel workspace, or correct owner/repo slug".

  1. Mark the run as blocked until user intervention.

Notes for Agents

  • Do not log or expose tokens in output.
  • Always use https://api.propelcode.ai until told otherwise.
  • Use scripts/create_review.sh, scripts/poll_review.sh, and

scripts/post_comment_feedback.sh instead of inline curl commands.

  • The agent must decide whether each comment is valid, incorporate fixes when

valid, and report feedback automatically via the feedback endpoint using the comment_id from the review response (no user confirmation required).

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

77.52%
按下载量换算1,973

安全审计

VirusTotal

可疑

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills