d1-patterns

Community

Pattern-based encrypted records for D1 databases.

Authorjoelhooks
Version1.0.0
Installs0

System Documentation

What problem does it solve?

D1 stores encrypted records, and applications often need a robust pattern to model secure storage, indexing, migration, and access control across agents. This Skill provides a reusable schema and operational practices for encrypted record storage on D1, including handling of ciphertext, per-record keys, and shared access metadata.

Core Features & Use Cases

  • Core schema: defines a core encrypted records table with per-record keys, nonces, and optional encrypted keys for recipients.
  • Indexing & access: supports queries on did, collection, and rkey for fast lookup while keeping content encrypted.
  • Operational patterns: TID generation, CRUD and batch operations, and agent registry for multi-agent coordination.
  • Use Case: model agent memories or logs where metadata is searchable but content remains encrypted, and provide secure key sharing for collaborators.

Quick Start

Create and manage encrypted records in your D1 database to enable secure storage and querying.

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: d1-patterns
Download link: https://github.com/joelhooks/atproto-agent-network/archive/main.zip#d1-patterns

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 471,000+ vetted skills library on demand.