Audit Friction
Audit Claude Code sessions for permission and autonomy friction (denials, approval prompts, hook blocks, hand-offs), traced to cause in one decision brief…
от melodic-software★ 34 звезды на GitHub
Установить Audit Friction в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Audit friction
Arguments. [remeasure] [--days <n>] [--project <text>] [--source <dir>] [--verify consequential|full|probes]. Full form adds [--since <date>] [--until <date>] [--session <id>...]; --source repeats. e.g., /audit-friction, /audit-friction --days 14 --verify probes, /audit-friction remeasure
Purpose
Finds where permissions, auto mode, hooks and the agent's own asks get between the person and the work, and turns that into decisions the person makes once. Scripts count and match; agents judge. The run changes no setting itself.
Arguments
Read $ARGUMENTS whole; stop and name this accepted set on any other token.
remeasureruns Re-measure instead of the full pipeline.- Scope: every project on this machine over the last 7 days by default.
--since/--until(YYYY-MM-DD, UTC) or--daysset the window;--projectkeeps sessions whose repository or working directory contains the text;--sessionkeeps named sessions;--source <dir>adds a directory laid out like~/.claude/projects, or the configuration directory holding one, to the one audit-sessions store as its own source,dir-<hash of its path>. Another host's, or the other platform's, configuration directory comes from thetranscript_sources_filesources file, which collect reads; a projects tree the sources file does not list is not detected, so add it there or pass it as--source. The report header lists the projects roots (each stored source's, from its records' provenance, then each--source), then each collection gap with its retry command and each source the sources file lists that is past half itscleanupPeriodDayswithout a collection free of gaps. --verifypicks the verification depth (see Verify).
Default decision policy
Apply this policy unless the person states another, and say once that it is in force:
- The person decides design and policy; execution is autonomous.
- A research-backed recommendation is the default answer. Proceed on reversible, already authorized work and say so; ask only for irreversible, security, self-modification or design-choice items.
- Batch every open item into one ask per phase, each with its recommendation.
- Decided work is done in full, never weakened. When a gate blocks it, script it for the person.
- Approved work goes draft, ready, merged, as far as the person's standing authorization allows.
- Escalate only what needs the person, with links, and keep going on everything else.
- Recommend removing a gate whose only output is a workaround.
- A rate or usage limit means wait and retry, not stop. End with a clean stop: no agents or watchers left running, and say so.
Paths
Dis${CLAUDE_PLUGIN_DATA}, passed as a literal argument. Runs write underD/audit-friction/runs/<UTC stamp>/(Rbelow); baselines underD/audit-friction/baselines/. Nothing is written into a repository.Fispython3 "${CLAUDE_SKILL_DIR}/scripts/friction.py";Cispython3 "${CLAUDE_PLUGIN_ROOT}/scripts/collect.py", the plugin's session collector, which/session-flow:audit-sessionsalso runs. Use a Python 3.10+ interpreter; with none, stop and say so.- Read before step 2: reference/outputs.md (each output file, and the brief and script templates) and reference/classes.md (the classes and routes).
Collaborators
These skills belong to other plugins and are optional. Before the step that uses one, check that it is enabled; when it is not, say so once in the report and take its fallback:
/harness-config:audit-permission-state(if enabled) (step 3): runF causewithout--merge. It exits 1 and matches no rule, so the brief marks rule causes unmapped./harness-config:audit-permission-grants(if enabled) and/harness-config:audit-automation-gaps(if enabled) (step 3): skip them and name each check not run./harness-ops:behavior-probes(if enabled) (step 5 and the Gotchas): mark platform-behavior claims unprobed./discipline:do-your-research tiered(if enabled) (step 5): one agent checks the selected claims against their primary sources, citing each./harness-config:draft-auto-mode-rules(if enabled) (step 7): list theclassifiergroups inR/PR-DRAFTS.mdinstead./implementation:implement(if enabled) and/source-control:pull-request(if enabled) (step 7): the drafts stand alone for the person to apply.
Pipeline
Search scope. Search transcripts with this skill's own scripts (C, F) or the Grep tool
rooted at one session directory, never a recursive grep over a transcript folder; search plugin
sources with Grep or Glob rooted at the installed version directory of the plugin in question (its
installPath in plugins/installed_plugins.json under the config directory), never the whole
plugin cache; bound any other shell walk (not C or F) with timeout below the Bash to
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- evals/evals.json
- reference/classes.md
- reference/native-surfaces.md
- reference/outputs.md
- scripts/audit-friction.test.sh
- scripts/friction.py
- scripts/test_friction_duplicates.py
FAQ
Что делает скилл Audit Friction?
Audit Claude Code sessions for permission and autonomy friction (denials, approval prompts, hook blocks, hand-offs), traced to cause in one decision brief. Use when the agent keeps asking or handing off, auto mode denies, or re-measuring after permission fixes.
Как установить скилл Audit Friction?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Audit Friction запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…