Check Sync Provider
Testing & Qualitycheck-sync-providerCheck Sync Provider is an Agent Skill for testing & quality published in the GoogleCloudPlatform/magic-modules repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Checks if the downstream provider repository is aligned with the correct Magic Modules base commit.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/GoogleCloudPlatform/magic-modules/blob/HEAD/.agents/skills/utils/check-sync-provider/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/check-sync-provider, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
check-sync-provider
Use this skill to verify if the downstream repository is at the correct baseline commit before generating code or running tests.
Execution Steps
1. Identify Magic Modules Base Commit
- Identify the official
GoogleCloudPlatform/magic-modulesremote (usuallyupstream). - Calculate the target base commit:
- If on
main: Use current commit (HEAD). - If on a feature branch: Run
git merge-base HEAD <canonical-remote>/mainto find where the branch diverged.
- If on
2. Find the Matching Downstream Commit
- Search the downstream repository's log for a commit that references this Magic Modules base commit hash in its commit message.
3. Compare and Report
- Verify if the
HEADof the downstream repository matches that found commit. - If they match, report Synced.
- If they do not match, or the commit cannot be found, report Out of Sync and provide the details.