Désinstallation de SCCFM

VérifiéPrudence

Découvre et supprime en toute sécurité les artefacts d'exécution de SCC Firewall Manager : Homebrew, pipx, companion Ansible et collection cisco.sccfm.

Spar Skills Guide Bot
DevOpsIntermédiaire
11/09/2026
Claude CodeCodex
#uninstall#cleanup#sccfm#ansible#package-management

Recommandé pour

Synthèse automatique

Génère un plan vérifiable puis exécute la suppression des artefacts d'exécution de SCC Firewall Manager : installations Homebrew, pipx ou Python héritées, compagnon Ansible géré, collection Galaxy cisco.sccfm et profils nommés optionnels.

Points forts

  • Sépare nettement la génération du plan, la confirmation exacte de l'utilisateur et l'exécution, avec un plan_digest qui bloque toute dérive de la cible
  • Détecte et rapporte indépendamment chaque méthode d'installation et sa version, pour permettre de retirer plusieurs installations en une passe
  • Préserve par défaut les installations Python éditables et les collections hors du chemin utilisateur standard, et exige une confirmation distincte « AND PROFILES » pour effacer les profils et leurs jetons API
  • Interdit explicitement les commandes manuelles (pip uninstall, suppression récursive) et passe uniquement par le helper fourni

Limites

  • Ne couvre que la désinstallation : ni installation, ni réparation, ni opérations CLI ou automatisation Ansible
  • Ne supprime pas le plugin lui-même ; cette étape reste manuelle via /plugin uninstall ou codex plugin remove
  • Entièrement interactif : les chaînes de confirmation imposées rendent le processus difficile à automatiser
  • Ne lit jamais le contenu des profils, seulement leurs métadonnées
Quand l'utiliser

À utiliser quand l'utilisateur veut désinstaller, démonter ou nettoyer complètement une installation locale de SCC Firewall Manager.

Quand l'éviter

À ne pas utiliser pour installer ou réparer SCCFM, exécuter des commandes CLI, ou lancer de l'automatisation Ansible.

Analyse de sécurité

Prudence
Score qualité90/100

This is a destructive uninstall workflow, but it does not exfiltrate data, use obfuscated payloads, or instruct manual recursive deletion. The main risk is authorized removal of installed components and optional profile/token stores. Strong confirmation and digest-based plan validation make it acceptable with caution rather than risky.

Points d'attention
  • •Runs a packaged Python helper via `Bash(python3 *)` that performs uninstall/teardown actions, including removal of Homebrew, pipx, Python packages, and optionally named profiles with stored API tokens.
  • •The `Bash(python3 *)` permission is broader than the specific helper invocations, though the instructions constrain usage to the packaged helper.
  • •Destructive actions are guarded by plan display, `plan_digest`, exact confirmation phrases, and helper-side target revalidation, which materially reduce risk.
Comment cette analyse est faite

Exemples

Full SCCFM uninstall
Uninstall SCC Firewall Manager from this machine — show me the full cleanup plan first before anything is removed.
Uninstall including profiles
Remove SCCFM and also delete the named profiles and their stored API tokens.
Verify teardown
Check with the doctor command that sccfm-cli, the cisco.sccfm collection, and the profile are all gone.

name: sccfm-uninstall description: Safely discover and remove local SCC Firewall Manager runtime artifacts, including Homebrew, pipx, or legacy Python sccfm-cli installs, the managed Ansible companion, the standard cisco.sccfm collection, and optional named profiles. Use for uninstall, teardown, or complete SCCFM cleanup. Do not use for installation, repair, CLI operations, or Ansible automation. allowed-tools: "Bash(python3 *) Read"

SCC Firewall Manager Uninstall

Remove SCCFM runtime artifacts before removing this plugin. Use only the packaged helper; do not construct manual pip uninstall or recursive-delete commands.

Resolve the plugin root from this loaded SKILL.md once. Set PLUGIN_ROOT to that absolute directory and use it for every packaged-helper invocation below. Do not assume that the shell's current directory is the plugin root.

1. Generate the reviewed plan

Resolve this skill's plugin root, then run:

python3 "$PLUGIN_ROOT/scripts/setup_runtime.py" cleanup-plan --json

Add --remove-profiles only when the user explicitly asks to delete named profiles and their stored API tokens. The helper reports profile metadata but never reads or displays profile contents.

The plan discovers the canonical ciscodevnet/tap/sccfm-cli Homebrew formula, the managed pipx environment, the helper-owned Homebrew Ansible companion, non-editable Python installs, and the positively identified standard Galaxy collection. It reports each installation method and version independently so multiple installs can be reviewed and removed together. Never infer Homebrew ownership from an executable path or remove a same-named formula from another tap. The reviewed Homebrew command disables automatic dependency removal so it mutates only the SCCFM formula.

The helper preserves collections outside the standard per-user path. It also preserves editable Python installs by default; if any are reported, explain their source and ask whether the user also wants to remove those development installs. Only after that explicit choice, regenerate the plan with --include-editable.

Show the complete plan, including preserved artifacts and plan_digest. Do not continue if discovery or path validation fails.

2. Require exact confirmation

When profiles are preserved, require the standalone confirmation:

UNINSTALL SCCFM

When profiles and their API tokens will be deleted, require:

UNINSTALL SCCFM AND PROFILES

AND PROFILES explicitly authorizes deletion of the named-profile store and its API tokens. The confirmation authorizes only the reviewed plan. It does not authorize different targets, editable installs that were not included in that plan, or plugin removal.

3. Execute the same plan

After confirmation, use the same options and the exact digest returned by the plan:

python3 "$PLUGIN_ROOT/scripts/setup_runtime.py" cleanup --plan-digest <digest> --yes

Include --remove-profiles and --include-editable exactly when they appeared in the reviewed plan. The helper recomputes discovery and refuses to proceed if the target set changed after review.

The helper removes the standard Galaxy collection and its owned Ansible companion first, then reviewed pipx, Homebrew, and discovered Python packages, and finally the profile when requested. Never bypass a helper refusal with direct filesystem deletion.

4. Verify and remove the plugin separately

Run:

python3 "$PLUGIN_ROOT/scripts/setup_runtime.py" doctor --json

Teardown is complete only when the requested CLI packages, collection, and profile are absent. A preserved editable install is not an error when the user chose to keep it.

After successful teardown, tell the user that plugin removal is separate. Use /plugin uninstall sccfm@sccfm-devkit in Claude Code or codex plugin remove sccfm@sccfm-devkit in Codex.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/sccfm-uninstall-mtwgrtdk' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/sccfm-uninstall-mtwgrtdk/download' --output '.skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md.part' && mv '.skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md.part' '.skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash(python3 *) Read

Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md' && test -s '.skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/sccfm-uninstall' && cp -R '.skill-downloads/sccfm-uninstall-mtwgrtdk' '.claude/skills/sccfm-uninstall'

Codex
test -f '.skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md' && test -s '.skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/sccfm-uninstall' && cp -R '.skill-downloads/sccfm-uninstall-mtwgrtdk' '.agents/skills/sccfm-uninstall'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/sccfm-uninstall-mtwgrtdk'

openskills read 'sccfm-uninstall-mtwgrtdk'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/sccfm-uninstall-mtwgrtdk/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires