Claude-skill-registry iiot-seed/core

IIoT database seeding CLI built with @gbg/ctl

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/core-creatifcoding-gbg" ~/.claude/skills/majiayu000-claude-skill-registry-iiot-seed-core && rm -rf "$T"
manifest: skills/data/core-creatifcoding-gbg/SKILL.md
source content

iiot-seed/core

CLI tool for seeding the IIoT database with mock data.

When to Use

  • Need to seed IIoT database with test data
  • Need to check current data statistics
  • Need to clear mock data

Commands

seed

Seed the database with mock data.

# Default (fast mode, all data)
bun run src/lib/iiot/seed/ctl/src/index.ts seed

# Validated mode (schema validation)
bun run src/lib/iiot/seed/ctl/src/index.ts seed --mode validated

# Assets only (skip readings/alarms)
bun run src/lib/iiot/seed/ctl/src/index.ts seed --assets-only

# Clear before seeding
bun run src/lib/iiot/seed/ctl/src/index.ts seed --clear --verbose

stats

Show current data statistics.

bun run src/lib/iiot/seed/ctl/src/index.ts stats

clear

Clear all mock data.

bun run src/lib/iiot/seed/ctl/src/index.ts clear

Options

OptionAliasDescription
--mode
-m
fast (generate_series) or validated (repo batch)
--clear
-c
Clear existing mock data before seeding
--assets-only
-a
Only seed assets (skip readings/alarms)
--verbose
-v
Show detailed output

Architecture

Uses tiered seeding approach:

  • Tier 1: Assets/Alarms via repos (full validation)
  • Tier 2: Readings via generate_series (performance)

Layer Composition

const FullSeedLayer = Layer.merge(
  SeedPgClientWithMigrations,  // PgClient + Migrator
  IIoTRepositoriesLive         // All repos
)

Database

  • Host: localhost:5433
  • Database: iiot_mock
  • User: iiot

Ensure database is running:

docker compose -f docker/docker-compose.iiot.yml up -d