Community생산성 & 협업github.com

get-convex/convex-create-component

재사용 가능한 Convex 컴포넌트를 독립된 테이블과 앱 노출 API와 함께 구축합니다. 새 컴포넌트, 재사용 가능한 백엔드 모듈, 통합, 또는 컴포넌트 경계 작업에 사용하세요.

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

이 스킬은 Convex 플랫폼에서 재사용 가능한 컴포넌트를 생성하고 관리하는 방법을 제공합니다. 사용자는 'npx convex component' 명령어를 통해 새 컴포넌트를 생성하거나 기존 컴포넌트의 설정을 변경할 수 있습니다. 이 스킬은 격리된 테이블과 앱 노출 API를 지원하여 컴포넌트 간의 명확한 경계를 정의하고 백엔드 모듈, 통합, 또는 컴포넌트 경계 작업에 적합합니다. 또한 'npx convex component:upgrade' 명령어로 최신 템플릿으로 업그레이드할 수 있으며, Convex App, Node.js, 그리고 React 환경에서 사용할 수 있습니다. 주요 기능으로는 자동화된 템플릿 생성, 의존성 주입, 그리고 컴포넌트 간 데이터 흐름 관리가 포함됩니다.

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

Installed? Explore more 생산성 & 협업 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

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

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

문서

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

재사용 가능한 Convex 컴포넌트를 독립된 테이블과 앱 노출 API와 함께 구축합니다. 새 컴포넌트, 재사용 가능한 백엔드 모듈, 통합, 또는 컴포넌트 경계 작업에 사용하세요.

사용법

새 컴포넌트 생성

npx convex component <component-name>

이 명령어는 현재 디렉토리에 <component-name> 폴더를 생성하고 템플릿 코드를 설정합니다.

컴포넌트 업그레이드

npx convex component:upgrade

이 명령어는 기존 컴포넌트를 최신 템플릿과 동기화합니다.

지원 플랫폼

  • Convex App
  • Node.js
  • React

설정

컴포넌트는 convex.json 파일을 통해 설정됩니다. 주요 옵션은 다음과 같습니다.

옵션설명필수 여부
name컴포넌트 이름예
tables격리된 테이블 정의아니요
api앱 노출 API 함수아니요

예제

// convex/myComponent.ts
import { component } from "convex/component";

export const myComponent = component({
  name: "my-component",
  tables: {
    items: {
      name: v.string(),
      count: v.number(),
    },
  },
  api: {
    getItems: async (ctx) => {
      return await ctx.db.query("items").collect();
    },
  },
});

Individual skills in this repo

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

관련 스킬