Security Setup Install a local-first security hardening stack for a project. Favor checks that run offline at hook time, produce machine-readable output, and give developers a clear summary before code leaves their machine. Repo Sync Before Edits (mandatory) Before creating/updating/deleting files in an existing repository, sync the current branch with remote: If the working tree is not clean, stash first as a backup, sync, then restore: If is missing, pull is unavailable, or rebase/stash conflicts occur, stop and ask the user before continuing. Never use rollback options without confirmation…