Communitygithub.com

YepAPI/skills

CRUD 생성기, 데이터 테이블, 사용자 관리, 역할 기반 접근, 벌크 작업.

skills란 무엇인가요?

이 스킬은 관리자 패널 구축을 위한 포괄적인 가이드를 제공합니다. 데이터 테이블에 대한 서버 측 페이지네이션, 정렬, 필터링을 구현하며, 모든 리소스에 대해 일관된 CRUD 패턴(목록, 생성, 읽기, 업데이트, 삭제)을 강제합니다. 역할 기반 접근 제어(admin, editor, viewer)를 정의하고 권한 매트릭스를 통해 서버와 UI 모두에서 권한을 확인하며, 벌크 작업(일괄 삭제, 내보내기, 상태 변경)과 디바운스된 텍스트 검색(300ms 지연)을 지원합니다. 또한 사용자 관리(목록, 세부 정보, 역할 변경, 계정 비활성화, 가장) 및 변경 사항을 추적하는 감사 로그를 포함하여 웹 애플리케이션에서 견고한 관리 백엔드를 구축하는 데 적합합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/admin-panel

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

관리자 패널

규칙

  • 데이터 테이블: 서버 측 페이지네이션, 정렬, 필터링 — 모든 행을 클라이언트 측에 로드하지 말고 ?page=1&limit=25&sort=createdAt&order=desc 사용
  • CRUD 패턴: 목록(테이블), 생성(양식/모달), 읽기(상세 보기), 업데이트(편집 양식), 삭제(확인 대화상자) — 모든 리소스에 걸쳐 일관된 레이아웃
  • 역할 기반 접근: 역할(admin, editor, viewer)을 권한 매트릭스와 함께 정의 — 모든 API 경로에서 서버 측 권한 확인, UI에서만 확인하지 않음
  • 벌크 작업: 여러 행 선택, 일괄 작업(삭제, 내보내기, 상태 변경) — 파괴적 작업은 확인, 대량 배치의 경우 백그라운드에서 처리
  • 검색: 주요 필드에 걸쳐 디바운스된 텍스트 검색(300ms) — 정확한 쿼리를 위해 열 필터와 결합
  • 사용자 관리: 사용자 목록, 세부 정보 보기, 역할 변경, 계정 활성화/비활성화, 가장(admin 전용, 감사 로그 포함)
  • 감사 로그: 누가 무엇을 언제 변경했는지 기록 — { userId, action, resource, resourceId, changes, timestamp }
  • 레이아웃: 사이드바 탐색(접을 수 있음), 이동 경로, 작업 버튼이 있는 페이지 제목 — 반응형이지만 데스크톱에 최적화됨

권한 확인 패턴

const PERMISSIONS = {
  admin: ["users:read", "users:write", "users:delete", "data:read", "data:write", "data:delete"],
  editor: ["data:read", "data:write"],
  viewer: ["data:read"],
} as const;

function can(role: string, permission: string): boolean {
  return PERMISSIONS[role]?.includes(permission) ?? false;
}

// 미들웨어
if (!can(user.role, "users:write")) return Response.json({ error: "Forbidden" }, { status: 403 });

데이터 테이블 API 패턴

GET /api/admin/users?page=1&limit=25&sort=createdAt&order=desc&search=john&role=admin

응답: { data: [...], total: 150, page: 1, limit: 25, totalPages: 6 }

피해야 할 사항

  • 클라이언트 측 전용 권한 확인 — 항상 서버에서 강제 실행
  • 모든 데이터를 로드한 후 브라우저에서 페이지네이션 — 서버 측 페이지네이션 사용
  • 파괴적 작업에 대한 확인 없음 — 항상 삭제 및 벌크 작업을 확인
  • 감사 추적 누락 — 누가 무엇을 변경했는지 알아야 함

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Tenant isolation (row-level vs schema), subdomain routing, per-tenant config, and data partitioning.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

관련 스킬