- Align cherry-pick and revert approval wording across SKILL.md, commits.md, and history-editing.md with profile/AGENTS.md (CR-01) - Gate commit message drafting in inspect-flake-update Step 4 on delivery mode so learning mode preserves user message authoring (CR-02)
2.4 KiB
2.4 KiB
name, description
| name | description |
|---|---|
| inspect-flake-update | Inspect changes when flake.lock is updated. Reviews updated input revisions one by one, surfaces upstream changelogs, verifies with nix flake check, summarizes modifications, and suggests a commit message. |
Inspect Flake Update
Use when
flake.lockhas uncommitted modifications after updating inputs.- Inspecting, auditing, or reviewing revisions introduced by flake updates.
- Not for general Git operations or history management (use
/git-manager). - Not for troubleshooting unrelated NixOS build failures (use
/diagnose).
Steps
- Detect lock changes. Run
git diff flake.lockto identify all changed inputs. Parse each input node: input name, previous revision, and new revision. Ifflake.lockis clean, ask which input the user wants to update. - Review revisions one by one. For each updated input:
- Identify repository host and commit comparison range (e.g.
owner/repo@old...new). - Retrieve commit log, PR list, or release notes between the two revisions.
- Present the changes to the user, highlighting breaking changes, major updates, security fixes, or deprecated options.
- Wait for the user confirmation before proceeding to the next input.
- Identify repository host and commit comparison range (e.g.
- Validate the flake. Run
nix flake checkto ensure metadata, inputs, and derivations evaluate cleanly. If the repository defines host or package builds, optionally run dry builds without switching or activating. - Synthesize changes and prepare commit. Summarize all inspected inputs, noting their
updated versions and key upstream changes. In
deliverymode, draft a Conventional Commit message (e.g.chore(flake): bump <input> to <rev>); inlearningmode, let the user write it. - Hand off. Hand off to
git-managerto stageflake.lockand commit per session-mode rules.
Your call
- Deciding whether to accept an input update or roll it back.
- Choosing whether to run additional dry builds beyond
nix flake check. - Approving the commit on
main/master, or writing the message inlearningmode perprofile/AGENTS.md.
Done when
- All updated inputs have been reviewed,
nix flake checkpasses cleanly, the change summary is produced, and handoff togit-manageris ready.
Hands off to
git-manager: to stageflake.lockand record the commit.diagnose: ifnix flake checkor derivation evaluation fails.