commit

Create feature or fix branches and format code before committing.

29|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/Milky2018/wasmoon --skill commit-milky2018
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/Milky2018/wasmoon/tree/main/.claude/skills/commit
Command: npx skills add https://github.com/Milky2018/wasmoon --skill commit-milky2018

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents accidental commits to the main branch by automatically creating feature branches and enforcing commit conventions.

Core Features & Use Cases

  • Branch Safety: Automatically creates feature branches when on main to protect your codebase.
  • Workflow Automation: Streamlines the commit process with automatic formatting and conventional commit messages.

Quick Start

Commit these changes with a descriptive message about the new feature.

Frequently Asked Questions about commit

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

FAQPage Schema
How do I prevent accidental commits to the main branch?

Prevent commits to main by automatically creating feature branches when you attempt to commit. This Skill checks your current branch and creates a feat/<name> or fix/<name> branch, ensuring all commits stay isolated on feature branches instead of main.

What is the safe commit workflow for version control?

A safe commit workflow enforces branch protection and conventional commit messages. This Skill applies automatic formatting, generates standardized commit messages (feat:, fix:, refactor:), and routes commits to feature branches to protect your main branch.

How do I use conventional commits with automated branch protection?

Commit changes with descriptive messages; this Skill automatically formats code, generates conventional commit messages, and creates feature branches. Commits are formatted with moon fmt && moon info and follow standard conventions without pushing or creating pull requests unless you explicitly request it.

Can I commit directly to main with version control protection enabled?

No. This Skill prevents direct commits to main by automatically routing you to a feature or fix branch when you attempt to commit on main, ensuring your main branch stays protected and all changes flow through isolated branches.

When should I use automatic branch creation for commits?

Use automatic branch creation in standard software development workflows where multiple contributors work on features. It protects main from accidental commits and enforces a consistent branching strategy across your team.

Does version control branch protection work with conventional commit messages?

Yes. This Skill combines branch protection with conventional commit message generation, automatically applying feat:, fix:, and refactor: prefixes while routing commits to protected feature branches.