git

Automate safe Git workflows with conventional commits and safety rules.

2|Updated Jun 29, 2021
One-click install
npx skills add https://github.com/pypeaday/dotfiles --skill git-pypeaday
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git
Source: https://github.com/pypeaday/dotfiles/tree/main/opencode/.config/opencode/skill/git
Command: npx skills add https://github.com/pypeaday/dotfiles --skill git-pypeaday

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Safe, consistent Git operations for agents.

Core Features & Use Cases

  • Safety Protocols: Never amend pushed commits, never force-push to main/master, never skip pre-commit hooks, and never commit secrets.
  • Conventional Commits: Enforces the conventional commit format for clarity and traceability.
  • Workflow Guidelines: Covers commits, branches, worktrees, rebase vs merge, and branch hygiene.
  • Risk Mitigation: Clear checks and prompts to prevent destructive actions during workflows.

Quick Start

Use the git skill to perform a safe commit workflow in the current repository.

Frequently Asked Questions about git

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

FAQPage Schema
How do I automate safe git commits and branches in local repositories?

Automating safe git commits and branches requires enforcing safety rules like conventional commit formats and preventing destructive actions. This skill applies safety protocols to local repositories to ensure reproducible workflows for automation agents.

What safety rules should I enforce for git workflows in automation?

Safety rules for git workflows in automation must prevent amending pushed commits, force-pushing to main/master, skipping pre-commit hooks, and committing secrets. This skill enforces these checks to mitigate risk during automated operations.

Does this git automation skill work with worktrees and rebases?

Yes, this git automation skill works with worktrees and rebases. It provides workflow guidelines covering branch hygiene, rebase versus merge strategies, and worktrees to maintain safe and consistent operations across local repositories.

How do I enforce conventional commits format in automated git operations?

To enforce conventional commits format in automated git operations, this skill applies strict formatting checks during the commit workflow. This ensures clarity and traceability for all automated commits in local repositories.

What is the best way to prevent destructive git actions in automation agents?

The best way to prevent destructive git actions in automation agents is applying a danger-zone checklist with clear prompts before risky operations. This skill enforces these risk mitigation checks to stop unsafe force-pushes and commits.

When should I not use automated rebase and merge workflows?

You should not use automated rebase and merge workflows when operating in defined danger zones without explicit safety checks. This skill uses a danger-zone checklist to identify limitations and prevent destructive actions during these specific git operations.