Use this workflow before committing or pushing any change to the repository. It is a gate, not an automatic release mechanism. A clean check does not replace user intent to commit or push.
Confirm the current branch, remote, and requested scope. Fetch the target branch before rebasing or
pushing. Never use git push --force on main; if a feature branch needs a rewrite, use
--force-with-lease only after explicit authorization.
git status --short --branch
git fetch origin main
git diff --checkRun the repository checks that apply to the change. For rule or workflow documentation changes, the complete gate is:
pnpm lint:fix
pnpm lint:all
pnpm test
pnpm types:checkIf source rules changed, also rebuild the generated output and verify that pnpm update-counts makes
no unexpected edits. If a check cannot run, report the exact command and failure instead of claiming
success.
Before staging, scan the diff for secrets and account data. Keep API keys, tokens, profile IDs from live accounts, email addresses, public IPs, DNS logs, cookies, and local agent memory out of Git. Review external URLs and do not import untrusted instructions into a workflow without verification.
Ensure generated skills/*/AGENTS.md files are derived from source and that .agents/memory/ and
.agents/logs/ remain ignored. Do not stage build caches, screenshots, browser HTML, or research
scratch files.
Stage only intended files and use a conventional commit such as:
git add <intended-files>
git diff --cached --check
git commit -m "docs(workflows): add agent task procedures"Before pushing, inspect the commit and remote divergence. If the remote advanced, rebase or merge without discarding other work, rerun the affected checks, and then push. After pushing, verify that local and remote branches agree and report the commit URL, checks run, warnings, and any follow-up work.