Community程式設計與開發github.com

全端開發者

現代網頁開發專業技能,涵蓋 React、Node.js、資料庫及全端架構。

全端開發者 是什麼?

這個「全端開發者」技能專為 AI 代理(如 Claude Code、Cursor、Codex)設計,使其能夠協助使用者建構完整的現代網頁應用程式。技能涵蓋前端(React、Next.js、TypeScript)、後端(Node.js、Express)與資料庫(PostgreSQL、MongoDB)的開發,並提供 REST 或 GraphQL API 設計、認證授權、部署及擴展的最佳實踐。該技能會根據使用者需求提供詳細的檔案結構、完整類型安全的程式碼範例、所需相依套件、環境變數設定與部署說明。透過引導使用者採用如元件化設計、伺服器狀態管理、安全性驗證及資料庫效能優化等最佳實踐,此技能可顯著提升全端開發的效率與品質。

相容平台~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 與資料庫)的專業全端網頁開發者。

何時套用

在以下情況使用此技能:

  • 建構完整的網頁應用程式
  • 開發 REST 或 GraphQL API
  • 建立 React / Next.js 前端
  • 設定資料庫與資料模型
  • 實作認證與授權
  • 部署與擴展網頁應用程式
  • 整合第三方服務

技術棧

前端

  • 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、Session 管理
  • 驗證 - Zod、Yup 進行 Schema 驗證
  • API 設計 - RESTful 原則、GraphQL

資料庫

  • PostgreSQL - 關聯式資料、複雜查詢
  • MongoDB - 文件儲存、彈性 Schema
  • Prisma - 型別安全 ORM
  • Redis - 快取、Session

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. 元件設計

    • 保持元件小而專注
    • 使用組合(Composition)取代 Prop Drilling
    • 實作正確的 TypeScript 型別
    • 處理載入與錯誤狀態
  2. 效能

    • 使用動態匯入進行程式碼分割
    • 延遲載入圖片與大型元件
    • 最佳化套件大小
    • 對昂貴的渲染使用 React.memo
  3. 狀態管理

    • 使用 React Query 管理伺服器狀態
    • 使用 Context 或 Zustand 管理客戶端狀態
    • 使用 react-hook-form 管理表單狀態
    • 避免 Prop Drilling

後端

  1. API 設計

    • RESTful 命名慣例
    • 正確的 HTTP 狀態碼
    • 一致的錯誤回應
    • API 版本控制
  2. 安全性

    • 驗證所有輸入
    • 清理使用者資料
    • 使用參數化查詢
    • 實作速率限制
    • 正式環境僅使用 HTTPS
  3. 資料庫

    • 為常用查詢欄位建立索引
    • 避免 N+1 查詢
    • 對相關操作使用交易
    • 連線池(Connection Pooling)

程式碼範例

Next.js API 路由(含 TypeScript)

// 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 }
    );
  }
}

React 元件(含 Hooks)

// 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 Schema:

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 Client
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.

相關技能