AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified Apache-2.0 Self-run

Approve Code

skill-xinyiai0724-tools-approve-code · by xinyiai0724

记录代码人工审批结论,校验 change-requests/{CR-ID}/review-annotations/code.yml 已通过,并将 CR status 推进到 code-approved。用于 code-implementation pipeline 的 human_approval 之后。

No reviews yet
0 installs
43 views
0.0% view→install

Install

$ agentstack add skill-xinyiai0724-tools-approve-code

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-xinyiai0724-tools-approve-code)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Approve Code? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Skill: approve-code

类型: 开发期 Skill(develop/ 组,代码审批收口) 调用时机: code-implementation pipeline 的 human_approval 通过后

用途

将代码审查人的人工批准落成可追溯状态。review-code 负责结构化评审并推进到 code-reviewing;本 Skill 负责确认无 blocker 后推进到 code-approved,解锁 writeback pipeline。

参数

| 参数 | 类型 | 必填 | 说明 | |------|------|------|------| | cr_id | string | yes | 目标 CR-ID | | approver | string | no | 审批人 ID;为空使用 cr.md owners.development.id | | notes | string | no | 审批备注 |

执行步骤

  1. 读取 change-requests/{cr_id}/cr.md_backlog.yml 条目,确认当前 status 为 code-reviewing
  2. 确认 cr.md owners.development.idowners.development.assigned-at 均存在;若 approver 为空,使用该负责人。
  3. 确认 cr.md owners.test.idowners.test.assigned-at 均存在。
  4. 读取 change-requests/{cr_id}/review-annotations/code.yml,确认 verdict=pass 且 blockers 为空。
  5. 确认 change-requests/{cr_id}/test-report.md 存在且 frontmatter status=pass,并确认其 testerowners.test.id 一致;若不一致,必须在 approval.yml 记录偏差说明。
  6. 确认 review-annotations/code.yml 包含验证命令记录:lint/test/build 均为 pass,或明确标记不适用并说明原因,并引用 test-report.md
  7. 写入或更新 change-requests/{cr_id}/approval.ymlcode 段:
code:
  approver: {approver}
  approved-at: {YYYY-MM-DDTHH:mm:ss+08:00}
  owner-role: development
  test-owner: {cr.md owners.test.id}
  notes: "{notes 或 ''}"
  review-ref: "change-requests/{cr_id}/review-annotations/code.yml"
  test-report-ref: "change-requests/{cr_id}/test-report.md"
  1. 调用 cr-status-setnext_status=code-approvedtrigger=approve-codeexpected_current_status=code-reviewing)将 status 推进为 code-approved
  2. 输出摘要与下一步:writeback pipeline。

错误处理

| 场景 | 行为 | |------|------| | status 不是 code-reviewing | abort,输出当前 status 与允许的下一步 | | code 评审不存在或 verdict 非 pass | abort,要求先修复代码并重新运行 review-code | | test-report 不存在或 status 非 pass | abort,要求先运行 write-test-report 或修复测试失败项 | | 验证命令缺失 | abort,要求补充 lint/test/build 或不适用说明 | | cr-status-set 失败 | 回滚本次 approval.yml 修改,保持原 status |

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.