Staging and committing every change can put unrelated files or secrets into Git history
Source references: 2Beyond configuring hooks, the Skill explicitly directs the agent to stage “all” changed or created files and make a commit. Before that commit, a wildcard rule rewrites every supported staged file with Prettier. It does not first constrain the file set or require confirmation of the commit contents.
Existing work, generated files, credential files, or other sensitive content could be included with the hook configuration, while Prettier may add unrelated formatting changes. Deleted secrets can remain in Git history and may be exposed if the commit is later pushed.
Two active instructions create the risk: lint-staged rewrites every staged file that Prettier can parse, and the Skill then directs staging all changed or newly created files and committing immediately. If the working tree already contains unrelated edits, generated files, or secrets, they could enter Git history; supported staged files may also be reformatted. A user can restrict staging to this Skill's configuration files and require review of the staged diff and secret checks before committing.
### 5. Create `.lintstagedrc````json{ "*": "prettier --ignore-unknown --write"}```Show 1 other places
### 8. CommitStage all changed/created files and commit with message: `Add pre-commit hooks (husky + lint-staged + prettier)`This will run through the new pre-commit hooks: a good smoke test that everything works.