git:20260815.4682deb to git:20260930.96608bf

23 added, 203 removed. Audit A to A.

What this update changes in the checks

No check changed: every fixed check gives the same answer before and after this update.

A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.

---
name: git-commit-helper
- description: Create or execute reviewable Conventional Commits from the complete diff, validation evidence and compatibility impact. Use for commit messages, staged-change review, commits, explicit push requests or repository-history cleanup. Only run when Git exists and the current directory is already a repository; never install Git or initialize one for this skill.
+ description: "Review diffs and create Conventional Commit messages or commits; push only on explicit request. Use in an existing Git repository, without installing Git or initializing one."
---
# Git Commit Helper
- ## Availability preflight
-
- Before any Git command, verify that Git is already available and the current directory is a repository. If either check fails, report that Git was skipped and continue the parent task without version-control actions. Do not install Git, do not create an environment for it, and do not run `git init` unless the user explicitly requested repository initialization and Git is already available.
-
- ## Quick start
-
- Analyze staged changes and generate commit message:
-
- ```bash
- # View staged changes
- git diff --staged
-
- # Generate commit message based on changes
- # (The active agent will analyze the diff and suggest a message)
- ```
-
- ## Commit message format
-
- Follow conventional commits format:
-
- ```
- <type>(<scope>): <description>
-
- [optional body]
-
- [optional footer]
- ```
-
- ### Types
-
- - **feat**: New feature
- - **fix**: Bug fix
- - **docs**: Documentation changes
- - **style**: Code style changes (formatting, missing semicolons)
- - **refactor**: Code refactoring
- - **test**: Adding or updating tests
- - **chore**: Maintenance tasks
-
- ## Reviewable history contract
-
- Write each commit so a future reader can understand the completed unit without opening every diff:
-
- 1. Make one commit represent one coherent user request or independently reversible change. Split unrelated changes; do not split tightly coupled rule, helper, template, and test updates.
- 2. Use a specific scope and an imperative summary naming both action and object. Avoid vague summaries such as `update files`, `changes`, `完善一下`, or `misc fixes`.
- 3. For any non-trivial or multi-file change, include a body with:
- - why the change was needed;
- - the key behavioral changes;
- - validation commands and results;
- - compatibility, migration, or rollback implications when present.
- 4. Review the complete worktree and staged diff before committing. Do not mix unexplained pre-existing changes into the commit.
- 5. After validation, create the commit automatically when the user's standing policy authorizes it and the availability preflight passes. If it does not pass, skip the commit without treating that as task failure. Push only when the user explicitly requests push in the current turn; do not ask, remind, or batch-push accumulated commits. Never force-push or rewrite remote history.
-
- ### Examples
-
- **Feature commit:**
- ```
- feat(auth): add JWT authentication
-
- Implement JWT-based authentication system with:
- - Login endpoint with token generation
- - Token validation middleware
- - Refresh token support
- ```
-
- **Bug fix:**
- ```
- fix(api): handle null values in user profile
-
- Prevent crashes when user profile fields are null.
- Add null checks before accessing nested properties.
- ```
-
- **Refactor:**
- ```
- refactor(database): simplify query builder
-
- Extract common query patterns into reusable functions.
- Reduce code duplication in database layer.
- ```
-
- ## Analyzing changes
-
- Review what's being committed:
-
- ```bash
- # Show files changed
- git status
-
- # Show detailed changes
- git diff --staged
-
- # Show statistics
- git diff --staged --stat
-
- # Show changes for specific file
- git diff --staged path/to/file
- ```
-
- ## Commit message guidelines
-
- **DO:**
- - Use imperative mood ("add feature" not "added feature")
- - Keep the first line under 72 characters; prefer under 50 when it remains specific
- - No period at end of summary
- - Explain WHY, key impact, and validation in the body
-
- **DON'T:**
- - Use vague messages like "update" or "fix stuff"
- - Include technical implementation details in summary
- - Write paragraphs in summary line
- - Use past tense
-
- ## Multi-file commits
-
- When committing multiple related changes:
-
- ```
- refactor(core): restructure authentication module
-
- - Move auth logic from controllers to service layer
- - Extract validation into separate validators
- - Update tests to use new structure
- - Add integration tests for auth flow
-
- Breaking change: Auth service now requires config object
- ```
-
- ## Scope examples
-
- **Frontend:**
- - `feat(ui): add loading spinner to dashboard`
- - `fix(form): validate email format`
-
- **Backend:**
- - `feat(api): add user profile endpoint`
- - `fix(db): resolve connection pool leak`
+ Create a coherent, reversible Conventional Commit from the complete diff and validation evidence. Follow the root rules for commit authorization, push authority and history safety.
- **Infrastructure:**
- - `chore(ci): update Node version to 20`
- - `feat(docker): add multi-stage build`
+ ## Availability and Scope
- ## Breaking changes
+ Verify Git is already available and the current directory is a repository. Otherwise report "Git skipped" and continue the parent task; do not install Git or run `git init` for this skill.
- Indicate breaking changes clearly:
+ Read `git status --short`, `git diff` and `git diff --staged`. Distinguish the requested changes from pre-existing work and preserve unexplained changes. Stage explicit paths or reviewed hunks; do not use a broad `git add .` when unrelated changes exist. Each commit should cover one coherent change, including its directly coupled rules, helpers, templates and tests.
- ```
- feat(api)!: restructure API response format
+ ## Message
- BREAKING CHANGE: All API responses now follow JSON:API spec
+ Use this format:
- Previous format:
- { "data": {...}, "status": "ok" }
+ ```text
+ <type>(<scope>): <imperative action and object>
- New format:
- { "data": {...}, "meta": {...} }
+ <motivation, behavior, validation and compatibility when non-trivial>
- Migration guide: Update client code to handle new response structure
+ <issue reference or BREAKING CHANGE footer when applicable>
```
- ## Template workflow
-
- 1. **Check availability**: Continue only when Git is installed and the current directory is a repository; otherwise skip without installing or initializing Git
- 2. **Review worktree**: `git status --short`, `git diff`, and `git diff --staged`
- 3. **Confirm validation**: Record the commands run and their outcomes
- 4. **Identify type**: Is it feat, fix, refactor, docs, etc.?
- 5. **Determine scope**: What coherent subsystem changed?
- 6. **Write summary**: Specific imperative action + object
- 7. **Add body**: Motivation, key changes, validation, compatibility / rollback
- 8. **Note breaking changes**: If applicable
- 9. **Push only on explicit request**: If the current user turn asks for push, verify branch and remote divergence, then use a normal push; otherwise stop after commit without prompting about push
-
- ## Interactive commit helper
-
- Use `git add -p` for selective staging:
-
- ```bash
- # Stage changes interactively
- git add -p
-
- # Review what's staged
- git diff --staged
-
- # Commit with message
- git commit -m "type(scope): description"
- ```
+ Choose `feat`, `fix`, `docs`, `refactor`, `test`, `chore`, `style`, `perf`, `build` or `ci` from the actual change. Use a specific scope; keep the summary under 72 characters, without a trailing period. Avoid vague summaries such as `update files`, `misc fixes` or `完善一下`. For a non-trivial change, explain the problem, resulting behavior, validation commands and results, and any compatibility or rollback implications. Do not claim checks that were not run.
- ## Amending commits
+ Mark incompatible behavior with `!` or a `BREAKING CHANGE:` footer and describe the required migration. Reference an issue only when one exists. Do not force a body or checklist for a trivial wording correction.
- Fix the last commit message:
+ ## Commit and Verification
- ```bash
- # Amend commit message only
- git commit --amend
+ 1. Complete checks required for the affected component and resolve failures caused by the change.
+ 2. Review the entire worktree and staged diff; ensure no unexplained files, credentials, raw data, runtime caches or backup batches enter the commit.
+ 3. Create the commit when the user's standing policy or current request authorizes it. For multiline messages use a UTF-8 message file in the permitted workbench and `git commit --file <message-file>`; do not construct a shell command from message text.
+ 4. Verify the new commit and remaining worktree. Run repository-specific post-commit synchronization and checks when required.
- # Amend and add more changes
- git add forgotten-file.js
- git commit --amend --no-edit
- ```
+ ## Push and History Changes
- ## Best practices
+ Push only when the user explicitly requests push in the current turn; otherwise finish after the commit without prompting about push. Before a normal push, verify branch, remote and divergence. Never force-push or rewrite remote history.
- 1. **Atomic commits** - One logical change per commit
- 2. **Test before commit** - Ensure code works
- 3. **Reference issues** - Include issue numbers if applicable
- 4. **Keep it focused** - Don't mix unrelated changes
- 5. **Write for humans** - Future you will read this
+ Amend or reorganize local commits only on an explicit history-edit request, after confirming they are unpublished and preserving a recoverable baseline. An ordinary fix after a commit uses a new commit. A rejected push is a reason to inspect divergence, not permission to reset, rebase or force-push.
- ## Commit message checklist
+ ## Completion
- - [ ] Type is appropriate (feat/fix/docs/etc.)
- - [ ] Scope is specific and clear
- - [ ] Summary is under 72 characters and as concise as specificity allows
- - [ ] Summary uses imperative mood
- - [ ] Body explains WHY, key behavior, and validation for non-trivial changes
- - [ ] Breaking changes are clearly marked
- - [ ] Related issue numbers are included
- - [ ] Commit contains one coherent, reversible unit
- - [ ] Commit was created after validation unless the user opted out
- - [ ] Git availability and repository status were confirmed, or all Git operations were explicitly skipped without installation or initialization
- - [ ] If push was explicitly requested, it is a normal fast-forward update with no force push
+ Report the commit hash and summary, validation outcome, material compatibility effects and any remaining worktree changes. If Git is unavailable or the directory is not a repository, state that version control was skipped without treating the completed parent task as a failure.