Back to skills
SKILL.md
Be Api
ASecurityUse as the backend example step — emit an API-response artifact (`api@1`) that a schema_gate checks for required fields. Stand-in for a real HTTP call (curl / requests); the gate is what catches a malformed response. Single tool.
- 211 stars
- 0 votes
- 0 copies
- 2 views
- Added November 9, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add s0912758806p/agentic-sop-to-work --skill be_api --agent claude-codeAre you the author of Be Api?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/s0912758806p-be-api)---
name: be_api
description: Use as the backend example step — emit an API-response artifact (`api@1`) that a schema_gate checks for required fields. Stand-in for a real HTTP call (curl / requests); the gate is what catches a malformed response. Single tool.
---
# Example skill — be_api(後端範例:回應要過 schema 閘門)
`workflow/examples/be.json` 的唯一一步。stand-in 輸出一筆固定的「API 回應」;
真正接上 API 時換掉 `run()`,**保留 `schema_gate`**,缺欄位的回應就不會流到下游。
## 綁定的單一工具
- `python3`(標準庫)。實務上換成 `curl` 或 HTTP client,一步仍只綁一個工具。
## 依賴(完整宣告;缺項明確報錯)
- `python` >= 3.8
## 參數化(無硬編碼)
- 輸入:`--in <任意輸入>`(stand-in 不讀;真的實作讀請求參數)
- 輸出:`--out <api artifact.json>`
## 介面
- **輸出 artifact**:`{"schema":"api@1","produced_by":"be_api","data":{"id":1,"name":"widget","price":9.99},"trace":[]}`
- 閘門:`schema_gate`,`args.required = ["id","name"]`。
## 執行
`python3 skills/be_api/tool.py --in <任意輸入> --out <out/be.json>`
Files in this skill
- SKILL.md
- tool.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.