Automated summary
Creates a signed commit in the local Git repository, automatically creating a new branch if on main/master and generating descriptive commit messages based on changes.
Strengths
- Automates creation of GPG-signed commits
- Handles branch protection by creating semantic branches when on main/master
- Generates context-aware commit messages based on changed files
- Verifies prerequisites (GPG configured) before committing
Limitations
- Requires GPG to be configured (gpg.key and user.email)
- Commit messages are generated using simple heuristics, may not fit complex changes
- Fails if there are no changes to commit
Use this skill when you want to quickly commit changes with a signed, descriptive message without manual effort.
Do not use this skill if you prefer to write your own commit message or if GPG is not set up.
Security analysis
SafeThe skill runs trusted local Python scripts and git commands; it does not download external content, exfiltrate data, or disable security features. GPG signing is enforced, and no destructive actions are instructed. The use of bash and git is for standard version control operations.
No concerns found
How this analysis is madeExamples
Commit my changes with a signed commit.Create a signed commit for the current changes.Save my work and create a commit with a descriptive message.name: commit description: Creates a signed commit in the local repository. If on main or master branch, creates a new branch first. Fails if GPG signing is not configured.
Commit Skill
This skill creates a signed commit with the current changes in the repository.
When to Use
- User asks to commit changes
- User asks to create a commit
- User wants to save changes with a commit
Prerequisites
- Git must be installed
- GPG signing must be configured (user.email must be set and gpg.key configured)
- There must be changes to commit (unstaged or staged)
Instructions
Step 1: Run Pre-Commit Script
Run the pre-commit script to verify GPG signing and handle branch creation:
python3 ./scripts/pre-commit.py [optional_branch_prefix]
This script will:
- Verify GPG signing is configured
- Check current branch
- Create semantic branch if on main/master
- Check for changes to commit
If the script exits with an error, fail with the error message.
Step 2: Stage All Changes
Stage all changes:
git add -A
Step 3: Analyze Changes
First, run the uncommitted changes script to see what has been modified:
python3 ./scripts/uncommitted-changes.py
This script displays all local changes including staged files, unstaged modifications, and untracked files.
Step 4: Create Signed Commit
Create a commit with a message based on the changes being made. Analyze the staged files to generate an appropriate commit message:
# Analyze what changed and create appropriate message
CHANGED_FILES=$(git diff --cached --name-only)
ADDED_FILES=$(git diff --cached --name-only --diff-filter=A)
MODIFIED_FILES=$(git diff --cached --name-only --diff-filter=M)
DELETED_FILES=$(git diff --cached --name-only --diff-filter=D)
# Create commit message based on changes
if [ -n "$ADDED_FILES" ] && [ -z "$MODIFIED_FILES" ] && [ -z "$DELETED_FILES" ]; then
# Only additions
if echo "$ADDED_FILES" | grep -q "^skills/"; then
COMMIT_MSG="Add $(echo "$ADDED_FILES" | head -1 | xargs basename)"
elif echo "$ADDED_FILES" | grep -q "^\.github/workflows/"; then
COMMIT_MSG="Add GitHub Actions workflow"
elif echo "$ADDED_FILES" | grep -q "^docs/\|README\|DEVELOP\|HISTORY"; then
COMMIT_MSG="Add documentation: $(echo "$ADDED_FILES" | head -1 | xargs basename)"
else
COMMIT_MSG="Add $(echo "$ADDED_FILES" | head -1 | xargs basename)"
fi
elif [ -n "$MODIFIED_FILES" ] && [ -z "$ADDED_FILES" ] && [ -z "$DELETED_FILES" ]; then
# Only modifications
if echo "$MODIFIED_FILES" | grep -q "^skills/"; then
SKILL_NAME=$(echo "$MODIFIED_FILES" | grep "^skills/" | head -1 | cut -d'/' -f2)
COMMIT_MSG="Update $SKILL_NAME skill"
elif echo "$MODIFIED_FILES" | grep -q "\.md$"; then
COMMIT_MSG="Update documentation"
elif echo "$MODIFIED_FILES" | grep -q "^\.github/"; then
COMMIT_MSG="Update GitHub Actions configuration"
else
COMMIT_MSG="Update $(echo "$MODIFIED_FILES" | head -1 | xargs basename)"
fi
elif [ -n "$DELETED_FILES" ] && [ -z "$ADDED_FILES" ] && [ -z "$MODIFIED_FILES" ]; then
# Only deletions
COMMIT_MSG="Remove $(echo "$DELETED_FILES" | head -1 | xargs basename)"
else
# Mixed changes
if echo "$CHANGED_FILES" | grep -q "^skills/"; then
COMMIT_MSG="Update skills configuration and implementation"
elif echo "$CHANGED_FILES" | grep -q "^\.github/"; then
COMMIT_MSG="Update CI/CD and repository configuration"
elif echo "$CHANGED_FILES" | grep -q "\.md$"; then
COMMIT_MSG="Update documentation"
else
COMMIT_MSG="Update repository files"
fi
fi
# Get the AI model being used (from environment or default)
AI_MODEL="${OPENCODE_MODEL:-Kimi K2.5}"
# Create the signed commit with the generated message and model info
git commit -S -m "$COMMIT_MSG" -m "Generated by: $AI_MODEL"
The commit message should be concise but descriptive, based on what files were changed and the nature of the changes.
Step 4: Verify Commit is Signed
Verify the commit was created and is signed:
git log -1 --show-signature
If the commit is not signed, fail with error: "Commit was not signed properly"
Error Handling
- If GPG signing fails, fail with error: "GPG signing failed. Check your GPG configuration."
- If there are no changes to commit, inform the user and ask what changes they want to commit
- If git command fails, display the error message and fail
Important Notes
- Always use
-Sflag with git commit to enable GPG signing - The commit MUST be signed - do not proceed if signing fails
- This skill works with local repositories only
- See
scripts/pre-commit.pyfor the deterministic pre-commit logic - See
scripts/uncommitted-changes.pyto view all uncommitted changes (works in any repository)
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-signed-commit-mm5t8ca4' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-signed-commit-mm5t8ca4/download' --output '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md.part' && mv '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md.part' '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Original excerpt: Prerequisites
- Git must be installed
- GPG signing must be configured (user.email must be set and gpg.key configured)
- There must be changes to commit (unstaged or staged)
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md' && test -s '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/commit' && cp -R '.skill-downloads/create-signed-commit-mm5t8ca4' '.claude/skills/commit'Cursor
test -f '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md' && test -s '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/commit' && cp -R '.skill-downloads/create-signed-commit-mm5t8ca4' '.cursor/skills/commit'Codex
test -f '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md' && test -s '.skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/commit' && cp -R '.skill-downloads/create-signed-commit-mm5t8ca4' '.agents/skills/commit'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/create-signed-commit-mm5t8ca4'openskills read 'create-signed-commit-mm5t8ca4'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-signed-commit-mm5t8ca4/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.