codex-log-guard
Installation
SKILL.md
Codex Log Guard
Overview
Diagnose Codex persistent diagnostic logging from local evidence, then give a concise conclusion and the safest next action. Do not make the user choose from a command menu.
Operating Contract
Select one mode from the current user request:
diagnose_onlyis the default for check, inspect, explain, or verify requests. It is read-only.protectrequires an explicit request to stop or mitigate log writes. It may install and verifyblock_log_inserts, but it does not delete rows or vacuum files.cleanuprequires an explicit current request to reclaim disk space or clean up logs. It first installs protection when needed, creates and verifies a timestamped backup, and only then deletes log rows and vacuums.restorerequires an explicit request to resume diagnostic logging. It may drop only the knownblock_log_insertstrigger.
Generic wording such as "处理", "修一下", or "止血" selects protect, not cleanup. Prior approval does not carry into a later run. If the requested write mode is ambiguous, return the diagnose_only report and the exact proposed mutation without applying it.
Direct actions: