coding-be

Coordinate validation, DAL access, and server actions for Next.js App Router backend features.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/lac-minh-studio/lacminh-web --skill coding-be
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-be
Source: https://github.com/lac-minh-studio/lacminh-web/tree/main/.github/skills/coding-be
Command: npx skills add https://github.com/lac-minh-studio/lacminh-web --skill coding-be

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach for implementing backend logic in a Next.js App Router, including DAL access, Zod validations, and server actions, ensuring data integrity and predictable revalidation.

Core Features & Use Cases

  • Validation: Zod schemas with inferred TS types for strong typing
  • DAL: Pure async Firestore-like data access with no external HTTP calls
  • Actions: 'use server' server actions with signature export async function <name>(ctx, input)
  • Idempotency & Audit: support Idempotency-Key and audit_logs for mutations
  • Revalidation: call revalidatePath() for affected UI routes

Quick Start

Instantiate a backend feature by defining Validation, DAL, and Action layers, then configure idempotency, audits, and revalidation rules.

Frequently Asked Questions about coding-be

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

FAQPage Schema
How do I structure Next.js server actions with Zod validation and a data access layer?

Structure Next.js server actions by defining distinct Zod validation schemas, pure async data access layer functions, and 'use server' actions that coordinate them. This approach separates data fetching from mutation logic, ensuring strict type safety and predictable revalidation triggers.

What is the best way to handle idempotency and audit logs for Next.js server actions?

Handle idempotency and audit logs for Next.js server actions by passing an Idempotency-Key and writing mutation events to audit_logs. This ensures safe retry logic for backend workflows and tracks state changes within Firestore-like data stores.

Can I use Next.js App Router server actions with Firestore without external HTTP calls?

Yes, you can use Next.js App Router server actions with Firestore by implementing a pure async data access layer. This DAL directly interacts with Firestore-like data stores without external HTTP calls, ensuring efficient and secure backend data orchestration.

How do I trigger revalidatePath after Next.js server action mutations?

Trigger revalidatePath after Next.js server action mutations by calling revalidatePath() for affected UI routes at the end of the action. This ensures the frontend displays updated data immediately following backend mutations.

How do I implement structured error responses and redacted logging in Next.js backend features?

Implement structured error responses and redacted logging in Next.js backend features by enforcing strict type-safe schemas and applying safe logging practices. This redacts sensitive data during JWT-based authentication and backend orchestration workflows.