Programming · Building & coding
ditz-backend
/ditz-backend
Use when building APIs, services, or server-side logic.
For whom
- Author
- tongkoljaafar-gif ↗
- Repository
- ditzzzai ↗
- Licence
- MIT
- Last repository change
- 29.10.2026
Assessment and security
96/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability21 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
Deprecation
No signals detected. Repository changed on 29.10.2026, without references to retired models or APIs.
Licence
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Use when building APIs, services, or server-side logic.
Original author description
Use when building APIs, services, or server-side logic.
How it works
- When to Use
- Struktur (yang berlaku di 90% kasus)
- Aturan wajib
- Integrasi pihak ketiga
- Verifikasi
Original SKILL.md headings · 41 lines, 337 words
SKILL.md preview
---
name: ditz-backend
description: Use when building APIs, services, or server-side logic.
version: 1.0.0
license: MIT
metadata:
hermes:
tags: [backend, api, auth, validation]
related_skills: [ditz-api, ditz-db, ditz-review]
---
# ditz-backend - Service yang Nggak Jatuh di Produksi
## When to Use
- Nambah route/controller/service/repository.
- Ngubah auth, transaksi, integrasi pihak ketiga.
- Bikin worker/queue/job.
## Struktur (yang berlaku di 90% kasus)
```
route/handler → HTTP: parse, validasi bentuk, panggil service, bentuk response
service → aturan bisnis, transaksi, orkestrasi
repo/data → akses DB, query, mapping
```
Handler nggak boleh isi logika bisnis. Service nggak boleh tahu soal `req`/`res`. Repo nggak boleh ngebentuk response HTTP. Kalau repo udah punya pola lain, ikut repo.
## Aturan wajib
1. **Validasi di boundary.** Schema validation (zod/pydantic/Joi) di handler. Tipe hasil parse yang dipakai ke bawah - jangan re-parse.
2. **Auth ≠ otorisasi.** Cek "siapa" DAN "boleh akses objek ini" (IDOR: `WHERE id = ? AND owner_id = ?`).
3. **Error konsisten.** Satu bentuk error body: `{error: {code, message, details?}}`. Jangan bocorin stack/SQL ke client. Log internal dengan request id.
4. **Status code bener.** 201 create, 204 no content, 400 validasi, 401 belum login, 403 nggak boleh, 404 nggak ada, 409 konflik, 422 semantik, 429 rate limit.
5. **Idempotensi.** POST yang bisa dobel (payment, webhook) → idempotency key atau unique constraint.
6. **Timeout di semua panggilan keluar.** DB, HTTP, queue. Tanpa timeout = thread/pool ngabisin.
7. **Retry dengan backoff + jitter**, cuma buat operasi idempoten. Retry non-idempoten bikin duplikat.
8. **Transaksi buat multi-tulis.** Perubahan yang harus konsisten bareng → satu transaksi, dengan isolation level yang disadari.
9. **Konfigurasi dari env**, divalidasi saat startup (fail fast kalau `DATABASE_URL` kosong). Nggak ada secret hardcoded.
10. **Observability:** log terstruktur (JSON), request id, durasi, level benar. Metric buat endpoint kunci, error tidak bocor ke user.
## Integrasi pihak ketiga
- Bungkus dalam adapter tipis. Kalau SDK berubah, satu file yang disentuh.
- Simpan raw response kalau dipakai buat audit/debug.
- Webhook: verifikasi signature, proses idempoten, balas cepat (<5s) dan kerja beratnya async.
- Rate limit + circuit breaker buat dependency yang bisa mati.
## Verifikasi
Minimal: `curl -i` tiap endpoint baru (happy + 1 error), test handler, dan cek log nggak ada stack trace bocor.
Versions
The database has no other skills named ditz-backend.
Database snapshot: 13.11.2026 · package version c4897023bcb1 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 86ditz-router
Use to pick which ditz-* engineering skill fits the task. - 96ditz-api
Use when designing or reviewing REST/GraphQL endpoints. - 100init-backend
Init: backend APIs for this project. Use when the app needs server-side logic, AI processing, data or file storage, email, webhooks, or scheduled jobs. - 90backend-engineering
Use when building or refactoring backend services, RESTful APIs, business logic, authentication/authorization pipelines, background workers, database transactions, third-party integrations, or error handling systems. - 100backend
Backend development patterns for services, error handling, logging, caching. Use when building backend services, APIs, or microservices. - 100backend-developer
Use this agent when building server-side APIs, microservices, and backend systems that require robust architecture, scalability planning, and production-ready implementation.