Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

backend_core

FreeNo executable scriptsNot checked

Node.js/TypeScript temel prensipler, proje yapısı ve TypeScript strict mode kuralları.

vuralserhat86by vuralserhat86★ 43 GitHub stars18 installs in other catalogs

About this skill

🔧 Backend Core

Node.js/TypeScript temel prensipler ve proje yapısı.


📋 1. Kapsam

Alan Teknoloji
Runtime Node.js 20+ (LTS)
Dil TypeScript (Strict)
Framework NestJS, Fastify, Express

⚙️ 2. TypeScript Strict Mode

{
  "compilerOptions": {
    "strict": true,
    "noImplicitAny": true,
    "strictNullChecks": true,
    "noImplicitReturns": true
  }
}

any Yasak

// ❌ YANLIŞ
function process(data: any) { }

// ✅ DOĞRU
function process(data: DataPayload) { }

// Bilinmeyen için unknown kullan
function parse(input: unknown) { }

📁 3. Proje Yapısı (Feature-First)

src/
├── modules/
│   ├── auth/
│   │   ├── auth.controller.ts
│   │   ├── auth.service.ts
│   │   ├── auth.repository.ts
│   │   └── auth.dto.ts
│   └── users/
├── shared/
│   ├── middleware/
│   ├── guards/
│   └── utils/
├── infrastructure/
│   ├── database/
│   ├── cache/
│   └── logger/
├── config/
└── main.ts

🔐 4. Environment Variables

import { z } from 'zod';

const envSchema = z.object({
  NODE_ENV: z.enum(['development', 'production', 'test']),
  PORT: z.string().transform(Number),
  DATABASE_URL: z.string().url(),
  JWT_SECRET: z.string().min(32),
});

export const env = envSchema.parse(process.env);

🔗 İlgili Skill'ler

  • backend-api - REST/GraphQL tasarımı
  • backend-database - DB patterns, caching

  • backend-database - DB patterns, caching

Backend Core v1.2 - Verified

🔄 Workflow

Kaynak: Node.js Best Practices - Project Structure

Aşama 1: Foundation (Structure)

  • Components: Klasörleri teknik role göre değil (controllers, models), bileşene göre ayır (components/user, components/order).
  • Config: dotenv ve envalid (veya Zod) ile ortam değişkenlerini tip güvenli hale getir.
  • Entry: Uygulamayı app.ts (setup) ve server.ts (listen) olarak ayır.

Aşama 2: Core Utilities

  • Logger: console.log yerine winston veya pino kur.
  • Async Wrapper: Promise rejection'ları yakalamak için global handler veya wrapper kullan.
  • Linter: ESLint ve Prettier ayarlarını CI pipeline'a bağla.

Aşama 3: Hardening

  • Graceful Shutdown: SIGTERM/SIGINT sinyallerini dinle ve bağlantıları nazikçe kapat.
  • Health Check: /health endpoint'i ekle.

Kontrol Noktaları

Aşama Doğrulama
1 Yeni bir özellik eklerken 5 farklı klasöre dokunmak gerekiyor mu? (Gerekmemeli -> Component based)
2 .env dosyası commit edilmiş mi? (Edilmemeli)
3 Uygulama çökünce process otomatik restart oluyor mu? (PM2/Docker)
Full SKILL.md on GitHub

Install backend_core in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the backend_core skill do?

Node.js/TypeScript temel prensipler, proje yapısı ve TypeScript strict mode kuralları.

How do I install the backend_core skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the backend_core skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare backend_core with