Commit code

From hmislk/hmis · View interactive version

Commit code is an AI agent skill from the GitHub repository hmislk/hmis. Commit code following HMIS project conventions. Use when committing changes with proper issue closing keywords, message format, and co-author attribution.

How to use this skill

Skill file

Commit Code with HMIS Conventions

Commit staged changes following the project's commit message conventions.

Arguments

Commit Message Format

<Summary of change in imperative mood>

Closes #<issue-number>

Co-Authored-By: Claude <noreply@anthropic.com>

Issue Closing Keywords

Steps

  1. Run git status to see what's staged
  2. Run git diff --staged to review changes
  3. Compose commit message following the format above
  4. If issue number provided, include closing keyword
  5. Commit with the formatted message
  6. Report the commit hash and summary

Rules

After Every Push

After every successful git push, immediately restore the local JNDI names in persistence.xml

— swap ${JDBC_DATASOURCE} and ${JDBC_AUDIT_DATASOURCE} back to whatever local names were

there before (e.g. jdbc/ruhunu and jdbc/ruhunuAudit). Leave the change unstaged.

This lets the developer run and test without any manual step.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.