sm-domain-model

Document SourceMonitor engine domain models and their associations.

3|Updated Oct 16, 2025
One-click install
npx skills add https://github.com/dchuk/source_monitor --skill sm-domain-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sm-domain-model
Source: https://github.com/dchuk/source_monitor/tree/main/.claude/skills/sm-domain-model
Command: npx skills add https://github.com/dchuk/source_monitor --skill sm-domain-model

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The SourceMonitor engine domain model guides development, onboarding, and maintenance by documenting model graphs, associations, and table mappings under the SourceMonitor namespace. It reduces ambiguity when extending the engine or integrating with host applications.

Core Features & Use Cases

  • Model graph: maps core entities Source, Item, ItemContent, FetchLog, ScrapeLog, HealthCheckLog, LogEntry, ImportSession, and ImportHistory and their relationships within SourceMonitor.
  • Model details: provides schema prefixes, validations, scopes, and associations to support host-app extensions and consistent data modelling.
  • Use cases: aids onboarding of developers, auditing model relationships, and aligning host apps with the engine's domain structure.

Quick Start

Summarize the SourceMonitor domain model and generate a concise map of core entities and their relationships.

Frequently Asked Questions about sm-domain-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document a Rails engine domain model for onboarding and auditing?

Document the Rails engine domain model by mapping core entities, associations, and table prefixes under the SourceMonitor namespace. This provides a clear model graph for onboarding developers, auditing model relationships, and aligning host app integrations with the engine's domain structure.

What is the SourceMonitor domain model graph and how does it work?

The SourceMonitor domain model graph maps core entities like Source, Item, FetchLog, and ImportSession, detailing their relationships and schema prefixes. It works by referencing code in app/models and lib to reduce ambiguity when extending the engine or integrating with host applications.

How do I align host app integrations with a Rails engine's model validations and table mappings?

Align host app integrations with the Rails engine by reviewing the documented schema prefixes, validations, scopes, and associations of core entities. This ensures consistent data modelling and supports seamless extensions within the host application environment.

Can I use SourceMonitor model details to audit relationships across core entities like ItemContent and ScrapeLog?

Yes, you can use SourceMonitor model details to audit relationships across core entities like ItemContent and ScrapeLog. The model graph documents associations, validations, and table mappings, enabling precise auditing of model relationships within the Rails engine namespace.

What's the best way to map core entities and associations in a Rails engine namespace?

The best way to map core entities and associations in a Rails engine namespace is to generate a concise domain model summary. This maps entities like HealthCheckLog and LogEntry, detailing their relationships and table prefixes to support development and maintenance.

Why does my host app integration break when extending Rails engine model relationships?

Host app integrations break when extending Rails engine model relationships due to ambiguity in schema prefixes, validations, and table mappings. Documenting the domain model graph clarifies these associations, ensuring consistent data modelling and preventing integration failures.