clearplots

Deletes all files in the RCC Midway agent plots directory except server.log.

1|Updated Oct 25, 2020
One-click install
npx skills add https://github.com/bfairkun/dotfiles --skill clearplots-bfairkun
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: clearplots
Source: https://github.com/bfairkun/dotfiles/tree/main/agents/.agents/skills/clearplots
Command: npx skills add https://github.com/bfairkun/dotfiles --skill clearplots-bfairkun

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Accumulated plot and table files in the agent plots directory on the RCC Midway HPC cluster clutter the visualization server, and manually removing them is tedious and error-prone. ## Core Features & Use Cases - Bulk Cleanup: Removes every file and subdirectory inside $SCRATCH/$USER/agent_plots/ in a single command. - Log Preservation: Excludes server.log from deletion so the plot server's log history remains intact. - Use Case: After a long analysis session on RCC Midway, your plot server at http://localhost:8765 is crowded with stale figures. Invoke /clearplots to wipe the directory and start fresh without restarting the server. ## Quick Start Ask the agent to run /clearplots to empty the agent plots directory on RCC Midway while keeping the server log. Note: This Skill is specific to the RCC Midway HPC environment and relies on the $SCRATCH and $USER environment variables.

Frequently Asked Questions about clearplots

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

FAQPage Schema
How do I clear the agent plots directory on RCC Midway?▼

Invoke the /clearplots command, which runs a find command that deletes everything inside $SCRATCH/$USER/agent_plots/ except server.log. The plot server at http://localhost:8765 will then show an empty directory.

Does clearing the plots directory delete the server log?▼

No, the deletion command explicitly excludes server.log using a -not -name filter. All other files and subdirectories in agent_plots are removed while the log is preserved.

Can I use this plot cleanup outside RCC Midway?▼

No, this Skill is scoped to the RCC Midway HPC environment. It depends on the $SCRATCH and $USER environment variables and the specific agent_plots directory layout used by that cluster's plot server.

Why is the find command not deleting files in agent_plots?▼

The command fails if $SCRATCH or $USER are unset or if the agent_plots directory does not exist. Verify the environment variables are defined in your shell session on RCC Midway before running it.

Is the plot deletion recoverable after running clearplots?▼

No, the find -delete operation permanently removes files without moving them to a trash location. Only server.log survives, so confirm you no longer need the plots before invoking the command.