New to Claude Skills? Learn how to install them →

jeremylongshore on GitHub

PortalJS Check Data Quality

Free

Audit CSV/TSV files for data quality issues.

Get this skill

Free · Opens the source repo

What PortalJS Check Data Quality does

PortalJS Check Data Quality is a command-line skill designed to help users audit the quality of tabular data files, specifically CSV and TSV formats. This tool is particularly useful for data professionals and developers who need to ensure that their datasets are clean and ready for publication or analysis. The skill performs a comprehensive read-only audit, analyzing various aspects of the data, such as null values, data types, duplicates, and more. It generates a structured JSON report that highlights potential issues and provides recommendations for improvement.

The audit process begins by accepting either a local file path or a remote URL to the dataset. The skill validates the input, ensuring that only CSV or TSV files are processed. Once the file is ready, it profiles each column, gathering metrics like null counts, distinct values, inferred types, and numeric ranges. This detailed profiling helps users identify critical issues, such as duplicate rows or mixed-type columns, which can lead to problems in data analysis or visualization.

After completing the audit, the skill outputs a JSON report that includes the status of the audit (ok, warning, or critical), detailed findings, and recommendations for addressing any identified issues. This report is printed to standard output, allowing users to easily review and act on the results. Importantly, the skill does not modify the source file or any other project files, maintaining data integrity throughout the auditing process.

PortalJS Check Data Quality is ideal for data scientists, analysts, and developers who need to validate their datasets before sharing them publicly or using them in applications. It provides a straightforward way to ensure data quality, thereby reducing errors and improving the reliability of data-driven decisions.

When to use it

Use this skill when you need to audit a dataset for quality issues prior to publication or when diagnosing rendering problems in showcases.

When not to use it

This skill is not suitable for editing or modifying datasets; it is strictly a read-only auditing tool.

What you can build with it

Pre-publish Dataset Validation

Audit a local CSV file before publishing it to ensure it meets quality standards.

Diagnosing Showcase Issues

Use the skill to identify data quality problems that may cause incorrect rendering in visualizations.

Remote Data Quality Check

Audit a remote CSV file over HTTPS to validate its integrity before using it in applications.

How to install PortalJS Check Data Quality

View source

1. Install with the skills CLI

npx skills add jeremylongshore/claude-code-plugins-plus-skills/portaljs-check-data-quality --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by jeremylongshore

PortalJS — Check Data Quality

Overview

Run a read-only quality audit of one CSV or TSV file, local or remote, and return a structured JSON report. The audit profiles every column — null/blank counts, inferred value types, numeric ranges, likely year/date fields — and flags duplicate rows, duplicate values in identifier-like columns, ambiguous overlapping year columns (e.g. calendar year vs fiscal year), and mixed-type columns. It never edits the source file, datasets.json, or any other project file; it only reads the target file (a remote URL is downloaded to a temp file that is deleted before the run ends) and prints a report. Use it before publishing a dataset with portaljs-add-dataset, or to diagnose why a showcase renders wrong.

Prerequisites

  • python3 on PATH — the audit logic runs as an embedded Python script; nothing is installed.
  • One CSV or TSV file, given as a local path or an http/https URL. Only one file per run.

Instructions

The canonical, full step-by-step workflow is .claude/commands/portaljs-check-data-quality.md — the single source of truth. Read and follow it when executing. Summary:

  1. Gather input — the file path or URL to audit. If missing, ask for it; never dead-end.
  2. Resolve the source: if it's an http/https URL, download it to a temp file first; otherwise use the local path as given.
  3. Validate the extension is .csv or .tsv. If not, or the file is missing, or the header row is empty, stop and surface the error JSON as-is — do not guess a fix.
  4. Profile every column: null/blank counts, distinct values, sample values, inferred per-value type (boolean/integer/float/date/string), numeric min/max, and year range for columns whose name looks year-like.
  5. Derive findings from the profiles — duplicate rows, missing-value ratios, invalid year values, mixed types, suspect negative values, duplicate identifier values, and ambiguous overlapping year columns — each tagged critical, warning, or info.
  6. Assemble the JSON report (status, file metadata, findings, recommendations, column_profiles), print it, and clean up the temp file if one was created.
  7. Relay the report to the user as-is; do not modify the source file, datasets.json, or any other project file based on the findings — that's a separate, explicit step.

Output

A single JSON object printed to stdout:

  • statusok, warning, or critical.
  • file, file_name, source_type (local or url), row_count, column_count.
  • findings — structured issues, most severe first.
  • recommendations — de-duplicated suggested next steps.
  • column_profiles — per-column summary (nulls, blanks, distinct count, sample values, inferred types, numeric/year ranges).

No files are created or modified. A remote URL's temp download is removed on exit, success or failure alike.

Error Handling

SymptomCauseFix
"File ... is not available."Local path is wrong, or the URL download failedVerify the path or URL is reachable and retry.
"Only CSV and TSV files are supported right now."File extension isn't .csv/.tsvConvert the file, or point to its tabular source instead.
"... does not contain tabular headers."File is empty or the header row is malformedOpen the file and confirm it has a valid, non-empty header line.
Command hangs on a URLRemote host is slow or blocks non-browser requestsDownload the file manually and audit the local copy instead.
python3: command not foundPython 3 isn't installed or not on PATHInstall Python 3, or run the audit where it's available.
Report looks truncated in the terminalLarge report wrapped/paginated by the shellRedirect to a file (> report.json) and open it separately.

Examples

Example 1 — Audit a local CSV before publishing

/portaljs-check-data-quality ./public/data/trash.csv

Example 2 — Audit a remote CSV over HTTPS

/portaljs-check-data-quality https://example.com/trash.csv

Example 3 — Audit a TSV and save the report for review

bash scripts/check-data-quality.sh ./data/emissions.tsv > /tmp/emissions-quality.json

Example 4 — Read a critical status report

{
  "status": "critical",
  "findings": [
    { "severity": "critical", "check": "duplicate_rows", "message": "42 duplicate rows found." }
  ],
  "recommendations": ["Review and deduplicate repeated rows if they are not intentional."]
}

Fix the flagged rows/columns, then re-run the audit before publishing.

Resources

Frequently asked questions about PortalJS Check Data Quality

Similar skills