跳到主要内容
知仓学习社ZHICANG

deepchat-data-import

Help developers build third-party tools that import, inspect, migrate, or analyze DeepChat data. Use when Codex needs to work with DeepChat provider…

不碰外部(只输出文字)无严重或高危命中ThinkInAIXYZ/deepchat

它会碰到什么

扫了多少6 个文本文件,23 KB
它会碰到什么不碰外部(只输出文字)
命中总数1 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

DeepChat Data Import

Overview

Use this skill to design or implement importers for DeepChat local data. Treat DeepChat's SQLite

schema as an internal but documentable contract: inspect the current schema when precision matters,

prefer read-only snapshots, and avoid writing to a live profile.

Workflow

  1. Identify the source: live DeepChat profile, copied profile, sync backup, exported agent.db, or

legacy chat.db.

  1. Read [references/data-locations.md](references/data-locations.md) to locate agent.db,

sidecar files, encryption metadata, and backup paths.

  1. Read [references/sqlite-access.md](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.

  1. Read [references/schema-reference.md](references/schema-reference.md) for provider config,

settings, session, message, and legacy table relationships.

  1. Read [references/import-recipes.md](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. Copy agent.db,

agent.db-wal, and agent.db-shm, or use SQLite backup APIs through DeepChat itself.

  • If DeepChat is running, either ask the user to quit it or make a WAL-aware snapshot before import.
  • 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.
  • When the schema has changed, inspect schema_versions, sqlite_master, and the table classes

under src/main/presenter/sqlitePresenter/tables/ before assuming column availability.

Source Files

Use these repository files as the current source of truth when updating the skill or answering

version-sensitive questions:

  • src/main/presenter/sqlitePresenter/index.ts
  • src/main/presenter/sqlitePresenter/connectionConfig.ts
  • src/main/presenter/databaseSecurityPresenter/index.ts
  • src/main/presenter/sqlitePresenter/tables/*.ts
  • src/main/presenter/agentRuntimePresenter/messageStore.ts
  • src/main/presenter/agentRuntimePresenter/sessionStore.ts
  • src/main/presenter/configPresenter/**

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 6,326
本站分层T1
该仓技能数23
原文件路径.agents/skills/deepchat-data-import/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 23 个技能