Server-side code: service layering and ports/adapters, typed errors, retry and circuit breakers, background jobs and queues, structured logging, new integrations; NestJS and Rails guides. Use for "struktur service layer", "error handling di backend", "retry/circuit breaker", "background job", "tambah integrasi baru", "bikin app Rails".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Backend Engineering Edho Ferdian?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/edhoferdian-backend-engineering-edho-ferdian)
---
name: backend-engineering-edho-ferdian
description: >-
Server-side code: service layering and ports/adapters, typed errors, retry
and circuit breakers, background jobs and queues, structured logging, new
integrations; NestJS and Rails guides. Use for "struktur service layer",
"error handling di backend", "retry/circuit breaker", "background job",
"tambah integrasi baru", "bikin app Rails".
metadata:
last_reviewed: "2026-09-24"
---
# Backend Engineering — Edho Ferdian Mode
## Where this sits
- `api-design-edho-ferdian` decides the **contract** at the boundary.
- `data-layer-patterns-edho-ferdian` decides the **storage** behind it.
- This skill is the **middle**: how the code between them is layered, how it
fails, and how it defers work.
- `code-review-edho-ferdian` reviews the result — in particular
`silent-failure-lens.md`, which is the review-side mirror of
`references/error-and-resilience.md` here. Cross-reference, never restate.
## References
- `references/error-and-resilience.md`
- `references/llm-pipelines.md` — regex-first parsing with confidence-scoring
as the LLM gate, plus cost-aware model routing, budget tracking, retry
policy, and prompt caching for pipelines that call an LLM API.
- `references/scheduled-collection.md` — unattended collect/enrich/store
pipelines (scrapers, feed pollers, report builders): source selection,
per-source failure isolation, LLM-enrichment batching and fallback,
prompt-injection rules for untrusted scraped content, idempotent upsert,
and cron/alerting operations. Covers the background-job concerns
(idempotency, dead-letter-style backfill, run scheduling) for this class of
job — see the note below for what it does not cover.
- `references/nestjs.md` — NestJS project structure (`common/`, `config/`,
`modules/<fitur>/` with module-local DTOs), canonical bootstrap (global
`ValidationPipe`, `ClassSerializerInterceptor`, `HttpExceptionFilter`), env
validation at boot, repository/transaction placement, and background
jobs/event consumers in their own modules. Not speculative — this is the
framework behind `ghostfolio`, a real project in Edho's stack.
- `references/rails.md` — Rails 7.1+/8.x authoring: directory contract,
when to extract a service/form/query object or ViewComponent, service
result objects and transactions, ActiveRecord discipline (eager loading,
callbacks, no `default_scope`), idempotent jobs, Hotwire, and the Rails 8
Solid stack. Review and build-failure lenses for Ruby live in
`language-code-review-edho-ferdian` and `build-fix-edho-ferdian`.
- `references/layering-and-boundaries.md` — ports & adapters (hexagonal
architecture) with a framework-agnostic dependency-direction diagram, the
repository-vs-service layer split with a misplaced-concern test, the
composition root (NestJS DI and hand-wired bootstrap variants), a six-step
migration playbook for entangled/legacy code, and a checklist for adding a
new integration cleanly through the same port/adapter seam.
- `references/jobs-and-queues.md` — generic queue-backend reference, distinct
from `references/scheduled-collection.md` (which covers the
scheduled-collection job shape specifically): backend choice (BullMQ vs
SQS vs Postgres-based pg-boss/graphile-worker), worker-pool concurrency
sizing, retry/backoff classification, dead-letter queues generically, job
idempotency keys, and queue observability.
## Design-time references
- `references/component-design-gate.md` — the pre-code gate for any
server-side component: stakes-scaled depth, component-type table, pre-mortem.
- Boundary: designing authN/authZ (mechanism, model, enforcement) is here;
auditing policies, tokens and the perimeter is `security-review-edho-ferdian`.
- `references/authn-authz-design.md` — authN/authZ split, RBAC vs ABAC vs
ReBAC, enforcement points, tenancy.
- `references/instrumentation-by-component.md` — which logs, metrics and
health signals each component type emits.
- `references/metrics-and-dashboards.md` — turning that into a dashboard and a
small alert set (low priority).
- `references/prompt-caching-economics.md` — cost arithmetic, hit-rate
definitions and tenant-scoped keys for LLM prompt caching.
- `references/external-writes-and-auth.md` — gating writes to outside systems,
token capability checks, never printing secrets.
- `references/error-and-resilience.md` also holds the stable error codes and
single retry-owner section.
## External docs (fixed — see skill-authoring-edho-ferdian's canonical contract)
Before using a fast-moving or rarely-touched framework/queue/ORM API surface
(new integration, version upgrade, NestJS/BullMQ/pg-boss specifics), resolve
it live via Context7 rather than from memory. Full contract:
`skill-authoring-edho-ferdian` §9.
## Surgical changes (fixed — see skill-authoring-edho-ferdian's canonical contract)
This skill inherits the default as-is: when extending or fixing an existing
service, error path, or job, change only what the task requires — don't
relayer or restructure adjacent, already-working code as a side effect. Full
contract: `skill-authoring-edho-ferdian` §10.
## Worked examples
`references/worked-integration.md` — a WhatsApp notifier with a port, adapter, typed errors, retry with jitter, circuit breaker, job runner, wiring and tests with fakes. Read it when doing the work, not before routing.
## Usage
| You say | Reference it loads | Parameters it uses |
|---|---|---|
| "struktur service layer untuk modul order" | `component-design-gate.md`, `layering-and-boundaries.md` | `component`, `stakes` |
| "retry dan circuit breaker untuk API pembayaran" | `error-and-resilience.md` | `component` = outbound integration |
| "bikin background job kirim email" | `jobs-and-queues.md` | `component` = queue worker, `queue backend` |
| "tambah integrasi WhatsApp" | `layering-and-boundaries.md` (new-integration checklist), `worked-integration.md` | `component` = outbound integration |
| "bikin app Rails" / "struktur project NestJS" | `rails.md` / `nestjs.md` | `framework` |
| Parameter | Required | Allowed values | Default |
|---|---|---|---|
| `component` | yes | sync endpoint, queue worker, event consumer, cron/scheduler, CLI/admin script, batch/ETL, daemon, outbound integration | none: the gate classifies it first |
| `peak load` | optional | requests or jobs per second | asked if unknown |
| `stakes` | optional | trivial, normal, high (payments, deletes, permissions, other tenants) | judged from what the component touches; sets how deep the gate goes |
| `framework` | optional | NestJS, Rails, other | other: framework-agnostic references |
| `queue backend` | optional | BullMQ, SQS, pg-boss or graphile-worker | none: `jobs-and-queues.md` compares them |
Output: a 10-20 line design summary before code (written answers for high
stakes), then the implementation with typed errors and tests with fakes.
## Hands off to (fixed — see skill-authoring-edho-ferdian §11)
When the work reaches one of these, load that skill with the Skill tool
and follow it — don't write its part from memory.
- The endpoint contract → `api-design-edho-ferdian`
- Schema, queries, caching or migrations → `data-layer-patterns-edho-ferdian`
- Tests for the service → `test-authoring-edho-ferdian`
- Auth, secrets or untrusted input → `security-review-edho-ferdian`
- Dockerfile or compose setup → `container-ops-edho-ferdian`
- A slow path that needs measuring → `performance-audit-edho-ferdian`
## Language routing (fixed — see skill-authoring-edho-ferdian's canonical contract)
Communication to the user in Bahasa Indonesia; code, comments, and any
generated files in English — fixed, never ask. Full contract:
`skill-authoring-edho-ferdian` §7.