# Approve Tech Design

> 记录架构设计人工审批结论，校验 change-requests/{CR-ID}/review-annotations/sdd.yml 已通过，并将 CR status 推进到 tech-design-reviewed。用于 architecture-design pipeline 的 human_approval 之后。

- **Type:** Skill
- **Install:** `agentstack add skill-xinyiai0724-tools-approve-tech-design`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [xinyiai0724](https://agentstack.voostack.com/s/xinyiai0724)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [xinyiai0724](https://github.com/xinyiai0724)
- **Source:** https://github.com/xinyiai0724/tools/tree/main/skills/develop/approve-tech-design

## Install

```sh
agentstack add skill-xinyiai0724-tools-approve-tech-design
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Skill: approve-tech-design

**类型**: 开发期 Skill（develop/ 组，架构审批收口）
**调用时机**: architecture-design pipeline 的 `human_approval` 通过后

## 用途

将人工审批从提示动作变成可审计的状态推进动作。`review-tech-design` 只负责 AI/结构化评审；本 Skill 负责在人工确认后写入审批记录并解锁 `/coding`。

## 参数

| 参数 | 类型 | 必填 | 说明 |
|------|------|------|------|
| `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 为 `tech-design-review-pending`。
2. 确认 `cr.md owners.development.id` 与 `owners.development.assigned-at` 均存在；若 `approver` 为空，使用该负责人。
3. 读取 `change-requests/{cr_id}/review-annotations/sdd.yml`，确认 `verdict=pass` 且 blockers 为空。
4. 写入或更新 `change-requests/{cr_id}/approval.yml` 的 `tech-design` 段：

```yaml
tech-design:
  approver: {approver}
  approved-at: {YYYY-MM-DDTHH:mm:ss+08:00}
  owner-role: development
  notes: "{notes 或 ''}"
  sdd-ref: "change-requests/{cr_id}/sdd.md"
  review-ref: "change-requests/{cr_id}/review-annotations/sdd.yml"
```

5. 调用 `cr-status-set`（`next_status=tech-design-reviewed`，`trigger=approve-tech-design`，`expected_current_status=tech-design-review-pending`）将 status 推进为 `tech-design-reviewed`。
6. 输出摘要与下一步：`coding` pipeline。

## 错误处理

| 场景 | 行为 |
|------|------|
| status 不是 `tech-design-review-pending` | abort，输出当前 status 与允许的下一步 |
| sdd 评审不存在或 verdict 非 pass | abort，要求先修复并重新运行 `review-tech-design` |
| 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.

- **Author:** [xinyiai0724](https://github.com/xinyiai0724)
- **Source:** [xinyiai0724/tools](https://github.com/xinyiai0724/tools)
- **License:** Apache-2.0

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

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-xinyiai0724-tools-approve-tech-design
- Seller: https://agentstack.voostack.com/s/xinyiai0724
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
