Source profileQuality 95/100

vasilyu1983/AI-Agents-public/frameworks/shared-skills/skills/software-backend/SKILL.md

software-backend

Builds backend services and APIs with durable defaults. Use when implementing REST, GraphQL, tRPC, or gRPC services with auth, queues, data, or observability.

Source repository stars
82
Declared platforms
2
Static risk flags
0
Last source update
2026-08-21
Source checked
2026-08-28

Decision brief

What it does: where it fits

Use this skill for backend service implementation and review: API boundaries, auth, data access, jobs, caching, observability, and production hardening. If the main question is platform selection, system topology, or API-contract design without implementation, hand off early.

Best for

  • building or reviewing REST, GraphQL, tRPC, Connect, or gRPC services
  • implementing auth, validation, rate limits, caching, queues, or webhook handling
  • modelling schemas and running safe migrations

Not for

  • Letting framework defaults define the service contract, error model, and cancellation semantics.
  • Using one generic repository abstraction for every query, including hot paths that need explicit SQL, batching, or shape control.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexDeclaredSource recordInstall path and trigger
Claude CodeDeclaredSource recordInstall path and trigger
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/software-backend"
Safe inspection promptEditorial

Inspect the Agent Skill "software-backend" from https://github.com/vasilyu1983/AI-Agents-public/blob/53f6cb73ea53a2646e3e7d4665062ad66f3683ac/frameworks/shared-skills/skills/software-backend/SKILL.md at commit 53f6cb73ea53a2646e3e7d4665062ad66f3683ac. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Workflow

    1. Confirm the real constraint: latency, team skill, runtime, compliance, data model, or delivery speed. 2. Choose the transport and framework based on that constraint, not on trend-chasing. 3. Define the boundary: - request and response contracts - auth and authorization rules…

    Confirm the real constraint: latency, team skill, runtime, compliance, data model, or delivery speed.Choose the transport and framework based on that constraint, not on trend-chasing.Define the boundary:
  2. 02

    Shared review utilities

    ../software-clean-code-standard/assets/checklists/backend-api-review-checklist.md

    ../software-clean-code-standard/assets/checklists/backend-api-review-checklist.md../software-clean-code-standard/assets/checklists/secure-code-review-checklist.md../software-clean-code-standard/references/auth-utilities.md
  3. 03

    Defaults

    When this skill is active, prefer these defaults unless the repo or user says otherwise:

    validate at the boundary and keep types explicituse PostgreSQL plus pooling for relational workloadsuse structured logs, OpenTelemetry, explicit timeouts, and rate limits
  4. 04

    Quick Reference

    Review the “Quick Reference” section in the pinned source before continuing.

    Review and apply the “Quick Reference” source section.
  5. 05

    When to Use This Skill

    building or reviewing REST, GraphQL, tRPC, Connect, or gRPC services

    building or reviewing REST, GraphQL, tRPC, Connect, or gRPC servicesimplementing auth, validation, rate limits, caching, queues, or webhook handlingmodelling schemas and running safe migrations

Permission review

Static risk signals and limitations

No configured static risk pattern was detected

This is not proof of safety. Runtime behavior, indirect dependencies, and hidden external systems are outside the static scan.

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score95/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars82SourceRepository attention, not individual Skill quality
Compatibility2 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
vasilyu1983/AI-Agents-public
Skill path
frameworks/shared-skills/skills/software-backend/SKILL.md
Commit
53f6cb73ea53a2646e3e7d4665062ad66f3683ac
License
MIT
Collected
2026-08-28
Default branch
main
View the original SKILL.md

Software Backend Engineering

Use this skill for backend service implementation and review: API boundaries, auth, data access, jobs, caching, observability, and production hardening. If the main question is platform selection, system topology, or API-contract design without implementation, hand off early.

Defaults

When this skill is active, prefer these defaults unless the repo or user says otherwise:

  • validate at the boundary and keep types explicit
  • use PostgreSQL plus pooling for relational workloads
  • use structured logs, OpenTelemetry, explicit timeouts, and rate limits
  • make mutations idempotent and background work retry-safe
  • use RFC 9457 Problem Details for machine-readable errors

Quick Reference

NeedDefault Direction
Public HTTP APIREST with explicit contracts and timeouts
Internal TS monorepo APItRPC when end-to-end type safety matters
High-throughput internal RPCConnect or gRPC
Complex client-shaped readsGraphQL
Relational dataPostgreSQL with migrations and pooling
Background workQueue plus idempotent handlers and DLQ policy
Browser authOIDC or OAuth plus httpOnly cookies
Service authshort-lived tokens, workload identity, or signed service credentials
Cachingexplicit TTLs and invalidation rules
Observabilitycorrelation IDs, traces, structured logs, saturation metrics

When to Use This Skill

  • building or reviewing REST, GraphQL, tRPC, Connect, or gRPC services
  • implementing auth, validation, rate limits, caching, queues, or webhook handling
  • modelling schemas and running safe migrations
  • hardening service behavior for retries, timeouts, and observability
  • scaffolding or refactoring a backend with production defaults

Route Elsewhere


Workflow

  1. Confirm the real constraint: latency, team skill, runtime, compliance, data model, or delivery speed.
  2. Choose the transport and framework based on that constraint, not on trend-chasing.
  3. Define the boundary:
    • request and response contracts
    • auth and authorization rules
    • error model
    • idempotency and rate limiting
  4. Define the data path:
    • schema and migrations
    • transaction boundaries
    • pooling and query budgets
    • cache and invalidation rules
  5. Define the async path:
    • queue semantics
    • retry ownership
    • deduplication and DLQ
  6. Add operability before calling it complete:
    • timeouts and cancellation
    • health checks
    • structured logs and traces
    • deploy and rollback expectations

