Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

domo-data-generator多莫数据生成器

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

960

周安装

40

GitHub Stars

14

下载量

320
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:domo-data-generator(多莫数据生成器)
来源仓库:https://github.com/stahura/domo-ai-vibe-rules
仓库路径:skills/domo-data-generator
安装命令:
npx skills add https://github.com/stahura/domo-ai-vibe-rules --skill domo-data-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/stahura/domo-ai-vibe-rules --skill domo-data-generator

简介

该技能生成跨业务平台的真实样例数据并上传至 Domo。

  • 适用于演示环境搭建、报表原型开发和数据分析教学场景。
  • 内置 Salesforce、Google Analytics 等多个来源的数据模型和实体关联。
  • 使用前需确认 Domo API 权限和数据保留策略。
  • domo-data-generator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Domo Sample Data Generator

Generate realistic, cross-referenced sample data for Domo using the datagen CLI.

Repository: https://github.com/brrink/domo_data_generator


Overview

The generator creates sample data mirroring major business platforms with consistent cross-source entity integrity, then uploads it to Domo. It includes:

  • 18 pre-built datasets across 6 source categories (Salesforce, Google Analytics, Financial, Marketing, Health, AdPoint)
  • YAML-driven catalog for easy dataset additions
  • Shared entity pool (companies, people, products, sales reps, campaigns)
  • Date rolling to keep data looking current
  • Direct Domo integration (create datasets, upload, set connector icons)
  • Structured JSON output by default (AI-agent-friendly)
  • pipx installable -- runs from any directory

Setup

# Install globally with pipx (recommended)
pipx install git+https://github.com/brrink/domo_data_generator.git

# Initialize a working directory
mkdir my-domo-data && cd my-domo-data
datagen init

# Edit .env with your Domo credentials

If .env.example is missing or you want a clean start, create .env in the working directory with:

cat > .env <<'EOF'
DOMO_CLIENT_ID=your_client_id_here
DOMO_CLIENT_SECRET=your_client_secret_here
DOMO_API_HOST=api.domo.com
DOMO_INSTANCE=your_instance_name
DOMO_SET_CONNECTOR_TYPE=false
EOF

Required Environment Variables

VariablePurpose
DOMO_CLIENT_IDOAuth client identifier
DOMO_CLIENT_SECRETOAuth client secret
DOMO_API_HOSTAPI endpoint hostname
DOMO_INSTANCEDomo instance name
DOMO_SET_CONNECTOR_TYPEEnable connector icon customization (optional, default: false)
Auth boundary note: domo_data_generator uses its own public-API/OAuth credential flow and does not run through community-domo-cli or ryuu session auth. Current tooling boundary: most Product API automation should use community-domo-cli, but datagen dataset create/upload in this skill currently depends on python -m datagen with .env OAuth credentials (DOMO_CLIENT_ID / DOMO_CLIENT_SECRET).

CLI Reference

Entry point: datagen [OPTIONS] COMMAND [ARGS]

Global Options

OptionDescription
--verbose / -vEnable verbose logging
--output / -o TEXTOutput format: json (default), table, yaml
--yes / -ySkip confirmation prompts

All commands emit structured JSON by default for easy machine parsing.

Init Command

init -- Initialize a working directory

datagen init                  # Initialize current directory
datagen init /path/to/dir     # Initialize a specific directory

Copies bundled catalog YAML files to ./catalog/, creates .env template, and creates ./data/ directory. Run this once before using the CLI in a new directory.

Core Commands

generate -- Generate sample data

datagen generate --all                    # Generate all datasets
datagen generate salesforce_opportunities  # Generate one dataset
datagen generate --all --seed 42          # Reproducible generation
datagen generate --all --dry-run          # Preview without writing

Requires entity pool initialization first. Run python -m datagen pool regenerate before generate even if your schema has no explicit entity_ref columns.

OptionDescription
nameDataset name (YAML filename stem), optional
--allGenerate all datasets
--seed INTEGERRandom seed for reproducibility
--catalog-dir PATHCatalog directory override
--data-dir PATHData directory override
--dry-runPreview without writing files

upload -- Upload data to Domo (full replace)

datagen upload --all
datagen upload salesforce_opportunities

Requires DOMO_CLIENT_ID and DOMO_CLIENT_SECRET.

OptionDescription
nameDataset name, optional
--allUpload all datasets
--catalog-dir PATHCatalog directory override
--data-dir PATHData directory override

create-dataset -- Create dataset(s) in Domo from catalog

datagen create-dataset --all --skip-existing
datagen create-dataset salesforce_opportunities

