Agent skill

Run Pre Gen Checks

by GoogleCloudPlatform in 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…

Custom licenceAuto-check passedTesting & QA

Install Run Pre Gen Checks

skills CLI
$ npx skills add GoogleCloudPlatform/magic-modules --skill run-pre-gen-checks -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install GoogleCloudPlatform/magic-modules run-pre-gen-checks --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
run-pre-gen-checks
GitHub stars
973
Token cost
~492 tokens
SKILL.md length
194 words
Files
2 (incl. scripts)
Skills in repo
30
Repo updated
First seen
Licence
Custom licence

At a glance

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…

  • Works in 2 steps: Run Pre-Generation & Static Checks Runner → Output and Verification
  • Tasks that involve Unit testing
  • SKILL.md covers Checks Included, Prerequisites and Execution Steps
  • Runs Shell scripts from its folder; calls git and go

What it does

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.

When your agent uses it

  • Tasks that involve Unit testing
  • Tasks that involve Linting and formatting

Example prompts

  • “/run-pre-gen-checks”

Requirements

  • A Bash shell

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. Run Pre-Generation & Static Checks Runner
  2. Output and Verification

What it can do on your machine

Read from SKILL.md and the folder at commit e794c9d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • git
    • go

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    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.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~85
When it runs · the whole SKILL.md, loaded when a task matches
~492

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.

Safety

Auto-check passed

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.

SKILL.md

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:”

— opening of SKILL.md by GoogleCloudPlatform, Custom licence
name
run-pre-gen-checks

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (scripts) in .agents/skills/utils/run-pre-gen-checks of GoogleCloudPlatform/magic-modules.

  • SKILL.md
  • scripts/run_pre_gen_checks.sh

Open the folder on GitHubat commit e794c9d

Compare with similar skills

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.

Run Pre Gen Checks compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Run Pre Gen Checks this skillGoogleCloudPlatform/magic-modules973—~492Automated safety check: PassCustom licence
Running Unit TestsPSBrew/MkPFS169—~429Automated safety check: PassGPL-3.0
Adk Setupgoogle/adk-python22k—~993Automated safety check: NotesApache-2.0
Antfuoyjt/uniapp-vue3-template627—~1.3kAutomated safety check: PassMIT
Simple Modern Uvjlevy/simple-modern-uv301—~1.9kAutomated safety check: PassMIT
Zizkadb TestZIZKA-AI-SL/ZizkaDB124—~358Automated safety check: PassCustom licence

Similar skills

  • Running Unit Tests

    PSBrew/MkPFS

    Run formatting, linting, and tests; then iteratively fix failures until the branch is green.

    169 GitHub stars~429 tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Adk Setup

    google/adk-python

    Official

    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…

    22k GitHub stars~993 tokensUpdated today
    DevelopmentAuto-check: notes
  • Antfu

    oyjt/uniapp-vue3-template

    Anthony Fu's {Opinionated} preferences and best practices for web development

    627 GitHub stars~1.3k tokensUpdated 4 mo ago
    DevelopmentAuto-check passed
  • Simple Modern Uv

    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.

    301 GitHub stars~1.9k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Zizkadb Test

    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.

    124 GitHub stars~358 tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Code Completion

    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…

    1.2k GitHub stars~1.2k tokensUpdated yesterday
    Testing & QAAuto-check passed

More from GoogleCloudPlatform/magic-modules

All 30 skills in this repo
  • Validate Provider Changes

    GoogleCloudPlatform/magic-modules

    Validate that changes to the generated providers don't introduce breaking changes or fields with missing tests or missing documentation.

    973 GitHub stars~528 tokensUpdated yesterday
    Auto-check passed
  • Add List Resource Workflow

    GoogleCloudPlatform/magic-modules

    Opt resource into MMv1 list-resource generation by setting generatelistresource: true and validate it locally with generated tests.

    973 GitHub stars~1.8k tokensUpdated yesterday
    Auto-check passed
  • Fetch Nightly Results

    GoogleCloudPlatform/magic-modules

    Skill to fetch latest nightly test results and metadata for Beta or GA providers from GCS test-metadata.

    973 GitHub stars~615 tokensUpdated yesterday
    Auto-check passed
  • Automate Test Triage

    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.

    973 GitHub stars~1k tokensUpdated yesterday
    Auto-check passed
  • Dev Overrides

    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.

    973 GitHub stars~432 tokensUpdated yesterday
    Auto-check passed
  • Generate Provider

    GoogleCloudPlatform/magic-modules

    Executes code generation from Magic Modules into downstream Terraform providers and optionally compiles the binary.

    973 GitHub stars~475 tokensUpdated yesterday
    Auto-check passed

Works with

Questions about Run Pre Gen Checks

What does Run Pre Gen Checks do?

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.

When should I use Run Pre Gen Checks?

Run Pre Gen Checks fits situations like: tasks that involve Unit testing; tasks that involve Linting and formatting.

How do I install Run Pre Gen Checks in Claude Code?

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.

How do I install Run Pre Gen Checks in Codex?

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.

Can I use Run Pre Gen Checks in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Run Pre Gen Checks need to run?

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.

Does Run Pre Gen Checks access the network?

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.

Is Run Pre Gen Checks safe to install?

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.

What licence does Run Pre Gen Checks use?

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.

How many tokens does Run Pre Gen Checks use?

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.

What are the alternatives to Run Pre Gen Checks?

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.

Who maintains Run Pre Gen Checks?

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.