commit

Automate conventional commits in git repositories with OpenCode.

Updated Jul 15, 2024
One-click install
npx skills add https://github.com/christian-deleon/dotfiles --skill commit-christian-deleon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/christian-deleon/dotfiles/tree/main/ai/skills/commit
Command: npx skills add https://github.com/christian-deleon/dotfiles --skill commit-christian-deleon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, conventional-commits, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of drafting and committing code with conventional commit messages, ensuring consistency and readability in your git history.

Core Features & Use Cases

  • Conventional Commit Analysis: Automatically analyzes changes and drafts atomic commits with conventional types, scopes, and descriptions.
  • Compatibility: Designed for use with OpenCode.
  • Commit Workflow: Provides a structured workflow for assessing, grouping, and committing changes.

Quick Start

Run the command 'commit' to start the commit process and follow the prompts to create well-structured commits.

Frequently Asked Questions about commit

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

FAQPage Schema
How do I automate conventional commits in git?

You can automate conventional commits by running the 'commit' command, which analyzes your staged changes and drafts atomic commit messages with appropriate types, scopes, and descriptions. This structured workflow ensures consistency and readability in your git history.

What are conventional commits and when do I need them for my code quality?

Conventional commits are a specification for structuring commit messages with types, scopes, and descriptions to improve code quality and git history readability. You need them when you want to automate changelog generation or enforce consistent commit workflows across a project.

Does the conventional commit workflow work with OpenCode?

Yes, the conventional commit workflow is explicitly designed for compatibility with OpenCode. It integrates directly into your environment to assess, group, and commit changes using the Conventional Commits specification.

Do I need the conventional-commits plugin to draft commit messages?

Yes, you need both git and the Conventional Commits plugin installed to use this automation. These dependencies are required to analyze your changes and generate properly formatted messages.

What is the best way to group changes into atomic conventional commits?

The best way is to use a structured workflow that assesses and groups your changes before committing. This Skill automates that process by analyzing your current changes and drafting atomic commits with conventional types and scopes.