All skills
debabratasaha-dev avatar

/backend-engineer

@a1f81fa

Professional backend engineering for production-grade APIs, services, workers, databases, authentication, authorization, integrations, queues, observability, testing, reliability, and security. Use when the agent needs to build, improve, review, debug, or harden backend systems in Node.js, Python, Go, Java, .NET, Ruby, PHP, SQL, NoSQL, REST, GraphQL, WebSockets, event-driven systems, or similar backend stacks. Triggers on requests to build APIs, services, workers, webhook handlers, auth systems, database layers, background jobs, queues, cron tasks, billing flows, or server-side features. Also triggers on requests to fix slow queries, race conditions, deadlocks, failing tests, deployment issues, or to review backend code for security, correctness, and reliability.

Use this Skill: https://skilld.dev/gh/debabratasaha-dev/techskills/backend-engineer

This session only. Nothing lands on disk.

assetsbackend-starterexamplesidempotent-worker.md

≈334 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Idempotent Worker Pattern

Process queue messages safely with retry tolerance. Same message processed twice produces same result.

Pattern

// Pseudocode — send notification email from queue

function processNotification(message):
  jobId = message.id

  // 1. Check if already processed
  existing = db.find("processed_jobs", { jobId })
  if existing:
    log.info("Already processed", { jobId })
    return  // ack message

  // 2. Execute work
  try:
    user = db.find("users", { id: message.userId })
    email.send({
      to: user.email,
      template: message.template,
      data: message.data
    })

    // 3. Mark as processed (atomic with unique constraint)
    db.insert("processed_jobs", {
      jobId,
      processedAt: now(),
      result: "sent"
    })

    log.info("Notification sent", { jobId, userId: message.userId })

  catch error:
    if error is DuplicateKeyError:
      // Another worker processed it — safe to ignore
      return
    // Transient error — let queue retry
    throw error

Rules

  • Use unique constraint on job/message ID as safety net.
  • Handle DuplicateKeyError gracefully — means another worker won.
  • Only retry on transient errors. Permanent failures go to DLQ.
  • Log: job ID, attempt number, result, duration.
  • Set max retries (5–10) and backoff delay.

Source: SKILL.md on GitHub

No alerts18d3 checks · Risk SAFE
  • Gen Agent Trust Hub18d

    The skill provides comprehensive, high-quality engineering guidelines and references for backend development. It focuses on security best practices, such as input validation, authorization, and secure secret handling, without any detected malicious patterns.

  • Socket18d

    No alerts

  • Snyk18d

    Risk: LOW · No issues

Signed by skilld at a1f81fa. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated 4 months ago
metadata
{
  "version": "1.0.0"
}

README badge

README badge for debabratasaha-dev/techskills/backend-engineer