rcr-backend — community rcr-backend, red-cliff-record, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for TypeScript-based AI Agents needing advanced database query management with Drizzle ORM A local-first, own-your-data approach to personal knowledge management. The spiritual successor to barnsworthburning.

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

Agent Capability Analysis

The rcr-backend skill by Aias is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for TypeScript-based AI Agents needing advanced database query management with Drizzle ORM

Core Value

Empowers agents to efficiently manage data using Drizzle v2 query syntax, providing object-style where clauses, built-in with relations, and columns selection, while avoiding raw SQL through query builder APIs like db.query and mutations with db.insert, db.update, and db.delete

Capabilities Granted for rcr-backend

Building local-first personal knowledge management systems
Implementing upsert operations with onConflictDoUpdate
Optimizing database queries with Drizzle ORM

! Prerequisites & Limits

  • Requires TypeScript environment
  • Drizzle v2 compatibility necessary
  • External-source data handling limitations
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

rcr-backend

Install rcr-backend, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

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.

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is rcr-backend?

Perfect for TypeScript-based AI Agents needing advanced database query management with Drizzle ORM A local-first, own-your-data approach to personal knowledge management. The spiritual successor to barnsworthburning.

How do I install rcr-backend?

Run the command: npx killer-skills add Aias/red-cliff-record/rcr-backend. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for rcr-backend?

Key use cases include: Building local-first personal knowledge management systems, Implementing upsert operations with onConflictDoUpdate, Optimizing database queries with Drizzle ORM.

Which IDEs are compatible with rcr-backend?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for rcr-backend?

Requires TypeScript environment. Drizzle v2 compatibility necessary. External-source data handling limitations.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add Aias/red-cliff-record/rcr-backend. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use rcr-backend immediately in the current project.

Related Skills

Looking for an alternative to rcr-backend or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

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
AI

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
AI