Agent skill
iiot-seed/core
IIoT database seeding CLI built with @gbg/ctl
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/core-creatifcoding-gbg
SKILL.md
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
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?