Aller au contenu
Skillpedia
Déploiement et cloud (DevOps)74k · #3094

mole

Ce qu’il fait

Ce skill exécute l'outil en ligne de commande Mole sur un Mac ou un ordinateur Windows pour lire l'utilisation du disque, prévisualiser le nettoyage et désinstaller des applications. Il s'adresse aux personnes qui veulent ranger leur ordinateur en toute sécurité.

Quand l’utiliser

  • ✓Quand quelqu'un demande ce qui occupe de la place sur son ordinateur.
  • ✓Quand quelqu'un veut nettoyer de vieux fichiers ou des caches en toute sécurité.
  • ✓Quand quelqu'un veut désinstaller une application depuis la ligne de commande.

Lien du skill

https://github.com/tw93/Mole/blob/main/plugins/mole/skills/mole/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/tw93/Mole/blob/main/plugins/mole/skills/mole/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Mon ordinateur portable est presque plein. Pouvez-vous me montrer ce qui occupe le plus de place et ce qui peut être nettoyé sans risque ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent lit d'abord la machine avec des commandes Mole en lecture seule. Il montre à l'utilisateur ce qui serait modifié, et ne supprime des fichiers qu'après que l'utilisateur a vu et approuvé l'aperçu.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Mole

Mole (mo) is a maintenance CLI with two editions that share one command set: Mole CLI (macOS) and Mole CLI (Windows). It deletes real files on the user's own machine. Your job is to read the machine, show the user exactly what would change, and hand them the decision. Done means the user's question is answered from Mole's own output, and nothing was removed that the user had not seen and approved.

1. Identify the edition

Run mo --version. The second line names the system (macOS: … or Windows: …). Then read exactly one reference and use only its commands:

The two editions differ in flags, JSON fields and what goes to the Trash or Recycle Bin, so never carry a command across. If the installed version is older than the one the reference names, or a flag is rejected, run mo <command> --help and trust it over this skill.

If mo is not found, say so and offer the install command from the reference. Install only after the user agrees.

2. Rules

  1. Read before you change. Answer with the read-only commands first: analyze --json, status --json, history --json, uninstall --list, and every --dry-run. They are safe to run without asking.
  2. Preview before every removal. Run the command with --dry-run, read the result, and summarize it for the user: total size, the largest groups, and for each group whether it is gone for good, goes to the Trash or Recycle Bin, or needs a download to rebuild. A preview is a snapshot; the real run rescans, so do not promise an exact number.
  3. Get consent before you type a removing command. Without a terminal, mo clean and mo optimize do not ask for confirmation: they start as soon as they are invoked. The consent therefore has to come first, in this conversation, after the user has seen the preview. "Why is my disk full" is a question, not consent; "go ahead and clean those" after the preview is. Consent covers what the preview showed. If the user wants only part of it, protect the rest first or hand the interactive command to the user.
  4. Some steps belong to the user's terminal. App uninstall, interactive selection lists, whitelist editors, and anything that needs an administrator password or an elevated shell cannot be completed from an agent. Give the user the exact command to run in their own terminal and stop. Never run sudo, ask for a password, or try to elevate.
  5. Use only the surfaces in the reference. Never parse a full-screen TUI frame, never invent a flag such as --yes or --force where the reference does not list it, and never fall back to rm, find -delete or Remove-Item to remove what Mole skipped or protected. A skip is Mole's answer.
  6. Leave Mole itself alone. Do not run mo update, mo remove, a nightly install, or configuration commands unless the user asked for that command.

3. Which command answers which question

The user asks Read first Then
"What is using my disk?" mo analyze --json, then mo analyze --json <path> on the largest entries Map each large entry to the command below that handles it; say plainly when none does (documents, media, VMs)
"Free up space" mo clean --dry-run and its path list After consent, mo clean
"Remove this app" mo uninstall --list Per reference; the final uninstall runs in the user's terminal
"Clean old projects" mo purge --dry-run Per reference
"My computer is slow" mo status --json, plus a short --watch sample if one snapshot is not enough Name the process or resource; offer mo optimize --dry-run only when maintenance fits the finding
"Did Mole delete my file?" mo history --json --limit 200 Match the path and anything under it, then offer to protect it. If the oldest entry returned is newer than the date in question, read the log file named in logs. No match means Mole has no record of it, not that Mole did not touch it
"Keep this folder" The whitelist section of the reference Never a hand-made exclusion

When explaining a disk analysis, map what you found: cache directories (cleanable: true), logs and leftovers of deleted apps go to clean; build output and dependency folders inside projects go to purge; installed apps go to uninstall. Documents, photos, media libraries, virtual mac

Questions fréquentes

Supprime-t-il des fichiers sans demander ?

Non. Le skill indique de lancer d'abord un aperçu, et l'utilisateur approuve toute suppression.

Fonctionne-t-il sur Mac et Windows ?

Oui. Le skill couvre macOS et Windows et utilise les commandes adaptées à chacun.

Que faire si la commande mo n'est pas installée ?

Le skill indique de le signaler et de proposer la commande d'installation, puis d'installer uniquement si l'utilisateur est d'accord.

Détails

Description originale de l’auteur

Drive the Mole CLI (`mo`) on macOS or Windows: find what uses disk space, preview and run cleanup, uninstall apps, and read system health and cleanup history. Use before running any `mo` command. Not for editing Mole source code.

repo: tw93/Mole

Popularité

Étoiles GitHub
74k
Position au classement
#3094
Licence
GPL-3.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Skills similaires