Community코딩 & 개발github.com

waynesutton/convex-component-authoring

자체 포함된 Convex 컴포넌트를 적절한 격리, 내보내기 및 의존성 관리와 함께 생성, 구조화 및 게시하는 방법

convex-component-authoring란 무엇인가요?

이 스킬은 Convex 플랫폼에서 재사용 가능하고 자체 포함된 컴포넌트를 작성하는 방법을 개발자에게 가르칩니다. Convex 컴포넌트는 특정 기능(예: 인증, 파일 스토리지, AI 통합)을 애플리케이션에 플러그인 방식으로 추가할 수 있는 패키지입니다. 이 스킬은 적절한 격리(외부 쿼리나 뮤테이션에 의존하지 않음), 명확한 내보내기 패턴(public API 노출), 효과적인 의존성 관리(package.json, peerDependencies)를 강조합니다. 지원 플랫폼은 Convex (convex.dev)이며, 로컬 개발 환경에서 `npm create convex`와 같은 CLI 명령어를 사용합니다. 이 스킬은 컴포넌트 개발자와 Convex 애플리케이션 빌더 모두에게 유용하며, 모듈식 아키텍처와 npm 생태계를 통한 배포를 촉진합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/waynesutton/convexskills/tree/main/skills/convex-component-authoring

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

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

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

문서

convex-component-authoring은(는) 무엇을 하나요?

자체 포함된 Convex 컴포넌트를 적절한 격리, 내보내기 및 의존성 관리와 함께 생성, 구조화 및 게시하는 방법입니다.

개요

Convex 컴포넌트는 여러 프로젝트에서 재사용할 수 있는 캡슐화된 기능 단위입니다. 이 가이드는 다른 Convex 앱과 함께 설치, 구성 및 사용할 수 있는 컴포넌트를 작성하는 모범 사례를 다룹니다.

핵심 원칙

  • 격리: 컴포넌트는 외부 Convex 함수(쿼리, 뮤테이션, 액션)에 의존하지 않고 스스로 완결되어야 합니다. 컴포넌트는 자체 스키마, 함수 및 상태를 정의합니다.
  • 내보내기: 컴포넌트는 소비자가 사용할 수 있는 명확한 공개 API(함수, 타입)를 노출해야 합니다. 모든 내부 세부 사항은 비공개로 유지합니다.
  • 의존성 관리: 컴포넌트는 dependencies 대신 peerDependencies에 convex를 선언해야 하며, 프로젝트 전체에서 단일 버전의 Convex가 사용되도록 보장합니다. Convex 외부의 다른 종속성(예: 라이브러리)은 일반 dependencies에 포함될 수 있습니다.

파일 구조

권장되는 컴포넌트 디렉터리 구조는 다음과 같습니다:

my-component/
├── src/
│   ├── index.ts          # 공개 내보내기
│   ├── schema.ts         # 선택 사항: Convex 스키마 정의
│   ├── queries.ts        # 선택 사항: 공개 쿼리
│   └── mutations.ts      # 선택 사항: 공개 뮤테이션
├── package.json
├── README.md
└── tsconfig.json
  • src/index.ts는 사용자에게 내보낼 모든 항목을 다시 내보냅니다. 여기에는 함수, 타입 및 구성 옵션이 포함됩니다.
  • schema.ts는 컴포넌트의 데이터 모델을 정의합니다(Convex 스키마를 사용하는 경우).
  • 컴포넌트는 비공개 내부 도우미를 위해 src/_internal/과 같은 폴더를 가질 수 있습니다.

예제: 간단한

Individual skills in this repo

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

waynesutton/avoid-feature-creep

Prevent feature creep when building software, apps, and AI-powered products. Use this skill when planning features, reviewing scope, building MVPs, managing backlogs, or when a user says "just one more feature." Helps developers and AI agents stay focused, ship faster, and avoid bloated products.

waynesutton/convex

Umbrella skill for all Convex development patterns. Routes to specific skills like convex-functions, convex-realtime, convex-agents, etc.

waynesutton/convex-agents

Building AI agents with the Convex Agent component including thread management, tool integration, streaming responses, RAG patterns, and workflow orchestration

waynesutton/convex-best-practices

Guidelines for building production-ready Convex apps covering function organization, query patterns, validation, TypeScript usage, error handling, and the Zen of Convex design philosophy

waynesutton/convex-cron-jobs

Scheduled function patterns for background tasks including interval scheduling, cron expressions, job monitoring, retry strategies, and best practices for long-running tasks

waynesutton/convex-file-storage

Complete file handling including upload flows, serving files via URL, storing generated files from actions, deletion, and accessing file metadata from system tables

waynesutton/convex-functions

Writing queries, mutations, actions, and HTTP actions with proper argument validation, error handling, internal functions, and runtime considerations

waynesutton/convex-http-actions

External API integration and webhook handling including HTTP endpoint routing, request/response handling, authentication, CORS configuration, and webhook signature validation

waynesutton/convex-migrations

Schema migration strategies for evolving applications including adding new fields, backfilling data, removing deprecated fields, index migrations, and zero-downtime migration patterns

waynesutton/convex-realtime

Patterns for building reactive apps including subscription management, optimistic updates, cache behavior, and paginated queries with cursor-based loading

waynesutton/convex-schema-validator

Defining and validating database schemas with proper typing, index configuration, optional fields, unions, and migration strategies for schema changes

waynesutton/convex-security-audit

Deep security review patterns for authorization logic, data access boundaries, action isolation, rate limiting, and protecting sensitive operations

waynesutton/convex-security-check

Quick security audit checklist covering authentication, function exposure, argument validation, row-level access control, and environment variable handling

관련 스킬