By zhiyuc123
Keeps your machine clean by routing one-off dependencies and scratch files into a single removable sandbox, and hard-blocks global/system package installs via a PreToolUse hook.
Everything an agent installs or generates for a one-off task lives in one place you can delete with a single command.
This skill gives the agent a single, auditable, throwaway workspace
(~/.agent-sandbox). All transient packages and scratch files from one-off,
project-independent tasks are routed there instead of into your global
Python/Node environment or scattered across the filesystem — so the entire
footprint is inspectable in one folder and reversible in one command:
rm -rf ~/.agent-sandbox # undoes everything the agent ever set up for one-off work
~/.agent-sandbox, deletable in one commandpython/, node/, tmp/, bin/, cache/) + a self-documenting README, so you can always see what's there and whyuvx, uv run, npx -y) — nothing to clean up at all.venv / node_modules)pip install, npm install -g, sudo pip)Use when: running pip install, npm install -g, uv pip install, uvx, or
npx; needing a scratch virtualenv; needing somewhere to put downloaded or
generated temp files; or whenever you want installs kept off the global system.
Don't use for: project-local dependencies that belong in a specific repo's own
.venv / node_modules, or system-level tools that genuinely need global access.
A skill is guidance — the model decides whether to follow it. This plugin adds
a PreToolUse hook that deterministically blocks global/system installs
before they run, regardless of whether the skill was loaded. When the plugin is
installed, the agent simply cannot run these without redirecting to a clean
path:
| Blocked | Allowed |
|---|---|
pip install / pip3 install / python -m pip install (no active venv) | uvx · uv run --with · npx -y |
sudo pip · easy_install · uv pip install --system | .venv/bin/pip install (direct venv) |
npm/pnpm/bun install -g · yarn global add | source .venv/bin/activate && pip install … |
npm install (project-local) |
The hook fails open (a parse error never blocks your shell) and is best-effort string matching — it stops honest habitual mistakes, not deliberate obfuscation.
Coverage limits & airtight complement. A command-string hook can't see
through aliases, wrappers (sh -c "…"), or non-Bash install paths. For
invocation-agnostic coverage, also set tool-native guardrails in your Claude
Code settings.json (these aren't shipped by the plugin — env vars come from
settings):
{ "env": { "PIP_REQUIRE_VIRTUALENV": "true" } }
PIP_REQUIRE_VIRTUALENV makes pip itself refuse to install outside a venv, no
matter how it's invoked.
/plugin marketplace add zhiyuc123/keeping-system-clean
/plugin install keeping-system-clean@zhiyuc123-skills
Copy the keeping-system-clean folder into your agent's skills directory:
Claude Code — ~/.claude/skills/
git clone https://github.com/zhiyuc123/keeping-system-clean /tmp/keeping-system-clean
cp -r /tmp/keeping-system-clean/skills/keeping-system-clean ~/.claude/skills/
Codex — ~/.agents/skills/
cp -r /tmp/keeping-system-clean/skills/keeping-system-clean ~/.agents/skills/
For other agents, place the keeping-system-clean/ folder in that agent's skills
directory.
Contributions are welcome. Please ensure:
SKILL.md follows the agentskills.io specificationdescription uses "Use when..." format, lists concrete trigger keywords,
and does not summarize the internal workflowMIT — see the LICENSE file.
Executes bash commands
Hook triggers when Bash tool is used
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub zhiyuc123/keeping-system-clean --plugin keeping-system-cleanComprehensive skill pack with 66 specialized skills for full-stack developers: 12 language experts (Python, TypeScript, Go, Rust, C++, Swift, Kotlin, C#, PHP, Java, SQL, JavaScript), 10 backend frameworks, 6 frontend/mobile, plus infrastructure, DevOps, security, and testing. Features progressive disclosure architecture for 50% faster loading.
A growing collection of Claude-compatible academic workflow bundles. Covers scientific figures, manuscript writing and polishing, reviewer assessment, citation retrieval, data availability, paper reading, literature search, response letters, paper-to-PPTX conversion, and evidence-grounded Chinese invention patent drafting. Rules are organized as reusable skill folders with explicit workflows and quality checks.
Complete creative writing suite with 10 specialized agents covering the full writing process: research gathering, character development, story architecture, world-building, dialogue coaching, editing/review, outlining, content strategy, believability auditing, and prose style/voice analysis. Includes genre-specific guides, templates, and quality checklists.
Permanent coding companion for Claude Code — survives any update. MCP-based terminal pet with ASCII art, stats, reactions, and personality.