Agent skill
workflow-review
Reviews Claude Code sessions and proposes workflow improvements. Use when: (1) /workflow-review command, (2) "review my workflow", "how can I improve", (3) after long sessions when nudged, (4) start of session with pending review. Analyzes tool usage patterns, CLAUDE.md configuration, and compares against CC best practices. Proposes: CLAUDE.md updates, new skills, underused CC features. Saves session summaries to .claude/workflow-reviews/ for cross-session continuity.
Install this agent skill to your Project
npx add-skill https://github.com/antoniocascais/claude-code-toolkit/tree/main/skills/workflow-review
SKILL.md
Workflow Review Skill
You analyze Claude Code sessions and propose workflow improvements. You propose changes for user approval and can save session summaries to ~/.claude/workflow-reviews/.
Core Behavior
- Analyze sessions via BM25 cross-session search
- Read project's CLAUDE.md and .claude/ configuration
- Research CC best practices via claude-code-guide agent
- Compare current setup against best practices
- Propose improvements via interactive approval
- User applies changes manually
Transcript Analysis (BM25 Cross-Session Search)
Uses BM25 search across conversation transcripts — no forked context needed.
Step 1: Gather Stats
Run aggregate stats to understand overall tool usage:
~/.claude/skills/workflow-review/scripts/conversation_search.py ~/.claude/projects --mode stats --recent-days 7
Step 2: Run Pattern Detection
Run all 12 built-in anti-pattern queries in one shot:
~/.claude/skills/workflow-review/scripts/conversation_search.py ~/.claude/projects --mode patterns --recent-days 7 --top-k 10
Built-in patterns: permission_fatigue, bash_for_file_ops, recurring_errors, subagent_issues, context_pressure, glob_via_bash, grep_via_bash, edit_via_heredoc, revert_churn, clarification_loop, debug_loop, hallucinated_api.
For ad-hoc investigation, use search mode with a custom query:
~/.claude/skills/workflow-review/scripts/conversation_search.py ~/.claude/projects "your query here" --recent-days 7 --top-k 15
Scope to current project with --project (use the encoded cwd directory name):
~/.claude/skills/workflow-review/scripts/conversation_search.py ~/.claude/projects --mode patterns --project "<encoded-cwd>" --recent-days 7
Step 3: Synthesize Results
Process the JSON results directly:
- Identify specific recommendations from search hits
- Cross-reference with CLAUDE.md configuration
- Query claude-code-guide for relevant CC features
Benefit: Searches across all recent sessions in seconds, stateless (no cache/index to maintain).
Execution Modes
On-Demand (/workflow-review)
Full analysis of current session:
- Analyze session patterns (tools used, friction points, repeated actions)
- Read project's CLAUDE.md and .claude/ configuration
- Query claude-code-guide for relevant CC features
- Present recommendations one-by-one via AskUserQuestion
Previous Session Review
When ~/.claude/workflow-reviews/pending-review.md exists at session start:
- Offer to review previous session's insights
- Present stored recommendations for approval
- Clean up pending file after review
Analysis Framework
1. Tool Usage Patterns
Look for:
- Repeated manual work: Same grep/glob patterns multiple times → suggest CLAUDE.md allowed patterns
- Permission fatigue: Frequently approving same tools → suggest permission presets
- Underused tools: Task tool for searches, Explore agent, Plan mode
- Inefficient patterns: Using Bash for file ops instead of Read/Edit/Write
2. CLAUDE.md Configuration
Check for:
- Missing context that would help Claude (project structure, conventions)
- Outdated instructions
- Overly verbose sections that could be condensed
- Missing tool permissions that are frequently approved
3. CC Features Not Being Used
Query claude-code-guide for features like:
- Hooks (PreToolUse, PostToolUse, etc.)
- Custom agents
- MCP servers
- IDE integrations
- Subagents and background tasks
4. Skill Opportunities
Identify repeated workflows that could become skills:
- Multi-step processes done frequently
- Project-specific patterns
- Domain knowledge worth preserving
Research Protocol
CRITICAL: Never use WebSearch or WebFetch directly. Always use claude-code-guide agent for CC information:
Task(
subagent_type: "claude-code-guide",
prompt: "What CC features help with [specific pattern observed]?"
)
This ensures:
- Information comes from official Anthropic sources only
- No prompt injection risk from random websites
- Curated, accurate CC knowledge
Recommendation Format
Present each recommendation via AskUserQuestion:
## Recommendation: [Title]
**Observation**: [What pattern was noticed]
**Suggestion**: [What to change]
**Benefit**: [Why this helps]
**To apply**: [Exact steps user should take]
Options:
- "Apply this" → Show exact text/commands to copy
- "Skip" → Move to next recommendation
- "Stop review" → End session review
Session Summary Format
When saving to .claude/workflow-reviews/pending-review.md:
# Session Review - {date}
Session ID: {session_id}
Duration: ~{message_count} messages
## Observations
1. [Pattern observed]
2. [Pattern observed]
## Recommendations
### 1. [Title]
- Observation: ...
- Suggestion: ...
- To apply: ...
### 2. [Title]
...
Quality Gates
Before proposing a recommendation, verify:
- Based on actual observed pattern (not hypothetical)
- Provides concrete benefit
- Actionable (user knows exactly what to do)
- Not already configured in CLAUDE.md
- Sourced from claude-code-guide (for CC features)
Anti-Patterns
- Don't guess: Only recommend based on observed patterns
- Don't overwhelm: Max 5 recommendations per review
- Don't repeat: Track what's been proposed before
- Don't modify user files: Only write to
~/.claude/workflow-reviews/, user applies code/config changes - Don't use WebSearch: Use claude-code-guide agent only
See references/example-session.md for a worked example.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
test-quality
Guides strong, effective unit test generation using proven testing techniques. Use when writing unit tests, reviewing test quality, improving existing tests, generating test cases, checking test coverage strength, or when tests exist but may be weak. Triggers on: unit test, test quality, test coverage, write tests, improve tests, review tests, test strength, mutation testing, boundary testing.
skill-forge
Creates new Claude Code skills with proper structure and best practices. Use when user wants to create a skill, update an existing skill, add a new command, scaffold a workflow, define skill hooks, or asks "how do I make a skill".
git-commit
Plans and executes git commits with optional TICKET_ID prefix. Analyzes staged changes, proposes optimal commit structure (single or multiple), generates descriptive messages with technical context, and executes after user approval. Use when committing code changes, creating atomic commits, or splitting large changesets.
clarice
Conducts realistic mock interviews with detailed feedback and scoring. Use for interview prep, behavioral questions, technical interviews, STAR practice, system design interviews, or interview coaching.
pr-review
Reviews code changes before merging. Use when reviewing PRs, checking staged changes, reviewing diffs, code review, merge readiness check, or validating changes before commit/push.
voice-mode
Activates voice conversation mode using Pocket TTS Docker container. Use when user says "voice mode", "let's talk", "talk to me", "speak your responses", or wants Claude to respond with spoken audio. Speaks all responses through TTS and plays via speakers.
Didn't find tool you were looking for?