Communitygithub.com

lobehub/pr

현재 브랜치에 대해 기본적으로 `canary` 브랜치를 대상으로 PR을 생성하며, 단일 레이어 간 브랜치를 순서가 지정된 스택형 PR로 분할하여 하위 레이어(db/공유 패키지/서버 TRPC)가 상위 레이어(데스크톱/CLI/UI)보다 먼저 병합되도록 합니다.

pr란 무엇인가요?

이 스킬은 LobeHub 프로젝트에서 브랜치 관리와 PR 생성을 자동화합니다. 기본적으로 현재 브랜치를 `canary` 브랜치를 대상으로 PR을 생성하며, 사용자가 'PR 생성', '제출', '분할' 등의 명령어를 입력하면 작동합니다. 핵심 기능은 하나의 브랜치가 여러 레이어(예: 데이터베이스, 공유 패키지, 서버 TRPC, 데스크톱, CLI, UI)에 걸쳐 있을 때 이를 순서가 지정된 스택형 PR로 자동 분할하는 것입니다. 이를 통해 하위 레이어 변경사항이 상위 레이어보다 먼저 병합되도록 보장하여, 상위 레이어가 아직 trunk에 없는 서버 계약을 호출하는 문제를 방지합니다. 또한 한국어 'PR', 'pr 생성', '브랜치 분할', '레이어 분할' 등 다양한 트리거를 지원하여 Claude Code, Cursor, Codex와 같은 AI 에이전트 환경에서 효율적으로 사용할 수 있습니다. 스킬은 SKILL.md 문서를 기반으로 하여, AI 에이전트가 사용자 의도를 파악하고 적절한 Git/GitHub 명령어를 실행하도록 설계되었습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lobehub/lobehub/tree/main/skills/pr

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

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

문서

pr은(는) 무엇을 하나요?

현재 브랜치에 대해 PR을 생성하며 (기본적으로 canary 브랜치를 대상으로 함), 단일 레이어 간 브랜치를 순서가 지정된 스택형 PR로 분할하여 하위 레이어(db/공유 패키지/서버 TRPC)가 상위 레이어(데스크톱/CLI/UI)보다 먼저 병합되도록 합니다. 사용자가 PR을 생성/제출하거나, 클라이언트가 아직 trunk에 없는 서버 계약을 호출하기 때문에 브랜치를 분할해야 하는 경우에 사용합니다. 다음 키워드에 반응합니다: 'pr', 'create pr', 'submit pr', 'open a PR', 'pull request', 'split this PR', 'stacked PR', 'backend should merge first', 'PR', 'PR 생성', 'PR 제출', 'PR 열기', '이 PR 분할', '스택 PR', '백엔드가 먼저 병합되어야 함'.

Individual skills in this repo

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

lobehub/add-provider-doc

Add documentation for a new AI provider — usage docs, env vars, Docker config, image resources.

lobehub/add-setting-env

Add server-side environment variables that control default values for user settings.

lobehub/debug

Debug package usage guide. Use when adding debug logging, understanding log namespaces, or implementing debugging features. Triggers on debug logging requests or logging implementation.

lobehub/desktop

Electron desktop development guide — IPC handlers, controllers, preload scripts, window/menu management.

lobehub/drizzle

LobeHub Drizzle ORM schema and query style. Use for pgTable schemas, indexes, joins, inferred types, db.select/db.query, schema fields, foreign keys, junction tables, or postgres query patterns.

lobehub/hotkey

Add or edit LobeHub keyboard shortcuts. Use for HotkeyEnum, HOTKEYS_REGISTRATION, combineKeys, useHotkeyById, tooltip hotkeys, shortcut scope, conflicts, or Cmd/Ctrl key combos.

lobehub/i18n

LobeHub i18n with react-i18next. Use for user-facing strings, locale keys, namespaces, useTranslation, t(), interpolation, zh-CN/en-US previews, hardcoded UI copy, or pnpm i18n.

lobehub/linear

Linear issue management. Use for LOBE-xxx issues, Linear links, PRs referencing Linear, retrieving issues, updating status, completion comments, or sub-issue trees.

lobehub/lobehub

Use for public LobeHub website documentation under docs/**, including self-hosting, deployment, migration, and configuration guides. Excludes product changelogs and source-code API docs.

lobehub/microcopy

UI copy and microcopy guidelines. Use for user-facing copy, buttons, errors, empty states, onboarding, i18n wording, translation, or copy improvements in Chinese or English.

lobehub/modal

LobeHub imperative modal conventions. Use when creating or migrating modals, dialogs, popups, confirm flows, ModalHost wiring, createModal, confirmModal, useModalContext, or base-ui modal APIs.

lobehub/project-overview

LobeHub open-source monorepo architecture map. Use when locating code layers, understanding apps/packages/src layout, business stubs, project structure, or onboarding to the repository.

lobehub/react

LobeHub React component conventions. Use when editing TSX UI, choosing base-ui vs @lobehub/ui vs antd, styling with antd-style, routing, desktop variants, layouts, or component state.

lobehub/store-data-structures

LobeHub Zustand store data-shape patterns. Use when designing store state, list/detail splits, normalized maps, reducers, messagesMap, topicsMap, or choosing shared type sources.

lobehub/testing

Vitest testing guide. Use when writing or updating tests, fixing failing tests, improving coverage, debugging test issues, or setting up mocks.

lobehub/typescript

LobeHub TypeScript style and type-safety guide. Use when editing TS/TSX/MTS, fixing types, choosing interface vs type, avoiding any/object, import type, async flow, or ts-expect-error.

lobehub/upstash-workflow

LobeHub Upstash Workflow and QStash guide. Use for async workflows, process/paginate/execute fan-out, serve handlers, context.run/call/sleep, or workflow triggers.

lobehub/version-release

Version release workflow — release process and GitHub Release notes (not docs/changelog pages).

lobehub/zustand

LobeHub Zustand store conventions. Use when editing src/store, store slices, public/internal actions, dispatch actions, flattenActions, optimistic updates, selectors, maps, or class action migration.

관련 스킬