Agent skill · Security

audit-friction

Scan Claude Code project logs for friction patterns — repeated failures, approach loops, tool errors, misunderstanding cycles, and stuck workflows. Categorizes and counts friction events to surface what causes the most resistance. Use when user says "audit friction", "find friction", "friction audit", or "what keeps going wrong".

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill audit-friction --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 11 KB
Bundled scripts: none
Path: skills/analysis/audit-friction/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Friction Audit Skill Mine Claude Code conversation logs to identify and categorize friction — repeated failures, stuck loops, tool errors, and misunderstanding cycles that cost the most effort. Surfaces patterns causing the most resistance and recommends concrete mitigations. ## When to Use - User says "audit friction", "find friction", "friction audit", or "what keeps going wrong" - User wants to know where workflows repeatedly stall or fail - User wants to identify systemic tooling or workflow issues across sessions ## Arguments The user may provide a "since" date (e.g., `2/7`, `2026-02-07`, `last month`). If not specified, use `AskUserQuestion` to ask what the earliest lookback date should be before proceeding. If the resulting window contains no logs, fall back to the last 30 days and note the adjustment. ## Critical Constraints **NEVER:** - Modify any source code files - Create files outside `temp/audit-friction/` directory - Have subagents write files — they return all findings in response text only - Analyze subagent log subdirectories (`*/subagents/`) — top-level session files only **ALWAYS:** - Use subagents heavily for parallel log analysis - All output goes under `temp

What's inside
Steps it walks through
  1. When to Use
  2. Arguments
  3. Critical Constraints
  4. Friction Categories
  5. Friction Signal Patterns
  6. Workflow
  7. Step 1: Locate Project Logs
  8. Step 2: Filter by Date and Count
  9. Step 3: Haiku Batch Scan
  10. Step 4: Sonnet Deep Analysis per Category
  11. Step 5: Synthesize Findings
  12. Step 6: Write Report
  13. Step 7: Terminal Summary
Ships with 1 file
  • metadata.json
Commands it runs
Tool errors — direct flag
grep -n '"is_error".*true' FILE | head -100
Error keywords in content
Human correction language (look inside "type":"human" lines)
grep -n '"type":"human"' FILE | grep -i 'wrong\|"no,\|try again\|you already\|that.s not\|incorrect\|revert\|undo\|stop' | head -50
Test / build failures
grep -in 'FAILED\|test.*failed\|build.*failed\|compile.*error\|syntax error' FILE | head -100
Consecutive tool call loops — extract tool names in document order, show runs of 2+ back-to-back
grep -o '"name":"[^"]*"' FILE | awk -F'"' '{print $4}' | uniq -c | awk '$1>=2' | head -30
Once you know which tool is looping, get its line numbers to find the range:
More from claude-skill-registry
All skills →
About this skill
What does the audit-friction skill do?

Scan Claude Code project logs for friction patterns — repeated failures, approach loops, tool errors, misunderstanding cycles, and stuck workflows. Categorizes and counts friction events to surface what causes the most resistance. Use when user says "audit friction", "find friction", "friction audit", or "what keeps going wrong".

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill audit-friction --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going