AGENT SKILL

link-shortener

Use when editing link-shortener. POST /shorten with { url }; GET /:code redirects; D1 primary, KV read cache.

License 许可
MIT
最近更新
2026-10-06
Stars
★ 3
Forks
0

01 前言 Front Matter

name
link-shortener
description
Use when editing link-shortener. POST /shorten with { url }; GET /:code redirects; D1 primary, KV read cache.

03 SKILL.md 正文

Link Shortener

  • Routes: POST /shorten (body { url }), GET /:code (redirect).
  • Inputs: Shorten - JSON url; Redirect - path code.
  • Outputs: Shorten returns { code, url }; redirect is 302 or 404.
  • Bindings: D1, KV (LINKS_CACHE).

04 同仓库更多 Skills