quaid-maintain

Automate Quaid memory maintenance with non-destructive contradiction resolution and database compaction.

3|3|Updated Apr 13, 2026
One-click install
npx skills add https://github.com/quaid-app/quaid --skill quaid-maintain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quaid-maintain
Source: https://github.com/quaid-app/quaid/tree/main/skills/maintain
Command: npx skills add https://github.com/quaid-app/quaid --skill quaid-maintain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Periodic memory maintenance detects and resolves contradictions, validates referential integrity, triages knowledge gaps, surfaces orphaned pages, and compacts the database to keep Quaid reliable; resolutions follow a non-destructive correction workflow to preserve history.

Core Features & Use Cases

  • Detect contradictions across pages with quaid check and report findings to guide remediation
  • Validate links, embeddings, and references with quaid validate to fix integrity issues and stale data
  • Triages gaps and surfaces orphaned pages with quaid gaps and quaid list to prioritize remediation
  • Compact the write-ahead log into the main database with quaid compact to improve durability and performance

Quick Start

Run a maintenance cycle by first detecting contradictions with quaid check --all --json, then resolve them via memory_correct when needed, validate references with quaid validate --all --json, review gaps with quaid gaps, inspect orphan pages with quaid list, and finish by compacting the database with quaid compact.

Frequently Asked Questions about quaid-maintain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect and resolve contradictions in a knowledge base?

Detect contradictions across pages by running a check command, then resolve them through a non-destructive correction workflow that preserves history. This triages conflicting memory entries first before addressing other integrity issues.

What is the best way to validate referential integrity and fix stale memory links?

Validate referential integrity by running a validation command to check links, embeddings, and references. This identifies stale data and broken links, allowing you to fix integrity issues after triaging contradictions.

How do I triage knowledge gaps and find orphaned pages in a database?

Triage knowledge gaps and surface orphaned pages by running dedicated gap and list commands. This prioritizes remediation by identifying missing information and disconnected pages after integrity validation is complete.

When should I compact a write-ahead log to improve database durability?

Compact the write-ahead log into the main database after completing contradiction resolution, integrity validation, and gap triage. This is applied during routine housekeeping or after batch ingests to improve durability and performance.

Does memory maintenance preserve history when correcting contradictions?

Memory maintenance preserves history through a non-destructive correction workflow. Resolutions for contradictions and integrity issues are applied without destroying prior data, ensuring reliable recovery and auditability.

Why does my memory database have orphaned pages and stale references after batch ingests?

Batch ingests can create orphaned pages and stale references by inserting disconnected data. Running a maintenance cycle detects these issues, validates references, triages gaps, and compacts the database to restore consistency.