quick

Define Active Record-style entities and manage CRUD operations for ColdBox Quick models.

1|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ColdBox/skills --skill quick-coldbox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quick
Source: https://github.com/ColdBox/skills/tree/main/modules/quick
Command: npx skills add https://github.com/ColdBox/skills --skill quick-coldbox

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill streamlines building Active Record-style ORM models in ColdBox/BoxLang, reducing repetitive boilerplate and preventing common pitfalls such as mass-assignment vulnerabilities, N+1 query performance issues, and inconsistent lifecycle side effects.

Core Features & Use Cases

  • Entity definition & safety: define table-backed entities with _fillable, _hidden, and type casting to enforce safe serialization and mass-assignment protection.
  • Relationships & querying: declare hasOne, hasMany, belongsTo, and belongsToMany relationships, write reusable query scopes, and eager-load nested relations to prevent N+1 queries.
  • Lifecycle hooks & transformations: implement accessors/mutators and before/after hooks for consistent side effects like auditing, job dispatch, and automatic timestamping.
  • Use case: implement a User entity with posts, profile, and permissions, use scopes for common filters, eager-load relationships for listing pages, and run lifecycle hooks to dispatch welcome emails and record audits.

Quick Start

Create a User entity with fillable fields, define posts and profile relationships, and fetch active users with posts eagerly loaded.

Frequently Asked Questions about quick

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

FAQPage Schema
How do I prevent N+1 queries when eager loading relationships in an Active Record ORM?

Eager loading relationships prevents N+1 queries by fetching related entities in a single query batch. You can eager-load nested relations like a user's posts and profile to optimize listing pages and avoid excessive database calls during relationship traversal.

How do I protect against mass-assignment vulnerabilities when defining ORM entities?

Protect against mass-assignment vulnerabilities by defining fillable and hidden fields on your ORM entities. Specifying which attributes are safe to assign enforces safe serialization and prevents unauthorized modification of sensitive model properties during CRUD operations.

Can I use lifecycle hooks in ColdBox for automatic timestamping and auditing?

Lifecycle hooks in ColdBox support automatic timestamping and auditing by executing before or after entity events. You can implement these hooks to trigger consistent side effects like dispatching welcome emails or recording audits when model data changes.

What is the best way to define reusable query scopes for filtering active users?

Reusable query scopes allow you to define common filters once and apply them across multiple queries. Writing query scopes for tasks like filtering active users ensures consistent querying logic throughout your application's service-layer data access.

Does Quick ORM work with BoxLang and ColdFusion for service-layer data access?

Quick ORM applies to both BoxLang and ColdFusion entity classes for service-layer data access. It supports building web application models that require relationship traversal, CRUD operations, and production-oriented Active Record patterns.