duckdb-operations

Initialize DuckDB CRM schemas and CRUD pipelines for objects, fields, and entries.

1|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/putrawitama/DenchClaw --skill duckdb-operations-putrawitama
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: duckdb-operations
Source: https://github.com/putrawitama/DenchClaw/tree/main/skills/crm/duckdb-operations
Command: npx skills add https://github.com/putrawitama/DenchClaw --skill duckdb-operations-putrawitama

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured, self-contained DuckDB-based data model for a CRM workspace, enabling robust schema initialization, field typing, auto-generated PIVOT views, and comprehensive SQL CRUD operations for objects, fields, entries, and related documents. It streamlines CRM data modeling from design to production-ready SQL workflows, reducing manual setup and schema drift.

Core Features & Use Cases

  • DuckDB Schema: Create and maintain core CRM tables (objects, fields, entries, entry_fields, statuses, documents) with sensible defaults and constraints.
  • Auto-Generated Pivot Views: Build deterministic PIVOT views to simplify multi-field analytics without data duplication.
  • SQL CRUD Operations: Provide SQL-based create, read, update, delete workflows for objects, fields, entries, entry_fields, and related metadata.
  • Guided Best Practices: Include guidance for ID generation, relationship fields (created via SQL), and safe upsert patterns.
  • Use Case: Rapidly bootstrap a CRM workspace with a consistent schema and ready-to-query analytics playground.

Quick Start

Run the DuckDB SQL examples to initialize the workspace and create core CRM tables and relations.

Frequently Asked Questions about duckdb-operations

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

FAQPage Schema
How do I initialize a CRM workspace schema in DuckDB?

To initialize a CRM workspace schema in DuckDB, you can run provided SQL examples to create core tables like objects, fields, entries, and documents with sensible defaults and constraints. This enforces explicit object and field creation.

Does DuckDB support auto-generated pivot views for CRM data analytics?

DuckDB supports auto-generated pivot views for CRM data analytics by building deterministic PIVOT views with explicit IN lists. This simplifies multi-field analytics across workspace entries without causing data duplication.

What is the best way to manage CRM object and field SQL CRUD operations?

The best way to manage CRM object and field SQL CRUD operations is using structured SQL workflows that include idempotent upserts and explicit field typing. This approach ensures safe create, read, update, and delete actions across your schema.

Can I use DuckDB SQL to model CRM database schemas with related documents?

You can use DuckDB SQL to model CRM database schemas with related documents by creating core tables that link entries, fields, and documents. This provides a structured, self-contained data model reducing manual setup and schema drift.

How do I prevent schema drift when setting up CRM database schemas in DuckDB?

To prevent schema drift when setting up CRM database schemas in DuckDB, apply guided best practices for ID generation and safe idempotent upsert patterns. This maintains robust schema initialization and consistent field typing across workflows.

Are there limitations when using DuckDB pivot views for multi-field CRM analytics?

When using DuckDB pivot views for multi-field CRM analytics, limitations are mitigated by enforcing deterministic pivot views with explicit IN lists. This ensures consistent query outputs but requires explicit field declarations for accurate pivoting.