ASCII Flow

Backend task
  -> Define endpoint, job, service, or data boundary
  -> Confirm runtime, framework, persistence, and integration contracts
  -> Design request validation, auth, errors, and idempotency
  -> Implement bounded slice with tests and observability
  -> Check performance, security, and rollout risk
  -> Verify behavior and document follow-up handoffs

Technology Selection

Pick based on the strongest operational constraint:

  • TypeScript-heavy team -> Fastify, Hono, or NestJS plus Prisma or Drizzle
  • audited SQL and predictable concurrency -> Go with sqlc/pgx
  • Python ecosystem or ML adjacency -> FastAPI plus SQLAlchemy
  • enterprise .NET stack -> ASP.NET Core plus EF Core or explicit SQL access
  • memory safety and explicitness -> Rust with Axum plus SQLx
  • edge or serverless first -> lightweight stateless handlers with hard CPU and timeout budgets

Use software-baas-platforms first when the real requirement is "ship auth, storage, and realtime quickly with less custom service code."


Backend Non-Negotiables

CategoryRule
APIMutating endpoints require idempotency keys where retries are plausible
APIList endpoints require explicit pagination (limit/cursor) and at least one filter
APIErrors are structured and machine-readable (RFC 9457 Problem Details)
APIHealth endpoints separate liveness (/healthz) from readiness (/readyz)
DataNo SELECT * on wide or high-volume paths
DataTransactions kept explicit; no implicit ambient transactions
DataNew or changed query plans verified with EXPLAIN ANALYZE before production
DataORM convenience layers bypassed on hot paths where auditability matters
DependenciesEvery outbound call has an explicit timeout; no framework-default infinite wait
DependenciesRetries owned at exactly one layer (no double-retry across client + service)
DependenciesCache invalidation rule documented before caching is added
DependenciesBackground jobs safe to retry and observable (structured log on start/finish/failure)
OperationsEvery request carries a correlation ID propagated to all downstream calls
OperationsTrace, log, and metric identifiers agree (no split identity)
OperationsSlow paths have explicit latency budgets (p99 target, not "fast enough")
OperationsDeploy procedure includes rollback step and smoke-check list

Performance and Reliability Triage

When a service is slow or unstable, debug in this order:

StepCheckSignal
1Query behavior and N+1sEXPLAIN output, ORM query log showing repeated identical queries
2Indexes and execution plansSeq scans on large tables, missing index on FK or filter columns
3Connection pooling and queue depthPool wait time > 10ms; idle connections exhausted
4Timeout and cancellation gapsRequests hanging past deadline; no context propagation through outbound calls
5Caching or read-shaping opportunitiesSame query with same result executing > 10x/s; hot read path with no invalidation
6Runtime or tier limitsCPU throttling, memory pressure, rate limit headers from upstream

Do not add caching before you understand the real bottleneck.


Operational Playbooks

Production Readiness Checklist

Before marking a service production-ready:

  • All mutating endpoints have idempotency keys or safe-retry semantics
  • Every outbound call has an explicit timeout (no framework-default infinite waits)
  • Health endpoint distinguishes liveness from readiness
  • Correlation IDs propagated from inbound request to all downstream calls and logs
  • DLQ policy defined for every queue consumer (what happens to poison messages)
  • New query plans verified (EXPLAIN ANALYZE) before merge to main
  • Rollback procedure documented and smoke-test list exists

Known Traps

  • Introducing asynchronous jobs to hide a broken synchronous path instead of fixing the contract, timeout budget, or workload shape.
  • Shipping retries without deadlines, jitter, and idempotency keys, then multiplying load during incidents.
  • Changing API or webhook behavior without a compatibility window, replay plan, or structured error-versioning posture.
  • Adding caches before proving whether the real bottleneck is query shape, pooling, lock contention, or outbound dependency latency.
  • Treating background consumers as “fire and forget” even though poison-message handling, replay semantics, and observability are undefined.

Common Anti-Patterns

  • Letting framework defaults define the service contract, error model, and cancellation semantics.
  • Using one generic repository abstraction for every query, including hot paths that need explicit SQL, batching, or shape control.
  • Mixing request handling, domain logic, external side effects, and persistence concerns in one controller or handler.
  • Relying on eventual retries to clean up non-idempotent side effects.
  • Calling a backend “production ready” before timeouts, readiness checks, trace correlation, and rollback smoke tests exist.

Navigation

Core references

Shared review utilities

Templates

Related Skills

Gate before invoking any foundation below: Each foundation has a When to Apply / When to Skip section. If your task matches a skip-condition, route to the foundation it names instead — don't pull in primitives the task doesn't need.

Fact-Checking

  • Known bugs, regressions, framework/compiler/runtime footguns, and version-specific crash or workaround guidance must be verified against current primary web sources before being treated as current fact.
  • Verify current runtime versions, support windows, framework capabilities, and cloud-platform constraints before final answers.
  • Prefer official docs and release or support policy pages for version-sensitive recommendations.
  • If web access is unavailable, mark version or support guidance as unverified.

Learnings Loop

Before applying this skill on a non-trivial task, read learnings.consolidated.md in this directory (and learnings.md if present).

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

Frequently asked questions

What to verify before installation and use

What does the software-backend source document cover?

Use this skill for backend service implementation and review: API boundaries, auth, data access, jobs, caching, observability, and production hardening. If the main question is platform selection, system topology, or API-contract design without implementation, hand off early.

How do I install software-backend?

The source record exposes this install command: npx skills add https://github.com/vasilyu1983/AI-Agents-public --skill "frameworks/shared-skills/skills/software-backend". Inspect the command and pinned source before running it.

Which Agent platforms does the source record declare?

The pinned source record declares support for: codex, claude code.

Alternatives

Compare before choosing