मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)7.2k · #13309

kiranism-shadcn-dashboard

यह क्या करती है

यह स्किल Next.js और shadcn एडमिन डैशबोर्ड टेम्पलेट में फ़ीचर बनाने का मार्गदर्शन है। यह उन डेवलपर्स के लिए है जो इस स्टार्टर का इस्तेमाल करते हैं और चाहते हैं कि नए पेज उसकी संरचना से मेल खाएँ।

कब इस्तेमाल करें

  • ✓जब आप डैशबोर्ड में कोई नया पेज या फ़ीचर मॉड्यूल जोड़ना चाहते हैं।
  • ✓जब आपको टेम्पलेट की शैली में डेटा टेबल, फ़ॉर्म या नेविगेशन आइटम चाहिए।
  • ✓जब आप डैशबोर्ड में थीम जोड़ना या रोल-आधारित एक्सेस सेट करना चाहते हैं।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/Kiranism/next-shadcn-dashboard-starter/blob/main/.agents/skills/kiranism-shadcn-dashboard/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे डैशबोर्ड में एक नया Customers पेज जोड़िए, जिसमें खोजने लायक टेबल हो, और टेम्पलेट के पैटर्न का पालन हो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट टेम्पलेट में देखता है कि हर तरह की फ़ाइल कहाँ जाती है और उसकी परंपराओं का पालन करता है। फिर वह पेज, टेबल या फ़ॉर्म को मिलते फ़ोल्डरों में बनाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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
अक्सर पूछे जाने वाले सवाल

यह टेम्पलेट कौन-सा फ़्रेमवर्क इस्तेमाल करता है?

स्किल Next.js 16 प्रोजेक्ट का वर्णन करती है, जिसमें React पर बने shadcn कॉम्पोनेंट हैं।

क्या यह एक्सेस कंट्रोल में मदद करती है?

हाँ। स्किल पेजों के लिए रोल-आधारित एक्सेस कंट्रोल सेट करना कवर करती है।

नया पेज कहाँ जाता है?

पेज डैशबोर्ड ऐप फ़ोल्डर में जाते हैं, और फ़ीचर कोड उसके अपने features फ़ोल्डर में।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
7.2k
रैंकिंग में स्थान
#13309
लाइसेंस
MIT
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills