[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FFF7TY6WZMFAH05YDTB206":3,"skill-same:01M7FFF7TY6WZMFAH05YDTB206":76},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7FFF7TY6WZMFAH05YDTB206","nodejs-express-server",null,"Build production-ready Express.js servers with middleware, authentication, routing, and database integration. Use when creating REST APIs, managing requests\u002Fresponses, implementing middleware chains, and handling server logic.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: nodejs-express-server\ndescription: >\n  Build production-ready Express.js servers with middleware, authentication,\n  routing, and database integration. Use when creating REST APIs, managing\n  requests\u002Fresponses, implementing middleware chains, and handling server logic.\n---\n\n# Node.js Express Server\n\n## Table of Contents\n\n- [Overview](#overview)\n- [When to Use](#when-to-use)\n- [Quick Start](#quick-start)\n- [Reference Guides](#reference-guides)\n- [Best Practices](#best-practices)\n\n## Overview\n\nCreate robust Express.js applications with proper routing, middleware chains, authentication mechanisms, and database integration following industry best practices.\n\n## When to Use\n\n- Building REST APIs with Node.js\n- Implementing server-side request handling\n- Creating middleware chains for cross-cutting concerns\n- Managing authentication and authorization\n- Connecting to databases from Node.js\n- Implementing error handling and logging\n\n## Quick Start\n\nMinimal working example:\n\n```javascript\nconst express = require(\"express\");\nconst app = express();\nconst PORT = process.env.PORT || 3000;\n\n\u002F\u002F Middleware\napp.use(express.json());\napp.use(express.urlencoded({ extended: true }));\n\n\u002F\u002F Routes\napp.get(\"\u002Fhealth\", (req, res) => {\n  res.json({ status: \"OK\", timestamp: new Date().toISOString() });\n});\n\n\u002F\u002F Error handling\napp.use((err, req, res, next) => {\n  console.error(err.stack);\n  res.status(err.status || 500).json({\n    error: err.message,\n    requestId: req.id,\n  });\n});\n\napp.listen(PORT, () => {\n  console.log(`Server running on port ${PORT}`);\n});\n```\n\n## Reference Guides\n\nDetailed implementations in the `references\u002F` directory:\n\n| Guide | Contents |\n|---|---|\n| [Basic Express Setup](references\u002Fbasic-express-setup.md) | Basic Express Setup |\n| [Middleware Chain Implementation](references\u002Fmiddleware-chain-implementation.md) | Middleware Chain Implementation |\n| [Database Integration (PostgreSQL with Sequelize)](references\u002Fdatabase-integration-postgresql-with-sequelize.md) | Database Integration (PostgreSQL with Sequelize) |\n| [Authentication with JWT](references\u002Fauthentication-with-jwt.md) | Authentication with JWT |\n| [RESTful Routes with CRUD Operations](references\u002Frestful-routes-with-crud-operations.md) | RESTful Routes with CRUD Operations |\n| [Error Handling Middleware](references\u002Ferror-handling-middleware.md) | Error Handling Middleware |\n| [Environment Configuration](references\u002Fenvironment-configuration.md) | Environment Configuration |\n\n## Best Practices\n\n### ✅ DO\n\n- Use middleware for cross-cutting concerns\n- Implement proper error handling\n- Validate input data before processing\n- Use async\u002Fawait for async operations\n- Implement authentication on protected routes\n- Use environment variables for configuration\n- Add logging and monitoring\n- Use HTTPS in production\n- Implement rate limiting\n- Keep route handlers focused and small\n\n### ❌ DON'T\n\n- Handle errors silently\n- Store sensitive data in code\n- Use synchronous operations in routes\n- Forget to validate user input\n- Implement authentication in route handlers\n- Use callback hell (use promises\u002Fasync-await)\n- Expose stack traces in production\n- Trust client-side validation only\n","# Node.js Express Server\n\n## Table of Contents\n\n- [Overview](#overview)\n- [When to Use](#when-to-use)\n- [Quick Start](#quick-start)\n- [Reference Guides](#reference-guides)\n- [Best Practices](#best-practices)\n\n## Overview\n\nCreate robust Express.js applications with proper routing, middleware chains, authentication mechanisms, and database integration following industry best practices.\n\n## When to Use\n\n- Building REST APIs with Node.js\n- Implementing server-side request handling\n- Creating middleware chains for cross-cutting concerns\n- Managing authentication and authorization\n- Connecting to databases from Node.js\n- Implementing error handling and logging\n\n## Quick Start\n\nMinimal working example:\n\n```javascript\nconst express = require(\"express\");\nconst app = express();\nconst PORT = process.env.PORT || 3000;\n\n\u002F\u002F Middleware\napp.use(express.json());\napp.use(express.urlencoded({ extended: true }));\n\n\u002F\u002F Routes\napp.get(\"\u002Fhealth\", (req, res) => {\n  res.json({ status: \"OK\", timestamp: new Date().toISOString() });\n});\n\n\u002F\u002F Error handling\napp.use((err, req, res, next) => {\n  console.error(err.stack);\n  res.status(err.status || 500).json({\n    error: err.message,\n    requestId: req.id,\n  });\n});\n\napp.listen(PORT, () => {\n  console.log(`Server running on port ${PORT}`);\n});\n```\n\n## Reference Guides\n\nDetailed implementations in the `references\u002F` directory:\n\n| Guide | Contents |\n|---|---|\n| [Basic Express Setup](references\u002Fbasic-express-setup.md) | Basic Express Setup |\n| [Middleware Chain Implementation](references\u002Fmiddleware-chain-implementation.md) | Middleware Chain Implementation |\n| [Database Integration (PostgreSQL with Sequelize)](references\u002Fdatabase-integration-postgresql-with-sequelize.md) | Database Integration (PostgreSQL with Sequelize) |\n| [Authentication with JWT](references\u002Fauthentication-with-jwt.md) | Authentication with JWT |\n| [RESTful Routes with CRUD Operations](references\u002Frestful-routes-with-crud-operations.md) | RESTful Routes with CRUD Operations |\n| [Error Handling Middleware](references\u002Ferror-handling-middleware.md) | Error Handling Middleware |\n| [Environment Configuration](references\u002Fenvironment-configuration.md) | Environment Configuration |\n\n## Best Practices\n\n### ✅ DO\n\n- Use middleware for cross-cutting concerns\n- Implement proper error handling\n- Validate input data before processing\n- Use async\u002Fawait for async operations\n- Implement authentication on protected routes\n- Use environment variables for configuration\n- Add logging and monitoring\n- Use HTTPS in production\n- Implement rate limiting\n- Keep route handlers focused and small\n\n### ❌ DON'T\n\n- Handle errors silently\n- Store sensitive data in code\n- Use synchronous operations in routes\n- Forget to validate user input\n- Implement authentication in route handlers\n- Use callback hell (use promises\u002Fasync-await)\n- Expose stack traces in production\n- Trust client-side validation only\n",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","07-后端与架构\u002Fnodejs-express-server",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill nodejs-express-server",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill nodejs-express-server",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill nodejs-express-server","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002FSKILL.md",true,[46,52,56,60,64,68,72],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fauthentication-with-jwt.md","REFERENCE","参考文档",832,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002Freferences\u002Fauthentication-with-jwt.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fbasic-express-setup.md",626,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002Freferences\u002Fbasic-express-setup.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fdatabase-integration-postgresql-with-sequelize.md",830,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002Freferences\u002Fdatabase-integration-postgresql-with-sequelize.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fenvironment-configuration.md",462,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002Freferences\u002Fenvironment-configuration.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Ferror-handling-middleware.md",877,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002Freferences\u002Ferror-handling-middleware.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fmiddleware-chain-implementation.md",999,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002Freferences\u002Fmiddleware-chain-implementation.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"references\u002Frestful-routes-with-crud-operations.md",1790,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnodejs-express-server\u002Freferences\u002Frestful-routes-with-crud-operations.md",[77,84,89,96,103,110],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":85,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]