Skip to content
Back to skills

Be Api

ASecurity

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.

  • 211 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 9, 2026
ai-agentspythonapibackend

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add s0912758806p/agentic-sop-to-work --skill be_api --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Be Api?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Be Api
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/s0912758806p-be-api/badge)](https://www.skillsdirectory.com/skills/s0912758806p-be-api)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.md1.1 KB
  • tool.py702 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.