endpoint
Render a REST API endpoint reference entry (Microsoft Learn / Swagger style) — colour-coded HTTP method badge, monospace path, summary, and an Auth/Body/Returns details grid. Use for documenting REST endpoints in an API reference.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- endpoint
- description
- Render a REST API endpoint reference entry (Microsoft Learn / Swagger style) — colour-coded HTTP method badge, monospace path, summary, and an Auth/Body/Returns details grid. Use for documenting REST endpoints in an API reference.
03 SKILL.md 正文
API endpoint
Renders one REST endpoint as a reference card: a colour-coded HTTP method
badge, the monospace path, a summary, and an aligned details grid. Authored
as a fenced ```endpoint block (dispatched from the code-block renderer).
Syntax
```endpoint
POST /api/login/create
Exchange a username/password for a session JWT.
Auth: Bearer (session JWT)
Body: `{ "user": "...", "password": "..." }`
Returns: `{ "token": "...", "expiresAt": "..." }`
```
Format
- First body line:
<METHOD> <path>.METHODis one ofGET,POST,PUT,PATCH,DELETE,HEAD,OPTIONS— colour-coded (GET=blue, POST=green, PUT=amber, PATCH=teal, DELETE=red). If the first token isn't a known verb, the whole line is the path and no badge renders.- Method/path go on the first body line, not the fence info line, so a
path with
{placeholders}(e.g./api/items/{id}) is not eaten by the generic-attributes parser.
- Summary: the line(s) after the first line, before the first blank line or
the first
Label:line. - Detail rows: each later non-empty line in the form
Label: value. Only the first colon splits label from value, so JSON colons survive. A line that isn'tLabel: valueis appended to the previous value as a continuation.
Summary and values render as inline Markdown — `code`, bold, and
links all work.
Behaviour
- Each block gets a stable anchor id from the method + path (e.g.
post-api-login-create) and a permalink icon in the header. - Stack multiple blocks on a page — each is its own card.
- The component carries its own CSS, so it renders the same in light and dark mode and does not depend on utility classes.
Tips
- One endpoint per block. Group related endpoints under a normal
###heading. - Keep the summary to a sentence or two; put specifics in
Auth,Body,Returns,Scope,Params, etc. detail rows. - Wrap JSON and identifiers in backticks so they render as code.
04 同仓库更多 Skills
youtube
Embed a YouTube video by pasting its URL on its own line. Neko auto-detects watch/youtu.be/embed forms and honours timestamp, autoplay, loop, and mute parameters.
workflow
Render a workflow diagram from a node-and-arrows DSL — labelled boxes with icons and optional badges, auto-arranged in columns. Use for pipelines, data flows, sign-off chains, ETL diagrams.
video
Author a video as a single Markdown file (`video:` front matter) — scenes separated by horizontal rules, every block animating in on its own, video components (lockup, swap, typewriter, scramble, counter, stats, chart, code, terminal, browser/window/phone, cursor, lower-third, captions, quote, steps, checklist, grid/card, cta, logo, media), scene transitions and camera moves, and a synthesized voice-over (`--- {narration}` parts, `narration:` voice, `neko voiceover`) — preview it in the browser and render it to MP4 with `neko render` (Playwright + ffmpeg). Also covers the `[!video]` component that embeds the rendered file in a page. Use when asked for a video, an animated explainer, a product or release teaser, a changelog video, a motion graphic, a narrated walkthrough, or an MP4 from docs content.
update-documentation
Workflow for updating Neko documentation — base every page on the real source code, never invent APIs, warn loudly when the source isn't available, and check that the page (and any changed `tesserae` sample) renders correctly with Playwright / snapframe / a visual check. Use whenever you add or edit docs that describe code, APIs, components, or live samples.
tesserae
Render a live Tesserae C# UI block — Neko compiles and executes the C# at build time and shows both the code and a working preview side-by-side. Use only when the project documents Tesserae or runs live C# samples.
table
Render a Markdown table with alignment, compact mode, and no-wrap option. Use for any tabular comparison, reference matrix, option list.