Token导航 LogoToken导航

Agent Skill · 前端设计

express-backend-starter(快速后端启动器)

express-backend-starter 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

express-backend-starter 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有提醒项,按安装量在前端设计类的 10,216 个 Skill 里排第 6,192。

总安装 541周安装 23GitHub Stars 公开资料未说明下载 190核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:express-backend-starter(快速后端启动器)
来源仓库:https://github.com/codewithhashim/express-backend-starter-skill
仓库路径:skills/express-backend-starter
安装命令:
npx skills add https://github.com/codewithhashim/express-backend-starter-skill --skill express-backend-starter
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/codewithhashim/express-backend-starter-skill --skill express-backend-starter

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

快速搭建 Node.js + Express 后端项目的基础脚手架。默认采用 TypeScript、PostgreSQL 与 Prisma ORM 技术栈。内置安全加固、测试框架与部署脚本,开箱即用。可根据实际需求切换语言、数据库与认证策略灵活定制。

express-backend-starter 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/express-backend-starter

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/codewithhashim/express-backend-starter-skill -…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

express-backend-starter 怎么安装?

在终端执行 npx skills add https://github.com/codewithhashim/express-backend-starter-skill --skill exp…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

express-backend-starter 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

express-backend-starter 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

express-backend-starter 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

express-backend-starter 用的人多吗?

公开数据是累计安装 541 次,近一周安装 23 次,下载 190 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

express-backend-starter 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
express-backend-starter

快速后端启动器 · 本页

541—接触敏感数据未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Backend Node + Express Development Skill

Expert guidance for building production-grade, API-only Node.js + Express backends. This skill ensures every new backend project starts with a clean architecture, consistent patterns, and security-first defaults — whether in JavaScript or TypeScript.


Instructions

Step 1: Confirm Project Basics

Before writing any code, clarify with the user:

  1. Language: JavaScript or TypeScript?
  2. Database: PostgreSQL, MySQL, MongoDB, or other?
  3. ORM/Query builder: Prisma, Knex, Mongoose, raw driver?
  4. Auth strategy: JWT or session-based?

If the user doesn't specify, default to: TypeScript + PostgreSQL + Prisma + JWT.

Node Version: Require Node 24 LTS (Active LTS), preferably >=24.10.0 for non-experimental env-file support. Use node --watch for dev restarts and --env-file-if-exists for env loading — no nodemon or dotenv needed. For the full version/stability table and lifecycle guidance, see node-version-guide.md.

Pin the Node version in .nvmrc — e.g. 24 or a specific 24.x.y (>=24.10.0 recommended).

Step 2: Scaffold the Folder Structure

Always generate this folder structure. Adapt file extensions based on JS vs TS.

