commit-signing

Configure SSH or GPG commit signing for Git repositories.

2|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/t0lab/harness-kit --skill commit-signing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-signing
Source: https://github.com/t0lab/harness-kit/tree/main/examples/basic-node/.agents/skills/commit-signing
Command: npx skills add https://github.com/t0lab/harness-kit --skill commit-signing

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guidance helps teams ensure that every Git commit is verifiably linked to a trusted key, reducing the risk of tampering and impersonation.

Core Features & Use Cases

  • SSH signing setup to reuse an existing SSH key for signing commits and validating them in GitHub/GitLab.
  • GPG signing setup for traditional key-based signing, including key generation, configuration, and key export for GitHub/GitLab.
  • Use case: onboarding a new machine or repository that requires signed commits, or enforcing signing across a project to improve code integrity and traceability.

Quick Start

Configure your environment to sign commits with SSH or GPG, and enable commit signing for your repositories.

Frequently Asked Questions about commit-signing

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

FAQPage Schema
How do I configure Git commit signing with SSH or GPG?

Set up Git commit signing by configuring your signing key in global or local Git settings and exporting the public key to GitHub or GitLab. This process ensures every commit is cryptographically verified and linked to a trusted identity.

What is the difference between SSH and GPG signing for Git commits?

SSH signing reuses existing SSH keys for commit verification, while GPG signing uses traditional key-based generation and configuration. Both methods ensure verifiable commits in GitHub and GitLab, but SSH signing often simplifies setup if you already use SSH for repository access.

Why does Git commit signing fail on a new machine?

Git commit signing fails on new machines when the signing key is missing, Git config points to an invalid key, or the public key is not registered with GitHub or GitLab. Troubleshooting steps include verifying key existence, correcting global or local config, and re-exporting keys.

Can I use my existing SSH key to sign Git commits?

Yes, you can reuse an existing SSH key to sign Git commits by configuring Git to use SSH signing and uploading the public key to GitHub or GitLab for validation. This avoids generating a separate GPG key for commit verification.

How do I enforce signed commits across a multi-repo environment?

Enforce signed commits across a multi-repo environment by applying global Git signing settings and ensuring all team members configure their SSH or GPG keys. This improves code integrity, traceability, and reduces the risk of tampering or impersonation across the project.