workflow-analyzer
Analyzes Claude Code session history to identify repeated workflows and suggest slash commands to automate them
What this skill does
# Workflow Analyzer Skill
## Purpose
This skill analyzes your Claude Code usage patterns by examining session transcripts to identify workflows you repeat frequently. It suggests specific slash commands you could create to automate these patterns, complete with time savings estimates and implementation priorities.
## When to Use
Use this skill when you want to:
- Identify repeated workflows in your Claude Code sessions
- Discover automation opportunities
- Get specific recommendations for slash commands to create
- Understand your development patterns and time investment
- Optimize your Claude Code workflow efficiency
## How It Works
This skill includes a pre-built Python analysis script that:
1. Parses session JSONL files from `~/.claude/projects/*/`
2. Identifies repeated patterns in user requests across sessions
3. Detects common workflows (git operations, documentation updates, testing cycles, etc.)
4. Generates a comprehensive report with automation recommendations
## Parameters
- **days** (optional): Number of days to analyze, defaults to 30
- Examples: "analyze my workflows from the last 7 days", "analyze my workflows from the last 60 days"
## Analysis Criteria
The skill considers a pattern significant if it:
- Appears 3+ times in the analyzed period
- Has consistent structure across occurrences
- Represents meaningful time investment
- Could be automated as a single slash command
## Patterns Detected
The skill identifies these common workflow patterns:
1. **Git workflows**: add/commit/push sequences, branch operations, PR creation
2. **Version/publish sequences**: version bumps, plugin/marketplace updates, releases
3. **Documentation updates**: README changes, consistency checks, sync operations
4. **Implementation cycles**: plan → build → test patterns, phase-based development
5. **Test/fix cycles**: test execution, error fixing, validation loops
## Usage Instructions
When the user requests workflow analysis:
1. **Calculate date range**:
- Use the `days` parameter if provided, otherwise default to 30
- Calculate cutoff timestamp: `date -v-{days}d +%s` (macOS) or `date -d "{days} days ago" +%s` (Linux)
2. **Locate session files**:
```bash
find ~/.claude/projects -name "*.jsonl" -type f -mtime -{days} 2>/dev/null
```
3. **Run analysis and generate report**:
```bash
find ~/.claude/projects -name "*.jsonl" -type f -mtime -{days} 2>/dev/null | \
python3 <skill-path>/scripts/workflow_analyzer.py
```
4. **Present findings**:
- Display the complete markdown report to the user
- Highlight top 3 automation opportunities
- Include specific time savings estimates
- Provide concrete next steps
## Report Deliverables
The generated report includes:
### Analysis Summary
- Time period analyzed (date range)
- Number of sessions reviewed
- Number of user prompts examined
- Total patterns detected
### High-Priority Patterns (ranked by impact)
For each pattern:
- Pattern name and description
- Frequency of occurrence
- Example user request sequences (actual prompts from sessions)
- Suggested command name (verb-noun format)
- Estimated time per occurrence and total time spent
- Potential time savings with automation
### Project-Specific Insights
- Which projects show the most repeated workflows
- Project-specific automation opportunities
- Activity distribution across projects
### Recommendations
- Which commands to create first (ranked by ROI)
- Estimated time savings for top suggestions
- Implementation complexity assessment
- Next steps for the user
## Privacy
- All analysis is performed **locally only**
- No data is sent to external services
- Session transcripts never leave the user's machine
- All processing happens in-memory with no temporary files created
## Success Criteria
This skill is successful if it:
- Accurately identifies patterns the user actually repeats
- Provides specific, actionable automation suggestions
- Shows clear time savings estimates
- Presents findings in a scannable, useful format
- Completes in reasonable time (< 2 minutes for 30 days of data)
## Example Invocations
- "Analyze my workflows"
- "What workflows am I repeating in Claude Code?"
- "Analyze my workflows from the last 60 days"
- "Find automation opportunities in my Claude Code usage"
- "Show me what I'm doing repeatedly"
## Notes
- The skill focuses on user prompts, not system messages or command outputs
- Patterns must appear 3+ times to be considered significant
- Time estimates are based on typical workflow execution times
- Suggested command names follow verb-noun convention (e.g., `/ship-git`, `/publish-plugin`)
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.