iiot-seed/core
について
iiot-seed/coreは、産業用IoTデータベースにモックテストデータを投入するためのCLIツールです。開発者はこれを使用して、アセット、測定値、アラームなどのデータをデータベースに投入したり、現在のデータ統計を表示したり、既存のモックデータをクリアしたりできます。@gbg/ctlで構築されており、高速モード、検証モード、アセット専用モードなど、異なるシーディングモードをサポートしています。
クイックインストール
Claude Code
推奨/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/iiot-seed/coreこのコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします
ドキュメント
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 リポジトリ
関連スキル
content-collections
メタThis 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
メタThis 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.
polymarket
メタThis skill enables developers to build applications with the Polymarket prediction markets platform, including API integration for trading and market data. It also provides real-time data streaming via WebSocket to monitor live trades and market activity. Use it for implementing trading strategies or creating tools that process live market updates.
langchain
メタLangChain 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.
