Counterfactuals and similarity

From VectorSpaceLab/AREX-Skill · View interactive version

Counterfactuals and similarity is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Routes Alibi requests for Counterfactual, CEM, CounterfactualProto, CounterfactualRL, and GradientSimilarity workflows and their backend gating.

How to use this skill

Skill file

Counterfactuals and Similarity

Use this sub-skill when a user wants to generate counterfactual examples or compare instances with gradient-based similarity.

Trigger phrases

Open this sub-skill when the user mentions:

What this sub-skill owns

What it does not own

Read next

Typical flow

  1. Decide whether the request is a basic counterfactual, a prototype-guided counterfactual, or a similarity explanation.
  2. Check whether the requested backend is TensorFlow or Torch and whether the environment already has it.
  3. If the user only needs to know why the workflow is unavailable, run the diagnostic script instead of attempting a full training run.
  4. Use the workflow reference to explain the backend and tensor shape expectations.

Good fits

Common failure signals

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.