backend_core
FreeNo executable scriptsNot checkedNode.js/TypeScript temel prensipler, proje yapısı ve TypeScript strict mode kuralları.
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
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:
dotenvveenvalid(veya Zod) ile ortam değişkenlerini tip güvenli hale getir. - Entry: Uygulamayı
app.ts(setup) veserver.ts(listen) olarak ayır.
Aşama 2: Core Utilities
- Logger:
console.logyerinewinstonveyapinokur. - 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:
/healthendpoint'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) |
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
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
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic