rsun-cleanup

Reviews and applies knowledge-base cleanup detections through an interactive human-in-the-loop workflow.

Updated May 20, 2026
One-click install
npx skills add https://github.com/EZoneLai/claude-plugin-ronsunai-os --skill rsun-cleanup-ezonelai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rsun-cleanup
Source: https://github.com/EZoneLai/claude-plugin-ronsunai-os/tree/main/commands/rsun-cleanup
Command: npx skills add https://github.com/EZoneLai/claude-plugin-ronsunai-os --skill rsun-cleanup-ezonelai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Nightly detectors flag duplicate embeddings, duplicate files, and link suggestions in a knowledge base, but applying them blindly risks data loss. This Skill provides a structured review loop so every cleanup action is confirmed, committed, and reversible. ## Core Features & Use Cases - Color-coded triage: Processes inbox sections by risk level — green items auto-apply after one confirmation, yellow items require per-item decisions, red items are report-only. - Interactive duplicate resolution: Uses AskUserQuestion to decide how to handle each group of suspected duplicate files, with git commits per action. - Safety guardrails: Never deletes source documents or citation nodes; moves files to an archive folder and requires a clean git tree before applying changes. - Use Case: After the nightly detector finds 67 duplicate embedding keys and 12 groups of suspected duplicate files, run this Skill to auto-apply the safe fixes and walk through each duplicate group one by one. ## Quick Start Ask the assistant to clean up the knowledge base inbox and review the detected duplicates and link suggestions.

Frequently Asked Questions about rsun-cleanup

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

FAQPage Schema
How do I clean up duplicate files in a knowledge base safely?

Run the nightly detector scripts to populate a cleanup inbox, then review each group of suspected duplicates interactively. Files are moved to an archive folder rather than deleted, and every action is committed to git separately for reversibility.

How do I deduplicate embeddings in a vector knowledge store?

Run the detect-dup-embeddings script to find duplicate keys, then apply the dedupe applier script after a single confirmation. Green-classified duplicate embeddings are safe to auto-apply in bulk.

Can cleanup actions be applied automatically without review?

Yes, the --auto-green argument applies all green-flagged safe items in one pass while skipping yellow items. Yellow and red sections still require manual review or are report-only.

What files are protected from deletion during cleanup?

Source documents such as PDFs and docx files in Documents or Drive are never deleted, only moved to an archive folder. Citation nodes in the knowledge directory are never removed, only marked deprecated.

Why does cleanup require a clean git tree before applying changes?

A clean git tree ensures every cleanup action maps to an isolated commit, making each change individually revertable. This prevents mixing uncommitted work with destructive file operations.