smithery.ai

database-helper

Assist with IndexedDB/Dexie.js database operations, migrations, and data management

First seen Apr 10, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,055 B
  • docs SUMMARY.md 106 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Database Operations Guide

Schema Location

  • src/services/db.ts - Dexie database definition
  • Tables: jobs, settings, memories, careerProjects, learningTasks

Common Operations

import { db } from './db';

// Get all jobs
const jobs = await db.jobs.toArray();

// Get single job by ID
const job = await db.jobs.get(id);

// Add new job
const newId = await db.jobs.add(jobData);

// Update job (full replace)
await db.jobs.put({ ...job, ...updates });

// Partial update
await db.jobs.update(id, { status: 'Applied' });

// Delete job
await db.jobs.delete(id);

// Query with filters
const remoteJobs = await db.jobs
  .where('summary.jobType')
  .equals('remote')
  .toArray();

// Bulk operations
await db.jobs.bulkPut(jobsArray);
await db.jobs.bulkDelete(idArray);

Settings Access

// Get app settings
const settings = await db.settings.get('app-settings');

// Update settings
await db.settings.put({ id: 'app-settings', ...updates });

// Access outside React
import { useAppStore } from './stores/appStore';
const { settings } = useAppStore.getState();

Migration Notes

  • Version changes require schema migration in db.ts
  • Always preserve existing data during migrations
  • Test with existing data before deploying
  • Dexie auto-upgrades when version number increases

Key Types

interface Job {
  id: string;
  company: string;
  title: string;
  jdText: string;
  status: string;
  dateAdded: Date;
  lastUpdated: Date;
  summary: JobSummary | null;
  resumeAnalysis: ResumeAnalysis | null;
  coverLetter: string | null;
  // ... see src/types/index.ts for full definition
}

Export/Import

// Export all data
const exportData = {
  jobs: await db.jobs.toArray(),
  settings: await db.settings.get('app-settings'),
  memories: await db.memories.toArray(),
};

// Import data
await db.jobs.bulkPut(importedJobs);