Download for MacApple silicon, macOS 14+
Skill

ml-best-practices

@googlecloudplatform Updated 2026-10-23

CRITICAL RULE: You MUST use this skill whenever the task involves any machine learning tasks or data analysis. Use this skill if the user's prompt or requirements mention any of the following: * Clustering * Classification * Regression * Time series forecasting * Statistical testing * Model comparison * ML * Data analysis SQL/BigQuery ML HANDOFF: If the user requires a SQL solution, use this skill to dictate the ANALYSIS STEPS (e.g., markdown analysis cells, visualization logic), but defer to `bigquery` for all SQL syntax.

Install

With your agent

Install OMGSkills skill "googlecloudplatform/data-agent-kit-plugin:skills/ml-best-practices" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/GoogleCloudPlatform/data-agent-kit-plugin /tmp/data-agent-kit-plugin && ln -s /tmp/data-agent-kit-plugin/skills/ml-best-practices ~/.claude/skills/ml-best-practices

From README

ML Best Practices I want to read a story about the data, not just run code. Ensure every code cell is followed by a markdown cell analyzing the results. End the notebook with a summary comprehensively answering the prompt. If there is a good match between the user's request and a corresponding example plan, then adapt the example plan to fully answer the user's request: Clustering: Identify distinct groups based on their features. Understand the schema and field descriptions. Visualize features referenced in the prompt (e.g., with histograms, scatterplots). Transform dates into timestamps. Before applying encoders, check if the dataset already contains pre-encoded features and prefer existing numerical representations. Prefer to keep data instead of dropping it when possible. Transform ordinal data with an ordinal encoder. Transform nominal data with a one hot encoder. Standardize numerical features. Perform clustering with a range of values, and collect the silhouette score.