friction
БесплатноЗапускает вложенные скриптыНе проверенFind persistent friction in the development setup (contention, slow or failing commands, tool gaps) from machine telemetry, count each symptom across days in…
от bendrucker★ 18 звёзд на 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 |
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:
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 or atuin.md. 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:
{"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 istype|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 show
Установить friction в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadSkill(observability:session)Skill(pull-request:create)Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл friction?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл friction запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic