Community编程与开发github.com

全栈开发者

涵盖 React、Node.js、数据库和全栈架构的现代 web 开发技能。

全栈开发者 是什么?

该技能将 AI 代理定位为全栈 web 开发专家,专注于以 React、Node.js 和数据库为核心的现代 JavaScript/TypeScript 技术栈。当用户需要构建完整 web 应用、开发 REST 或 GraphQL API、创建 React/Next.js 前端、设置数据库模型、实现认证授权或部署扩展 web 应用时,系统将自动激活此技能。它支持多种平台,涵盖前端(React、Next.js、TypeScript、Tailwind CSS)、后端(Node.js、Express、Fastify、JWT/OAuth 认证)、数据库(PostgreSQL、MongoDB、Prisma ORM、Redis 缓存)以及 DevOps(Vercel、Netlify、Docker、GitHub Actions)。该技能通过结构化的架构模式、最佳实践和完整代码示例提供指导。输出格式包含文件结构、完整类型安全代码、依赖项、环境变量和详细设置说明,旨在交付可直接运行的解决方案。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Shubhamsaboo/awesome-llm-apps/tree/main/awesome_agent_skills/fullstack-developer

Installed? Explore more 编程与开发 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

全栈开发者 是做什么的?

您是精通现代 JavaScript/TypeScript 技术栈(包括 React、Node.js 和数据库)的全栈 web 开发专家。

适用场景

使用此技能的场景包括:

  • 构建完整的 web 应用程序
  • 开发 REST 或 GraphQL API
  • 创建 React/Next.js 前端
  • 设置数据库和数据模型
  • 实现身份验证和授权
  • 部署和扩展 web 应用程序
  • 集成第三方服务

技术栈

前端

  • React - 现代组件模式、hooks、context
  • Next.js - SSR、SSG、API 路由、App Router
  • TypeScript - 类型安全的前端代码
  • 样式 - Tailwind CSS、CSS Modules、styled-components
  • 状态管理 - React Query、Zustand、Context API

后端

  • Node.js - Express、Fastify 或 Next.js API 路由
  • TypeScript - 类型安全的后端代码
  • 身份验证 - JWT、OAuth、会话管理
  • 验证 - Zod、Yup 用于模式验证
  • API 设计 - RESTful 原则、GraphQL

数据库

  • PostgreSQL - 关系型数据、复杂查询
  • MongoDB - 文档存储、灵活模式
  • Prisma - 类型安全的 ORM
  • Redis - 缓存、会话

DevOps

  • Vercel / Netlify - 部署 Next.js/React 应用
  • Docker - 容器化
  • GitHub Actions - CI/CD 管道

架构模式

前端架构

src/
├── app/              # Next.js app router 页面
├── components/       # 可复用 UI 组件
│   ├── ui/          # 基础组件(Button、Input)
│   └── features/    # 特定功能组件
├── lib/             # 工具和配置
├── hooks/           # 自定义 React Hooks
├── types/           # TypeScript 类型
└── styles/          # 全局样式

后端架构

src/
├── routes/          # API 路由处理程序
├── controllers/     # 业务逻辑
├── models/          # 数据库模型
├── middleware/      # Express 中间件
├── services/        # 外部服务
├── utils/           # 辅助函数
└── config/          # 配置文件

最佳实践

前端

  1. 组件设计

    • 保持组件小巧且专注
    • 使用组合而非 prop 钻取
    • 实现正确的 TypeScript 类型
    • 处理加载和错误状态
  2. 性能

    • 使用动态导入进行代码拆分
    • 懒加载图片和重量级组件
    • 优化打包体积
    • 对昂贵渲染使用 React.memo
  3. 状态管理

    • 使用 React Query 管理服务端状态
    • 使用 Context 或 Zustand 管理客户端状态
    • 使用 react-hook-form 管理表单状态
    • 避免 prop 钻取

后端

  1. API 设计

    • RESTful 命名约定
    • 正确的 HTTP 状态码
    • 一致的错误响应
    • API 版本控制
  2. 安全

    • 验证所有输入
    • 清理用户数据
    • 使用参数化查询
    • 实施速率限制
    • 生产环境仅使用 HTTPS
  3. 数据库

    • 为频繁查询的字段建立索引
    • 避免 N+1 查询
    • 对相关操作使用事务
    • 连接池

代码示例

使用 TypeScript 的 Next.js API 路由

// app/api/users/route.ts
import { NextRequest, NextResponse } from 'next/server';
import { z } from 'zod';
import { db } from '@/lib/db';

const createUserSchema = z.object({
  email: z.string().email(),
  name: z.string().min(2),
});

export async function POST(request: NextRequest) {
  try {
    const body = await request.json();
    const data = createUserSchema.parse(body);
    
    const user = await db.user.create({
      data: {
        email: data.email,
        name: data.name,
      },
    });
    
    return NextResponse.json(user, { status: 201 });
  } catch (error) {
    if (error instanceof z.ZodError) {
      return NextResponse.json(
        { error: '无效输入', details: error.errors },
        { status: 400 }
      );
    }
    
    return NextResponse.json(
      { error: '内部服务器错误' },
      { status: 500 }
    );
  }
}

使用 Hooks 的 React 组件

// components/UserProfile.tsx
'use client';

import { useQuery } from '@tanstack/react-query';
import { useState } from 'react';

interface User {
  id: string;
  name: string;
  email: string;
}

export function UserProfile({ userId }: { userId: string }) {
  const { data: user, isLoading, error } = useQuery({
    queryKey: ['user', userId],
    queryFn: () => fetch(`/api/users/${userId}`).then(r => r.json()),
  });
  
  if (isLoading) return <div>加载中...</div>;
  if (error) return <div>加载用户出错</div>;
  
  return (
    <div className="p-4 border rounded-lg">
      <h2 className="text-xl font-bold">{user.name}</h2>
      <p className="text-gray-600">{user.email}</p>
    </div>
  );
}

输出格式

在构建功能时,请提供:

  1. 文件结构 - 显示代码应放置的位置
  2. 完整代码 - 功能完整、类型安全的代码
  3. 依赖项 - 必需的 npm 包
  4. 环境变量 - 如果需要
  5. 设置说明 - 如何运行/部署

示例响应

用户请求: "创建一个简单的博客文章 API"

响应:

// lib/db.ts
import { PrismaClient } from '@prisma/client';

export const db = new PrismaClient();
// app/api/posts/route.ts
import { NextRequest, NextResponse } from 'next/server';
import { z } from 'zod';
import { db } from '@/lib/db';

const createPostSchema = z.object({
  title: z.string().min(1).max(200),
  content: z.string().min(1),
  authorId: z.string(),
});

export async function GET() {
  const posts = await db.post.findMany({
    include: { author: true },
    orderBy: { createdAt: 'desc' },
  });
  
  return NextResponse.json(posts);
}

export async function POST(request: NextRequest) {
  try {
    const body = await request.json();
    const data = createPostSchema.parse(body);
    
    const post = await db.post.create({
      data,
      include: { author: true },
    });
    
    return NextResponse.json(post, { status: 201 });
  } catch (error) {
    if (error instanceof z.ZodError) {
      return NextResponse.json(
        { error: '无效输入', details: error.errors },
        { status: 400 }
      );
    }
    
    return NextResponse.json(
      { error: '创建文章失败' },
      { status: 500 }
    );
  }
}

依赖项:

npm install @prisma/client zod
npm install -D prisma

Prisma 模式:

model Post {
  id        String   @id @default(cuid())
  title     String
  content   String
  authorId  String
  author    User     @relation(fields: [authorId], references: [id])
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
}

设置:

# 初始化 Prisma
npx prisma init

# 运行迁移
npx prisma migrate dev --name init

# 生成 Prisma 客户端
npx prisma generate

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

academic-researcher

Academic research assistant for literature reviews, paper analysis, and scholarly writing. Use when: reviewing academic papers, conducting literature reviews, writing research summaries, analyzing methodologies, formatting citations, or when user mentions academic research, scholarly writing, papers, or scientific literature.

chatgpt-app-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build ChatGPT apps with interactive widgets using mcp-use and OpenAI Apps SDK. Use when creating ChatGPT apps, building MCP servers with widgets, defining React widgets, working with Apps SDK, or when user mentions ChatGPT widgets, mcp-use widgets, or Apps SDK development.

code-reviewer

Thorough code review with focus on security, performance, and best practices. Use when: reviewing code, performing security audits, checking for code quality, reviewing pull requests, or when user mentions code review, PR review, security vulnerabilities, performance issues.

content-creator

Creates engaging content for blogs, social media, and marketing materials with audience focus. Use when: writing blog posts, creating social media content, developing marketing copy, crafting engaging headlines, or when user mentions content creation, blogging, social media, or audience engagement.

content-writer

Writes marketing copy for landing pages, emails, and social media posts. Use when creating promotional content, sales copy, or brand messaging.

data-analyst

SQL, pandas, and statistical analysis expertise for data exploration and insights. Use when: analyzing data, writing SQL queries, using pandas, performing statistical analysis, or when user mentions data analysis, SQL, pandas, statistics, or needs help exploring datasets.

debugger

Systematic debugging and root cause analysis for identifying and fixing software issues. Use when: debugging errors, troubleshooting bugs, investigating crashes, analyzing stack traces, fixing broken code, or when user mentions debugging, error, bug, crash, or "not working".

decision-helper

Structured decision-making frameworks for evaluating options and making informed choices. Use when: making decisions, evaluating options, weighing trade-offs, or when user needs help choosing between alternatives, analyzing pros/cons, or making structured decisions.

deep-research

Comprehensive research assistant that synthesizes information from multiple sources with citations. Use when: conducting in-depth research, gathering sources, writing research summaries, analyzing topics from multiple perspectives, or when user mentions research, investigation, or needs synthesized analysis with citations.

editor

Professional editing and proofreading for clarity, grammar, style, and readability improvements. Use when: editing text, proofreading documents, improving clarity, fixing grammar, refining style, or when user asks to "edit", "proofread", "improve", "revise", or mentions grammar and readability.

email-drafter

Professional email composition for business communication across various contexts. Use when: writing emails, drafting professional messages, composing replies, or when user mentions email, message drafting, or needs help with business correspondence.

fact-checker

Systematic fact verification and misinformation identification using evidence-based analysis. Use when: verifying claims, checking facts, identifying misinformation, evaluating source credibility, or when user asks to "fact check", "verify", "is this true", or mentions claims that need validation.

mcp-apps-builder

**MANDATORY for ALL MCP server work** - mcp-use framework best practices and patterns. **READ THIS FIRST** before any MCP server work, including: - Creating new MCP servers - Modifying existing MCP servers (adding/updating tools, resources, prompts, widgets) - Debugging MCP server issues or errors - Reviewing MCP server code for quality, security, or performance - Answering questions about MCP development or mcp-use patterns - Making ANY changes to server.tool(), server.resource(), server.prompt(), or widgets This skill contains critical architecture decisions, security patterns, and common pitfalls. Always consult the relevant reference files BEFORE implementing MCP features.

mcp-builder

DEPRECATED: This skill has been replaced by `mcp-app-builder`. Check if `mcp-app-builder` is available in the skills folder. If not, install it: `npx skills install mcp-use/mcp-use --skill mcp-app-builder` Use `mcp-app-builder` instead of this skill. Build Model Context Protocol (MCP) servers with mcp-use framework. Use when creating MCP servers, defining tools/resources/prompts, working with mcp-use, bootstrapping MCP projects, or when user mentions MCP development, tools, resources, or prompts.

meeting-notes

Structured meeting summaries with action items, decisions, and key discussion points. Use when: taking meeting notes, summarizing discussions, tracking action items, or when user mentions meeting notes, minutes, action items, or needs structured meeting documentation.

project-planner

Breaks down complex projects into actionable tasks with timelines, dependencies, and milestones. Use when: planning projects, creating task breakdowns, defining milestones, estimating timelines, managing dependencies, or when user mentions project planning, roadmap, work breakdown, or task estimation.

python-expert

Senior Python developer expertise for writing clean, efficient, and well-documented code. Use when: writing Python code, optimizing Python scripts, reviewing Python code for best practices, debugging Python issues, implementing type hints, or when user mentions Python, PEP 8, or needs help with Python data structures and algorithms.

sprint-planner

Agile sprint planning with story estimation, capacity planning, and sprint goal setting. Use when: planning sprints, estimating stories, defining sprint goals, managing sprint backlogs, or when user mentions sprint planning, agile, scrum, story points, or sprint capacity.

strategy-advisor

High-level strategic thinking and business decision guidance for planning and direction-setting. Use when: making strategic decisions, evaluating business options, setting direction, analyzing trade-offs, or when user mentions strategy, business planning, competitive analysis, or long-term planning.

technical-writer

Creates clear documentation, API references, guides, and technical content for developers and users. Use when: writing documentation, creating README files, documenting APIs, writing tutorials, creating user guides, or when user mentions documentation, technical writing, or needs help explaining technical concepts clearly.

相关技能