friction

friction is a skill for Claude Code from bendrucker/claude. It costs 70 tokens per session (1,922 once invoked), scanned A, original, MIT.

A scheduled workflow that reads development-machine activity, records recurring symptoms over a chosen time window, and surfaces only small fixes for problems that persist. It can use system telemetry, command history, and a session index.

In plain words
What is it for?
Use it to find recurring contention, slow or failing commands, and missing tools, then promote a selected small fix into a draft pull request.
Why use it?
It helps separate repeated setup problems from temporary annoyances and avoids filling the work queue with low-value suggestions. Daily and weekly runs use different lookback periods and output limits.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the friction plugin — 1 skill shipped together

Good fit Use it to find recurring contention, slow or failing commands, and missing tools, then promote a selected small fix into a draft pull request.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bendrucker/claude/friction
Install

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.

Any agent
npx skills add bendrucker/claude --skill friction
Clone the repo
git clone --depth 1 https://github.com/bendrucker/claude

Made for: Claude Code.

Or install friction, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for friction

README.md
[![agentmods](https://agentmods.dev/badge/skills/bendrucker/claude/friction/github.svg)](https://agentmods.dev/skills/bendrucker/claude/friction)
Your own site
<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.

agentmods 80×15 button for friction

Your own site · 80×15
<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>
Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,922 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 18d ago against content hash dd97307c28a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

The scan reads SKILL.md. This mod also ships 4 executable files (queries/queries.test.ts, scripts/collect.sh, scripts/ledger.test.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/friction/skills/friction/SKILL.md · 116 lines

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 --day to every ledger command, and print the decision without delivering it.
  • pick <fingerprint>: the user asked for a below-the-cut item. Run scripts/ledger.ts outcome <fingerprint> picked, then open its draft PR as daily promotion does in Deliver, which records it filed.

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

Read the full file on GitHub · 116 lines

Changes

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.

  1. 18d ago Changed dd97307c28a3
  2. 19d ago First seen · 116 lines · 70 tokens per session scan A 42a5bbbd76bb

Subscribe to this mod's changes

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.

Related

friction compared with skills from other repositories

friction next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
frictionbendrucker/claudeSkill18todayMITA70Claude Code
release-noteskenryu42/cc-safety-netSkill2.0ktodayMITA65Claude Code, Codex
add-teamsmicrosoft/power-platform-skillsSkill1.1ktodayMITA31Claude Code
relationsLifecycle-Innovations-Limited/claude-opsSkill5503d agoMITA27Claude Code
service-deskcbrock84/headcountSkill2.6k22d agoMITA73Claude Code
recipe-add-integration-testsshinpr/claude-code-workflowsSkill7134d agoMITA19Claude Code
llm-friendly-contextshinpr/claude-code-workflowsSkill7134d agoMITA52Claude Code