friction · git:20261109.9cf0919 · 2026-11-09 · sha256 6f69de6dc43b7b8c

friction git:20261109.9cf0919A

Immutable. This exact content never changes and is served at /api/v1/blob/6f69de6dc43b7b8c.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_juzq6tmj4zgzajsq/6f69de6dc43b7b8c897b99a280d3281bb76ebcb5e4bf9ee1ba858f7da9874589.json

Then /plugin install friction@markdownregistry-juzq6tmj4zgzajsq in Claude Code. It installs this exact version, the one graded A here, pinned to the commit it was graded at, and leaves it there.

---
name: friction
description: >-
  Scans past dream-fixer-loop workflow runs for agent friction (skill or tool hunting under
  ~/.claude, denied or erroring tool calls, repeated failing commands, forbidden actions,
  self-reported friction, token and tool-call outliers) and reports the patterns seen in two or
  more runs, each with the deterministic check that would stop it or the prompt line it points to.
  Use when the user runs /dream-team:friction or asks what keeps going wrong across dream-fixer
  runs.
disable-model-invocation: true
---

# friction

## 1. Scan

- Run `python3 <this skill's base directory>/friction.py`.
- User asks for run times → add `--time`; print its table and stop.
- The script scans every workflow run not yet in the cache and appends its hits there.
- It prints each pattern + role seen in 2 or more runs; one-off hits stay in the cache only.
- Output is only the `scanned … new runs` line → report no repeated friction and stop.

## 2. Trace each pattern

Pattern names the script prints:

- `claude-dir`: Read/Glob/Grep, or a Bash `find`/`ls`/`cat`, under `~/.claude`.
- `tool-error`: a tool call denied or erroring, other than a plain non-zero exit.
- `repeat-failure`: the same failing Bash command run twice or more by one agent.
- `forbidden`: `ssh`, `git push`, a `gh`/`glab` write, or an edit, a Bash tree edit
  (`sed`/`perl -i`, `git checkout`/`restore`/`stash`, `tee` or a redirect to a path outside `/tmp/`
  and `/dev/`) or a commit by a read-only role.
- `self-report`: an entry from the agent's `friction` output field.
- `tokens-outlier`, `tools-outlier`: over 2x the role's median over earlier runs.

For each printed pattern:

- Find the prompt that role runs in `<base directory>/../../workflows/dream-fixer-loop.js`:
  `impl` → `implPrompt`, `gate` → `verifyPrompt`, `build-fix` → `buildFixPrompt`, `simplify` →
  `simplifyPrompt`, `simplify-fix` → `simplifyFixPrompt`, `review:domain` →
  `domainPrompt`, `review:external` → `externalPrompt`,
  other `review:` → `lensPrompt`, `re-review:` → `reReviewPrompt`, `fixdiff:` →
  `fixDiffPrompt`, `fix` → `fixPrompt` or `nitFixPrompt`.
- Name the prompt or skill line the evidence points to: the instruction the agent could not
  follow, or the tool it lacked.
- Read the evidence before blaming a prompt or naming a check; a hook bounce working as designed
  or a long run on a hard issue has neither behind it.
- A permission rule, hook or gate command could stop the pattern → name that check and what it
  stops.
- The pattern needs judgement → name no check.
- The only check is a new hook and no written rule forbids what the agent did → name no check.
- No check and no prompt line behind it → list it as ordinary and offer nothing for it.

## 3. Report

- One bullet per pattern: `- **<pattern> | <role>:** <n> runs; <evidence>; <target>`.
- A named check → `<target>` is `check: <check>`.
- No check, a prompt line → `<target>` is `<file>:<line>`.
- Ordinary → `<target>` is `ordinary`.
- Offer to file one dream-team issue per pattern with a check or a prompt line, for its `<target>`,
  written with `scope-issue`.
- File nothing without the user's yes.