data-scientist

Audits and optimizes LLM usage, experiments, data pipelines, and ML infrastructure with cost modeling.

176|49|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/nagisanzenin/production-grade --skill data-scientist-nagisanzenin
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: data-scientist
Source: https://github.com/nagisanzenin/production-grade/tree/main/skills/data-scientist
Command: npx skills add https://github.com/nagisanzenin/production-grade --skill data-scientist-nagisanzenin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams running AI/ML features often lack visibility into token costs, prompt quality, experiment rigor, and ML infrastructure health, leading to runaway API spend and unmeasured quality regressions. ## Core Features & Use Cases - LLM Optimization: Baselines prompts, compresses tokens, builds semantic caching layers, and defines quality metrics with before/after comparisons. - Experiment Framework: Designs A/B tests with power analysis, guardrail metrics, auto-rollback triggers, and statistical significance testing. - Data & ML Infrastructure: Produces event schemas, ETL/warehouse designs, drift monitoring, model registries, and retraining pipelines. - Cost Modeling: Projects API spend at 5x and 10x scale, quantifies optimization strategies, and delivers ROI analysis. - Use Case: Point it at a codebase using OpenAI or Anthropic APIs to receive a full audit of token usage, a caching implementation, and a cost model showing savings from model downgrades. ## Quick Start Ask the agent to audit this codebase for LLM API usage and produce a cost model with optimization recommendations.

Frequently Asked Questions about data-scientist

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce LLM API costs in my application?▼

Start by auditing every API call for token counts and cost per call, then apply prompt compression, semantic caching for low-temperature calls, and model downgrades for simple tasks. The skill quantifies each strategy's savings with before/after metrics.

How to design A/B tests for LLM features?▼

Define a null hypothesis, run a power analysis to compute required sample size, and set guardrail metrics like error rate and p95 latency with auto-rollback thresholds. Apply Bonferroni or Benjamini-Hochberg correction when testing multiple metrics.

When should I cache LLM responses?▼

Only cache responses generated with temperature at or below 0.5, since higher temperatures produce non-deterministic output unsuitable for reuse. Use exact-match hashing of normalized prompts, with TTL-based expiration and hit-rate tracking.

Does this work for codebases that only use LLM APIs without custom models?▼

Yes. API-only consumers still get retry logic, fallback models, cost monitoring, and quality regression detection. The system classification step routes LLM-powered apps to phases 1, 2, 3, and 6, skipping custom ML infrastructure.

What are the limitations of prompt optimization?▼

Optimizations are rejected if quality drops below a defined minimum threshold regardless of cost savings. Every change requires a measured baseline of tokens, cost, latency, and quality score before it can be validated.