Skip to main content

graphql-backend

Apply EduHub GraphQL, Hasura, and schema-change conventions. Use when editing queries, mutations, fragments, metadata, role-based GraphQL hooks, or backend changes that affect frontend GraphQL usage.

소스 정보

저장소
eduhub-org/eduhub
최근 소스 활동
2026년 4월 24일 10:04
감지된 SKILL.md 언어
영어
스타
14
포크
9

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
graphql-backend
description
Apply EduHub GraphQL, Hasura, and schema-change conventions. Use when editing queries, mutations, fragments, metadata, role-based GraphQL hooks, or backend changes that affect frontend GraphQL usage.
# GraphQL Backend Use this skill for GraphQL and Hasura-facing work in EduHub. ## Critical Hook Rule Do not use `useAuthedQuery`. Use role-aware hooks instead: - `useRoleQuery` - `useRoleMutation` - `useAdminQuery` - `useAdminMutation` - `useInstructorQuery` Reason: hardcoding the `user` role can produce incorrect Hasura permission behavior. ## Query And Mutation Structure Keep GraphQL code organized under the repo's query structure: - fragments - queries - mutations Use fragments for reusable field groups and fetch only the fields actually needed. ## Schema-Change Coordination If the task touches backend schema or permissions, do not stop at the query file. Coordinate across: - `backend/migrations/` - `backend/metadata/` - `frontend-nx/apps/edu-hub/queries/` - generated GraphQL types - `functions/` consumers when relevant Read `references/hasura-schema-change-checklist.md` for the full checklist. ## Good Patterns - use `skip` for conditional queries - add explicit error handling on mutations - regenerate types after changing schema or documents - verify permissions for the actual role that will execute the query ## Output Style For This Skill When making GraphQL-related changes, state which layers were affected: 1. query or mutation documents 2. metadata or permissions 3. generated types 4. downstream function consumers
GitHub에서 보기