Requires DOMO_CLIENT_ID and DOMO_CLIENT_SECRET. The domo_id is persisted locally (in the catalog YAML if writable, otherwise in data/domo_ids.json).

OptionDescription
nameDataset name, optional
--allCreate all datasets
--skip-existingSkip datasets that already have a domo_id
--catalog-dir PATHCatalog directory override

roll-dates -- Shift rolling date columns to stay current

datagen roll-dates
datagen roll-dates --anchor-date 2026-04-01
OptionDescription
--anchor-date TEXTTarget date (YYYY-MM-DD), defaults to today
--catalog-dir PATHCatalog directory override
--data-dir PATHData directory override

Informational Commands

list -- List catalog dataset definitions

datagen list                    # JSON output (default)
datagen --output table list     # Rich table for humans
datagen list --verbose          # Include column/schema details

status -- Display generation status for all datasets

datagen status

Connector Icon Commands

Require DOMO_DEVELOPER_TOKEN and DOMO_INSTANCE.

discover-types -- Search Domo connector/provider types

datagen discover-types salesforce

set-type -- Set connector icon on a Domo dataset

datagen set-type salesforce_opportunities
datagen set-type salesforce_opportunities --provider-key custom_key

set-type-all -- Set connector icon on all datasets with a domo_id

datagen set-type-all

Entity Pool Commands

pool regenerate -- Regenerate the shared entity pool

datagen pool regenerate
datagen pool regenerate --seed 99
datagen pool regenerate --company-count 500 --person-count 1000
OptionDefault
--seed INTEGER42
--company-count INTEGER200
--person-count INTEGER500
--product-count INTEGER50
--sales-rep-count INTEGER20
--campaign-count INTEGER30

pool show -- Display entity pool summary

datagen pool show

Common Workflows

Full setup for a new Domo instance

datagen init
# Edit .env with credentials
datagen pool regenerate
datagen generate --all
datagen create-dataset --all
datagen upload --all
datagen set-type-all

Daily refresh via cron

# Crontab entry: roll dates and re-upload daily at 6 AM
0 6 * * * cd /path/to/project && datagen roll-dates && datagen upload --all

Generate a single dataset end-to-end

datagen generate salesforce_opportunities
datagen create-dataset salesforce_opportunities
datagen upload salesforce_opportunities
datagen set-type salesforce_opportunities

Included Datasets

CategoryDataset NameKeyRows
SalesforceSalesforce - Accountssalesforce_accounts500
SalesforceSalesforce - Contactssalesforce_contacts1,500
SalesforceSalesforce - Opportunitiessalesforce_opportunities2,500
Google AnalyticsGoogle Analytics - Sessionsga_sessions5,000
Google AnalyticsGoogle Analytics - Page Viewsga_pageviews10,000
FinancialQuickBooks - Invoicesfinancial_invoices3,000
FinancialNetSuite - General Ledgerfinancial_gl_entries5,000
MarketingGoogle Ads - Campaign Performancemarketing_google_ads3,000
MarketingFacebook Ads - Campaign Performancemarketing_facebook_ads2,500
MarketingHubSpot - Contactsmarketing_hubspot_contacts2,000
MarketingMarketing - Market Leadsmarketing_market_leads2,500
MarketingMarketo - Leadsmarketing_marketo_leads3,000
HealthHealth Portal - Demographicshealth_demographics15
HealthHealth Portal - Lab Resultshealth_lab_results1,470
HealthHealth Portal - Vitalshealth_vitals5,250
AdPointAdPoint - Ordersadpoint_orders150
AdPointAdPoint - Line Itemsadpoint_line_items500
AdPointAdPoint - Flightsadpoint_flights2,000

Entity Pool

The shared entity pool provides consistent cross-dataset references. Entities are generated once and reused across all datasets.

Entity TypeDefault CountKey Fields
company200id, account_id, name, domain, industry, size, city, state, annual_revenue, employee_count
person500id, contact_id, first_name, last_name, full_name, email, company_id, company_name, title, phone
product50id, name, category, unit_price, sku
sales_rep20id, rep_id, first_name, last_name, full_name, email, region
campaign30id, name, channel, budget, status

Adding New Dataset Definitions

Dataset definitions live in the catalog/ directory as YAML files. Each YAML file defines metadata, columns, and generator configurations.

YAML Structure

dataset:
  name: My Custom Dataset
  domo_id: null
  source_type: custom
  description: "Description of the dataset"
  row_count: 1000
  tags:
    - custom
    - demo

schema:
  - name: id
    type: STRING
    generator: uuid4

  - name: company_name
    type: STRING
    generator: entity_ref
    entity: company
    field: name

  - name: amount
    type: DOUBLE
    generator: random_decimal
    min: 100.0
    max: 10000.0
    precision: 2

  - name: created_date
    type: DATE
    generator: date_range
    start_days_ago: 365
    end_days_ahead: 0
    rolling: true

Available Column Types

STRING, LONG, DOUBLE, DECIMAL, DATETIME, DATE

Available Generators

Generic: uuid4, random_choice, weighted_choice, random_int, random_decimal, date_range, entity_ref, compound, sequence, constant, derived_from_date, stage_derived, faker

Salesforce: sf_id, sf_opportunity_name, sf_case_subject, sf_lead_rating

Google Analytics: ga_session_id, ga_page_path, ga_source, ga_medium, ga_campaign, ga_browser, ga_device_category, ga_country, ga_bounce_rate, ga_session_duration, ga_pageviews, ga_landing_page

Financial: gl_account_code, gl_account_name, invoice_number, payment_terms, payment_method, invoice_status, journal_type, department, fiscal_period, debit_credit

Marketing/Ads: ad_platform, campaign_objective, ad_format, ad_headline, ad_keyword, targeting_type, impressions, clicks_from_impressions, ctr, cost_per_click, ad_spend, conversions_from_clicks, hubspot_lifecycle, hubspot_lead_status, ad_group_id

Health: health_lab_init, health_lab_field, health_vital_init, health_vital_field, health_demographics

Generator Column Options

OptionUsed WithDescription
entityentity_refEntity pool type to reference
fieldentity_refField to pull from the entity
choicesrandom_choice, weighted_choiceList of possible values
min / maxrandom_int, random_decimalValue range
precisionrandom_decimalDecimal places
templatecompoundString template with {field} placeholders
refscompoundColumn references for template substitution — must be a YAML list of column name strings (e.g. ["sku", "line_id"]), not a dict/object. A dict triggers ValidationError: schema.N.refs — Input should be a valid list.
start_days_ago / end_days_aheaddate_rangeDate range relative to today
rollingdate_rangeEnable date rolling for freshness
mappingstage_derivedMap source values to derived values
source_columnstage_derived, derived_from_dateColumn to derive from
formatderived_from_dateDate format string
faker_methodfakerFaker library method name
faker_argsfakerArguments for the Faker method

weighted_choice YAML format:

generator: weighted_choice
choices:
  "Tier 1": 0.40
  "Tier 2": 0.35
  "Tier 3": 0.25
compound refs vs formatted random strings: For values like PO-12345, prefer faker with bothify instead of abusing compound / refs: ``yaml - name: purchase_order_ref type: STRING generator: faker faker_method: bothify faker_args: text: "PO-#####" ``

Rules

  1. Run datagen init first -- Initialize a working directory before using any other commands. This copies the catalog and creates .env.
  2. Always generate before uploading -- Run generate (or generate --all) before upload to ensure CSV data files exist.
  3. Create datasets before first upload -- Run create-dataset before upload for new datasets. The domo_id is persisted locally.
  4. Use --skip-existing -- When running create-dataset --all, use --skip-existing to avoid duplicating datasets that already have a domo_id.
  5. Entity pool consistency -- Regenerating the pool (pool regenerate) invalidates all previously generated data. Re-generate all datasets afterward.
  6. Date rolling -- Use roll-dates before upload to keep date columns current. Only columns with rolling: true are affected.
  7. Credentials -- DOMO_CLIENT_ID and DOMO_CLIENT_SECRET are required for upload and create-dataset. DOMO_DEVELOPER_TOKEN is required for set-type and discover-types. Offline commands need no credentials.
  8. Reproducibility -- Use --seed for reproducible data generation across runs.
  9. Output format -- Default output is JSON. Use --output table for human-readable Rich tables.

Checklist

  • CLI installed (pipx install git+https://github.com/brrink/domo_data_generator.git)
  • Working directory initialized (datagen init)
  • .env configured with Domo credentials
  • Entity pool generated (datagen pool regenerate)
  • Datasets generated (datagen generate --all)
  • Datasets created in Domo (datagen create-dataset --all --skip-existing)
  • Data uploaded (datagen upload --all)
  • Connector icons set (datagen set-type-all) if desired
  • Cron configured for daily date rolling and upload if needed

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.17%
按下载量换算119

Claude

29.98%
按下载量换算96

Cursor

19.26%
按下载量换算62

Gemini CLI

9.84%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills