Agent Skillsphuryn/pm-skills › dummy-dataset

dummy-dataset

GitHub

生成用于测试的逼真虚拟数据集,支持自定义列、约束和多种输出格式(CSV/JSON/SQL/Python脚本),适用于开发、演示及测试环境的数据填充。

pm-execution/skills/dummy-dataset/SKILL.md phuryn/pm-skills

Trigger Scenarios

创建测试数据 构建模拟数据集 为开发或演示生成示例数据

Install

npx skills add phuryn/pm-skills --skill dummy-dataset -g -y
More Options

Non-standard path

npx skills add https://github.com/phuryn/pm-skills/tree/main/pm-execution/skills/dummy-dataset -g -y

Use without installing

npx skills use phuryn/pm-skills@dummy-dataset

指定 Agent (Claude Code)

npx skills add phuryn/pm-skills --skill dummy-dataset -a claude-code -g -y

安装 repo 全部 skill

npx skills add phuryn/pm-skills --all -g -y

预览 repo 内 skill

npx skills add phuryn/pm-skills --list

SKILL.md

Frontmatter
{
    "name": "dummy-dataset",
    "description": "Generate realistic dummy datasets for testing with customizable columns, constraints, and output formats (CSV, JSON, SQL, Python script). Use when creating test data, building mock datasets, or generating sample data for development and demos."
}

Dummy Dataset Generation

Generate realistic dummy datasets for testing with customizable columns, constraints, and output formats (CSV, JSON, SQL, Python script). Creates executable scripts or direct data files for immediate use.

Use when: Creating test data, generating sample datasets, building realistic mock data for development, or populating test environments.

Arguments:

  • $PRODUCT: The product or system name
  • $DATASET_TYPE: Type of data (e.g., customer feedback, transactions, user profiles)
  • $ROWS: Number of rows to generate (default: 100)
  • $COLUMNS: Specific columns or fields to include
  • $FORMAT: Output format (CSV, JSON, SQL, Python script)
  • $CONSTRAINTS: Additional constraints or business rules

Step-by-Step Process

  1. Identify dataset type - Understand the data domain
  2. Define column specifications - Names, data types, and value ranges
  3. Determine row count - How many sample records needed
  4. Select output format - CSV, JSON, SQL INSERT, or Python script
  5. Apply realistic patterns - Ensure data looks authentic and valid
  6. Add business constraints - Respect business logic and relationships
  7. Generate or script data - Create executable output
  8. Validate output - Ensure data quality and completeness

Template: Python Script Output

import csv
import json
from datetime import datetime, timedelta
import random

# Configuration
ROWS = $ROWS
FILENAME = "$DATASET_TYPE.csv"

# Column definitions with realistic value generators
columns = {
    "id": "auto-increment",
    "name": "first_last_name",
    "email": "email",
    "created_at": "timestamp",
    # Add more columns...
}

def generate_dataset():
    """Generate realistic dummy dataset"""
    data = []
    for i in range(1, ROWS + 1):
        record = {
            "id": f"U{i:06d}",
            # Generate values based on column definitions
        }
        data.append(record)
    return data

def save_as_csv(data, filename):
    """Save dataset as CSV"""
    with open(filename, 'w', newline='') as f:
        writer = csv.DictWriter(f, fieldnames=data[0].keys())
        writer.writeheader()
        writer.writerows(data)

if __name__ == "__main__":
    dataset = generate_dataset()
    save_as_csv(dataset, FILENAME)
    print(f"Generated {len(dataset)} records in {FILENAME}")

Example Dataset Specification

Dataset Type: Customer Feedback

Columns:

  • feedback_id (auto-increment, U001, U002...)
  • customer_name (realistic names)
  • email (valid email format)
  • feedback_date (dates last 90 days)
  • rating (1-5 stars)
  • category (Bug, Feature Request, Complaint, Praise)
  • text (realistic feedback)
  • product (electronics, clothing, home)

Constraints:

  • Ratings skewed: 40% 5-star, 30% 4-star, 20% 3-star, 10% 1-2 star
  • Bug category only with ratings 1-3
  • Feature requests only with ratings 3-5
  • Email domains realistic (gmail, yahoo, company.com)

