Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

backend-development

/backend-development

Wprowadza zmiany w kodzie backendu dla handlerów Lambda, warstw usług i operacji DynamoDB według zasad KISS, YAGNI i DRY, minimalnymi poprawkami.

Repozytorium
konductor ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Wprowadza zmiany w kodzie backendu dla handlerów Lambda, warstw usług i operacji DynamoDB według zasad KISS, YAGNI i DRY, minimalnymi poprawkami.

Oryginalny opis (EN)

Implements backend code changes for Lambda handlers, service layers, and DynamoDB operations. Use when fixing code quality issues, adding features, or optimizing backend logic. Follows KISS/YAGNI/DRY principles with minimal, surgical changes.

Jak działa

  1. Overview
  2. Usage
  3. Core Concepts
  4. Core Principles
  5. Implementation Standards
  6. Output Format
  7. Quality Gate
Sekcje z nagłówków SKILL.md, w oryginale · 106 linii, 568 słów
Podgląd SKILL.md
---
name: backend-development
description: Implements backend code changes for Lambda handlers, service layers, and DynamoDB operations. Use when fixing code quality issues, adding features, or optimizing backend logic. Follows KISS/YAGNI/DRY principles with minimal, surgical changes.
version: 1.0.0
tags: [skill, backend, lambda, dynamodb, typescript, nodejs, implementation]
---

# Backend Development

## Overview

Implements backend changes with surgical precision — only the specific issue, nothing more. Covers Lambda handler patterns, service layer architecture, DynamoDB operations, type safety, error handling, and test improvements.

## Usage

Use this skill when:

- Fixing code quality issues from code review feedback
- Implementing new Lambda handlers or service methods
- Optimizing DynamoDB operations (atomicity, efficiency)
- Improving type safety (removing `any`, adding null checks)
- Adding or improving test coverage

## Core Concepts

### Architectural Layers

Handlers (entry point, delegates to facade) → Business Facade (orchestrates service calls) → Services (created via factory, contain business logic) → Repositories (data access through interfaces). No layer should bypass the one below it.

### KISS/YAGNI/DRY

Prefer simple, minimal solutions. Only add abstractions that solve a real, existing problem — not hypothetical future needs.

## Core Principles

**Always read the complete file before making changes.** Make minimal changes — only fix the specific issue. Follow established patterns in the codebase. Maintain backward compatibility.

**Prefer simple solutions over design patterns.** Only introduce patterns (Strategy, Observer) when they solve a real, existing problem — not hypothetical future needs. Call out over-engineering directly.

## Implementation Standards

### Handler Patterns

- Handlers delegate to a business facade — no direct business logic in handlers
- Services created via factory pattern — no direct instantiation
- Data access through repository interfaces — no direct database calls
- Use return values from store operations to avoid extra queries

### Type Safety

- No `any` types in production code (test mocks are the only exception)
- Use utility types: `Partial<T>`, `Pick<T, K>`, `Omit<T, K>`
- Validate before non-null assertions (`!`)
- Use `??` for null/undefined checks, not `||`

### DynamoDB Operations

- Atomic operations use transactions for multi-item updates
- Use conditional writes to prevent race conditions
- No extra queries — use return values from write operations
- Follow single-table design patterns (PK/SK)

### Error Handling

- Use specific error types, not generic `Error`
- Catch specific errors, not catch-all handlers
- Structured logging with correlation IDs and context
- Log diffs with structured fields showing before/after state

### Testing

- Create shared fixture factories for test data — not inline objects
- Use `toContainEqual` for order-independent assertions
- Add tests for new code before marking complete
- Test edge cases: null values, empty arrays, boundary conditions

## Output Format

For each change, provide:

1. File path
2. Issue (with line numbers)
3. Exact code changes
4. How to verify the fix
5. What else might be affected

## Quality Gate

**CRITICAL (must fix before done):**

- TypeScript compilation fails
- Tests fail
- Breaking change introduced without migration path
- Direct database connection bypassing repository layer
- Race condition introduced (non-atomic multi-item update)

**IMPORTANT (should fix):**

- `any` type used in production code
- Missing null check before non-null assertion
- Extra query when return value from write operation could be used
- Catch-all error handler masking specific errors
- Test data constructed inline instead of using fixture factory

**SUGGESTION:**

- Could extract repeated logic into shared utility
- Could add structured log fields for better observability
- Could strengthen test assertions to check actual values

Present findings as: CRITICAL → IMPORTANT → SUGGESTION. Ask: "Fix these issues? [y/n]" — unless `scope_confirmed` is true, in which case report all the findings and leave fixing to the caller, without asking.

Wersje

RepozytoriumWynikLicencja
Ta strona · aws-solutions/konductor100Apache-2.0
rommapp/romm100AGPL-3.0
aAAaqwq/AGI-Super-Team100MIT
MoizIbnYousaf/ai-agent-skills100MIT

Migawka bazy z 13.11.2026 · wersja paczki a5985e459df9 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 85backend-code-quality-review
    Przegląda kod backendu pod kątem zasad SOLID, DRY, KISS i YAGNI oraz nazewnictwa, spójności i sprzężeń między modułami.
  • 86engineering-principles
    Pilnuje podstawowych zasad jakości kodu: YAGNI, KISS, DRY z rozwagą i małych, czytelnych zmian.
  • 95clean-code
    Poprawia czytelność kodu według zasad DRY, KISS i YAGNI, gdy metody są długie, nazwy niejasne lub zagnieżdżenia głębokie.
  • 100code-quality
    Audytuje repozytorium pod kątem DRY, KISS, YAGNI i SOLID, z raportem plików i linii oraz poprawkami na gałęzi.
  • 100react-principles
    Pomaga pisać i przeglądać komponenty React zgodnie z zasadami SOLID, DRY, KISS i YAGNI, z hookami, stanem i efektami.
  • 100code-quality-principles
    Stosuje zasady KISS, YAGNI i SOLID, aby uprościć kod i uniknąć nadmiarowej inżynierii podczas refaktoryzacji lub przeglądu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.