questpie-core-rules

Manage data access control, lifecycle hooks, and validation for QUESTPIE collections.

5|3|Updated Dec 15, 2025
One-click install
npx skills add https://github.com/questpie/questpie --skill questpie-core-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: questpie-core-rules
Source: https://github.com/questpie/questpie/tree/main/packages/questpie/skills/questpie-core/rules
Command: npx skills add https://github.com/questpie/questpie --skill questpie-core-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides robust mechanisms for controlling data access, executing logic at key data lifecycle points, and ensuring data integrity within the QUESTPIE framework.

Core Features & Use Cases

  • Access Control: Define granular permissions for reading, creating, updating, and deleting data at both collection and global levels, including row-level restrictions.
  • Lifecycle Hooks: Implement custom logic before or after data validation, changes, or deletions to automate tasks, transform data, or trigger side effects.
  • Validation: Enforce data correctness through built-in field constraints and custom validation logic in hooks.
  • Use Case: Secure a blog post collection so only authenticated users can create posts, administrators can update any post, and users can only update their own posts, while also automatically generating a slug from the title before saving.

Quick Start

Configure the 'posts' collection to allow public reads but restrict creation, update, and delete operations to authenticated administrators.

Frequently Asked Questions about questpie-core-rules

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

FAQPage Schema
How do I set up row-level access control for a backend collection?

Row-level access control is configured by defining granular permissions for reading, creating, updating, and deleting data at both collection and global levels within the QUESTPIE framework, ensuring secure data handling.

What are data lifecycle hooks and how do they automate backend tasks?

Data lifecycle hooks allow you to implement custom logic before or after data validation, changes, or deletions. They automate backend tasks by executing pre-operation or post-operation logic to transform data, enforce data integrity, or trigger side effects.

Can I automatically generate a slug from a title before saving data?

Yes, you can automatically generate a slug from a title before saving by implementing custom data transformation logic in pre-operation lifecycle hooks, enabling automated modifications prior to data changes.

How do I enforce data validation rules in a backend application?

Data validation is enforced through built-in field constraints and custom validation logic executed within lifecycle hooks, ensuring schema-driven data correctness and integrity during create and update operations.

Does this framework support schema-driven validation for securing collections?

Yes, the framework supports schema-driven validation for securing collections, allowing you to define built-in field constraints and custom validation logic to satisfy requirements for secure data handling and data integrity enforcement.