/journalism-tools:journalistic-data-preprocessingfrom journalism-tools
Loads, audits, and cleans messy data files (Excel, CSV, JSON) for investigative journalism with full provenance tracking and human oversight. Every transformation is documented and requires approval.
Ships in journalism-tools. 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.
Preprocessing data for journalism requires higher standards than typical data science: every transformation must be traceable, every decision documented, and the human must approve substantive changes.
1. LOAD → Ingest data, establish provenance columns
2. AUDIT → Systematically examine every column for issues
3. REPORT → Present findings, proposed fixes, questions to user
4. TRANSFORM → After approval, execute documented transformations
5. VALIDATE → Confirm transformations, output final dataset + audit trail
Before loading, clarify:
Always add these columns to loaded data:
'_source_file' # Original filename
'_source_sheet' # Sheet name (if Excel) or 'csv'
'_source_row' # 1-indexed row number in original file
'_load_timestamp' # When this record was loaded
Systematically examine every column.
| Category | What to Check |
|---|---|
| Type | Is inferred type correct? Mixed types? |
| Missing | How many nulls? Pattern to missingness? |
| Cardinality | Unique values vs total rows |
| Distribution | Outliers? Impossible values? |
| Text quality | Encoding issues? Entity variations? Typos? |
| Dates | Consistent format? Future or distant past dates? |
| Numeric | Scale consistent? Negative where unexpected? |
Generate a report for human review. See references/report-template.md for format.
# Data Quality Report: [Dataset Name]
## Summary
- Total rows / columns / columns with issues
## Critical Issues (Require Decision)
[Issues that could affect analysis validity]
## Warnings (Review Recommended)
[Issues that may or may not need fixing]
## Proposed Transformations
[Each transformation with rationale]
## Questions for Human Review
[Decisions that require domain knowledge]
After human approval, execute transformations with full documentation.
cleaned_[name].csv) - Provenance columns preservedtransformation_log.csv) - Every change documenteddata_audit_report.md) - Issues, decisions, resolutionsentity_mapping_[column].csv) - If standardization applied| Decision Type | Artifact to Generate |
|---|---|
| Entity variations | Frequency table + proposed mapping |
| Outliers | Distribution summary + flagged values |
| Missing data | Missingness by column summary |
| Duplicates | Sample duplicate groups |
references/report-template.md - Full report template with examplesWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
journalism, data-preprocessing, data-quality, provenance, audit-trail
npx claudepluginhub nhagar/claude-plugins-journalism --plugin journalism-tools6 skills in this plugin
/document-extractorExtract structured data from documents that resist standard parsing, such as redacted records, scanned forms, inconsistent tables, and OCR artifacts. Use this skill when a journalist needs to transform messy PDFs or images into structured JSON with full provenance tracking. Triggers on requests involving FOIA documents, court records, financial disclosures, government forms, leaked documents, or any document described as "hard to parse," "scanned," "redacted," or "inconsistent."/faraQuery the US DOJ Foreign Agents Registration Act (FARA) public eFile API — look up registrants, their foreign principals, short-form registrants, and PDF filing URLs. Use whenever the user mentions FARA, FARA.gov, efile.fara.gov, foreign agents, foreign-principal filings, foreign lobbying disclosures, or needs to enrich people/company records with FARA registration data, even when they don't explicitly say "FARA API"./python-runnerRun Python scripts with automatic dependency management using uv. Use when executing Python code that may have package dependencies, when the user doesn't have a Python environment set up, or when you need isolated script execution without polluting system packages. Handles dependency installation automatically—no manual pip install or virtual environment setup required./structured-data-analysis-journalismAnalyze preprocessed data for investigative journalism with full transparency. Use when a journalist has clean, preprocessed data ready for analysis and needs to identify patterns, anomalies, relationships, or statistical findings that support a story. Triggers include requests to analyze data, find patterns, identify outliers, cross-reference records, calculate statistics, or answer specific investigative questions. Complements the structured-data-preprocessing skill. Emphasizes simple, legible analyses over complex methods—every finding must be explainable to editors and defensible under scrutiny./tipsheet-generatorGenerate investigative journalism tipsheets from unfamiliar data collections. Use this skill whenever a user provides a dataset, document collection, database, or other raw material and wants to find leads, signals, patterns, outliers, or story tips — especially when the data is large, messy, or unfamiliar. Also trigger when the user says things like "what's in here", "anything interesting in this data", "find me leads", "tipsheet", "story ideas from this", "what jumps out", or when they drop a large dataset and want an initial assessment. This skill handles everything from a single CSV to multi-gigabyte collections with millions of records.
Other plugins' skills for the same job