一键导入
iiot-seed-core
IIoT database seeding CLI built with @gbg/ctl
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
IIoT database seeding CLI built with @gbg/ctl
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
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.
| 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