Communitygithub.com

lobehub/pr

Erstellt einen PR für den aktuellen Branch (standardmäßig nach `canary`) und unterstützt das Aufteilen eines schichtübergreifenden Branches in geordnete gestapelte PRs, sodass untere Schichten (DB / geteiltes Paket / Server-TRPC) vor ihren Aufrufern (Desktop / CLI / UI) mergen. Verwende dies, wenn der Benutzer das Erstellen/Einreichen eines PRs oder das Aufteilen eines Branches anfordert, weil Clients einen Serververtrag aufrufen, der noch nicht auf dem Hauptzweig ist. Aktiviert durch 'pr', 'create pr', 'submit pr', 'open a PR', 'pull request', 'split this PR', 'stacked PR', 'backend should merge first', '提 PR', '提个 PR', '新建 PR', '拆 PR', '后端先合', '分层合并'.

Was ist pr?

Diese Skill-Funktion für KI-Agenten wie Claude Code automatisiert das Erstellen von Pull Requests (PRs) im LobeHub-Workflow. Sie erstellt standardmäßig einen PR für den aktuellen Branch mit Ziel `canary`, ist aber besonders mächtig bei der Aufteilung eines einzelnen schichtübergreifenden Branches in mehrere geordnete gestapelte PRs. Das ermöglicht die getrennte Überprüfung und sequenzielle Zusammenführung von Änderungen auf verschiedenen Ebenen (z. B. Datenbank, gemeinsames Paket, Server-TRPC), bevor die darauf aufbauenden Schichten (Desktop, CLI, UI) gemergt werden. Dies verhindert Bugs durch ausstehende Abhängigkeiten und sorgt für eine saubere Merge-Reihenfolge. Die Aktivierung erfolgt über eine Vielzahl natürlicher Sprachbefehle wie 'pr', 'pull request', 'split this PR' oder 'gestapelter PR', auch in chinesischen Varianten. Entwickler sparen Zeit und vermeiden Merge-Konflikte, indem der Agent die Branch-Logik und PR-Erstellung automatisch übernimmt.

Funktioniert mit~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/lobehub/lobehub/tree/main/skills/pr

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht pr?

Erstellt einen PR für den aktuellen Branch (standardmäßig nach canary), einschließlich der Aufteilung eines schichtübergreifenden Branches in geordnete gestapelte PRs, sodass eine untere Schicht (DB / geteiltes Paket / Server-TRPC) vor ihren Aufrufern (Desktop / CLI / UI) mergt. Verwende dies, wenn der Benutzer das Erstellen/Einreichen eines PRs oder das Aufteilen eines Branches anfordert, weil Clients einen Serververtrag aufrufen, der noch nicht auf dem Hauptzweig ist. Aktiviert durch 'pr', 'create pr', 'submit pr', 'open a PR', 'pull request', 'split this PR', 'stacked PR', 'backend should merge first', '提 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.

Verwandte Skills