skills/salacia-gc/SKILL.md
Run Salacia garbage collection — analyze drift patterns, rotate audit logs, merge learned patterns into memory. Use when: 'salacia gc', 'clean salacia', 'salacia refine', 'optimize scope', 'salacia learn'.
npx skillsauth add 2233admin/salacia-guard salacia-gcInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Run garbage collection on the Salacia scope enforcement system.
Run these three steps in order, reporting results to the user after each:
node "${CLAUDE_PLUGIN_ROOT}/scripts/gc.mjs" refine
Parse the output JSON. Present suggestions in a readable format:
node "${CLAUDE_PLUGIN_ROOT}/scripts/gc.mjs" rotate
Report how many events were archived vs retained.
node "${CLAUDE_PLUGIN_ROOT}/scripts/gc.mjs" learn
Report what task type was detected and how many patterns were merged.
After presenting all results, ask the user:
.salacia/contract.json accordingly:
allowedPathssoftAllowedPathssoftAllowedPaths (and update learned.json)auto mode runs automatically on every SessionStart via hooks/salacia-gc runs refine + rotate + learn for a full cleanuptesting
Show current Salacia scope contract and drift status. Use when checking what files are in scope, current drift score, or reviewing the contract. Triggers on: 'salacia status', 'scope status', 'drift status', 'guard status'.
testing
Show Salacia audit statistics — event counts, top drifted files, learned promotions. Triggers on: 'salacia stats', 'scope stats', 'drift stats', 'guard stats', 'salacia report'.
testing
Initialize Salacia scope contract for the current task. Use when starting a new coding task to define which files the agent is allowed to modify. Triggers on: 'salacia init', 'scope contract', 'init salacia', 'guard scope'.
testing
Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating against the AgentSkills spec). Triggers on phrases like "create a skill", "author a skill", "tidy up a skill", "improve this skill", "review the skill", "clean up the skill", "audit the skill".