fullstack-dev
它能做什么
这项技能指导构建将后端 API 与前端结合的全栈应用。适合希望从一开始就拥有结构良好项目的开发者。
适用场景
- ✓当你开始一个全栈应用,例如待办事项、增删改查或聊天应用的时候。
- ✓当你需要一个与前端连接的 REST API 的时候。
- ✓当你想为应用添加登录、实时更新或数据库存储的时候。
技能链接
https://github.com/MiniMax-AI/skills/blob/main/skills/fullstack-dev/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我构建一个待办事项应用,使用 React 前端和保存到 PostgreSQL 的 Express API。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先询问你的技术栈、数据库和功能,并在编写代码前做出关键的设计决定。它遵循这项技能关于分层、错误处理和配置的规则。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Full-Stack Development Practices
MANDATORY WORKFLOW — Follow These Steps In Order
When this skill is triggered, you MUST follow this workflow before writing any code.
Step 0: Gather Requirements
Before scaffolding anything, ask the user to clarify (or infer from context):
- Stack: Language/framework for backend and frontend (e.g., Express + React, Django + Vue, Go + HTMX)
- Service type: API-only, full-stack monolith, or microservice?
- Database: SQL (PostgreSQL, SQLite, MySQL) or NoSQL (MongoDB, Redis)?
- Integration: REST, GraphQL, tRPC, or gRPC?
- Real-time: Needed? If yes — SSE, WebSocket, or polling?
- Auth: Needed? If yes — JWT, session, OAuth, or third-party (Clerk, Auth.js)?
If the user has already specified these in their request, skip asking and proceed.
Step 1: Architectural Decisions
Based on requirements, make and state these decisions before coding:
| Decision | Options | Reference |
|---|---|---|
| Project structure | Feature-first (recommended) vs layer-first | Section 1 |
| API client approach | Typed fetch / React Query / tRPC / OpenAPI codegen | Section 5 |
| Auth strategy | JWT + refresh / session / third-party | Section 6 |
| Real-time method | Polling / SSE / WebSocket | Section 11 |
| Error handling | Typed error hierarchy + global handler | Section 3 |
Briefly explain each choice (1 sentence per decision).
Step 2: Scaffold with Checklist
Use the appropriate checklist below. Ensure ALL checked items are implemented — do not skip any.
Step 3: Implement Following Patterns
Write code following the patterns in this document. Reference specific sections as you implement each part.
Step 4: Test & Verify
After implementation, run these checks before claiming completion:
- Build check: Ensure both backend and frontend compile without errors
# Backend cd server && npm run build # Frontend cd client && npm run build - Start & smoke test: Start the server, verify key endpoints return expected responses
# Start server, then test curl http://localhost:3000/health curl http://localhost:3000/api/<resource> - Integration check: Verify frontend can connect to backend (CORS, API base URL, auth flow)
- Real-time check (if applicable): Open two browser tabs, verify changes sync
If any check fails, fix the issue before proceeding.
Step 5: Handoff Summary
Provide a brief summary to the user:
- What was built: List of implemented features and endpoints
- How to run: Exact commands to start backend and frontend
- What's missing / next steps: Any deferred items, known limitations, or recommended improvements
- Key files: List the most important files the user should know about
Scope
USE this skill when:
- Building a full-stack application (backend + frontend)
- Scaffolding a new backend service or API
- Designing service layers and module boundaries
- Implementing database access, caching, or background jobs
- Writing error handling, logging, or configuration management
- Reviewing backend code for architectural issues
- Hardening for production
- Setting up API clients, auth flows, file uploads, or real-time features
NOT for:
- Pure frontend/UI concerns (use your frontend framework's docs)
- Pure database schema design without backend context
Quick Start — New Backend Service Checklist
- Project scaffolded with feature-first structure
- Configuration centralized, env vars validated at startup (fail fast)
- Typed error hierarchy defined (not generic
Error) - Global error handler middleware
- Structured JSON logging with request ID propagation
- Database: migrations set up, connection pooling configured
- Input validation on all endpoints (Zod / Pydantic / Go validator)
- Authentication middleware in place
- Health check endpoints (
/health,/ready) - Graceful shutdown handling (SIGTERM)
- CORS configured (explicit origins, not
*) - Security headers (helmet or equivalent)
-
.env.examplecommitted (no real secrets)
Quick Start — Frontend-Backend Integration Checklist
- API client configure
常见问题
编码前智能体会问什么?
它会询问你的技术栈、服务类型、数据库、API 风格、实时需求和登录方式。
我已经回答过的问题它会跳过吗?
会。如果你已在请求中给出这些细节,它会直接继续,不再重复询问。
它涵盖哪些后端语言?
这项技能提到了 Node.js、Python 和 Go 后端。
详情
作者的原始描述
Full-stack backend architecture and frontend-backend integration guide. TRIGGER when: building a full-stack app, creating REST API with frontend, scaffolding backend service, building todo app, building CRUD app, building real-time app, building chat app, Express + React, Next.js API, Node.js backend, Python backend, Go backend, designing service layers, implementing error handling, managing config/auth, setting up API clients, implementing auth flows, handling file uploads, adding real-time features (SSE/WebSocket), hardening for production. DO NOT TRIGGER when: pure frontend UI work, pure CS
repo: MiniMax-AI/skills
热度
- GitHub 星标
- 14k
- 排名
- #11290
- 许可证
- MIT
- 更新时间
- 2026/4/18
评论
- …
同一仓库的更多技能
design-style-skill
14k帮你的智能体为幻灯片选定一种统一的视觉风格,从锐利紧凑到柔和、圆润或宽松,并配以相应的圆角和间距。
ppt-editing-skill
14k帮你的智能体安全地编辑现有的 PowerPoint 文件或模板,包括修改文字、调整或删除幻灯片,并重新打包成有效的演示文稿。
ppt-orchestra-skill
14k帮你的智能体在制作之前规划整套 PowerPoint 演示文稿,把每张幻灯片归入标准页面类型,并检查版式多样性和文字质量。
slide-making-skill
14k帮你的智能体用 JavaScript 和 PptxGenJS 编写单张 PowerPoint 幻灯片,涵盖版式、文字、图片、图表和字体,生成原生 .pptx 文件。