Output Deliverables

  • Ready-to-execute Python script OR direct data file
  • CSV file with proper headers and formatting
  • JSON file with valid structure and types
  • SQL INSERT statements for database population
  • Data validation and constraint compliance
  • Realistic, business-appropriate values
  • Documentation of data generation logic
  • Quick-start instructions for using the dataset

Output Formats

CSV: Flat tabular format, easy to import into spreadsheets and databases

JSON: Nested structure, ideal for APIs and NoSQL databases

SQL: INSERT statements, directly executable on relational databases

Python Script: Executable generator for custom or large datasets

Version History

  • 18468a9 Current 2026-07-25 10:30

Same Skill Collection

pm-ai-shipping/skills/intended-vs-implemented/SKILL.md
pm-data-analytics/skills/ab-test-analysis/SKILL.md
pm-data-analytics/skills/cohort-analysis/SKILL.md
pm-data-analytics/skills/sql-queries/SKILL.md
pm-execution/skills/brainstorm-okrs/SKILL.md
pm-execution/skills/create-prd/SKILL.md
pm-execution/skills/job-stories/SKILL.md
pm-execution/skills/outcome-roadmap/SKILL.md
pm-execution/skills/pre-mortem/SKILL.md
pm-execution/skills/prioritization-frameworks/SKILL.md
pm-execution/skills/release-notes/SKILL.md
pm-execution/skills/retro/SKILL.md
pm-execution/skills/sprint-plan/SKILL.md
pm-execution/skills/stakeholder-map/SKILL.md
pm-execution/skills/strategy-red-team/SKILL.md
pm-execution/skills/summarize-meeting/SKILL.md
pm-execution/skills/test-scenarios/SKILL.md
pm-execution/skills/user-stories/SKILL.md
pm-execution/skills/wwas/SKILL.md
pm-go-to-market/skills/beachhead-segment/SKILL.md
pm-go-to-market/skills/competitive-battlecard/SKILL.md
pm-go-to-market/skills/growth-loops/SKILL.md
pm-go-to-market/skills/gtm-motions/SKILL.md
pm-go-to-market/skills/gtm-strategy/SKILL.md
pm-go-to-market/skills/ideal-customer-profile/SKILL.md
pm-market-research/skills/competitor-analysis/SKILL.md
pm-market-research/skills/customer-journey-map/SKILL.md
pm-market-research/skills/market-segments/SKILL.md
pm-market-research/skills/market-sizing/SKILL.md
pm-market-research/skills/sentiment-analysis/SKILL.md
pm-market-research/skills/user-personas/SKILL.md
pm-market-research/skills/user-segmentation/SKILL.md
pm-marketing-growth/skills/marketing-ideas/SKILL.md
pm-marketing-growth/skills/north-star-metric/SKILL.md
pm-marketing-growth/skills/positioning-ideas/SKILL.md
pm-marketing-growth/skills/product-name/SKILL.md
pm-marketing-growth/skills/value-prop-statements/SKILL.md
pm-product-discovery/skills/analyze-feature-requests/SKILL.md
pm-product-discovery/skills/brainstorm-experiments-existing/SKILL.md
pm-product-discovery/skills/brainstorm-experiments-new/SKILL.md
pm-product-discovery/skills/brainstorm-ideas-existing/SKILL.md
pm-product-discovery/skills/brainstorm-ideas-new/SKILL.md
pm-product-discovery/skills/identify-assumptions-existing/SKILL.md
pm-product-discovery/skills/identify-assumptions-new/SKILL.md
pm-product-discovery/skills/interview-script/SKILL.md
pm-product-discovery/skills/metrics-dashboard/SKILL.md
pm-product-discovery/skills/opportunity-solution-tree/SKILL.md
pm-product-discovery/skills/prioritize-assumptions/SKILL.md
pm-product-discovery/skills/prioritize-features/SKILL.md

Metadata

Files
0
Version
18468a9
Hash
35ca70a4
Indexed
2026-07-25 10:30

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 03:31
浙ICP备14020137号-1 $방문자$