/research:data-quality-pipelinefrom research
Use when profiling, cleaning, merging, or validating tabular research data through encoding, tidy-structure, anomaly, lineage, and quality gates; use dataset-discovery-and-analysis first when the dataset still needs to be found or retrieved.
Ships in research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Single entry skill for any tabular data passing through the engine. Detail in references/; SKILL.md is the orchestrator. For finding datasets in the first place, load dataset-discovery-and-analysis.
raw bytes
↓ (1) encoding repair → references/encoding-and-unicode.md
clean text bytes
↓ (2) tidy check → references/tidy-data-craft.md
tidy DataFrame
↓ (3) clean → references/cleaning-pandas.md
clean DataFrame
↓ (4) outlier panel → references/anomaly-detection.md
flagged DataFrame
↓ (5) merge audit → references/merge-discipline.md (only if joining)
merged DataFrame
↓ (6) quality score → references/dataset-quality-four-axes.md
DataQualityScore + manifest
↓ (7) ship gate
output Parquet + manifest
Skipping a step produces silent data quality failures downstream.
| Stage | Reference | What it does |
|---|---|---|
| 1. Encoding repair | references/encoding-and-unicode.md | charset-normalizer + ftfy + BOM strip; runs before any pandas read |
| 2. Tidy check | references/tidy-data-craft.md | Wickham violation linter (columns_are_values / multiple_vars_per_column / vars_split_rows_cols) |
| 3. Cleaning | references/cleaning-pandas.md | Walker + Chen recipe library — types, missing values, duplicates, normalisation |
| 4. Anomaly detection | references/anomaly-detection.md | IQR + z-score + Isolation Forest panel; skew-aware method selection |
| 5. Merge audit | references/merge-discipline.md | Walker checkmerge + Chen validate= cardinality; mandatory before any join |
| 6. Quality score | references/dataset-quality-four-axes.md | Four-axis composite (completeness · usefulness · reliability · relevance), default weights (0.25, 0.25, 0.30, 0.20), passes(threshold=0.7) gate |
| Analytics method gate | references/analytics-quality-method-gate.md | Descriptive / diagnostic / predictive / prescriptive method-fit gate before quantitative claims, forecasts, dashboards, or models |
| Analysis run and reporting | ../research-design/references/quantitative-analytics-method.md | After the gate passes: method choice, validation, chart choice, and the finding format |
| Cross-cutting | tools/data/profiler.py | Profile DataFrame: dtypes, distributions, cardinality, skew/kurt hints |
Every dataset that ships carries a score with these axes:
| Axis | Default weight | What it measures |
|---|---|---|
| Completeness | 0.25 | Missing-value rate per column; required-column presence |
| Usefulness | 0.25 | Required columns present; cardinality fit; type validity |
| Reliability | 0.30 | Source tier (source-evaluation) + provenance + duplicate rate |
| Relevance | 0.20 | Match to research topic, geographic scope, time range |
Composite score: weighted sum. Default ship gate: composite ≥ 0.70. Lower thresholds require explicit override and reason.
Every dataset that survives the pipeline produces:
projects/<id>/data/dataset.parquet # the cleaned data
projects/<id>/data/dataset.profile.json # profile (dtypes, distributions, cardinality)
projects/<id>/data/dataset.dq.json # four-axis quality score
projects/<id>/data/dataset.manifest.json # provenance: source, fetched_at, encoding,
# cleaning_steps_applied, tidy_violations_fixed,
# outliers_flagged, merge_audit, dq_score
Without the manifest, the data is not shippable.
pd.read_csv before references/encoding-and-unicode.md has run. Default encoding='utf-8-sig'.references/tidy-data-craft.md; lint for the three Wickham violations; fix them.validate= on every merge. Load references/merge-discipline.md. Default validate='one_to_one' or 'one_to_many' — never default-merge.references/anomaly-detection.md. IQR for skewed; z-score for normal; Isolation Forest for high-dimensional. Consensus across 2+ methods before flag.references/dataset-quality-four-axes.md. Composite ≥ 0.70 default; sub-axis ≥ 0.50 each.references/analytics-quality-method-gate.md
before statistical tests, forecasts, dashboards, or ML models. Downgrade the claim if
the data only supports a simpler analytics type.pd.read_csv with no encoding repair → silent BOM-corruption of first column header.pd.merge → silent fan-out duplication in many-to-many joins.n_rows without n_duplicates_removed, n_outliers_flagged, n_merge_orphans.validate=; orphan rate within threshold; fan-out factor sane.source-evaluation reliability tier (mandatory).| Input | Source/provider | If absent |
|---|---|---|
| Raw dataset, schema, provenance, intended analysis | Data owner and retrieval record | Stop transformation; request source and purpose |
| Quality thresholds and join keys | Analysis plan | Profile first and mark thresholds undecided |
Profiling is read-only by default. Cleaning, overwriting, deleting, merging, publishing, or certifying data requires explicit authority and preserved raw inputs.
Without executable tools or complete metadata, return a manual profile with unassessed axes and never label the dataset clean or fit for use.
| Choice | Action | Failure/risk avoided |
|---|---|---|
| Encoding damage is reversible | Repair on a copy and log mapping | Silent corruption |
| Join cardinality differs from expectation | Stop merge | Row multiplication |
| Quality threshold fails | Block downstream analysis | Misleading result |
A many-to-many join that was expected to be one-to-one stops before output and records the duplicate keys.
dataset-discovery-and-analysis — find the data before this pipeline runs.source-evaluation — reliability axis depends on this.web-scraping-foundations — when the data has to be scraped.research-orchestration — when the data is feeding a research project.report-and-proposal-craft, academic-writing — when the data feeds a written artifact.| Artefact | Consumer | Acceptance condition |
|---|---|---|
| Clean dataset, manifest, profile, and issue register | Analyst and downstream workflow | Raw data is preserved and every transformation, join, exception, and unassessed axis is recorded |
| Evidence | Consumer | Acceptance condition |
|---|---|---|
| Before-and-after profiles, checksum, and transformation log | Data reviewer and release owner | Results reproduce from the preserved raw input and logged operations |
A many-to-many join expected to be one-to-one stops before output, records duplicate keys, repairs the mapping, and reruns validation.
AGENTS.md (opens in a new tab)CLAUDE.md (opens in a new tab)README.md (opens in a new tab)references/analytics-quality-method-gate.md (opens in a new tab)references/anomaly-detection.md (opens in a new tab)references/cleaning-pandas.md (opens in a new tab)references/dataset-quality-four-axes.md (opens in a new tab)references/encoding-and-unicode.md (opens in a new tab)references/merge-discipline.md (opens in a new tab)references/tidy-data-craft.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub peterbamuhigire/chwezi-research-engine --plugin research59 skills in this plugin
/00-meta-initializationUse when starting a scaffolded research workspace that needs an explicit project profile, methodology, audience-output matrix, wave roadmap, and dispatch gate; do not use for routine work inside an already initialised project./academic-reporting-standardsUse when an academic paper, thesis, dissertation, journal article, systematic review, or examinable artefact must follow a named reporting or examination standard; use academic-writing instead for prose craft without a reporting-standard decision./academic-writingUse when drafting or revising an academic paper, essay, thesis, or dissertation with source-away composition, originality, citation, synthesis, voice, and register controls; use academic-reporting-standards for selecting formal study-reporting rules.