Lucid
Lucid audits agent-facing context debt and creates a cleanup plan.
Use the bundled script for objective checks. Do not rely on chat memory alone to decide what is safe to remove.
Workflow
Resolve this skill directory.
Run scan from the target repository root:
python3 <lucid-skill-dir>/scripts/lucid.py scan --root . --format jsonRun audit:
python3 <lucid-skill-dir>/scripts/lucid.py audit --root . --format json --out .lucid/audit.jsonCreate a cleanup plan:
python3 <lucid-skill-dir>/scripts/lucid.py plan --root . --audit .lucid/audit.json --out .lucid/plan.mdOptionally generate a review-only patch suggestion:
python3 <lucid-skill-dir>/scripts/lucid.py suggest --root . --audit .lucid/audit.json --out .lucid/suggested.patchClassify every item as one of:
remove replace-with-pointer move-to-reference move-to-validator move-to-eval keep-with-reason manual-reviewDo not edit or delete files unless the user explicitly asks to apply the plan.
After approved edits, run:
python3 <lucid-skill-dir>/scripts/lucid.py verify --root . --strict
Safety
Lucid is read-only by default.
Do not delete tracked files wholesale. Do not remove schema, migration, alias, marker, protocol, or compatibility fields just because they look old.
Do not preserve obsolete names in user-facing context merely to forbid them. Prefer source-of-truth pointers, validators, or evals over natural-language warnings.
Before memory cleanup, old-looking compatibility-field removal, or
negative-warning cleanup, read references/memory-retention-rubric.md,
references/compatibility-safety.md, or references/negative-residue.md,
respectively.