Knowledge Interaction Surfaces Hono Server API And Streaming
echoVic/blade-code
覆盖 Blade Hono 服务的路由装配、Session/Task 控制器、SSE replay/live 切换、 WebSocket 终端、静态资源、认证、错误映射与资源关闭。进入时机:新增 HTTP API、 修改 Web 事件协议、处理同名 Session、调试断线重连、服务容量或 shutdown。
Guide for adding new API endpoints to the Platypus backend using Hono.js — routing, tenant scoping middleware, validation, and database access.
$ npx skills add willdady/platypus --skill add-api-endpoint -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install willdady/platypus add-api-endpoint --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/willdady/platypus.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/add-api-endpoint .claude/skills/add-api-endpoint && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-api-endpoint" agent skill from https://github.com/willdady/platypus/tree/main/.agents/skills/add-api-endpoint into .claude/skills/add-api-endpoint/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-api-endpoint", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/willdady/platypus/tree/main/.agents/skills/add-api-endpointType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add willdady/platypus --skill add-api-endpoint -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install willdady/platypus add-api-endpoint --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/willdady/platypus.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/add-api-endpoint .agents/skills/add-api-endpoint && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-api-endpoint" agent skill from https://github.com/willdady/platypus/tree/main/.agents/skills/add-api-endpoint into .agents/skills/add-api-endpoint/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-api-endpoint", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add willdady/platypus --skill add-api-endpoint -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install willdady/platypus add-api-endpoint --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/willdady/platypus.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/add-api-endpoint .cursor/skills/add-api-endpoint && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-api-endpoint" agent skill from https://github.com/willdady/platypus/tree/main/.agents/skills/add-api-endpoint into .cursor/skills/add-api-endpoint/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-api-endpoint", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/willdady/platypus.git --path .agents/skills/add-api-endpoint--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add willdady/platypus --skill add-api-endpoint -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install willdady/platypus add-api-endpoint --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/willdady/platypus.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/add-api-endpoint .gemini/skills/add-api-endpoint && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-api-endpoint" agent skill from https://github.com/willdady/platypus/tree/main/.agents/skills/add-api-endpoint into .gemini/skills/add-api-endpoint/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-api-endpoint", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install willdady/platypus add-api-endpointInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add willdady/platypus --skill add-api-endpoint -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/willdady/platypus.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/add-api-endpoint .github/skills/add-api-endpoint && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-api-endpoint" agent skill from https://github.com/willdady/platypus/tree/main/.agents/skills/add-api-endpoint into .github/skills/add-api-endpoint/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-api-endpoint", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add willdady/platypus --skill add-api-endpoint -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install willdady/platypus add-api-endpoint --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/willdady/platypus.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/add-api-endpoint .opencode/skills/add-api-endpoint && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-api-endpoint" agent skill from https://github.com/willdady/platypus/tree/main/.agents/skills/add-api-endpoint into .opencode/skills/add-api-endpoint/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-api-endpoint", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-api-endpointGuide for adding new API endpoints to the Platypus backend using Hono.js — routing, tenant scoping middleware, validation, and database access.
Add API Endpoint is an agent skill from willdady/platypus. Guide for adding new API endpoints to the Platypus backend using Hono.js — routing, tenant scoping middleware, validation, and database access.
Its SKILL.md is about 960 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering REST APIs. It works with Hono. The repository describes itself as: Self-hosted AI Agents for your whole team — on your infrastructure, your models, around the clock. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2147848. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add API Endpoint loads about 955 tokens when it runs. Until then it costs about 40 tokens; SKILL.md has 421 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from willdady/platypus at commit 2147848, republished under its MIT licence (© willdady). 421 words, ~955 tokens.
.claude/skills/add-api-endpoint/SKILL.md (or your agent's skills folder).Authenticated is not scoped. requireAuth proves who the caller is and
nothing about what they may reach. Platypus is multi-tenant — Organization →
Workspace → resource — so an endpoint carrying only requireAuth is reachable
by any logged-in user against any tenant's data. Scope is a separate,
mandatory decision, taken per route.
Create the route module in the backend's routes area — a Hono instance
exported for mounting.
Mount it on the app in the backend's server module. The mount path carries the tenancy, so the hierarchy lives in the URL and the middleware reads the ids from it:
app.route("/organizations/:orgId/workspaces/:workspaceId/agents", agent);Define the request schemas in the shared schemas package, following the full / create / update variants each domain model already has.
Compose each route: authenticate, scope, validate, handle — in that
order, as arguments to the route, not as a blanket .use("*"). Scope is per
route because two routes in one file rarely deserve the same access.
agent.post(
"/",
requireAuth,
requireOrgAccess(),
requireWorkspaceAccess,
sValidator("json", agentCreateSchema),
async (c) => {
const data = c.req.valid("json");
const scope = workspaceScopeOf(c);
// ...
},
);Done when every route in the module names its scoping middleware explicitly, and you can say which tenant each one is confined to.
Pick the narrowest that admits the callers you intend:
| Middleware | Admits |
|---|---|
requireOrgAccess() | any member of the Organization in the path |
requireOrgAccess(["admin"]) | members holding one of the named Organization roles |
requireWorkspaceAccess | callers permitted in the Workspace in the path |
requireWorkspaceOwner | the Workspace's Owner |
requireWorkspaceConfigAccess() | credential- or reach-bearing Workspace config, admin-only |
requireWorkspaceConfigAccess(flag) | the same, plus the Owner when that Workspace flag is set |
requireSuperAdmin | platform operators only |
Org and Workspace scoping compose — the Workspace check assumes the Org check ran ahead of it. Super admins bypass the Org membership check by design, so a route may legitimately resolve with no Organization to scope to.
Read the resolved scope through the scope accessors (workspaceScopeOf,
orgScopeOf) rather than re-reading path params: the accessor hands you the
scope the middleware already decided, so the query cannot disagree with the
authorization.
Import the shared db instance from the backend entry module, the way the
route modules already do, and query it with Drizzle. The request context also
carries a db, but that is a narrow exception rather than the house pattern.
Never scope a query by a raw path param. Take the tenant ids from the resolved scope, so an unscoped read cannot be written by accident.
Response body shape — the error key, the message key, and when to throw a
typed error instead of returning one — is covered by the api-conventions
skill. Load it rather than inventing a shape.
© willdady, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/add-api-endpoint of willdady/platypus.
Open the folder on GitHubat commit 2147848
Add API Endpoint next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add API Endpoint this skillwilldady/platypus | 116 | — | ~955 | Automated safety check: Pass | MIT | |
| Knowledge Interaction Surfaces Hono Server API And StreamingechoVic/blade-code | 180 | — | ~1.7k | Automated safety check: Pass | MIT | |
| Bun Hono Integrationsecondsky/claude-skills | 227 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Project Docsjezweb/claude-skills | 1.1k | — | ~1.6k | Automated safety check: Notes | MIT | |
| API DesignerJeffallan/claude-skills | 12k | 2 repos | ~2k | Automated safety check: Pass | MIT | |
| Paperclippaperclipai/paperclip | 98k | — | ~9.6k | Automated safety check: Pass | MIT |
echoVic/blade-code
覆盖 Blade Hono 服务的路由装配、Session/Task 控制器、SSE replay/live 切换、 WebSocket 终端、静态资源、认证、错误映射与资源关闭。进入时机:新增 HTTP API、 修改 Web 事件协议、处理同名 Session、调试断线重连、服务容量或 shutdown。
secondsky/claude-skills
A skill your agent uses when building APIs with Hono framework on Bun, including routing, middleware, REST APIs, context handling, or web framework features.
jezweb/claude-skills
Generate project documentation from codebase analysis — ARCHITECTURE.md, APIENDPOINTS.md, DATABASESCHEMA.md.
Jeffallan/claude-skills
Designs REST and GraphQL APIs from resource modeling to an OpenAPI 3.1 contract, with versioning, pagination and RFC 7807 error handling.
paperclipai/paperclip
Interact with the Paperclip control plane API for task coordination and governance.
ever-works/ever-works
Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices.
willdady/platypus
Response-body conventions for the Platypus backend API — the error key for failures, the message key for 2xx status messages, and when to throw a typed error instead of returning a response.
willdady/platypus
Platypus tools and tool sets — writing a tool, contributing a tool set from a plugin, scoping tools to a workspace, sharing a tool across sets, chat icons, and custom tool UI.
willdady/platypus
Guide for making database schema changes in Platypus using Drizzle ORM — editing the schema, pushing to a dev database, and generating the migration that ships.
willdady/platypus
Audit one section of the docs content against the code, and report what is wrong, stale, fragile, off-voice, or missing.
willdady/platypus
Post-save conventions for Platypus frontend forms — where a save lands the user, and what the submit button is called.
willdady/platypus
The final gate before a release is cut — go green, reconcile the release PR against what actually landed, sweep what CI can't see, check the roadmap and ADR statuses, optionally deep-review, then…
Works with
Categories
Guide for adding new API endpoints to the Platypus backend using Hono.js — routing, tenant scoping middleware, validation, and database access. Add API Endpoint is an agent skill from willdady/platypus.js — routing, tenant scoping middleware, validation, and database access.
Add API Endpoint fits situations like: tasks that involve REST APIs.
Run `npx skills add willdady/platypus --skill add-api-endpoint -a claude-code`. Or copy the skill folder (.agents/skills/add-api-endpoint in willdady/platypus) into .claude/skills/add-api-endpoint in your project. Claude Code loads it when a task matches its description.
Run `npx skills add willdady/platypus --skill add-api-endpoint -a codex`. Or copy the skill folder (.agents/skills/add-api-endpoint in willdady/platypus) into .agents/skills/add-api-endpoint in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add willdady/platypus --skill add-api-endpoint -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-api-endpoint, .gemini/skills/add-api-endpoint, .github/skills/add-api-endpoint and .opencode/skills/add-api-endpoint in your project.
SKILL.md names no scripts, command-line tools or credentials: Add API Endpoint is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add API Endpoint is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 955 tokens (SKILL.md is roughly 3.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add API Endpoint: Knowledge Interaction Surfaces Hono Server API And Streaming (echoVic/blade-code, 180 stars), Bun Hono Integration (secondsky/claude-skills, 227 stars), Project Docs (jezweb/claude-skills, 1.1k stars) and API Designer (Jeffallan/claude-skills, 12k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
willdady (a GitHub user) maintains it in willdady/platypus, which has 116 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 7, 2026.
Source: willdady/platypus on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.