.
├─ src/
│  ├─ app/
│  │  ├─ app.(js|ts)                 # Express app: middleware stack + route mounting
│  │  └─ server.(js|ts)              # HTTP server start + graceful shutdown
│  ├─ config/
│  │  ├─ env.(js|ts)                 # Env var parsing + validation (fail fast on boot)
│  │  └─ index.(js|ts)               # Normalized config object (single source of truth)
│  ├─ routes/
│  │  ├─ index.(js|ts)               # Mount all versioned routers (e.g. /api/v1)
│  │  └─ v1/
│  │     ├─ health.routes.(js|ts)    # Health + readiness endpoints
│  │     └─ users.routes.(js|ts)     # Example resource module
│  ├─ controllers/
│  │  └─ users.controller.(js|ts)    # HTTP glue only (thin — no business logic)
│  ├─ services/
│  │  └─ users.service.(js|ts)       # All business logic and use-cases
│  ├─ repositories/
│  │  └─ users.repo.(js|ts)          # DB access only (queries, ORM calls)
│  ├─ db/
│  │  ├─ client.(js|ts)              # DB connection pool / Prisma client
│  │  ├─ migrations/                 # Database migration files
│  │  └─ seed/                       # Seed scripts for dev/test data
│  ├─ middlewares/
│  │  ├─ auth.(js|ts)                # Authentication middleware
│  │  ├─ error-handler.(js|ts)       # Global error handler (MUST be last middleware)
│  │  ├─ rate-limit.(js|ts)          # Rate limiting (global + per-route)
│  │  └─ request-id.(js|ts)          # Adds req.id for log correlation
│  ├─ validators/
│  │  └─ users.schema.(js|ts)        # Zod or Joi schemas for request validation
│  ├─ errors/
│  │  ├─ AppError.(js|ts)            # Custom error base class with status + code
│  │  └─ error-codes.(js|ts)         # Stable, documented error codes map
│  ├─ logging/
│  │  └─ logger.(js|ts)              # Structured logger (pino/winston) + secret redaction
│  ├─ utils/
│  │  ├─ async-handler.(js|ts)       # Wraps async controllers (no try/catch boilerplate)
│  │  └─ http-response.(js|ts)       # Standardized success/error response helpers
│  └─ types/                         # TS only: shared interfaces and type definitions
│
├─ tests/
│  ├─ unit/                          # Service + utility unit tests
│  ├─ integration/                   # Route + DB integration tests
│  └─ e2e/                           # Full flow end-to-end tests
│
├─ docs/
│  ├─ openapi.yaml                   # OpenAPI spec (recommended)
│  └─ runbook.md                     # Deploy, rollback, and ops notes
│
├─ scripts/                          # One-off scripts (backfills, maintenance)
├─ docker/                           # Dockerfile, docker-compose, local infra
├─ .github/workflows/                # CI pipeline config
├─ .env.example                      # Documented env var template
├─ .editorconfig
├─ .nvmrc                            # Pin Node version
├─ .eslintrc.* / eslint.config.*
├─ .prettierrc / prettier.config.*
├─ README.md
└─ package.json

CRITICAL rules:

  • One language per repo — never mix JS and TS source files.
  • For TS repos, compile to a dist/ folder; never run raw .ts in production.
  • Every new feature module replicates the same pattern: routes → controller → service → repository → validator.
  • Keep types/ for TS-only shared interfaces; omit for JS repos.

Step 3: Follow the Request Flow

All requests MUST flow through these layers in order:

Route → Controller → Service → Repository

LayerResponsibilityRules
RoutesDefine URL paths + HTTP methodsOnly call controllers. No logic.
ControllersParse/validate input, call service, format responseTHIN — no business logic, no DB calls
ServicesBusiness logic, permissions, orchestrationMay call multiple repos. Owns transactions.
RepositoriesDatabase queries onlyReturn domain objects, not raw DB rows

NEVER skip layers. Controllers must NOT call repositories directly. Services must NOT write raw SQL.

Step 4: Apply Security Defaults

Every backend MUST include these from day one:

  1. Helmet — secure HTTP headers
  2. CORS — explicit allowlist (never use * in production)
  3. Rate limiting — global + stricter on auth routes (login, register)
  4. Body size limits — prevent payload abuse
  5. Input validation — validate params, query, and body on every endpoint using Zod or Joi
  6. Password hashing — bcrypt or argon2 (NEVER store plaintext passwords)
  7. Secret redaction — never log tokens, passwords, or API keys
  8. Auth consistency — pick JWT or sessions and stick with one approach

Step 5: Implement the Middleware Stack

