KS
Killer-Skills

rcr-backend — how to use rcr-backend how to use rcr-backend, rcr-backend drizzle orm, rcr-backend alternative, rcr-backend setup guide, what is rcr-backend, rcr-backend vs barnsworthburning, rcr-backend install, local-first personal knowledge management

v1.0.0
GitHub

About this Skill

Perfect for TypeScript Agents needing local-first personal knowledge management with Drizzle ORM integration. rcr-backend is a local-first, own-your-data approach to personal knowledge management, utilizing Drizzle ORM for efficient data handling.

Features

Utilizes Drizzle v2 query syntax for reads via db.query.<table>.findMany/findFirst
Provides object-style where, built-in with for relations, and columns selection
Supports mutations via db.insert(), db.update(), and db.delete() with upsert capability
Avoids raw SQL in favor of query builder APIs
Enables external-source data handling

# Core Topics

Aias Aias
[0]
[0]
Updated: 3/7/2026

Quality Score

Top 5%
45
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add Aias/red-cliff-record/rcr-backend

Agent Capability Analysis

The rcr-backend MCP Server by Aias is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use rcr-backend, rcr-backend drizzle orm, rcr-backend alternative.

Ideal Agent Persona

Perfect for TypeScript Agents needing local-first personal knowledge management with Drizzle ORM integration.

Core Value

Empowers agents to leverage Drizzle v2 query syntax for efficient reads and mutations, utilizing object-style where clauses, built-in with relations, and columns selection, while avoiding raw SQL and ensuring data consistency with upserts using .onConflictDoUpdate().

Capabilities Granted for rcr-backend MCP Server

Building local-first personal knowledge management systems
Optimizing database queries with Drizzle v2 syntax
Ensuring data consistency with upserts and .onConflictDoUpdate()
Supplementing global typescript-guidelines skill with rcr-backend

! Prerequisites & Limits

  • Requires TypeScript environment
  • Drizzle ORM v2 compatibility necessary
  • Local-first approach may limit scalability
Project
SKILL.md
2.4 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

RCR Backend

Supplements global typescript-guidelines skill.

Drizzle ORM

  • Always use Drizzle v2 query syntax for reads: db.query.<table>.findMany/findFirst (not db.select().from())
    • Provides object-style where, built-in with for relations, and columns selection
  • Avoid raw SQL — use query builder APIs instead of sql template literals
  • Mutations: db.insert(), db.update(), db.delete()
  • Always upsert with .onConflictDoUpdate() on insertions
  • External-source PKs: integer('id').primaryKey() (not serial)
  • Never edit Drizzle meta files (snapshot.json, _journal.json) — they're generated by drizzle-kit

tRPC

  • Routers live in src/server/api/routers/
  • Zod v4 for input validation
  • Client hooks from src/app/trpc.ts
  • Invalidate queries after mutations

Integrations

Canonical guide: INTEGRATIONS.md.

  • Sync logic wrapped by runIntegration; exposed via rcr sync <name>
  • File convention: types.ts (Zod schemas), client.ts (API client), sync.ts (orchestration)
  • Respect rate limits; batch where needed; upsert for idempotency

Database Management

Canonical operations: README.md and src/server/db/db-manager.sh.

  • bun run db:generate to generate migration files (safe for agent)
  • bun run db:studio for database inspection
  • Never run migrations (bun run db:migrate, bunx drizzle-kit migrate) — always provide the command for the user to run
  • Never run destructive operations without explicit user permission
  • Backups are named by environment (prod-{timestamp}.dump, dev-{timestamp}.dump), not database name

Agent Workflow: Media Alt Text

The rcr media commands support CLI-based alt text updates. Workflow for looped agents:

  1. List images needing alt text:
    bash
    1rcr media list --type=image --alt-text=false --limit=100 --order=recordCreatedAt
  2. Get item with parent record context:
    bash
    1rcr media get <id> --with-record
    Returns media item plus record: { id, title, type, mediaCaption, url }.
  3. Update:
    bash
    1rcr media update <id> '{"altText": "Description of the image"}'

Parallel processing: pre-assign media IDs per agent to avoid overlap. Parent fetches a batch, splits into chunks, each subagent processes its assigned IDs.

Schema: media table has altText (nullable), url, type, width, height, recordId (FK). ~4,090 images total.

Related Skills

Looking for an alternative to rcr-backend or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication