git-workflow

Enforce Git branching, rebase merges, and conventional commits for clean history.

Updated Jan 16, 2026
One-click install
npx skills add https://github.com/JuelHossain/kalshi-trading-team --skill git-workflow-juelhossain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow
Source: https://github.com/JuelHossain/kalshi-trading-team/tree/main/ai-env/skills/git-workflow
Command: npx skills add https://github.com/JuelHossain/kalshi-trading-team --skill git-workflow-juelhossain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps teams maintain clean version control by enforcing Git workflow practices and predictable history across AI projects.

Core Features & Use Cases

  • Branching discipline: never commit directly to main.
  • Feature work on dedicated branches (e.g., opencode) with regular PRs or merges from feature branches.
  • Maintain linear history via rebase at the start of sessions and during merges.
  • Atomic refactoring: commits should be small, focused, and testable; use conventional commit messages.
  • Deployment lifecycle guidance: build, test, review, deploy, and rollback with verification.
  • Documentation and knowledge sharing: update relevant docs and workflow references to enrich the project for the next agent.

Quick Start

Create the opencode branch, pull with rebase at the start of each session, and commit changes using conventional commit messages (feat:, fix:, refactor:, docs:).

Frequently Asked Questions about git-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I maintain a linear Git history in my project?

To maintain a linear Git history, you should use rebase at the start of your development sessions and during merges. This workflow avoids direct pushes to the main branch and ensures predictable, auditable version control.

What's the best way to structure commits for code reviews?

The best way to structure commits for code reviews is to use atomic refactoring. Commits should be small, focused, and testable, using conventional commit messages like feat:, fix:, or refactor: to ensure reproducible changes.

How do I prevent accidental direct commits to the main branch?

To prevent accidental direct commits to the main branch, enforce a branching discipline that requires feature work on dedicated branches. You can create an opencode branch and submit regular pull requests instead of pushing directly.

Why do I need to rebase before merging feature branches?

You need to rebase before merging feature branches to maintain a linear project history. Rebasing integrates the latest changes cleanly, prevents merge commit clutter, and ensures the deployment lifecycle remains auditable.

Does Git workflow automation support deployment rollbacks?

Git workflow automation supports deployment rollbacks through a structured lifecycle. It guides you to build, test, review, deploy, and rollback with verification, ensuring reliable and documented recovery for version control.

When should I update documentation during version control?

You should update documentation during version control after completing changes. Updating relevant docs and workflow references enriches the project for the next agent and ensures knowledge sharing across the development lifecycle.