fullstack-integration
管理Next.js 16前端与FastAPI后端集成。用于连接API、处理JWT认证、配置CORS或调试跨栈问题。
📖 中文导读:管理Next.js 16前端与FastAPI后端集成。用于连接API、处理JWT认证、配置CORS或调试跨栈问题。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: fullstack-integration description: Governs integration between Next.js 16 frontend and FastAPI backend. Use when connecting APIs, handling JWT auth, configuring CORS, or debugging cross-stack issues.
Full-Stack Integration Skill
This Skill defines how frontend and backend talk to each other.
Core Architecture
Frontend (Next.js 16) → Better Auth → JWT → FastAPI → SQLModel → Neon PostgreSQL
Non-Negotiable Rules
- Frontend never stores JWT manually
- Backend trusts JWT only after verification
- Every request is user-scoped
- CORS is explicit and locked down
See:
Context7 Usage
Use Context7 when:
- Verifying Better Auth token format
- FastAPI dependency injection edge cases
- Vercel deployment behavior
Good queries:
- “FastAPI JWT dependency async example”
- “Better Auth JWT verification server side”