skill-data-science
Skill0 starsChanged 3 months agoMITView on GitHub
Data science workflows, exploratory data analysis (EDA), data pipelines, and validation. MUST ACTIVATE when analyzing datasets, building ETL/ingestion pipelines, handling Pandas/Polars/NumPy dataframes, or managing Jupyter notebooks.
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- core/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- avoid-ai-writingSkill
- c-cpp-systemsSkill
- doubt-driven-developmentSkill
- marketing-copywritingSkill
- mempalace-recallSkill
- mempalaceSkill
- mempalace-taskSkill
- retro-emulation-engineeringSkill
- seo-optimization-and-auditSkill
- skill-ai-mlSkill
- skill-backend-architectSkill
- skill-codebase-onboardingSkill
- skill-code-reviewSkill
- skill-context-engineeringSkill
- skill-creative-designSkill
- skill-data-analysisSkill
- skill-design-engineeringSkill
- skill-devops-cloudSkill
- skill-emulator-wasmSkill
- skill-frontend-architectSkill
- skill-graph-analyticsSkill
- skill-graphics-webglSkill
- skill-low-level-programmingSkill
- skill-master-orchestratorSkill
- skill-mcp-builderSkill
- skill-monorepo-architectSkill
- skill-osint-engineeringSkill
- skill-plugin-architectureSkill
- skill-qa-engineerSkill
- skill-researchSkill
- skill-resume-tailorSkill
- skill-stealth-scrapingSkill
- skill-system-diagnosticsSkill
- skill-web-architectureSkill
- skill-web-performanceSkill
- spec-driven-developmentSkill
- spec-minerSkill
- wasm-emscriptenSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 6 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Phase 1 (Setup): Use uv for strict environment management.
- Very specific: line 28
Phase 4 (Hypothesis Testing): Use scipy.stats for rigorous testing (e.g., T-tests, ANOVA).
- Very specific: line 29
Phase 5 (Reporting): Use plotly for interactive visualizations.
- Distinctive: line 42
Freshness Monitoring: Ensure timestamps on incoming data indicate it is up-to-date.
- Very specific: line 46
Engine: Use curl_cffi for TLS fingerprint impersonation to match real browsers.
- Distinctive: line 49
Proxy Rotation: Use residential proxies for distributed scraping, rotating IPs intelligently.
- Very specific: line 50
Compliance: Always check robots.txt and Terms of Service.
- Distinctive: line 51
Testing: ALWAYS test parsing logic on offline HTML fixtures.
- Distinctive: line 52
Validation: Use Pydantic for schema-first validation of scraped JSON/HTML data to catch silent structural changes.
- Distinctive: line 53
Persistence: Use SQLite or GPKG (for geospatial) for local state tracking of seen items to resume interrupted jobs.
- Distinctive: line 56
Relational Stitching: Use robust relational IDs (e.g., ZIP codes, standardized FIPS codes) to consolidate disparate datasets.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Data Science & Ingestion Skill
This skill manages the end-to-end data lifecycle: from stealth ingestion to analytical reporting, ensuring data quality and reproducibility.
Overview
Data science requires rigor in exploration, pipelines, and ingestion. This skill mandates structured workflows that prioritize verification, data integrity, and responsible collection over quick, unmaintainable scripts.
When to Use
- Performing Exploratory Data Analysis (EDA).
- Building automated data pipelines and ETL processes.
- Developing web scrapers and data ingestion tools.
- Unifying datasets and building master databases.
When NOT to Use
- General software engineering not involving data pipelines.
- UI/UX design.
1. Notebook-Driven Workflow
The deliverable for analysis is a well-documented Jupyter Notebook.
- Phase 1 (Setup): Use
uvfor strict environment management. Load data usingpandasorpolars. Define all imports and constants at the top. - Phase 2 (EDA): Perform systematic checks using
pandas-profilingor manual.describe(),.info(), and.value_counts(). Useseabornormatplotlibfor visualizations. Handle missing values and outliers with explicit rationale. - Phase 3 (Feature Engineering): Apply normalization, scaling (e.g., StandardScaler), and create interaction terms. Document the mathematical justification for transformations.
- Phase 4 (Hypothesis Testing): Use
scipy.statsfor rigorous testing (e.g., T-tests, ANOVA). Build baseline models withscikit-learnbefore complex models. - Phase 5 (Reporting): Use
plotlyfor interactive visualizations. Create a top-level markdown summary of key findings and business impact.
2. EDA Checklist
- Distribution Plots: Visualize continuous variables with histograms/KDEs.
- Null Analysis: Quantify missingness (MCAR, MAR, MNAR) and visualize with heatmaps.
- Dtype Verification: Ensure dates are datetime objects, categoricals are category types, etc.
- Correlation Matrix: Check for multicollinearity using Pearson/Spearman heatmaps.
- Cardinality Checks: Assess unique values in categorical columns to prevent high-cardinality explosion in one-hot encoding.
- Temporal Patterns: Plot time-series data to identify seasonality and trends.
3. Data Pipeline Quality Gates
- Schema Validation: Enforce schemas at every stage (ingestion, processing, output) using tools like Great Expectations or Pydantic.
- Completeness Checks: Assert that row counts and key metrics fall within expected historical bounds.
- Freshness Monitoring: Ensure timestamps on incoming data indicate it is up-to-date; alert on stale data.
4. Stealth Data Ingestion (Scraping)
Operating in adversarial environments requires strict stealth profiles and ethical consideration.
- Engine: Use
curl_cffifor TLS fingerprint impersonation to match real browsers. - Stealth: Implement random Gaussian timing (e.g., 3-8s delays), human-like scrolling, and realistic user-agent rotation.
- Rate Limiting: Strictly respect target server capacity. Throttle requests dynamically based on response times and 429 status codes.
- Proxy Rotation: Use residential proxies for distributed scraping, rotating IPs intelligently.
- Compliance: Always check
robots.txtand Terms of Service. Do not scrape behind authenticated walls unless authorized. - Testing: ALWAYS test parsing logic on offline HTML fixtures. Never hammer live servers for debugging.
- Validation: Use Pydantic for schema-first validation of scraped JSON/HTML data to catch silent structural changes.
- Persistence: Use SQLite or GPKG (for geospatial) for local state tracking of seen items to resume interrupted jobs.
5. Data Unification
- Relational Stitching: Use robust relational IDs (e.g., ZIP codes, standardized FIPS codes) to consolidate disparate datasets.
- Entity Resolution: Apply fuzzy matching (e.g., Levenshtein distance) and probabilistic record linkage when unique IDs are missing.
- Schema Harmonization: Map varied incoming column names and formats to a strict, central ontology.
- Master Analytical Database: Aim for a unified
master_analytical.gpkgor SQL database. Ensure a single source of truth.
6. Methodological Verification
- Statistical Assumptions: Explicitly verify assumptions (normality, homoscedasticity, independence) before running tests.
- Sample Sizes: Calculate statistical power and ensure adequate sample sizes for experiments.
- Experimental Design: Validate A/B test setup, control groups, and guard against confounding variables and selection bias.
7. Anti-Rationalization Table
| Rationalization | Correction |
| "The notebook runs end-to-end so it works" | BLOCKED: Notebooks hide state bugs. Restart the kernel and run all cells to verify reproducibility. |
| "This dataset is well-known so I don't need EDA" | BLOCKED: Even standard datasets can have local corruption, parsing errors, or unexpected formats. EDA is non-negotiable. |
| "Scraping without rate limiting is fine for small jobs" | BLOCKED: It is unethical and risks immediate IP bans. Always implement delays. |
| "The data transformations are obvious" | BLOCKED: Document every transformation mathematically and logically. What is obvious today is opaque tomorrow. |
| "I'll clean the data later" | BLOCKED: Data quality issues compound downstream. Clean data at the point of ingestion or first touch. |
8. Red Flags
- Hardcoded credentials or paths in notebooks.
- Ignoring warnings from Pandas or Scikit-Learn.
- Training models on unscaled or un-normalized data without justification.
- Scraping scripts that crash on the first missing DOM element.
- Merging dataframes without asserting expected output row counts.
9. Verification Gates
- Does the notebook execute flawlessly from a fresh kernel?
- Are all data pipeline inputs and outputs validated against a schema?
- Does the scraper use offline fixtures for testing?
- Are all statistical assumptions verified before drawing conclusions?
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

