rune-ext-backend

Audit and fix backend API, auth, database, caching, and background job patterns.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/dangvu008/VietTruyen --skill rune-ext-backend-dangvu008
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rune-ext-backend
Source: https://github.com/dangvu008/VietTruyen/tree/main/.agents/skills/rune-ext-backend
Command: npx skills add https://github.com/dangvu008/VietTruyen --skill rune-ext-backend-dangvu008

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Backend codebases accumulate structural debt across API design, authentication, database queries, middleware, caching, and async processing. This Skill detects anti-patterns in each area and emits concrete fixes matched to your existing framework and ORM. ## Core Features & Use Cases - API and Auth Audits: Detect inconsistent REST naming, missing pagination, insecure JWT handling, and weak RBAC, then emit corrected route handlers, token rotation flows, and OAuth 2.0/OIDC integration with PKCE. - Database, Caching, and Queue Patterns: Fix N+1 queries, unsafe migrations, cache stampede risks, and blocking request threads by implementing eager loading, Redis invalidation with mutex locks, and BullMQ/Celery background jobs with idempotency keys and dead letter queues. - Use Case: Point it at an Express or Fastify service and receive an audit report covering naming violations, missing indexes, and unbounded caches, plus ready-to-apply diffs for pagination middleware, refresh token rotation, and a CLI wrapper with dual human/JSON output. ## Quick Start Audit my backend service for API design, authentication, and database anti-patterns and emit the fixes.

Frequently Asked Questions about rune-ext-backend

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix N+1 queries in my backend API?

Detect N+1 patterns by scanning for ORM lazy loading defaults (Sequelize, TypeORM) and per-request database calls in loops or GraphQL resolvers. Replace them with eager loading or DataLoader batching, which groups all ID lookups into a single query per request.

How to implement secure JWT authentication with refresh tokens?

Issue short-lived access tokens (15 minutes) alongside httpOnly refresh cookies (7 days) with rotation on use. Hash passwords with bcrypt at 12+ rounds, never store tokens in localStorage, and track refresh token reuse to invalidate compromised sessions.

BullMQ vs Celery for background job processing?

BullMQ suits Node.js/TypeScript stacks with Redis-backed retry, delay, priority, and rate limiting built in. Celery fits Python services needing distributed workers and a beat scheduler for cron jobs. Both support idempotency keys and dead letter queues.

Does this work with Fastify and Next.js route handlers?

Yes, it supports Express 5, Fastify 5, Next.js 16 route handlers, NestJS 11, FastAPI, and Django 5. Emitted code uses the project's detected framework and ORM from package.json rather than generic snippets.

Why do cache stampedes happen and how do I prevent them?

Cache stampedes occur when a hot key expires and many concurrent requests simultaneously recompute the value. Prevent them by emitting a Redis SET NX mutex lock on cache miss so only one request regenerates while others wait or serve stale data.

What are the limitations of in-process job queues?

In-process queues die with the server process and lose all pending jobs, making them unsuitable for production. Use Redis-backed queues like BullMQ or Celery with a broker for durability, retries, and horizontal worker scaling.