Mount middleware in this exact order:

  1. request-id — assigns unique ID to every request
  2. Logger middleware — logs request start/end with request ID
  3. helmet — security headers
  4. cors — cross-origin policy
  5. Body parsers (express.json(), express.urlencoded()) + size limits
  6. Rate limiter
  7. Auth middleware — only on protected routes
  8. Routes — mount /api/v1/*
  9. 404 handler — catch unmatched routes
  10. Global error handler — MUST be last

Step 6: Standardize API Responses

Use a consistent response shape across ALL endpoints:

// Success
{
  "success": true,
  "data": { ... }
}

// Error
{
  "success": false,
  "error": {
    "code": "USER_NOT_FOUND",
    "message": "No user found with the given ID.",
    "details": null
  }
}

Use correct HTTP status codes:

  • 400 — validation errors
  • 401 — unauthenticated
  • 403 — forbidden (authenticated but not authorized)
  • 404 — resource not found
  • 409 — conflict (duplicate, etc.)
  • 429 — rate limited
  • 500+ — server errors

Step 7: Set Up Error Handling

  • Create a custom AppError class extending Error with statusCode, code, and isOperational properties.
  • Use an async-handler wrapper for all controller methods to catch rejected promises automatically.
  • The global error handler middleware (LAST in the stack) catches everything:

- Known AppError → return structured error with the appropriate status. - Unknown errors → log full stack trace, return generic 500 to client. - NEVER leak stack traces or internal details in production responses.

  • Define stable error codes in error-codes.(js|ts) — clients depend on these, not message strings.

Step 8: Configure Logging and Observability

  • Use a structured JSON logger (pino recommended, winston acceptable).
  • Attach req.id (request ID) to every log entry for correlation.
  • Include response headers: x-request-id.
  • Add health endpoints:

- GET /api/v1/health — always returns 200 if process is alive. - GET /api/v1/ready — checks DB and external service connectivity.

  • Redact any secrets, tokens, or passwords from all log output.

Step 9: Configure Environment and Scripts

Environment:

  • Validate ALL env vars on boot using the config module — crash immediately if required vars are missing.
  • Centralize env access in src/config/index.(js|ts) — NEVER scatter process.env.* across the codebase.
  • Provide .env.example documenting every required and optional variable.
  • Do NOT install dotenv — use Node's built-in env loading instead.

Package.json scripts depend on your Node version. See scripts-and-env.md for the full 3-tier guide (Tier A: Node >=24.10.0 non-experimental, Tier B: Node 22.9+ experimental flags, Tier C: Node 20.12+ programmatic loading).

Quick reference (Tier A / recommended):

  • JS dev: node --watch --env-file-if-exists=.env src/app/server.js
  • TS dev: tsc -w in terminal 1, node --watch --env-file-if-exists=.env dist/app/server.js in terminal 2

Always include: lint, format, test, test:watch, migrate, seed

IMPORTANT: Do NOT add nodemon, dotenv, or tsx as dependencies.

Step 10: Database Best Practices

  • ALWAYS use migrations — never modify schema by hand in production.
  • Use connection pooling with proper timeout configuration.
  • Wrap multi-step writes in transactions.
  • Index intentionally and monitor slow queries.
  • Keep ALL database logic inside repositories/ — services never write raw queries.
  • Seed scripts go in src/db/seed/ for reproducible dev/test data.

Step 11: Testing Strategy

  • Unit tests (tests/unit/) — test services, utilities, and pure logic in isolation.
  • Integration tests (tests/integration/) — test routes with a real DB (use Docker).
  • E2E tests (tests/e2e/) — test complete user flows end-to-end.
  • Use supertest for HTTP assertions in integration tests.
  • Use factories/fixtures for predictable, reproducible test data.
  • Testing framework: vitest (preferred) or jest.
  • Zero-dependency alternative: Node's built-in test runner (node --test) is stable since Node 20 and supports describe/it and assertions. Module mocking requires --experimental-test-module-mocks; coverage via --experimental-test-coverage. Vitest and Jest remain excellent for richer ecosystems.

Step 12: Production Readiness

Before deploying, ensure:

  1. Graceful shutdown — stop accepting requests, drain connections, close DB pool, stop background workers.
  2. Docker — multi-stage build, non-root user, healthcheck wired to /api/v1/health.
  3. Stateless — no in-memory state; use external stores (Redis, DB) for sessions/cache.
  4. 12-Factor — log to stdout/stderr, config via env vars, one codebase per deploy.
  5. CI pipeline — lint → test → build (TS) → optional security scan → optional integration tests with Dockerized DB.
  6. Secrets — use a secret manager in production; never commit .env files.

Step 13: Naming Conventions

TypePatternExample
Routes`*.routes.(js\ts)`users.routes.ts
Controllers`*.controller.(js\ts)`users.controller.ts
Services`*.service.(js\ts)`users.service.ts
Repositories`*.repo.(js\ts)`users.repo.ts
Validators`*.schema.(js\ts)`users.schema.ts
Errors`AppError.(js\ts)`AppError.ts
ConfigDescriptive namesenv.ts, index.ts

Step 14: Recommended Dependencies

Runtime:

  • express — web framework
  • helmet — secure headers
  • cors — cross-origin requests
  • zod or joi — request validation
  • pino or winston — structured logging
  • DB driver: pg, mysql2, mongoose, or prisma

NOT needed (handled by Node.js built-ins):

  • dotenv — use --env-file-if-exists (non-experimental in Node >=24.10.0) or process.loadEnvFile() (Node >=20.12.0)
  • nodemon — use node --watch (stable since Node >=20.13.0)
  • tsx — use tsc -w + node --watch (or native TS in Node >=22.18.0)

Dev tooling:

  • eslint + prettier — code quality
  • vitest or jest — test runner (or node --test for zero-dependency testing; coverage via --experimental-test-coverage)
  • supertest — HTTP integration testing
  • husky + lint-staged — git hooks (optional but recommended)
  • typescript — compiler (TS repos only)

Examples

Example 1: New Backend Project

User says: "Create a new Express API for a task management app"

Actions:

  1. Confirm: TypeScript, PostgreSQL, Prisma, JWT (or ask user preference)
  2. Scaffold the full folder structure with tasks as the first resource module
  3. Create routes/v1/tasks.routes.ts, controllers/tasks.controller.ts, services/tasks.service.ts, repositories/tasks.repo.ts, validators/tasks.schema.ts
  4. Set up middleware stack in correct order
  5. Configure env validation, logger, error handling
  6. Add health endpoints
  7. Create package.json with node --watch dev script and --env-file-if-exists for env loading — no nodemon or dotenv
  8. Provide .env.example
  9. Pin 24 in .nvmrc (Node 24 LTS)

Example 2: Adding a New Feature Module

User says: "Add an orders feature to my API"

Actions:

  1. Create the full module following the established pattern:

- routes/v1/orders.routes.(js|ts) - controllers/orders.controller.(js|ts) - services/orders.service.(js|ts) - repositories/orders.repo.(js|ts) - validators/orders.schema.(js|ts)

  1. Add migration for the orders table
  2. Mount routes in routes/v1/ index
  3. Follow existing naming and response conventions

Example 3: Backend Code Review

User says: "Review my Express backend structure"

Actions:

  1. Check folder structure against the recommended layout
  2. Verify the request flow (Route → Controller → Service → Repository)
  3. Check for security defaults (helmet, cors, rate limiting, validation)
  4. Verify error handling pattern (AppError, global handler, async wrapper)
  5. Review middleware ordering
  6. Flag any anti-patterns (business logic in controllers, raw SQL in services, scattered env access)

Reference Files

  • Node version details: See node-version-guide.md for the full version/stability table, lifecycle guidance, watch flags, and native TypeScript details.
  • Script tiers and env loading: See scripts-and-env.md for all 3 tiers of package.json scripts based on Node version.
  • Troubleshooting: See troubleshooting.md for common anti-patterns and the rationale behind --env-file-if-exists.

平台分布

Codex

35.84%
按下载量换算68

Claude

29.18%
按下载量换算55

Cursor

19.93%
按下载量换算38

Gemini CLI

9.6%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills