Running Unit Tests
PSBrew/MkPFS
Run formatting, linting, and tests; then iteratively fix failures until the branch is green.
Run fast static checks that don't require generating downstreams, including git submodule verification, gofmt formatting, YAML linting, template validation (version-guard and unused-tmpl), mmv1 core…
$ npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install GoogleCloudPlatform/magic-modules run-pre-gen-checks --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/magic-modules.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/utils/run-pre-gen-checks .claude/skills/run-pre-gen-checks && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "run-pre-gen-checks" agent skill from https://github.com/GoogleCloudPlatform/magic-modules/tree/main/.agents/skills/utils/run-pre-gen-checks into .claude/skills/run-pre-gen-checks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-pre-gen-checks", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/GoogleCloudPlatform/magic-modules/tree/main/.agents/skills/utils/run-pre-gen-checksType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install GoogleCloudPlatform/magic-modules run-pre-gen-checks --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/magic-modules.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/utils/run-pre-gen-checks .agents/skills/run-pre-gen-checks && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "run-pre-gen-checks" agent skill from https://github.com/GoogleCloudPlatform/magic-modules/tree/main/.agents/skills/utils/run-pre-gen-checks into .agents/skills/run-pre-gen-checks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-pre-gen-checks", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install GoogleCloudPlatform/magic-modules run-pre-gen-checks --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/magic-modules.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/utils/run-pre-gen-checks .cursor/skills/run-pre-gen-checks && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "run-pre-gen-checks" agent skill from https://github.com/GoogleCloudPlatform/magic-modules/tree/main/.agents/skills/utils/run-pre-gen-checks into .cursor/skills/run-pre-gen-checks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-pre-gen-checks", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/GoogleCloudPlatform/magic-modules.git --path .agents/skills/utils/run-pre-gen-checks--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install GoogleCloudPlatform/magic-modules run-pre-gen-checks --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/magic-modules.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/utils/run-pre-gen-checks .gemini/skills/run-pre-gen-checks && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "run-pre-gen-checks" agent skill from https://github.com/GoogleCloudPlatform/magic-modules/tree/main/.agents/skills/utils/run-pre-gen-checks into .gemini/skills/run-pre-gen-checks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-pre-gen-checks", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install GoogleCloudPlatform/magic-modules run-pre-gen-checksInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/magic-modules.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/utils/run-pre-gen-checks .github/skills/run-pre-gen-checks && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "run-pre-gen-checks" agent skill from https://github.com/GoogleCloudPlatform/magic-modules/tree/main/.agents/skills/utils/run-pre-gen-checks into .github/skills/run-pre-gen-checks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-pre-gen-checks", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install GoogleCloudPlatform/magic-modules run-pre-gen-checks --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/GoogleCloudPlatform/magic-modules.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/utils/run-pre-gen-checks .opencode/skills/run-pre-gen-checks && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "run-pre-gen-checks" agent skill from https://github.com/GoogleCloudPlatform/magic-modules/tree/main/.agents/skills/utils/run-pre-gen-checks into .opencode/skills/run-pre-gen-checks/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "run-pre-gen-checks", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
run-pre-gen-checksRun fast static checks that don't require generating downstreams, including git submodule verification, gofmt formatting, YAML linting, template validation (version-guard and unused-tmpl), mmv1 core…
Run Pre Gen Checks is an agent skill from GoogleCloudPlatform/magic-modules. Run fast static checks that don't require generating downstreams, including git submodule verification, gofmt formatting, YAML linting, template validation (version-guard and unused-tmpl), mmv1 core unit tests, internal tool unit tests, and .ci/magician unit tests. Use this skill as a fast initial check for any changes.
Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/run_pre_gen_checks.sh`).
It sits in Testing & QA, covering Unit testing and Linting and formatting. It works with Git. The repository describes itself as: Add Google Cloud Platform support to Terraform.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit e794c9d. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
gitgoFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Run Pre Gen Checks loads about 492 tokens when it runs. Until then it costs about 85 tokens; SKILL.md has 194 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 194 words (~492 tokens).
“Execute the script to run all pre-generation static checks and unit tests in parallel:”
SKILL.md and 1 other file (scripts) in .agents/skills/utils/run-pre-gen-checks of GoogleCloudPlatform/magic-modules.
Open the folder on GitHubat commit e794c9d
Run Pre Gen Checks next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Run Pre Gen Checks this skillGoogleCloudPlatform/magic-modules | 973 | — | ~492 | Automated safety check: Pass | Custom licence | |
| Running Unit TestsPSBrew/MkPFS | 169 | — | ~429 | Automated safety check: Pass | GPL-3.0 | |
| Adk Setupgoogle/adk-python | 22k | — | ~993 | Automated safety check: Notes | Apache-2.0 | |
| Antfuoyjt/uniapp-vue3-template | 627 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Simple Modern Uvjlevy/simple-modern-uv | 301 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Zizkadb TestZIZKA-AI-SL/ZizkaDB | 124 | — | ~358 | Automated safety check: Pass | Custom licence |
PSBrew/MkPFS
Run formatting, linting, and tests; then iteratively fix failures until the branch is green.
google/adk-python
Sets up a local ADK Python development environment in a git clone of the open-source adk-python repository: a uv virtual environment, all dependency extras, pre-commit hooks, and a first unit-test…
oyjt/uniapp-vue3-template
Anthony Fu's {Opinionated} preferences and best practices for web development
jlevy/simple-modern-uv
Start, selectively modernize, fully migrate, or update Python projects using simple-modern-uv practices: uv, ruff, BasedPyright, pytest, GitHub Actions CI, and tag-driven PyPI publishing.
ZIZKA-AI-SL/ZizkaDB
Run the full ZizkaDB test suite across all layers — lint, Python unit tests, SDK tests, MCP tests, TypeScript tests, and dashboard build verification.
facioquo/stock-indicators-dotnet
Quality gates for finishing work in this repository — dead-code cleanup, Roslynator and dotnet format fixes, markdownlint, build, unit tests, documentation, and Obsolete migration shims — with the…
GoogleCloudPlatform/magic-modules
Validate that changes to the generated providers don't introduce breaking changes or fields with missing tests or missing documentation.
GoogleCloudPlatform/magic-modules
Opt resource into MMv1 list-resource generation by setting generatelistresource: true and validate it locally with generated tests.
GoogleCloudPlatform/magic-modules
Skill to fetch latest nightly test results and metadata for Beta or GA providers from GCS test-metadata.
GoogleCloudPlatform/magic-modules
Skill to automatically triage failing tests by reading test-metadata status files, matching GitHub issues, and generating a multi-section failure report.
GoogleCloudPlatform/magic-modules
Configures Terraform CLI with developer overrides to test locally built provider binaries without full Go acceptance tests, enabling rapid plan/apply cycles.
GoogleCloudPlatform/magic-modules
Executes code generation from Magic Modules into downstream Terraform providers and optionally compiles the binary.
Works with
Categories
Run fast static checks that don't require generating downstreams, including git submodule verification, gofmt formatting, YAML linting, template validation (version-guard and unused-tmpl), mmv1 core…. Run Pre Gen Checks is an agent skill from GoogleCloudPlatform/magic-modules.ci/magician unit tests.
Run Pre Gen Checks fits situations like: tasks that involve Unit testing; tasks that involve Linting and formatting.
Run `npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a claude-code`. Or copy the skill folder (.agents/skills/utils/run-pre-gen-checks in GoogleCloudPlatform/magic-modules) into .claude/skills/run-pre-gen-checks in your project. Claude Code loads it when a task matches its description.
Run `npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a codex`. Or copy the skill folder (.agents/skills/utils/run-pre-gen-checks in GoogleCloudPlatform/magic-modules) into .agents/skills/run-pre-gen-checks in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/run-pre-gen-checks, .gemini/skills/run-pre-gen-checks, .github/skills/run-pre-gen-checks and .opencode/skills/run-pre-gen-checks in your project.
Going by SKILL.md and its folder, Run Pre Gen Checks needs a shell for the scripts in its folder and the command-line tools its instructions call (git and go). Our summary lists: A Bash shell.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Run Pre Gen Checks has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.
About 492 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Run Pre Gen Checks: Running Unit Tests (PSBrew/MkPFS, 169 stars), Adk Setup (google/adk-python, 22k stars), Antfu (oyjt/uniapp-vue3-template, 627 stars) and Simple Modern Uv (jlevy/simple-modern-uv, 301 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
GoogleCloudPlatform (a GitHub organization) maintains it in GoogleCloudPlatform/magic-modules, which has 973 GitHub stars. The repository holds 30 skills in this directory. The repository was last updated on October 6, 2026.
Source: GoogleCloudPlatform/magic-modules on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.