TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/LIDR-academy/lidr-specboot/llms.txt
Use this file to discover all available pages before exploring further.
commit skill produces a single, well-described commit from the current working tree state, pushes the branch, and manages the corresponding GitHub Pull Request. It follows repository standards for commit message format, respects scope boundaries when ticket IDs are provided, and handles new and existing remote branches automatically.
Skill Metadata
| Field | Value |
|---|---|
| Name | commit |
| Author | LIDR.co |
| Version | 1.0.0 |
Three Modes
1. Full Commit (no arguments)
Stage and commit all relevant changes in the working tree, then open a single PR.2. Feature-Scoped Commit (with ticket ID or feature name)
Stage and commit only the changes that belong to the specified feature or ticket. All other modified files remain unstaged and are left for a separate commit.git add -p to stage only the relevant hunks.
3. Description-Only / No-Git Mode
Produce the staging plan and commit message without running any git commands. Use this when you want to review or copy the message before committing manually. Trigger phrases:"no PR", "only commit", "only description", "don't touch git", "just the message", "dry run".
Process
Detect No-Git Mode
Check whether the user explicitly requested no git operations. If so, perform only steps 1–3 (inspect, resolve scope, write message) and stop. Do not run
git add, git commit, git push, or gh pr create.Inspect Current State
Run
git status and git diff (and git diff --staged if needed) to list all modified, added, and deleted files. Identify the current branch. If not on a feature branch, decide whether to create one from the base branch (main or develop) before committing.Resolve Scope
- No arguments: treat all relevant changes (excluding
.env, build artifacts, and local config) as the commit scope. Stage all of them. - Arguments provided: map each argument to the changes that clearly belong to it — by path, ticket ID in the branch name, or diff context. Stage only those files or hunks. Leave everything else unstaged.
- No matching changes: report this and do not commit.
Write the Commit Message
Compose the commit message in English, following project standards from
docs/base-standards.md:- Subject line: short, imperative summary (e.g.
Add candidate filters to position list). Optionally prefix with a scope or ticket ID (e.g.SCRUM-123: Add candidate filters). - Body (if needed): bullet points or short paragraphs describing what changed and why. Reference ticket IDs here when relevant.
.env contents, or other sensitive or generated artifacts.Commit and Push
Create the commit with the composed message. Push the branch to the remote with
git push origin <branch>. If the branch does not yet exist on the remote, push with -u to set the upstream tracking reference.Create or Update the Pull Request
Use the GitHub CLI (
gh) for all GitHub operations:- Title: clear, aligned with the commit — include the ticket ID when applicable (e.g.
[SCRUM-123] Add candidate filters to position list) - Description: summarise the change set, link to the ticket if relevant, and note any testing requirements or follow-up items
- If the repo uses branch protection or required checks, note that the PR is ready for review once checks pass
Commit Message Format
Rules and Safety Guards
- No secrets: never commit
.envfiles, API keys, or credentials - No force push without an explicit user request
- No destructive git commands without confirmation
- Conflicts or rejected push: report the situation and suggest next steps (pull/rebase then push) — do not force-push unless the user asks
- Partial staging: when ticket IDs are provided, only the matching changes are staged; everything else is left untouched in the working tree
References
docs/base-standards.md— English-only commit messages and technical artifactsdocs/backend-standards.mdanddocs/frontend-standards.md— Git workflow conventions (feature branches, descriptive commits, small focused changes)