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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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
लोकप्रियता
- GitHub स्टार
- 7.2k
- रैंकिंग में स्थान
- #13309
- लाइसेंस
- MIT
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
next-best-practices
7.2kआपके एजेंट को रूट, सर्वर कॉम्पोनेंट, डेटा लोडिंग और एरर पेज के लिए मौजूदा सर्वोत्तम तरीकों से Next.js कोड लिखने और जाँचने में मदद करती है।
tanstack-form
7.2kआपके एजेंट को React और दूसरे फ़्रेमवर्क में टाइप-सुरक्षित फ़ॉर्म बनाने में मदद करती है, जिनमें फ़ील्ड जाँच, दोहराए जाने वाले फ़ील्ड और schema सत्यापन हों।
tanstack-query
7.2kआपके एजेंट को TanStack Query से React ऐप में डेटा लोड करने और अपडेट करने देती है, जिसमें suspense लोडिंग, कैशिंग और डेटा बदलाव शामिल हैं।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।