From kongcode
Restores a kongcode JSON-Lines backup into SurrealDB, supporting idempotent import, by-hash merging, and cross-machine graph merging.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kongcode:kongcode-restore-jsonlThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run `node scripts/restore-jsonl.mjs <backup-dir>` against the target SurrealDB (same SURREAL_URL/USER/PASS/NS/DB env + defaults as backup-jsonl.mjs). Nodes import first, then edges. Default is **skip-if-exists** (idempotent, non-destructive). Flags: `--overwrite` (replace by id), `--merge-by-hash` (skip content_hash duplicates), `--dry-run`. Edges with a missing in/out node are skipped + logged...
Run node scripts/restore-jsonl.mjs <backup-dir> against the target SurrealDB (same SURREAL_URL/USER/PASS/NS/DB env + defaults as backup-jsonl.mjs). Nodes import first, then edges. Default is skip-if-exists (idempotent, non-destructive). Flags: --overwrite (replace by id), --merge-by-hash (skip content_hash duplicates), --dry-run. Edges with a missing in/out node are skipped + logged. Verify with backup-jsonl.mjs's metadata.json table_counts.
npx claudepluginhub 42u/kongcode --plugin kongcodeBacks up the kongcode SurrealDB database losslessly for restore into another SurrealDB instance. Triggers on requests to export, snapshot, or dump the database.
Imports CSV, JSON, and Parquet data into Neo4j using LOAD CSV, CALL IN TRANSACTIONS, neo4j-admin bulk import, and APOC procedures. Covers method selection, type coercion, null handling, constraints, and validation.
Generates backup scripts for PostgreSQL, MySQL, MongoDB, and SQLite with scheduling, compression, encryption, retention policies, and restore procedures.