Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add MattArtzAnthro/gephi-ai --skill counterfactual-analysisgit clone --depth 1 https://github.com/MattArtzAnthro/gephi-aiWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/mattartzanthro/gephi-ai/counterfactual-analysis)<a href="https://agentmods.dev/skills/mattartzanthro/gephi-ai/counterfactual-analysis"><img src="https://agentmods.dev/badge/skills/mattartzanthro/gephi-ai/counterfactual-analysis/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/mattartzanthro/gephi-ai/counterfactual-analysis"><img src="https://agentmods.dev/badge/skills/mattartzanthro/gephi-ai/counterfactual-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.01038 |
| Opus 5.5 | $0.00017 | $0.00415 |
| Sonnet 5.5 | $0.00008 | $0.00208 |
| Haiku 4.5 | $0.00004 | $0.00104 |
Grade A, and why
counterfactual-analysis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Counterfactual test
Answer the user's what-if question by running it as a real measurement against the graph currently
loaded in Gephi, using gephi_whatif. It duplicates the current workspace, applies
the edit to the copy, compares the structural profile before and after, then deletes
the copy. The real graph is never touched, so this is safe to run repeatedly.
Follow the gephi skill's rules throughout; this workflow repeats only the ones
it is most likely to break.
Read ../gephi/references/claim-verification.md for
removal tests and their comparison node.
Rules this workflow must keep
- Asking. When a step says to ask, ask once. If the person cannot answer, is away, or asked for a finished product, use the default named in that step and remove or overwrite nothing. At the end, give one short line for each choice that changed the result, under "Choices I made"; leave the section out when every step used its obvious default. If there is no input to work on, stop and say what is needed.
- Session start. Start with
gephi_health_check. Then check which workspace is open (gephi_list_workspaces) and whether a filter is active (filter_activein replies): a filter from an earlier conversation stays on, and exports and checks then see only what it shows. - Ranking. To rank nodes on a metric, call
gephi_query_nodeswithsort_byset to the metric,columnsset to the few columns you need, andlimitabout 10: nodes are ordered before paging, so the first page is the top of the whole graph. Withoutcolumns, every attribute of every node comes back and a long listing can overflow.
Steps
-
Session start:
gephi_health_check. If it fails, tell the user to start Gephi and stop. Callgephi_list_workspaces; iffilter_activeis true, say the test runs on the visible nodes only. -
Get the question. If the request does not specify an edit, ask what edit they want to test (one sentence is enough: "what if we removed the top hub?", "what if these two accounts stopped talking?"). Default: remove the single highest-degree node.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +16 lines bd9ecec825cb
- 3mo ago First seen · 48 lines · 42 tokens per session scan A fd655367bfe1
counterfactual-analysis is a skill published in the GitHub repository MattArtzAnthro/gephi-ai (27 stars, last pushed today), licensed Apache-2.0. It adds 42 tokens to every session and 1,038 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
counterfactual-analysis compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| counterfactual-analysisMattArtzAnthro/gephi-ai | Skill | 27 | today | Apache-2.0 | A | 42 | Claude Code, Codex |
| agentmailpaperclipai/paperclip | Skill | 119k | today | MIT | A | 30 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 92 | Claude Code |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 30 | Claude Code |
| tao-generate-image-groundingNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 95 | Claude Code |
| dogfoodcallstack/agent-device | Skill | 5.6k | today | MIT | A | 55 | Claude Code |
| jetson-validate-imageNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | B | 50 | Claude Code, Codex |