backend-dev-guidelines
Backend-Entwicklungs-Best-Practices anwenden
متاح أيضًا من: Dimon94,BrianDai22,DojoCodingLabs,sickn33
Erstellen Sie konsistente, wartbare Backend-Services mit bewährten Node.js/Express/TypeScript-Patterns. Diese Skill bietet architektonische Anleitungen, Code-Vorlagen und sicherheitsbewusste Patterns für die Microservices-Entwicklung.
تنزيل ZIP المهارة
رفع في Claude
اذهب إلى Settings → Capabilities → Skills → Upload skill
فعّل وابدأ الاستخدام
اختبرها
استخدام "backend-dev-guidelines". Create a POST /posts endpoint with authentication
النتيجة المتوقعة:
- Complete route definition with SSO middleware
- BaseController with breadcrumb tracking
- PostService with dependency injection
- PostRepository with Prisma queries
- Zod validation schema for post data
- Error handling with Sentry capture
استخدام "backend-dev-guidelines". Convert legacy callback code to async/await
النتيجة المتوقعة:
- Updated service methods with try/catch
- AsyncErrorWrapper utility usage
- Sentry error capture integration
- Promise.all() for parallel operations
- Proper error propagation to controller
استخدام "backend-dev-guidelines". Add input validation to existing endpoint
النتيجة المتوقعة:
- Zod schema definition with type inference
- Validation in controller before service call
- 400 status code on validation failure
- Error details in response
- Test cases for invalid input
التدقيق الأمني
آمنAll 555 static findings are FALSE POSITIVES. This is a documentation/guide skill containing educational code examples. The detected patterns (shell commands, environment variables, path traversal, crypto algorithms) are in markdown code blocks demonstrating best practices and anti-patterns. The skill actively promotes secure coding - it teaches AGAINST vulnerabilities like path traversal and weak cryptography, not exploits them.
عوامل الخطر
⚙️ الأوامر الخارجية (2)
🔑 متغيرات البيئة (2)
📁 الوصول إلى نظام الملفات (2)
درجة الجودة
ماذا يمكنك بناءه
Neue Feature-Implementierung
Generieren Sie Controller-, Service- und Repository-Code nach architektonischen Patterns für neue API-Endpunkte.
Codebasis-Standardisierung
Etablieren Sie konsistente Patterns über mehrere Microservices hinweg mit BaseController und unifiedConfig-Nutzung.
Express-API-Entwicklung
Erstellen Sie Express-Routes mit proper Middleware, Validierung und Error-Tracking-Integration.
جرّب هذه الموجهات
Erstelle einen neuen /users/:id-Endpunkt mit UserController, der BaseController erweitert, Zod-Validierung enthält und proper Error-Handling mit Sentry.
Generiere einen UserService mit Dependency-Injection-Pattern, inklusive Repository-Aufrufen und Async-Error-Handling-Wrapper.
Erstelle ein UserRepository-Pattern mit PrismaService-Nutzung, Transaction-Support und Query-Optimierung-Beispiele.
Generiere ein vollständiges Feature mit Routes, BaseController, Service mit DI, Repository-Layer, Zod-Validierungsschemas und Jest-Tests.
أفضل الممارسات
- Verwenden Sie geschichtete Architektur: Routes delegieren an Controller, Controller rufen Services auf, Services nutzen Repositories.
- Erweitern Sie immer BaseController für konsistentes Error-Handling, Breadcrumbs und Sentry-Integration.
- Validieren Sie jeden Input mit Zod-Schemas vor der Business-Logic - lehnen Sie ungültige Daten früh ab.
تجنب
- Niemals Business-Logic in Route-Handlern platzieren - an Controller delegieren.
- Niemals process.env direkt verwenden - unifiedConfig für Type-Safety und Testing nutzen.
- Niemals Error-Handling überspringen - alle Async-Operationen brauchen try/catch mit Sentry-Capture.