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.
Best use case
1k-git-workflow is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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.
Teams using 1k-git-workflow should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/1k-git-workflow/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How 1k-git-workflow Compares
| Feature / Agent | 1k-git-workflow | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# 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 ```bash git checkout x git pull origin x git checkout -b feat/my-new-feature ``` ### Committing Changes **Option 1: Use /commit command (Recommended)** ```bash /commit ``` The `/commit` command automatically runs pre-commit checks (`yarn lint:staged` and `yarn tsc:staged`) and creates a well-formatted commit message. **Option 2: Manual commit with pre-checks** ```bash # Stage your changes git add . # Run pre-commit checks (MANDATORY) yarn lint:staged yarn tsc:staged # If checks pass, commit git commit -m "feat: add user profile page" ``` **IMPORTANT**: - NEVER commit code that fails linting or TypeScript compilation - Pre-commit checks are mandatory as specified in CLAUDE.md - The `/commit` command handles this automatically ### Pushing and Creating PR ```bash git push -u origin feat/my-new-feature # Then create PR via GitHub UI or gh CLI ``` ### Rebasing on Latest x ```bash git fetch origin git rebase origin/x ```
Related Skills
testing-workflow
Meta-skill that orchestrates comprehensive testing across a project by coordinating testing-patterns, e2e-testing, and testing agents. Use when setting up testing for a new project, improving coverage for an existing project, establishing a testing strategy, or verifying quality before a release.
security-workflow
Use when creating backlog tasks from security findings, integrating security scans into workflow states, or managing security remediation tracking. Invoked for security workflow integration and task automation.
moai-workflow-testing
AI-powered enterprise web application testing orchestrator with Context7 integration, intelligent test generation, visual regression testing, cross-browser coordination, and automated QA workflows for modern web applications
auditor-workflow
Group-level implementation audit workflow for auditor agents. Handles loading project rules, reading connected phases, reviewing code reviews, checking deferred items, cross-phase impact analysis, verification, and structured reporting to the orchestrator. Invoke this skill as your first action — not user-invocable.
workflows-work
Execute work plans efficiently while maintaining quality and finishing features
sc-workflow
Generate structured implementation workflows from PRDs and feature requirements with expert guidance. Use when planning feature implementation, breaking down PRDs, or creating development roadmaps.
r2r-workflow
Explain the Research-to-Roadmap (r2r) workflow visually. Shows the 6-phase pipeline JD built for transforming R&D projects into production roadmaps.
feature-dev-workflow
Complete end-to-end feature development workflow from issue tracking through PR delivery. Use for implementing features, building new functionality, and adding capabilities. Includes requirements discovery, architecture planning, implementation, testing, code review, design audit, and comprehensive validation.
android-workflow-production
Generate GitHub Actions workflows for production deployment with staged rollout
this-sample-workflow-execute-3-steps-in-sequence
Apply for this-sample-workflow-execute-3-steps-in-sequence. --- description: globs:
approval-workflow
Manages Human-in-the-Loop (HITL) approval workflows for sensitive actions. Use when creating approval requests, processing approved items, or implementing safety controls for autonomous actions.
app-test-workflow
Flutter 앱 테스트 워크플로우를 시작합니다. 테스트 계획 수립 -> 에뮬레이터 테스트 -> 실패 시 디버그 수정 -> 재테스트 순서로 진행합니다. "앱 테스트 워크플로우", "/app-test-workflow", "앱 테스트" 등의 명령으로 활성화됩니다.