Index of every page on this site: llms.txt
All skills
akdevsaha-dev avatar

/init-backend

@ce26f0a
Run it yourself

Initialize a production-oriented backend project using Node.js with TypeScript, Python with FastAPI and uv, or Go. Use when the user asks to initialize, scaffold, bootstrap, or set up a backend.

Use this Skill: https://skilld.dev/gh/akdevsaha-dev/factory-skills/init-backend

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesnode.md

≈647 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Node.js Backend Standard

Stack

  • Node.js, current supported LTS
  • TypeScript with strict mode
  • Express
  • Zod for validation
  • dotenv for local environment configuration
  • Vitest and Supertest for testing
  • ESLint and Prettier

Project structure

All paths below are relative to the backend/ directory. Create backend/ first and generate every file inside it. Do not place src/, tests/, or config files at the repository root.

backend/ ├── src/ │ ├── config/ │ │ └── env.ts │ ├── routes/ │ │ ├── index.ts │ │ └── health.routes.ts │ ├── handlers/ │ │ └── health.handler.ts │ ├── services/ │ │ └── health.service.ts │ ├── validators/ │ │ └── health.schema.ts │ ├── middleware/ │ │ └── error.middleware.ts │ ├── app.ts │ └── server.ts ├── tests/ │ └── health.test.ts ├── .env.example ├── .gitignore ├── package.json ├── tsconfig.json ├── eslint.config.js └── README.md

Dependencies

Run every command in this file from inside the backend/ directory (mkdir -p backend && cd backend && npm init -y).

Install:

npm install express zod dotenv

npm install -D typescript tsx @types/node @types/express vitest supertest @types/supertest eslint typescript-eslint prettier

Required scripts

  • dev: tsx watch src/server.ts
  • build: tsc
  • start: node dist/server.js
  • typecheck: tsc --noEmit
  • test: vitest run
  • lint: eslint .
  • format: prettier --write .

Implementation rules

  • Use ES modules consistently.
  • Enable TypeScript strict mode.
  • Configure Node-compatible module resolution.
  • Keep app.ts separate from server.ts so tests can import the Express application without opening a port.
  • Implement centralized error middleware.
  • Use Zod to validate environment variables and incoming request data.
  • Do not introduce a database or authentication system unless requested.
  • Use process.env.PORT with a default of 8080.
  • Configure SIGINT and SIGTERM handling.

Health endpoint

GET /health

Response:

{ "status": "ok" }

The route must call a handler, which calls the health service.

Do not add unnecessary validation to the health endpoint. Create the validators directory for future endpoints.

Verification

Use compatible package versions and ensure the generated configuration works with the installed versions.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts11d3 checks · Risk SAFE
  • Gen Agent Trust Hub11d

    The backend initialization skill is designed to scaffold production-ready projects in Node.js, Python, or Go. It follows standard industry practices for project structure, dependency management, and verification. While the skill possesses significant capabilities like executing shell commands and installing packages, these actions are intended for its primary purpose of setting up a development environment. It references the author's own engineering guidelines on GitHub as a template. The low verdict reflects the inherent surface for indirect prompt injection common in tools that inspect local project files.

  • Socket11d

    No alerts

  • Snyk11d

    Risk: LOW · No issues

Signed by skilld at ce26f0a. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 days ago.

Activeupdated 2 weeks ago

README badge

README badge for akdevsaha-dev/factory-skills/init-backend