Skip to content
Skills Library
Programming · Analysis

friction

/friction

Find persistent friction in the development setup (contention, slow or failing commands, tool gaps) from machine telemetry, count each symptom across days in a ledger, and surface only small fixes for symptoms that keep recurring. Use for the scheduled daily or weekly friction run, or to pick an item from a run's below-the-cut list.

Repository
claude ↗
Licence
MIT
Last repository change
23.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
18
Scripts
4
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What to check before installing
  • 4 scripts in this package. Review them before installing, as Claude may execute them.

Scripts: queries/queries.test.ts, scripts/collect.sh, scripts/ledger.test.ts, scripts/ledger.ts

What it does and when to use it

Find persistent friction in the development setup (contention, slow or failing commands, tool gaps) from machine telemetry, count each symptom across days in a ledger, and surface only small fixes for symptoms that keep recurring. Use for the scheduled daily or weekly friction run, or to pick an item from a run's below-the-cut list.

Arguments

/friction [--window 1d|7d] [--day YYYY-MM-DD] [pick <fingerprint>]
Original author description

Find persistent friction in the development setup (contention, slow or failing commands, tool gaps) from machine telemetry, count each symptom across days in a ledger, and surface only small fixes for symptoms that keep recurring. Use for the scheduled daily or weekly friction run, or to pick an item from a run's below-the-cut list.

How it works

  1. Arguments
  2. Steps
  3. Outcomes
Original SKILL.md headings · 105 lines, 1,121 words
SKILL.md preview
---
name: friction
disable-model-invocation: true
description: Find persistent friction in the development setup (contention, slow or failing commands, tool gaps) from machine telemetry, count each symptom across days in a ledger, and surface only small fixes for symptoms that keep recurring. Use for the scheduled daily or weekly friction run, or to pick an item from a run's below-the-cut list.
argument-hint: "[--window 1d|7d] [--day YYYY-MM-DD] [pick <fingerprint>]"
allowed-tools:
  - Bash
  - Read
  - Skill(observability:session)
  - Skill(pull-request:create)
---

# 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](#5-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](#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.

```bash
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](references/osquery.md) |
| Atuin | both | `collect.sh atuin`: slow and failing command heads. [references/atuin.md](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 |

Normalize every metric to a rate: per active hour, per call, or a share of minutes. Activity swings 200x day to day, so a raw count compares nothing.

### 2. Ground

Check each candidate against the live config in the config repos (`${user_config.config_repos}`), or the config files the tool reads when none are set. Drop any the config already addresses. A fix that does less work (skip a job, lower a limit) is not a fix here. Look for the change that makes the same work faster or attributes it.

### 3. Emit Findings

First read the open targets, so a symptom seen before keeps its fingerprint:

```bash
bun "${CLAUDE_SKILL_DIR}/scripts/ledger.ts" status
```

Reuse an entry's exact `type` and `target` when it describes the same symptom, even when you would word it differently. Otherwise take the target from the query's row in [osquery.md](references/osquery.md#targets) or [atuin.md](references/atuin.md#targets). For a session-index finding, the target is the hook script, tool, or command head the query names.

One JSON object per symptom seen in the window, including ones you expect to stay quiet:

```json
{"type": "contention", "target": "bun, duckdb", "impact": "high",
 "metric": "60% of saturated minutes had a bun/duckdb job within 2 min, vs 4% of other minutes",
 "fix": "rebuild session-index views per touched session", "small": false}
```

- `type`: `contention`, `slow-command`, `failing-command`, `tool-gap`, `upstream-change`, `config-drift`.
- `target`: the object the symptom is about, named the same way every run: a process name, a command head (its first two words, `g pull`, never its arguments), a tool, a hook script. The fingerprint is `type|target`, so a renamed target restarts its count.
- `impact`: decides what surfaces, so grade it by what the symptom costs the user, not by how often it fires.
  - `high`: blocks work. A command keeps failing through retries until someone works around it, or work stalls for minutes. Example: an auth command failing 9 of 11 runs across 25 minutes of retries.
  - `moderate`: costs time or attention, but work recovers on its own. Examples: a hook rejection that costs Claude one retry turn, a minute added to each turn, commit signing failures that a retry clears.
  - `low`: measurable but unnoticed. Low never surfaces. Record it so growth shows.

  Skip a guard firing as designed (a write-block hook stopping a write it should stop). It is not friction.
- `metric`: the one number behind the finding, with its query named.
- `small`: true only when the fix is one PR of a handful of lines in one topic, with no new dependency, and reverts cleanly.

Never put command arguments, paths under a work directory, or file contents in a finding. The ledger may leave the machine.

### 4. Record

Pipe the array to the ledger. It appends the day's findings, counts distinct days per fingerprint, and prints the decision:

```bash
echo "$FINDINGS" | bun "${CLAUDE_SKILL_DIR}/scripts/ledger.ts" record --window 1d
```

Do not count, rank, or override the decision yourself. The rules it applies:

- Daily: promotes at most one entry seen today with `impact: high` and `small: true`. Moderate never promotes mid-week, however often it recurs.
- Weekly: ranks every open entry by days seen, then impact, and promotes the top 5.
- Filed and picked fingerprints wait for their outcome. Dismissed ones stay quiet for 30 days. A resolved one that returns is flagged `regression`.

### 5. Deliver

Daily, when `promote` holds an entry: implement the fix in the config repo that owns it and open a draft PR through `pull-request:create`, with `Friction: <fp>` on its own line in the body and the metric as evidence. Then record it:

```bash
bun "${CLAUDE_SKILL_DIR}/scripts/ledger.ts" outcome <fp> filed --ref <pr-url>
```

Weekly: write one ranked list, highest first. Each entry gives the target, days seen, the metric, the proposed change, and whether it is small.

Both windows end the run's output with **Below the cut**: each `belowCut` entry as one line with its fingerprint, days seen, metric, and proposed change. The user picks from it with `pick <fingerprint>`. When the decision is empty, the whole output is one line saying the run found nothing to surface, plus how close the contention checks came: `saturation`'s `min_idle_pct` and the top `write-rate` name with its `peak_gb_per_min`.

## Outcomes

When a `Friction:` PR merges, record `resolved`. When the user closes one unmerged, record `dismissed`.
Files in this package (18)
  • SKILL.md 8 KB
  • queries/queries.test.ts 9 KB
  • queries/atuin/failing.sql 1 KB
  • queries/atuin/load.sql 1 KB
  • queries/atuin/slow.sql 1 KB
  • queries/osquery/attribution.sql 1 KB
  • queries/osquery/background-cpu.sql 1 KB
  • queries/osquery/heavy-writers.sql 1 KB
  • queries/osquery/load.sql 3 KB
  • queries/osquery/memory.sql 1 KB
  • queries/osquery/saturation.sql 1 KB
  • queries/osquery/thread-hogs.sql 1 KB
  • queries/osquery/write-rate.sql 1 KB
  • references/atuin.md 1 KB
  • references/osquery.md 3 KB
  • scripts/collect.sh 1 KB
  • scripts/ledger.test.ts 6 KB
  • scripts/ledger.ts 10 KB

Versions

RepositoryScoreLicence
This page · bendrucker/claude100MIT
amedeoscarano/anydash100MIT
manikumarkv/devrunway-claude-plugin100MIT
udaysharmadev/Skills90MIT

Database snapshot: 13.11.2026 · package version 3d40c52225e6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100forge-friction
    Surface recurring friction from session telemetry, classify as operational vs shape-gap, and generate targeted skills for shape-gap themes only. Use when the user runs /forge-friction.
  • 100agent-friction-ledger
    Capture recurring agent-development friction as a local, privacy-safe Markdown report. Use only when the user explicitly requests a friction review of blockers, misleading errors, missing documentation, incompatible tools, or manual workarounds that should improve a doc, tool,…
  • 100friction-log
    File contributor or agent papercuts as GitHub issues labeled friction, or investigate those issues as the daily friction-log Cloud Agent. Use when you hit repo friction, when asked to log friction, or when spawned to resolve open friction issues.
  • 100root-fix
    Use when the same mistake has come back two or more times, or when a fix was applied to a symptom and the cause is still unknown. Traces the symptom to its source, narrows several symptoms to one point, sweeps the repository for siblings of the same defect, fixes the source, and…
  • 100friction-mining
    Mines the user's local Claude Code and Codex history for recurring agent friction such as failed tool calls, retries, denials, interruptions and corrections. Use when asked what agents keep struggling with in a project or across projects. Step 0 of `skill-authoring`.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.