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 bendrucker/claude --skill frictiongit clone --depth 1 https://github.com/bendrucker/claudeWrote 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/bendrucker/claude/friction)<a href="https://agentmods.dev/skills/bendrucker/claude/friction"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/friction/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/bendrucker/claude/friction"><img src="https://agentmods.dev/badge/skills/bendrucker/claude/friction.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.00070 | $0.01922 |
| Opus 5.5 | $0.00028 | $0.00769 |
| Sonnet 5.5 | $0.00014 | $0.00384 |
| Haiku 4.5 | $0.00007 | $0.00192 |
Grade A, and why
friction 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 18d 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 — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Friction
Find what keeps slowing the setup down. Every symptom here recurs. Mid-week, only a blocker with a small fix is worth a change. Everything else waits for the weekly list, ranked by how many days it persisted.
The output budget is the point of this skill. A run that surfaces nothing is a correct run. Never pad.
Arguments
--window 1d(default): the daily run. Last 24 hours of osquery, Atuin, and the session index, about 5 minutes, offline. Reading the session index runs its incremental refresh first, so schedule the run after the day's other refreshes.--window 7d: the weekly run. Last 7 days of the same sources, plus upstream changelogs, 20 to 30 minutes.--day YYYY-MM-DD: run as of a past day, to backfill the ledger or replay a calibration day. Bound every query to the window ending that day, pass--dayto every ledger command, and print the decision without delivering it.pick <fingerprint>: the user asked for a below-the-cut item. Runscripts/ledger.ts outcome <fingerprint> picked, then open its draft PR as daily promotion does in Deliver, which records itfiled.
The window sets lookback, sources, and budget. The steps and the ledger rules are identical for both.
Steps
0. Outcomes
Check the open Friction: PRs and record any outcome the ledger lacks (see Outcomes). A --day replay skips this step.
1. Collect
Run named queries over the window. Each source returns rows, not prose. For osquery and Atuin, run the source's queries in one call, with the run's day and the window length in days (1 or 7). Never retype the SQL.
FRICTION_OSQUERY_DIR="${user_config.osquery_dir}" "${CLAUDE_SKILL_DIR}/scripts/collect.sh" osquery 2026-10-20 1
FRICTION_ATUIN_DB="${user_config.atuin_db}" "${CLAUDE_SKILL_DIR}/scripts/collect.sh" atuin 2026-10-20 1
| Source | Window | How |
|---|---|---|
| osquery | both | collect.sh osquery. How to read each query and name its target: references/osquery.md |
| Atuin | both | collect.sh atuin: slow and failing command heads. references/atuin.md |
| Session index | both | observability:session named queries with after_date at the window start. Daily: tool-failure-rates, hook-blocks, hook-block-then-retry-success, sandbox-bypass-scaffold, cli-health, stop-hook-noop-detector. Weekly runs every named query. It sees only local transcripts, so a quiet index means work moved to cloud sessions, not that friction stopped |
| Changelogs | 7d |
Release notes since the last run for tools the config repos install that the window's data shows in use |
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- queries/atuin/failing.sql 265 B
- queries/atuin/load.sql 766 B
- queries/atuin/slow.sql 269 B
- queries/osquery/attribution.sql 528 B
- queries/osquery/background-cpu.sql 312 B
- queries/osquery/heavy-writers.sql 294 B
- queries/osquery/load.sql 2.6 KB
- queries/osquery/memory.sql 256 B
- queries/osquery/saturation.sql 335 B
- queries/osquery/thread-hogs.sql 381 B
- queries/osquery/write-rate.sql 553 B
- queries/queries.test.ts 9.1 KB runs code
- references/atuin.md 959 B
- references/osquery.md 3.1 KB
- scripts/collect.sh 760 B runs code
- scripts/ledger.test.ts 5.8 KB runs code
- scripts/ledger.ts 10 KB runs code
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.
- 18d ago Changed dd97307c28a3
- 19d ago First seen · 116 lines · 70 tokens per session scan A 42a5bbbd76bb
friction is a skill published in the GitHub repository bendrucker/claude (18 stars, last pushed today), licensed MIT. It adds 70 tokens to every session and 1,922 once invoked, about $0.0003 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-10-22.
friction compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| frictionbendrucker/claude | Skill | 18 | today | MIT | A | 70 | Claude Code |
| release-noteskenryu42/cc-safety-net | Skill | 2.0k | today | MIT | A | 65 | Claude Code, Codex |
| add-teamsmicrosoft/power-platform-skills | Skill | 1.1k | today | MIT | A | 31 | Claude Code |
| relationsLifecycle-Innovations-Limited/claude-ops | Skill | 550 | 3d ago | MIT | A | 27 | Claude Code |
| service-deskcbrock84/headcount | Skill | 2.6k | 22d ago | MIT | A | 73 | Claude Code |
| recipe-add-integration-testsshinpr/claude-code-workflows | Skill | 713 | 4d ago | MIT | A | 19 | Claude Code |
| llm-friendly-contextshinpr/claude-code-workflows | Skill | 713 | 4d ago | MIT | A | 52 | Claude Code |