1k-git-workflow

1k-git-workflow

熱門

Git workflow and conventions for OneKey development. Use when creating branches, committing code, or creating PRs. Triggers on git, branch, commit, PR, pull request, merge, workflow.

2.3K星標
478分支
更新於 1/27/2026
SKILL.md
readonlyread-only
name
1k-git-workflow
description

Git workflow and conventions for OneKey development. Use when creating branches, committing code, or creating PRs. Triggers on git, branch, commit, PR, pull request, merge, workflow.

OneKey Git Usage Guidelines

Branch Management

  • Main branch: x - This is the primary development branch
  • Workflow: x → create feature branch → develop → PR back to x
  • Do not use onekey, master, or main as the base branch - always use x
  • NEVER work directly on the x branch → ALWAYS create feature branches

Branch Naming

  • Feature branches: feat/description or feature/description
  • Bug fixes: fix/description
  • Refactoring: refactor/description

Commit Message Format

Use Conventional Commits format:

  • feat: - New features
  • fix: - Bug fixes
  • refactor: - Code refactoring
  • perf: / optimize: - Performance improvements
  • chore: - Build, version, or non-code changes
  • docs: - Documentation only

Format: type: short description

  • Use lowercase
  • Keep first line under 72 characters
  • Include issue number if applicable: fix: resolve login bug OK-12345

IMPORTANT - Claude Code commits:

  • Do NOT include "Generated with Claude Code" link
  • Do NOT include "Co-Authored-By: Claude" signature
  • Commit message should be indistinguishable from human-written commits

PR Naming Convention

Follow the same format as commit messages:

  • feat: add dark mode support
  • fix: resolve authentication timeout issue
  • refactor: simplify payment processing logic

Common Git Commands

Creating a Feature Branch

git checkout x
git pull origin x
git checkout -b feat/my-new-feature

Committing Changes

git add .
git commit -m "feat: add user profile page"

Pushing and Creating PR

git push -u origin feat/my-new-feature
# Then create PR via GitHub UI or gh CLI

Rebasing on Latest x

git fetch origin
git rebase origin/x

You Might Also Like

Related Skills

verify

verify

243K

Use when you want to validate changes before committing, or when you need to check all React contribution requirements.

facebook avatarfacebook
獲取
test

test

243K

Use when you need to run tests for React core. Supports source, www, stable, and experimental channels.

facebook avatarfacebook
獲取

Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.

facebook avatarfacebook
獲取

Use when adding new error messages to React, or seeing "unknown error code" warnings.

facebook avatarfacebook
獲取
flow

flow

243K

Use when you need to run Flow type checking, or when seeing Flow type errors in React code.

facebook avatarfacebook
獲取
flags

flags

243K

Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.

facebook avatarfacebook
獲取