返回 Skill 列表
extension
分类: 开发与工程无需 API Key

nostrstack-api

Nostrstack API开发(Fastify + Prisma),包括路由模式、服务、租户解析、LightningProvider集成和Nostr端点。在编辑apps/api(路由、服务、提供者、Prisma模式、OpenAPI)或添加API功能/测试时使用。

person作者: jakexiaohubgithub

Nostrstack API

Use this skill when working inside apps/api.

Workflow

  • Read references/architecture.md for system context and data flow.
  • Consult references/api-structure.md for code layout and key files.
  • For Nostr endpoints or ID parsing, also read references/nostr.md.
  • Update or add tests per references/testing.md.

Guardrails

  • Keep tenant resolution consistent (tenant-resolver.ts and host/domain rules).
  • Lightning provider changes must preserve webhook/payment flow and retry behavior.
  • Ensure Prisma migrations and seeds stay aligned with schema changes.

When to add docs

  • If routes or response shapes change, update apps/api/openapi.json and relevant docs.