视觉画布设计
canvas-design
基于设计原则创作静态视觉作品,用于海报与品牌图形。
data-cleaning【文档与办公】Clean, profile, validate, reshape, and document messy tabular, text, JSON, and relational data through an evidence-first, reproducible workflow. Use when preparing data for analysis, reporting, modeling, ingestion, migration, or matching, including AI-suggested repair, entity-match review, score calibration limits, and reversible repair ledgers. Do n…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Treat cleaning as a controlled transformation of an observed dataset, not cosmetic editing. Preserve raw input, state the target use and grain, make every lossy decision explicit, and prove that the cleaned output satisfies a contract.
When a model proposes data transformations, load the AI boundary workflow and use the companion record.
| Need | Read next |
|---|---|
| End-to-end method, scope, and stopping rules | references/methodology.md |
| Choose a library or platform | references/tool-selection.md |
| Missingness, duplicates, types, ranges, categories, dates, joins | references/operations.md |
| Text, identifiers, Unicode, and entity resolution | references/text-and-entity.md |
| Schemas, contracts, validation, drift, scale | references/validation-and-scale.md |
| CLI, OpenRefine, monitoring, and interactive remediation | references/cli-and-interactive-tools.md |
| Source claims and version-sensitive caveats | references/sources.md |
| Plan, logs, exceptions, contracts, or reports | templates/cleaning-plan.md, templates/transformation-log.jsonl, templates/exception-register.csv, templates/schema-contract.yml, templates/quality-report.md |
| Lightweight profile or reconciliation | Run python3 scripts/profile_dataset.py --help or python3 scripts/reconcile_dataset.py --help |
| Script | Purpose | Invocation |
|---|---|---|
scripts/profile_dataset.py | Dependency-free first-pass profiling of a CSV, TSV, or JSONL input without modifying it: missingness, cardinality, type candidates, duplicates, ranges, and value anomalies. Run it at workflow step 3 (Profile before changing) as the evidence-gathering pass before designing any cleaning decision. | python3 scripts/profile_dataset.py data.csv --output profile.json |
scripts/reconcile_dataset.py | Reconciliation between a before and after delimited dataset: row counts, key uniqueness/overlap, and per-column sums (--sum), keyed by --key, writing a machine-readable report. Run it during Validate twice / Review to prove grain preservation and quantify exactly what a transformation changed. | python3 scripts/reconcile_dataset.py raw.csv cleaned.csv --key id --sum amount --output reconciliation.json |
scripts/test_profile_dataset.py | Pytest suite covering the profiler's behavior on representative inputs. Run it after modifying the profiler or when auditing its output; CI discovers it automatically. | python3 -m pytest scripts/test_profile_dataset.py |
scripts/test_reconcile_dataset.py | Pytest suite covering the reconciler's keying, summing, and reporting behavior. Run it after modifying the reconciler or when auditing its output; CI discovers it automatically. | python3 -m pytest scripts/test_reconcile_dataset.py |
A cleaning task is complete only when the output, transformation/decision log, validation evidence, provenance, and unresolved issues exist; raw data remains intact; acceptance checks pass; and a reviewer can reproduce or audit the result. If semantic ambiguity remains, stop at quarantine or escalation rather than inventing a value.
Do not use this skill for inferential statistics or model selection, which belong to data-scientist; for ETL orchestration, storage, or production data-quality operations, route to data-engineering; or for operating a named validation or database platform, route to that tool's skill. This skill supplies cleaning judgment and artifacts those workflows consume.
compatibility); ecosystem tools (OpenRefine, pandas-backed tooling) are optional accelerators covered in references/cli-and-interactive-tools.md.pytest only when running the bundled test suites.