Skip to content
Back to skills

Commit 24

ASecurity

Run tests and commit changes if tests pass

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
ai-agentsgit

Security analysis

A100/100

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill commit-24 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit 24?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit 24
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-commit-24/badge)](https://www.skillsdirectory.com/skills/david-li0406-commit-24)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: commit
description: Run tests and commit changes if tests pass
---

Run tests and commit changes if tests pass.

## Instructions

0. Run the elm compiler on all changed or added files.  If there are any errors, display the and stop here.
1. Run `elm-test` to execute all tests
2. If tests fail:
   - Display the failure message to the user
   - Do NOT proceed with the commit
   - Stop here
3. If tests pass:
   - Run `git status` to see all changes
   - Run `git diff` to see the actual changes
   - Run `git log --oneline -3` to see recent commit style
   - Stage all relevant changed files (do not stage files that contain secrets)
   - Create a detailed commit message that:
     - Has a concise summary line explaining the purpose of the changes
     - Includes a body with bullet points describing the substance of changes
     - Ends with `Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>`
   - Commit the changes
   - Display the commit hash and summary to the user

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…