with one click
iiot-seed-core
IIoT database seeding CLI built with @gbg/ctl
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
IIoT database seeding CLI built with @gbg/ctl
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | iiot-seed/core |
| description | IIoT database seeding CLI built with @gbg/ctl |
CLI tool for seeding the IIoT database with mock data.
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
Show current data statistics.
bun run src/lib/iiot/seed/ctl/src/index.ts stats
Clear all mock data.
bun run src/lib/iiot/seed/ctl/src/index.ts clear
| Option | Alias | Description |
|---|---|---|
--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 |
Uses tiered seeding approach:
const FullSeedLayer = Layer.merge(
SeedPgClientWithMigrations, // PgClient + Migrator
IIoTRepositoriesLive // All repos
)
Ensure database is running:
docker compose -f docker/docker-compose.iiot.yml up -d
Meta-skill for @tmnl/effect-sui development: Effect v4/effect-smol patterns, Sui ontology, PTB/Flow/Query/package modules, localnet testing, Move publishing, diagnostics, and Nix mission-control tooling.
Effect v4 Atom patterns — reactive state management with effect-atom. Atom.make, Atom.family, Registry, runtime atoms, and React integration via useAtomValue.
Effect v4 Schema patterns — defining, validating, transforming, and serializing data with Schema. Covers v4 API, v3→v4 migration, classes, structs, unions, collections, transformations.
Effect v4 Service patterns — Context.Service, Layer composition, ManagedRuntime, dependency injection, and service testing with @effect/vitest.
GetByShell desktop shell — niri WM integration, panel system, calendar widget, popover components, modal patterns, and Nix-based configuration.
Skill governance codemod — create, inspect, update, delete, adopt, and dogfood skills. The meta-skill that governs all skills with CRUD protocols, verification utils, and self-referential governance.