Require safe repo sync at task start

This commit is contained in:
MrSphay
2026-05-15 02:47:08 +02:00
parent fe0b3b2107
commit 25c438360d
6 changed files with 25 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ PROJECT_NAME: PROJECT_DESCRIPTION
- Do not commit secrets, `.env` files, private keys, certificates, or tokens.
- Do not rewrite history or run destructive git commands unless explicitly requested.
- Do not create a release unless explicitly requested.
- At the start of every user-requested task, briefly check the repository for upstream updates and apply them immediately with a safe fast-forward pull when the working tree is clean. If local changes exist, do not overwrite them; fetch or report the blocker before editing.
- Check `git status --short` before editing and before finishing. Preserve unrelated user changes.
- Replace all applicable placeholders. Remove non-applicable placeholder sections instead of leaving fake values.
- Derive `REPOSITORY_OWNER` and `REPOSITORY_NAME` from the target repository remote or `GITHUB_REPOSITORY`. Never reuse the owner from this template repository.