portal-backend-app

Installation
SKILL.md

portal-backend-app · monorepo 独立后端 App 开发

独立后端 = 自己的进程 + 自己的 DB,消费 Portal 签发的 TDT。本文件是操作序与红线;具体契约按需读 references/(为本 skill 提炼的自包含参考;权威源是门户仓库 docs/,冲突以门户仓库为准)。本 skill 描述门户 monorepo 内的双包模式——服务端在别的 repo 时改用 portal-external-app skill。

按任务读参考

任务
自省契约 / 四道闸 / 服务账号 / client_credentials / 撤销 references/gate-and-tokens.md
注册布线 / scope 目录 / 部署接线 / API 规范 / 用量上报 / 配置 tab references/wiring-and-conventions.md

参考实现:apps/spms-server/src/lib/gate.ts + identity.ts(各 server 同构的鉴权层)。

新建一个后端 App 的全链 checklist

按序做完,每步有既有样板可抄(轻业务抄 todo-server、重业务抄 lms-server):

Installs
16
Repository
xgent-ai/skills
First Seen
Aug 23, 2026
portal-backend-app — xgent-ai/skills