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.
Getting started
Full instructionsInstall 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
- Identify the source: session export, live or copied profile, sync backup, standalone
agent.db, or legacychat.db. Check for a Dim session binding before treating SQLite
message rows as complete. - Read references/data-locations.md to locate
agent.db,
sidecar files, encryption metadata, and backup paths. - 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. - Read references/schema-reference.md for provider config,
settings, session, message, and legacy table relationships. - 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.dbread-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_versionsandsqlite_masterbefore 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.tsandsrc/main/agent/dim/profileBackups.ts.
Explore more skills
Browse all- Deepchat SddUse before substantial DeepChat code, configuration, documentation, test, build, feature, issue, refactor, or…
- Deepchat ReleasePrepare and publish DeepChat releases in this repository. Use when Codex needs to bump the app version, update…
- Deepchat SettingsDeepChat app settings modification (DeepChat 设置/偏好) skill. Activate ONLY when the user explicitly asks to change…
- memcodeUse the enabled Memcode MCP connection to explicitly save approved facts and recall relevant memories across DeepChat…
- MCP BuilderGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external…
- Deepchat Sdd CleanupUse only when a developer explicitly asks to clean, prune, tidy, or organize DeepChat SDD documentation after…
Security
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.
[](https://skills-hub.ai/skills/deepchat-data-import)<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.