xiaohongshu
xiaohongshu
Use this skill when the user needs to analyze, clean, or prepare datasets. Helps with listing columns, detecting data types (text, categorical, ordinal, numeric), identifying data quality issues, and cleaning values that don't fit expected patterns. Invoke when users mention data cleaning, data q...
Full skill instructions
This skill helps analyze and clean datasets by detecting data types, identifying quality issues, and suggesting or applying corrections.
When the user requests data cleaning assistance:
scripts/data_quality_report.py for comprehensive quality analysisscripts/analyze_columns.py to get an overview of all columnsscripts/detect_types.py to determine the data type of each columnscripts/value_mapping_generator.py for categorical columns needing standardizationscripts/clean_values.py to fix issuesscripts/validation_report.py to compare before/after and confirm changesAll scripts support multiple file formats with automatic detection:
File format is auto-detected from the extension. You can also explicitly specify the format using the --format parameter.
All scripts should be run using uv for fast, dependency-managed execution:
uv run python scripts/<script_name>.py [arguments]
Or use uvx to run scripts with automatic dependency installation:
uvx --from . python scripts/<script_name>.py [arguments]
Note: The first time you run a script, uv will automatically install the required dependencies (pandas, numpy, openpyxl) in an isolated environment. Subsequent runs will be much faster.
View a random sample of rows from a dataset.
Usage:
uv run python scripts/sample_rows.py <file_path> [--n 10] [--format csv|excel|json|jsonl] [--output table|json|csv] [--seed SEED]
Options:
--n: Number of rows to sample (default: 10)--format: Input file format - csv, excel, json, or jsonl (auto-detected if not specified)--output: Output format - table (human-readable), json, or csv (default: table)--seed: Random seed for reproducibility (optional)Output: Random sample of rows in the specified format
Examples:
# Sample 5 random rows from CSV
python scripts/sample_rows.py data.csv --n 5
# Sample from JSON Lines file
python scripts/sample_rows.py data.jsonl --n 10
# Sample with reproducible results
python scripts/sample_rows.py data.csv --n 10 --seed 42
# Output as JSON
python scripts/sample_rows.py data.xlsx --n 20 --output json
Analyzes all columns in a dataset and provides summary statistics.
Usage:
uv run python scripts/analyze_columns.py <file_path> [--format csv|excel|json|jsonl]
Output: JSON with column names, types, null counts, unique counts, and sample values
Examples:
# Analyze CSV file
python scripts/analyze_columns.py customers.csv
# Analyze JSONL file
python scripts/analyze_columns.py events.jsonl
Detects the semantic type of each column (numeric, categorical, ordinal, text, datetime).
Usage:
uv run python scripts/detect_types.py <file_path> [--format csv|excel|json|jsonl]
Output: JSON mapping columns to detected types with confidence scores
Examples:
# Detect types in CSV
python scripts/detect_types.py data.csv
# Detect types in JSON file
python scripts/detect_types.py data.json
Cleans specific columns based on detected issues.
Usage:
uv run python scripts/clean_values.py <input_file> <output_file> [--operations json_string] [--input-format csv|excel|json|jsonl] [--output-format csv|excel|json|jsonl]
Options:
--operations: JSON string defining cleaning operations--input-format: Input file format (auto-detected if not specified)--output-format: Output file format (auto-detected if not specified)Operations JSON format:
{
"column_name": {
"operation": "trim|lowercase|uppercase|remove_special|fill_missing|convert_type",
"params": {}
}
}
Examples:
# Clean CSV file and output as CSV
python scripts/clean_values.py data.csv cleaned.csv --operations '{"name":{"operation":"trim"}}'
# Clean JSONL file and convert to JSON
python scripts/clean_values.py logs.jsonl cleaned.json --input-format jsonl --output-format json --operations '{"status":{"operation":"lowercase"}}'
# Clean JSON and output as JSONL
python scripts/clean_values.py data.json output.jsonl --output-format jsonl
Generates a comprehensive data quality report with severity levels and completeness scores.
Usage:
uv run python scripts/data_quality_report.py <file_path> [--format csv|excel|json|jsonl] [--output report.json]
Output: JSON report with:
Examples:
# Generate quality report for CSV
python scripts/data_quality_report.py data.csv --output report.json
# Generate report for JSONL file
python scripts/data_quality_report.py logs.jsonl
Auto-generates standardization mappings and Python functions for categorical columns.
Usage:
uv run python scripts/value_mapping_generator.py <file_path> [--column COLUMN] [--threshold 20] [--format csv|excel|json|jsonl] [--output-functions functions.py]
Output: JSON with:
Options:
--column: Analyze specific column only--threshold: Max unique values to consider categorical (default: 20)--format: File format - csv, excel, json, or jsonl (auto-detected if not specified)--output-functions: Write Python functions to fileExamples:
# Generate mappings for all categorical columns
python scripts/value_mapping_generator.py survey.csv
# Generate mappings for specific column in JSONL file
python scripts/value_mapping_generator.py events.jsonl --column user_type
Compares original and cleaned datasets to validate transformations.
Usage:
uv run python scripts/validation_report.py <original_file> <cleaned_file> [--format csv|excel|json|jsonl] [--output validation.json]
Output: JSON report with:
Examples:
# Validate CSV cleaning
python scripts/validation_report.py original.csv cleaned.csv
# Validate JSONL cleaning
python scripts/validation_report.py original.jsonl cleaned.jsonl --output validation.json
sample_rows.py to show user a preview of their datadata_quality_report.py to assess overall qualityanalyze_columns.py to see all columnsdetect_types.py to determine typesclean_values.py with appropriate operationsvalidation_report.py to verify changesdata_quality_report.py for quality overviewvalue_mapping_generator.py for categorical columnsvalidation_report.py--input-format and --output-formatxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience