iiot-seed/core
About
iiot-seed/core is a CLI tool for seeding Industrial IoT databases with mock test data. It allows developers to populate databases with assets, readings, and alarms, view current data statistics, or clear existing mock data. Built with @gbg/ctl, it supports different seeding modes including fast, validated, and assets-only operations.
Quick Install
Claude Code
Recommended/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/iiot-seed/coreCopy and paste this command in Claude Code to install this skill
Documentation
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
| 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 |
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
GitHub Repository
Related Skills
content-collections
MetaThis skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.
creating-opencode-plugins
MetaThis skill provides the structure and API specifications for creating OpenCode plugins that hook into 25+ event types like commands, files, and LSP operations. It offers implementation patterns for JavaScript/TypeScript modules that intercept and extend the AI assistant's lifecycle. Use it when you need to build event-driven plugins for monitoring, custom handling, or extending OpenCode's capabilities.
langchain
MetaLangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.
Algorithmic Art Generation
MetaThis skill helps developers create algorithmic art using p5.js, focusing on generative art, computational aesthetics, and interactive visualizations. It automatically activates for topics like "generative art" or "p5.js visualization" and guides you through creating unique algorithms with features like seeded randomness, flow fields, and particle systems. Use it when you need to build reproducible, code-driven artistic patterns.
