Iptvnator Sqlite DB Worker
4gray/iptvnator
A skill your agent uses when changing Electron SQLite IPC, database-worker operations, request-scoped progress or cancellation, worker packaging, or runtime verification of non-EPG database work.
A skill your agent uses when ZCode needs to inspect, plan, or execute restoration of old ACP-era ZCode sessions from ~/.zcode/v2/sessions into the new ZCode task/session stores.
$ npx skills add zai-org/ZCode --skill restore-legacy-sessions -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install zai-org/ZCode restore-legacy-sessions --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/zai-org/ZCode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions .claude/skills/restore-legacy-sessions && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "restore-legacy-sessions" agent skill from https://github.com/zai-org/ZCode/tree/main/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions into .claude/skills/restore-legacy-sessions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restore-legacy-sessions", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/zai-org/ZCode/tree/main/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessionsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add zai-org/ZCode --skill restore-legacy-sessions -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install zai-org/ZCode restore-legacy-sessions --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zai-org/ZCode.git skills-src && mkdir -p .agents/skills && cp -r skills-src/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions .agents/skills/restore-legacy-sessions && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "restore-legacy-sessions" agent skill from https://github.com/zai-org/ZCode/tree/main/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions into .agents/skills/restore-legacy-sessions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restore-legacy-sessions", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add zai-org/ZCode --skill restore-legacy-sessions -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install zai-org/ZCode restore-legacy-sessions --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zai-org/ZCode.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions .cursor/skills/restore-legacy-sessions && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "restore-legacy-sessions" agent skill from https://github.com/zai-org/ZCode/tree/main/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions into .cursor/skills/restore-legacy-sessions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restore-legacy-sessions", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/zai-org/ZCode.git --path apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add zai-org/ZCode --skill restore-legacy-sessions -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install zai-org/ZCode restore-legacy-sessions --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zai-org/ZCode.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions .gemini/skills/restore-legacy-sessions && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "restore-legacy-sessions" agent skill from https://github.com/zai-org/ZCode/tree/main/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions into .gemini/skills/restore-legacy-sessions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restore-legacy-sessions", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install zai-org/ZCode restore-legacy-sessionsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add zai-org/ZCode --skill restore-legacy-sessions -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/zai-org/ZCode.git skills-src && mkdir -p .github/skills && cp -r skills-src/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions .github/skills/restore-legacy-sessions && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "restore-legacy-sessions" agent skill from https://github.com/zai-org/ZCode/tree/main/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions into .github/skills/restore-legacy-sessions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restore-legacy-sessions", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add zai-org/ZCode --skill restore-legacy-sessions -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install zai-org/ZCode restore-legacy-sessions --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/zai-org/ZCode.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions .opencode/skills/restore-legacy-sessions && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "restore-legacy-sessions" agent skill from https://github.com/zai-org/ZCode/tree/main/apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions into .opencode/skills/restore-legacy-sessions/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "restore-legacy-sessions", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
restore-legacy-sessionsA skill your agent uses when ZCode needs to inspect, plan, or execute restoration of old ACP-era ZCode sessions from ~/.zcode/v2/sessions into the new ZCode task/session stores.
Restore Legacy Sessions is an agent skill from zai-org/ZCode. Use when ZCode needs to inspect, plan, or execute restoration of old ACP-era ZCode sessions from ~/.zcode/v2/sessions into the new ZCode task/session stores. Trigger when the user wants to choose a previous agent, select a workspace to restore, pick a specific historical conversation, dry-run legacy session migration, or reason about tasks-index.sqlite and ~/.zcode/cli/db/db.sqlite consistency.
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts.
It sits in Databases. It works with SQLite. The repository describes itself as: Z.ai's coding agent harness. Powerful, intelligent, extensible. The licence is Apache-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit aac4755. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (JavaScript), which the agent can run.
Shell commands in SKILL.md call:
nodepnpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pnpm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Restore Legacy Sessions loads about 1.2k tokens when it runs. Until then it costs about 105 tokens; SKILL.md has 514 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from zai-org/ZCode at commit aac4755, republished under its Apache-2.0 licence (© zai-org). 514 words, ~1,197 tokens.
.claude/skills/restore-legacy-sessions/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Use this skill to guide old ACP-era ZCode session restoration. The first job is selection, not mutation: identify the source agent, the workspace, and the exact conversation before proposing any write to the new stores.
~/.zcode/v2/sessions/{workspaceHash}/{legacyTaskId}.json~/.zcode/v2/tasks-index.sqlite~/.zcode/cli/db/db.sqliteUse restoredTaskId = meta.acpSessionId || meta.taskId. The legacy snapshot filename and meta.taskId are historical IDs; the app task list often uses meta.acpSessionId as the real task/session ID.
The scan script defaults to the live legacy source ~/.zcode/v2/sessions; pass --legacy-dir <path> only when the user explicitly asks to inspect another source directory.
Restored ACP-era conversations are normal ZCode Agent history, so persisted provider fields must be glm. Treat the snapshot provider as legacy source context only; do not write task-index migration_source or meta_json.migrationSource for these restores. The migrationSource enum is reserved for the existing Claude Code native import path (claudeCode).
Resolve script paths relative to this SKILL.md directory. When running from another working directory, use the absolute path to the script inside the plugin cache.
List source agents:
node scripts/scan-legacy-sessions.mjs agentsAfter the user chooses an agent, list workspaces for that agent:
node scripts/scan-legacy-sessions.mjs workspaces --agent glmAfter the user chooses a workspace, list conversations:
node scripts/scan-legacy-sessions.mjs conversations --agent glm --workspace /Users/dev/test/z-mUse --query <text> to narrow conversations by title, message content, task id, or session id. Use --json when feeding the result into jq or another script.
Ask for one choice at a time unless the user already supplied enough filters:
Show compact numbered options with title, updated time, message count, restoredTaskId, and restore state. If there are many options, show the top 20 by updatedAt and tell the user how to filter with --query.
After the user chooses an exact conversation, run a dry run first:
node scripts/restore-conversation.mjs --snapshot ~/.zcode/v2/sessions/<workspaceHash>/<legacyTaskId>.json --dry-runThen apply the restore:
node scripts/restore-conversation.mjs --snapshot ~/.zcode/v2/sessions/<workspaceHash>/<legacyTaskId>.jsonready: CLI DB and task-index both already contain the restored task id.needs-cli-db: task-index exists, but ~/.zcode/cli/db/db.sqlite has no session row; rebuild the real session from the legacy snapshot.needs-task-index: CLI DB exists, but task-index is missing; backfill task-index only.needs-full-import: both stores are missing; import session history and then index it.Do not write data during selection. Before any apply step:
tasks-index.sqlite and db.sqlite.pinned, archived, deleted, and title_overridden.workspaceKey = workspaceIdentity?.trim() || workspacePath for identity/isolation semantics.provider = "glm" and CLI message providerID = "glm" regardless of the snapshot provider.task-index.meta_json.taskId = restoredTaskId; never leave it as the old snapshot meta.taskId.migration_source empty for ACP-era restores. If a previous restore wrote legacy-session, clear it before validating visibility.part rows for visible text and tool calls. The app detail page renders from part; message.data.content alone is not enough.parentID to the preceding user message id when possible.For app code changes, update a spec under docs/ before implementation and run pnpm typecheck and pnpm lint.
© zai-org, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files (scripts) in apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions of zai-org/ZCode.
Open the folder on GitHubat commit aac4755
Restore Legacy Sessions next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Restore Legacy Sessions this skillzai-org/ZCode | 7.7k | — | ~1.2k | Automated safety check: Pass | Apache-2.0 | |
| Iptvnator Sqlite DB Worker4gray/iptvnator | 7.3k | — | ~824 | Automated safety check: Pass | MIT | |
| Analyze Nsys Profilemlc-ai/pith-train | 355 | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Reactive Sqlite UIfastrepl/anarlog | 9.5k | — | ~699 | Automated safety check: Pass | MIT | |
| Composer Forensicsdxos/dxos | 526 | — | ~3.1k | Automated safety check: Pass | Custom licence | |
| Sqlite Schema Designfastrepl/anarlog | 9.5k | — | ~1.9k | Automated safety check: Pass | MIT |
4gray/iptvnator
A skill your agent uses when changing Electron SQLite IPC, database-worker operations, request-scoped progress or cancellation, worker packaging, or runtime verification of non-EPG database work.
mlc-ai/pith-train
Query a captured PithTrain Nsight Systems profile to measure compute/communication overlap, locate exposed comm by DualPipeV stage, and inspect per-rank stream behavior.
fastrepl/anarlog
Build SQLite-backed reactive UI in apps/desktop using stable patterns for reads, selection, forms, writes, and loading states.
dxos/dxos
Forensically inspect and repair Composer browser profiles — offline (Chrome OPFS / SQLite extract) or live via /recovery.html debug port.
fastrepl/anarlog
Design or review schemas for crates/cloudsync using SQLite Sync constraints, not generic SQLite advice.
deusXmachina-dev/memorylane
Create SQLite migrations for MemoryLane storage schema changes.
zai-org/ZCode
Complete DOCX document creation, editing, and analysis capabilities with support for revisions, comments, formatting preservation, and text extraction.
zai-org/ZCode
Create visualizations and interactive tools directly in conversation.
zai-org/ZCode
Professional PDF toolkit covering four production workflows: reports, creative visuals, academic LaTeX, and existing PDF processing.
zai-org/ZCode
Generate, verify, or remove large synthetic ZCode task fixtures in local ~/.zcode persistence for UI/session performance testing.
zai-org/ZCode
Check ZCode module and layer boundaries for code changes. An agent skill from zai-org/ZCode.
zai-org/ZCode
Use this skill any time a spreadsheet file is the primary input or output.
Works with
Categories
A skill your agent uses when ZCode needs to inspect, plan, or execute restoration of old ACP-era ZCode sessions from ~/.zcode/v2/sessions into the new ZCode task/session stores. Restore Legacy Sessions is an agent skill from zai-org/ZCode.zcode/v2/sessions into the new ZCode task/session stores.
Restore Legacy Sessions fits situations like: ZCode needs to inspect; execute restoration of old ACP-era ZCode sessions from ~/.zcode/v2/sessions into the new ZCode task/session stores; the user wants to choose a previous agent; select a workspace to restore.
Run `npx skills add zai-org/ZCode --skill restore-legacy-sessions -a claude-code`. Or copy the skill folder (apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions in zai-org/ZCode) into .claude/skills/restore-legacy-sessions in your project. Claude Code loads it when a task matches its description.
Run `npx skills add zai-org/ZCode --skill restore-legacy-sessions -a codex`. Or copy the skill folder (apps/zcode-cli/packages/restore-legacy-sessions-plugin/skills/restore-legacy-sessions in zai-org/ZCode) into .agents/skills/restore-legacy-sessions in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add zai-org/ZCode --skill restore-legacy-sessions -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/restore-legacy-sessions, .gemini/skills/restore-legacy-sessions, .github/skills/restore-legacy-sessions and .opencode/skills/restore-legacy-sessions in your project.
Going by SKILL.md and its folder, Restore Legacy Sessions needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node and pnpm). Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Restore Legacy Sessions is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 4.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Restore Legacy Sessions: Iptvnator Sqlite DB Worker (4gray/iptvnator, 7.3k stars), Analyze Nsys Profile (mlc-ai/pith-train, 355 stars), Reactive Sqlite UI (fastrepl/anarlog, 9.5k stars) and Composer Forensics (dxos/dxos, 526 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
zai-org (a GitHub organization) maintains it in zai-org/ZCode, which has 7,659 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 10, 2026.
Source: zai-org/ZCode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.