# Safe Code Execute Validation

> 验证通用 JavaScript 执行和结构化结算 receipt。用户提到“安全 code_execute 验证”、对应英文名称或要求运行该验收 workflow 时使用。

- Skill: `chronoaiproject/safe-code-execute-validation` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx get-skill add chronoaiproject/safe-code-execute-validation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/chronoaiproject/safe-code-execute-validation/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: ChronoAIProject (https://skillmd.com/u/chronoaiproject)
- Updated: 2026-11-16
- Page: https://skillmd.com/skills/chronoaiproject/safe-code-execute-validation

---


# 安全 code_execute 验证

使用随 skill 提供的 `safe_code_execute_validation` workflow。

## 执行

1. 优先使用 `use_skill` 已挂载的 workflow；只有挂载不可用时，才把随 skill 返回的 YAML 作为 inline fallback。
2. 调用 `aevatar_start_workflow`，`workflow_id` 设为 `safe_code_execute_validation`，`inputs.prompt` 设为 `校验合成结算金额。`。
3. 此案例不需要附件。
4. 平台可能要求 typed tool approval，但业务契约无副作用；未得到明确批准时保持 pending。
5. 使用返回的 `run_id` 调用 `aevatar_read_workflow_run_artifact`。只有 typed artifact 为 completed 且满足 `success=true、total_cents=16623、side_effects=false`，才能报告通过。

如果短 `run_id` 的 artifact 仍为 pending，必须如实报告 pending；不得把 accepted receipt、工具批准等待态或模型总结改写成成功。

