一键导入
add-endpoint
Add a new API endpoint to the secret-vault Cloudflare Worker. Use when creating new routes, resources, or API functionality in the vault.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Add a new API endpoint to the secret-vault Cloudflare Worker. Use when creating new routes, resources, or API functionality in the vault.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Add a new CLI command to the hfs tool. Use when adding user-facing commands, subcommands, or flags to the CLI.
Create a new D1 database migration for the secret-vault. Use when adding tables, columns, or indexes to the vault's schema.
Review code changes for security issues specific to this encrypted secret vault. Use when modifying auth, encryption, scope enforcement, or any data-access paths.
Diagnose and fix issues with the secret-vault Worker, hfs CLI, D1 database, Cloudflare Access auth, and encryption. Use when something is broken, returning errors, or behaving unexpectedly.
Write tests for the secret-vault Worker and hfs CLI. Use when adding test coverage, fixing bugs with regression tests, or validating behavior.
Define API endpoints with Zod schemas and auto-generated OpenAPI specs using @hono/zod-openapi. Use when adding, modifying, or documenting API routes.
| name | add-endpoint |
| description | Add a new API endpoint to the secret-vault Cloudflare Worker. Use when creating new routes, resources, or API functionality in the vault. |
Routes live in secret-vault/src/routes/ as Hono sub-routers, mounted in src/index.ts.
hasScope(auth, "read"|"write"|"delete") as a gate check before any route touching secretshasAccess(auth, scope, secretTags) per-resource when iterating secrets with tag filteringaudit(env, auth, action, secretKey, ip, userAgent, requestId) after every data access or mutationindex.ts unless intentionally publicconst things = new OpenAPIHono<HonoEnv>() mounted via app.route("/things", things)if (auth.method !== "interactive") return 403if (auth.method !== "interactive" || !isAdmin(auth)) return 403c.get("auth"), c.get("ip"), c.get("ua"), c.get("requestId"), c.env.DBschemas.ts (common), schemas-secrets.ts, schemas-tokens.ts, schemas-rbac.tsUse the createRoute() + app.openapi() pattern. See the zod-openapi skill for full examples with schema definitions, route creation, and handler registration.
schemas-*.ts file (see zod-openapi skill)createRoute() including all response codesapp.openapi(route, handler) - not app.get()c.req.valid("json") / c.req.valid("param") - not c.req.json()hasScope() if touching secretsaudit() for every data access or mutationadd-migration skill)add-command skill)/doc specsecret-vault/README.md endpoints table