sm-model-extension

Community

Safely extend engine models from host apps.

Authordchuk
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Extend SourceMonitor engine models from a host application by applying host-defined concerns and validations to engine models without monkey-patching.

Core Features & Use Cases

  • Extend multiple engine models (Source, Item, FetchLog, HealthCheckLog, etc.) via config models, including adding concerns, validations, scopes, associations, and table name prefixes.
  • Safe, idempotent reload of extensions via ModelExtensions.reload!, with deduplication of concerns and isolated validations.
  • Example: In a host app, register concerns that add validations and associations to engine models, and optionally override table_name_prefix.

Quick Start

Register a host concern and load it via SourceMonitor.configure to extend the engine models.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: sm-model-extension
Download link: https://github.com/dchuk/source_monitor/archive/main.zip#sm-model-extension

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.