بنقرة واحدة
commit-code
// Commit code following HMIS project conventions. Use when committing changes with proper issue closing keywords, message format, and co-author attribution.
// Commit code following HMIS project conventions. Use when committing changes with proper issue closing keywords, message format, and co-author attribution.
Handle CodeRabbit and Codex review comments on a GitHub PR. Fetches the PR, investigates each comment against the codebase, discusses validity with the user, batches valid fixes, and guides through push and reply steps.
Investigate and resolve GitHub pull request review comments for HMIS. Use when the user wants Codex to read PR review threads, assess CodeRabbit or Codex feedback, discuss valid fixes, batch and apply changes, reply to each comment, and re-request review.
JSF AJAX update rules for the HMIS project. Use when working on AJAX updates, p:commandButton update attributes, PrimeFaces AJAX callbacks, partial page rendering, or debugging AJAX update failures. Also covers JSF navigation patterns: why f:viewAction must not be used on @SessionScoped beans, and how initialization belongs in navigation methods. Critical rules to prevent silent AJAX failures and refresh/back-button state corruption.
JSF AJAX update rules for the HMIS project. Use when working on AJAX updates, p:commandButton update attributes, PrimeFaces AJAX callbacks, partial page rendering, or debugging AJAX update failures. Also covers JSF navigation patterns: why f:viewAction must not be used on @SessionScoped beans, and how initialization belongs in navigation methods. Critical rules to prevent silent AJAX failures and refresh/back-button state corruption.
Full environment setup when starting work on a GitHub issue. Creates a feature branch from origin/development, swaps persistence.xml to local JNDI settings, assigns the issue, and guides project board setup. Use when beginning work on any new issue: "start issue 20408", "/start-issue 20408", or "prepare env for issue 20408".
Verify and manage persistence.xml configuration around git push. Use before pushing to ensure environment variable placeholders are in place, and after pushing to restore local JNDI names for continued testing. Prevents QA deployment failures from hardcoded datasource names.
| name | commit-code |
| description | Commit code following HMIS project conventions. Use when committing changes with proper issue closing keywords, message format, and co-author attribution. |
| disable-model-invocation | true |
| allowed-tools | Bash, Read, Grep |
| argument-hint | [issue-number] |
Commit staged changes following the project's commit message conventions.
$0 - GitHub issue number (optional, for closing keyword)<Summary of change in imperative mood>
Closes #<issue-number>
Co-Authored-By: Claude <noreply@anthropic.com>
Closes #N - for general issue resolutionFixes #N - for bug fixesResolves #N - alternative to closesgit status to see what's stagedgit diff --staged to review changesAfter 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.