Skip to main content

Build

Deepchat Data Import

deepchat

Help developers build third-party tools that import, inspect, migrate, or analyze DeepChat data. Use when Codex needs to work with DeepChat provider configuration, model configuration, MCP/app settings, sessions, messages, legacy chat data, `agent.db`, `chat.db`, SQLCipher encrypted SQLite, Electron safeStorage wrapped passwords, Tauri importers, or native macOS/Windows/Linux data access.

  • New
  • v1.0.2
  • Reviewed Aug 24
  • No reviews yet

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv1.0.2

DeepChat Data Import

Overview

Use this skill to design or implement importers for DeepChat local data. agent.db stores product
configuration, session metadata, legacy history and transcript projections. For a built-in session
bound to Dim, native history, events and attachments live in the Dim profile. Use DeepChat's
session export for a transcript and its full backup for restorable native history.

Workflow

  1. Identify the source: session export, live or copied profile, sync backup, standalone
    agent.db, or legacy chat.db. Check for a Dim session binding before treating SQLite
    message rows as complete.
  2. Read references/data-locations.md to locate agent.db,
    sidecar files, encryption metadata, and backup paths.
  3. Read references/sqlite-access.md before opening SQLite. Decide
    whether the database is unencrypted, can be unlocked through Electron safeStorage, or must ask
    the user for the SQLite password.
  4. Read references/schema-reference.md for provider config,
    settings, session, message, and legacy table relationships.
  5. Read references/import-recipes.md when writing extractor code,
    mapping DeepChat data to another app, or creating a compatibility import.

Safety Rules

  • Get explicit user consent before reading local DeepChat data. Provider keys, OAuth tokens, MCP
    env vars, prompt text, message traces, and chat content may be sensitive.
  • Never open the active agent.db read-write from a third-party tool. Use DeepChat's backup,
    a read-only SQLite backup connection, or a copy of the closed database and its sidecars.
  • Prefer parameterized key APIs for SQLCipher passwords. Do not interpolate passwords into SQL.
  • Redact secrets by default in logs, telemetry, previews, and generated sample output.
  • Inspect schema_versions and sqlite_master before assuming column availability.
  • Keep the Dim profile with its backup. Restore it through DeepChat with a compatible runtime.

Source Files

Use these repository files as the current source of truth when updating the skill or answering
version-sensitive questions:

  • SQLite and legacy encryption: src/main/data/mainDatabase.ts, src/main/data/connectionConfig.ts,
    src/main/app/databaseSecurity.ts.
  • Settings and transcript tables: src/main/provider/data/, src/main/settings/data/, and
    src/main/session/data/tables/.
  • Session export: src/main/exporter/agentSessionExporter.ts.
  • Backup and restore: src/main/sync/index.ts and src/main/agent/dim/profileBackups.ts.

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from deepchat

View source →

Frequently asked questions about deepchat-data-import

What does the deepchat-data-import skill do?

Help developers build third-party tools that import, inspect, migrate, or analyze DeepChat data. Use when Codex needs to work with DeepChat provider configuration, model configuration, MCP/app settings, sessions, messages, legacy chat data, `agent.db`, `chat.db`, SQLCipher encrypted SQLite, Electron safeStorage wrapped passwords, Tauri importers, or native macOS/Windows/Linux data access. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the deepchat-data-import skill?

Run `npx @skills-hub-ai/cli install deepchat-data-import` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/deepchat-data-import/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does deepchat-data-import work with?

deepchat-data-import runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the deepchat-data-import skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use deepchat-data-import after installing it?

In Claude Code, type `/deepchat-data-import` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the deepchat-data-import skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/deepchat-data-import)](https://skills-hub.ai/skills/deepchat-data-import)
HTML
<a href="https://skills-hub.ai/skills/deepchat-data-import"><img src="https://skills-hub.ai/api/badges/skill/deepchat-data-import" alt="Install on Skills Hub"></a>

More options in the badge docs.