.claude/skills/notebook-to-script/SKILL.md
Convert Colab/Jupyter notebooks to production Python scripts. Use when user asks to productionize a notebook, create a Metaflow pipeline from notebook code, or convert prototype to production.
npx skillsauth add praveenmaiya/holley-rec notebook-to-scriptInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
notebooks/src/:
src/data/src/features/src/models/src/evaluation/flows/ if pipeline neededtests/unit/configs/See agent_docs/architecture.md for flow patterns.
# Notebook (BAD)
df = pd.read_gbq("SELECT * FROM project.dataset.table")
df['feature'] = df['col'].apply(lambda x: x * 2)
# Production (GOOD)
from src.data.bq_client import BQClient
from src.features.feature_engineering import compute_feature
def extract_data(client: BQClient, config: dict) -> pd.DataFrame:
"""Extract raw data from BigQuery."""
return client.run_query_file(
"sql/recommendations/extract/users.sql",
params={"limit": config.get("limit", 10000)}
)
testing
Generate a team-facing weekly status update from STATUS_LOG.md and git history.
testing
Run QA validation checks on the recommendation pipeline output. Use after pipeline runs to verify data quality.
research
Compare Personalized vs Static treatment performance with unbiased methodology. Use for A/B analysis and treatment comparison.
testing
Show current pipeline and deployment status. Use for quick health check.