Repo Ops Policy Sync
Overview
Use this skill for shared repo-operation work rather than product-feature work. It covers the corner case where the task looks like "just docs" but the edited files are actually part of the live operating surface for future agents, so the job is not complete until the shared branch state has been updated on origin.
Mandatory Preload
- Read
../../../AGENTS.md. - Read
../autoreport-dev/SKILL.md. - Read
references/finish-checklist.md. - Read
../public-repo-safety/SKILL.md. - If the task touches tracked deployment handover or EC2 guidance, also read
../remote-deployment-handover/SKILL.md. - If the task touches product-facing README or release wording instead of repo
operations, switch to
../release-docs/SKILL.mdas the primary skill. - If the task also needs release tags or nontrivial branch normalization, also
read
../release-tagging/SKILL.md. - If the task is really the master-thread workstream flow on
codex/v<version>-master, switch to../workstream-orchestrator/SKILL.mdinstead of forcing the ordinarymainpluscodex/nextpath.
Workflow
- Recognize repo-operation surfaces early.
- Treat
AGENTS.md,codex/skills/, tracked deployment handover notes, and shared architecture or process docs as repo-operation files when they change how later Codex turns should behave. - Do not downgrade those files into "docs-only polish" when they are actually changing the repository's operating rules.
- Treat completion as operational, not advisory.
- Unless the user explicitly asks to stop earlier or use another branch, do not stop after editing the files.
- The default finish bar for this skill is: validate the changed operating
surface, run
public-repo-safety, commit onmain, pushorigin/main, refreshcodex/nextfrom that pushedmain, and return the workspace tomain.
- Validate narrowly but concretely.
- Run the narrowest repository-backed validation that covers the changed operating surface.
- For repo-local skills or shared architecture docs, prefer the unittest module that locks the referenced guidance when one exists; otherwise cite the inspected source files that justify the guidance.
- If the changed guidance makes claims about a tested runtime behavior, run the narrow matching tests before pushing.
- If the change is guidance-only and grounded in already-inspected code or tests, cite that source of truth instead of inventing extra verification.
- Keep the push scope clean.
- Stage only the intended repo-operation files.
- If unrelated tracked changes are present, do not silently bundle them into the policy commit.
- If
mainis not the working branch for a normal repo-operation task, move the change ontomainor stop and realign before calling the task complete.
- Run the shared-branch sync loop.
- Push
mainbefore touchingcodex/next. - Refresh
codex/nextfrom the pushedmainwith a fast-forward when possible. - If
codex/nextcannot fast-forward cleanly, stop and resolve the branch state explicitly instead of guessing.
- Report the operational result.
- Record the commit SHA that landed on
main. - Record whether
codex/nextnow points to the same commit. - Call out any blocker that prevented the full finish loop from completing.
Current Repo Defaults
- Shared repo-operation work normally lands directly on
main. codex/nextshould mirror the pushedmaincommit after this skill finishes.public-repo-safetyis required before public push or publish claims.- A local-only edit to the shared operating surface is incomplete by default.
Output Contract
- State that
repo-ops-policy-syncwas used. - Name the shared operating-surface files that changed.
- State the validation run for those files.
- State whether
public-repo-safetyfound blockers. - State the
maincommit SHA that was pushed. - State whether
codex/nextwas refreshed to the same commit.
Source: tubtrb/autoreport — distributed by TomeVault.