跳到正文
cccskills
免费在 GitHub 公开

distill-pr-intent

Side-effect-free distillation of a single OpenClaw PR into a short intent memo (stdout-only).

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md1.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Distill PR Intent (single PR, stdout-only)

Goal

Given one PR number in openclaw/openclaw, output a short memo answering:

What was the author trying to accomplish (motivation / problem framing / bet), as evidenced by the code change?

Inputs

  • Required: PR number (assume repo openclaw/openclaw).

Rules

  • No external side effects: no comments, labels, merges, pushes.
  • Prefer code-derived intent. PR title/body are secondary.
  • Do not guess. If intent is unclear from artifacts, say so.
  • Keep output short + stable. No telemetry/timing in the memo.

Output format (stdout)

PR INTENT (openclaw#<PR>)

<free prose, up to ~5 sentences; keep under ~10 lines>

Mechanical steps (deterministic)

  1. Work in the OpenClaw repo worktree tooling:
cd /var/lib/clawd/repos/openclaw
scripts/pr review-init <PR>
scripts/pr review-checkout-pr <PR>

source .local/review-context.env
  1. Gather diff artifacts:
git diff --name-status "$MERGE_BASE"..HEAD > .local/intent.name-status.txt
git diff --stat "$MERGE_BASE"..HEAD > .local/intent.stat.txt

# Patch budget: 200KB
patch_bytes=$(git diff "$MERGE_BASE"..HEAD | wc -c | tr -d ' ')
if [ "$patch_bytes" -le 200000 ]; then
  git diff "$MERGE_BASE"..HEAD > .local/intent.patch.txt
  echo PATCH_OK > .local/intent.patch-mode.txt
else
  : > .local/intent.patch.txt
  echo TOO_LONG > .local/intent.patch-mode.txt
fi
  1. Distill intent:
  • If PATCH_OK: infer intent from .local/intent.patch.txt.
  • If TOO_LONG: infer intent from .local/intent.name-status.txt + .local/intent.stat.txt.

If multiple intents exist, mention 2–3 briefly.

If nothing coherent: say Intent unclear: ....

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Run PR intent distillation across a PR set and persist outputs + sidecar metadata to /memory/pr-intent.

中文简介正在准备中。当前显示原文说明。

openclaw/clawdinators1582026年10月19日 更新

fleet

免费

Control CLAWDINATOR fleet lifecycle via the control API. Use for /fleet deploy or /fleet status.

中文简介正在准备中。当前显示原文说明。

openclaw/clawdinators1582026年10月19日 更新

landpr

免费

Land an OpenClaw PR end-to-end using the repo landpr checklist. Use when someone requests “/landpr” or asks to merge/land a PR.

中文简介正在准备中。当前显示原文说明。

openclaw/clawdinators1582026年10月19日 更新

lurk

免费

Monitor Discord channel activity and persist notable items to memory. Run from main session during heartbeat.

中文简介正在准备中。当前显示原文说明。

openclaw/clawdinators1582026年10月19日 更新

triage

免费

Analyze GitHub and Discord signals to prioritize maintainer attention. Use when asked about priorities, what's hot, what needs attention, or project status.

中文简介正在准备中。当前显示原文说明。

openclaw/clawdinators1582026年10月19日 更新

查看 openclaw 的全部技能

报告此技能的问题