Install
$ agentstack add skill-timzaak-web-dev-skills-t-backend-finalize ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo 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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
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 →About
后端收口执行
运行时边界统一参考:${CLAUDE_PLUGIN_ROOT}/protocols/runtime-boundaries.md
Purpose
- 读取
.ai/task/[feature]/.state.json和backend/finalize.md。 - 在
backend-accept通过后执行统一收口: /code-reviewcargo clippy --fix --allow-dirty --allow-staged --all-targets --all-featurescargo fmt --all- OpenAPI 文档导出与前端 API 生成
- 若任一步失败,修复后默认从失败步骤恢复,不提供额外恢复参数。
Args
| 参数 | 说明 | |---|---| | [feature] | 功能名 |
Preconditions
.ai/task/[feature]/.state.json必须存在且可解析。backend阶段必须已生成,且存在:backend/index.mdbackend/accept.mdbackend/accept/*.mdbackend/finalize.mdtasks.backend.accept.status必须为completed。
Fixed Flow
- 读取
backend/accept.mdmanifest、backend/accept/*.mditem handoff、backend/finalize.md、backend 改动范围和最小必要状态。 - 确定
/code-review作用范围: - 优先使用
finalize.md中声明的 feature 相关 backend 改动文件 - 若未显式声明,则回退到当前工作区
backend/**改动集 - 执行
/code-review,简化目标范围内代码。 - 执行
cargo clippy --fix --allow-dirty --allow-staged --all-targets --all-features。 - 执行
cargo fmt --all。 - 导出 OpenAPI 文档并生成前端 API 客户端:
- 先根据目标仓库的 backend app crate、现有导出脚本或文档定位实际导出 binary
- 执行
cd backend && cargo run --bin -- --export-openapi ../frontend/api.json && cd ../ - 验证生成的 OpenAPI JSON(格式、路径占位符 camelCase)
- 执行
cd frontend && npm run generate-api && cd ../ - 验证生成的 TypeScript 文件
- 若任一步出现问题,则修复并从失败步骤恢复。
State Transition
- 开始前写入:
tasks.backend.finalize.status = runningtasks.backend.finalize.started_at =phases.backend.status = awaiting_finalize- 维护步骤级状态:
tasks.backend.finalize.current_steptasks.backend.finalize.steps.code_review|clippy|fmt|openapi_export|frontend_api_gen- 某一步成功后,写入对应 step 为
completed。 - 某一步失败后:
tasks.backend.finalize.status = failedtasks.backend.finalize.last_error =tasks.backend.finalize.current_step =phases.backend.status = failed- 再次执行同一命令时:
- 默认从
current_step或最后失败步骤恢复 - 若失败发生在
openapi_export或之后,修复后至少重新执行clippy -> fmt -> openapi_export -> frontend_api_gen - 全部成功后:
tasks.backend.finalize.status = completedtasks.backend.finalize.completed_at =phases.backend.status = completed
Success Criteria
/code-review已执行且没有遗留待处理冲突。cargo clippy --fix --allow-dirty --allow-staged --all-targets --all-features执行完成,收口结束时无 warning。cargo fmt --all已执行。- OpenAPI 文档已成功导出到
frontend/api.json。 - 前端 API 客户端已成功生成(
frontend/api/*.ts)。
Failure
accept未完成:拒绝执行,并提示先完成/t-run [feature] --phase backend。finalize.md缺失:提示先重新生成 backend 任务。- OpenAPI 导出失败:提示检查
utoipa注解完整性,修复后从openapi_export步骤恢复。 - 前端 API 生成失败:提示检查 OpenAPI JSON 格式,修复后从
frontend_api_gen步骤恢复。 - 状态写入失败:重试一次,失败则终止。
- 超过 3 轮自动修复仍未通过:标记
failed并返回阻塞步骤。
Examples
/t-backend-finalize
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: timzaak
- Source: timzaak/web-dev-skills
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.