Skip to content
Back to skills

Compare

ASecurity

Check whether agent friction in this repository went down since an earlier agent-friction scan, file by file and command by command. Use when the user asks whether the fixes helped, or to compare against the last scan.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 19, 2026
ai-agentspythongogit

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add nurettincoban/agent-friction --skill compare --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Compare?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Compare
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nurettincoban-compare/badge)](https://www.skillsdirectory.com/skills/nurettincoban-compare)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: compare
description: Check whether agent friction in this repository went down since an earlier agent-friction scan, file by file and command by command. Use when the user asks whether the fixes helped, or to compare against the last scan.
argument-hint: "[before.json after.json]"
---

# Did the friction go down?

This plugin carries its own copy of agent-friction. Run it as
`sh "${CLAUDE_PLUGIN_ROOT}/plugin/agent-friction"`, never as a bare `agent-friction`. It needs
Python 3.10 or newer; if the launcher says it found none, tell the user and stop. Do not
install anything, and do not change any file except the scan file below.

## 1. Two scans given

If the user named two saved scans (`$ARGUMENTS`), compare them and go to step 4:

```sh
sh "${CLAUDE_PLUGIN_ROOT}/plugin/agent-friction" compare BEFORE.json AFTER.json --color never
```

## 2. Find the earlier scan

Otherwise use the newest `.agent-friction/scan-*.json` (the names sort by time). If there is
none, tell the user to run `/agent-friction:scan` or `/agent-friction:fix` first, and that a
comparison makes sense once agents have worked here for a while after it (a week or two).
Stop.

## 3. Scan what came after it, and compare

The scan files quote transcript text. If `.agent-friction/` is not ignored by git
(`git check-ignore -q .agent-friction/`), ask the user first whether to add it to
`.gitignore`.

`--since` with a saved scan reads only the events after that scan's last one, with the same
transcript options it used, so no event is counted on both sides. From the repository root,
as one command:

```sh
before=$(ls .agent-friction/scan-*.json 2>/dev/null | sort | tail -n 1) && [ -n "$before" ] && after=.agent-friction/after-$(date -u +%Y-%m-%d-%H%M%S).json && sh "${CLAUDE_PLUGIN_ROOT}/plugin/agent-friction" scan --since "$before" -f json -o "$after" && sh "${CLAUDE_PLUGIN_ROOT}/plugin/agent-friction" compare "$before" "$after" --color never
```

If the scan fails because no session came after the earlier one, tell the user there is
nothing to compare yet, and stop.

## 4. Tell the user

Read the session count on the "after" side first. Fewer than 3 sessions is too early to
tell (the session that made the earlier scan may be the only one): say so, give the date to
try again, and do not report the verdicts. Otherwise, in a few lines, lead with the outcome:

- what got better: `improved`, `resolved`, `replaced` (agents switched to the recommended
  command), `enforced` (a new rule now refuses the call and agents go another way);
- what got worse or is new: `regressed`, `new`;
- `inactive` (nobody touched it afterwards) and `too-little-data` say nothing either way;
  mention them only as that.

If something regressed, offer `/agent-friction:fix`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.