Saltar al contenido
Skillpedia
Sitios e interfaces (frontend)7,2 mil · #13309

kiranism-shadcn-dashboard

Qué hace

Esta skill es una guía para construir funcionalidades en una plantilla de panel de administración con Next.js y shadcn. Está pensada para desarrolladores que usan esta plantilla de inicio y quieren que sus páginas nuevas sigan su estructura.

Cuándo usarla

  • ✓Cuando quieres añadir una página nueva o un módulo de funcionalidad al panel.
  • ✓Cuando necesitas añadir una tabla de datos, un formulario o un elemento de navegación con el estilo de la plantilla.
  • ✓Cuando quieres añadir un tema o configurar el acceso por roles en el panel.

Link de la skill

https://github.com/Kiranism/next-shadcn-dashboard-starter/blob/main/.agents/skills/kiranism-shadcn-dashboard/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/Kiranism/next-shadcn-dashboard-starter/blob/main/.agents/skills/kiranism-shadcn-dashboard/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Añade una página nueva de Clientes a mi panel con una tabla con búsqueda, siguiendo los patrones de la plantilla.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

El agente busca dónde va cada tipo de archivo en la plantilla y sigue sus convenciones. Después construye la página, la tabla o el formulario en las carpetas correspondientes.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Dashboard Development Guide

This skill encodes the exact patterns and conventions used in this Next.js 16 + shadcn/ui admin dashboard template.

Quick Reference: What Goes Where

Task Location
New page src/app/dashboard/<name>/page.tsx
New feature module src/features/<name>/
Feature components src/features/<name>/components/
API types src/features/<name>/api/types.ts
Service layer src/features/<name>/api/service.ts
Query + mutation opts src/features/<name>/api/queries.ts
Zod schemas src/features/<name>/schemas/<name>.ts
Filter/select options src/features/<name>/constants/
Nav config src/config/nav-config.ts
Types src/types/index.ts
Mock data src/constants/mock-api-<name>.ts
Search params src/lib/searchparams.ts
Query client src/lib/query-client.ts
Theme CSS src/styles/themes/<name>.css
Theme registry src/components/themes/theme.config.ts
Custom hook src/hooks/
Icons registry src/components/icons.tsx

Adding a New Feature (End-to-End)

When a user asks to add a feature (e.g., "add an orders page"), follow these steps in order. Each step below shows the minimal pattern — see reference files for full templates.

Step 1: Mock API (src/constants/mock-api-<name>.ts)

See references/mock-api-guide.md for the complete template. Key structure:

import { faker } from '@faker-js/faker';
import { matchSorter } from 'match-sorter';
import { delay } from './mock-api';

export type Order = {
  id: number;
  customer: string;
  status: string;
  total: number;
  created_at: string;
  updated_at: string;
};

export const fakeOrders = {
  records: [] as Order[],
  initialize() {
    /* generate with faker */
  },
  async getOrders({ page, limit, search, sort }) {
    /* filter, sort, paginate, return { items, total_items } */
  },
  async getOrderById(id: number) {
    /* find by id */
  },
  async createOrder(data) {
    /* push to records */
  },
  async updateOrder(id, data) {
    /* merge into record */
  },
  async deleteOrder(id) {
    /* filter out */
  }
};
fakeOrders.initialize();

Every method should call await delay(800) to simulate network latency. Use matchSorter for search. Return { items, total_items } from list methods.

Step 2: API Layer (src/features/<name>/api/)

Each feature has 4 API files: types → service → queries → mutations.

Types (api/types.ts) — re-export the entity type from mock API, plus filter/response/payload types:

export type { Order } from '@/constants/mock-api-orders';
export type OrderFilters = { page?: number; limit?: number; search?: string; sort?: string };
export type OrdersResponse = { items: Order[]; total_items: number };
export type OrderMutationPayload = { customer: string; status: string; total: number };

Service (api/service.ts) — data access layer. One exported function per operation:

import { fakeOrders } from '@/constants/mock-api-orders';
import type { OrderFilters, OrdersResponse, OrderMutationPayload } from './types';

export async function getOrders(filters: OrderFilters): Promise<OrdersResponse> {
  return fakeOrders.getOrders(filters);
}
export async function getOrderById(id: number) {
  return fakeOrders.getOrderById(id);
}
export async function createOrder(data: OrderMutationPayload) {
  return fakeOrders.createOrder(data);
}
export async function updateOrder(id: number, data: OrderMutationPayload) {
  return fakeOrders.updateOrder(id, data);
}
export async function deleteOrder(id: number) {
  return fakeOrders.deleteOrder(id);
}

Queries (api/queries.ts) — one object for reads (keys + queryOptions) and one for writes (mutationOptions with only mutationFn). Same shape as todosQueries / todosMutations in TanStack's official Next.js optimistic updates example:

i
Preguntas frecuentes

¿Qué framework usa esta plantilla?

La skill describe un proyecto de Next.js 16 con componentes de shadcn construidos sobre React.

¿Ayuda con el control de acceso?

Sí. La skill cubre la configuración del control de acceso basado en roles para las páginas.

¿Dónde va una página nueva?

Las páginas van en la carpeta de la app del panel, y el código de la funcionalidad va en su propia carpeta de funcionalidades.

Detalles

Descripción original del autor

Guide for building features, pages, tables, forms, themes, and navigation in this Next.js 16 shadcn dashboard template. Use this skill whenever the user wants to add a new page, create a feature module, build a data table, add a form, configure navigation items, add a theme, set up RBAC access control, or work with the dashboard's patterns and conventions. Also triggers when adding routes under /dashboard, working with Clerk auth/orgs/billing, creating mock APIs, or modifying the sidebar. Even if the user doesn't mention "dashboard" explicitly — if they're adding UI, pages, or features to this

repo: Kiranism/next-shadcn-dashboard-starter

Popularidad

Estrellas en GitHub
7,2 mil
Posición en el ranking
#13309
Licencia
MIT
Actualizada
1/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas