Skip to content

foryourhealth111-pixel/Vibe-Skills / bundled/skills/creating-data-visualizations

creating-data-visualizations

Verified

Create analytical charts and plots from existing data. Use for exploratory or reporting visuals such as bars, lines, scatters, and dashboards; not for publication-grade scientific figures or AI-generated schematics.

FileKindSize
SKILL.mdskill md1.6 KB
assets/README.mdmarkdown456 B
references/README.mdmarkdown620 B
scripts/README.mdmarkdown536 B
scripts/chart_generator.pyscript2.9 KB
scripts/data_analyzer.pyscript4.8 KB
scripts/data_validator.pyscript2.9 KB

scripts/data_validator.py

View on GitHub
#!/usr/bin/env python3
"""
data-visualization-creator - data_validator.py
Validates the input data format and content to prevent errors during visualization.
Generated: 2025-12-10 03:48:17
"""

import os
import sys
import json
import argparse
from pathlib import Path
from datetime import datetime

def process_file(file_path: Path) -> bool:
    """Process individual file."""
    if not file_path.exists():
        print(f"❌ File not found: {file_path}")
        return False

    print(f"πŸ“„ Processing: {file_path}")

    # Add processing logic here based on skill requirements
    # This is a template that can be customized

    try:
        if file_path.suffix == '.json':
            with open(file_path) as f:
                data = json.load(f)
            print(f"  βœ“ Valid JSON with {len(data)} keys")
        else:
            size = file_path.stat().st_size
            print(f"  βœ“ File size: {size:,} bytes")

        return True
    except Exception as e:
        print(f"  βœ— Error: {e}")
        return False

def process_directory(dir_path: Path) -> int:
    """Process all files in directory."""
    processed = 0
    failed = 0

    for file_path in dir_path.rglob('*'):
        if file_path.is_file():
            if process_file(file_path):
                processed += 1
            else:
                failed += 1

    return processed, failed

def main():
    parser = argparse.ArgumentParser(
        description="Validates the input data format and content to prevent errors during visualization."
    )
    parser.add_argument('input', help='Input file or directory')
    parser.add_argument('--output', '-o', help='Output directory')
    parser.add_argument('--verbose', '-v', action='store_true', help='Verbose output')
    parser.add_argument('--config', '-c', help='Configuration file')

    args = parser.parse_args()

    input_path = Path(args.input)

    print(f"πŸš€ data-visualization-creator - data_validator.py")
    print(f"   Category: ai-ml")
    print(f"   Plugin: data-visualization-creator")
    print(f"   Input: {input_path}")

    if args.config:
        if Path(args.config).exists():
            with open(args.config) as f:
                config = json.load(f)
            print(f"   Config: {args.config}")

    # Process input
    if input_path.is_file():
        success = process_file(input_path)
        result = 0 if success else 1
    elif input_path.is_dir():
        processed, failed = process_directory(input_path)
        print(f"\nπŸ“Š SUMMARY")
        print(f"   βœ… Processed: {processed}")
        print(f"   ❌ Failed: {failed}")
        result = 0 if failed == 0 else 1
    else:
        print(f"❌ Invalid input: {input_path}")
        result = 1

    if result == 0:
        print("\nβœ… Completed successfully")
    else:
        print("\n❌ Completed with errors")

    return result

if __name__ == "__main__":
    sys.exit(main())
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall