mcpbeat Sign in

Workflow Monitor Skill for Claude

Detects workflow failures and inefficient patterns then files GitHub issues. Use when a workflow step repeatedly fails or produces inconsistent output.

5k tokens
context cost
the whole folder, loaded on every use
4
files
instructions only
0
copies elsewhere
how many repositories repackaged it
324
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/athola/claude-night-market --skill workflow-monitor

The instruction itself

24 sections, as written by the author

When NOT To Use

  • A one-off failure worth debugging directly (use

superpowers:systematic-debugging)

  • Rewriting the workflow's assets (use sanctum:workflow-improvement)

Table of Contents

  • Philosophy
  • Quick Start
  • Detection Patterns
  • Workflow
  • Issue Template
  • Configuration
  • Guardrails
  • Integration Points
  • Output Format

Workflow Monitor

Monitor workflow executions for errors and inefficiencies, automatically creating issues on the detected git platform (GitHub/GitLab) for improvements. Check session context for git_platform: and use Skill(leyline:git-platform) for CLI command mapping.

Philosophy

Workflows should improve over time. When execution issues occur, capturing them systematically enables continuous improvement. This skill hooks into workflow execution to detect problems and propose fixes.

Quick Start

Manual Invocation

# After a failed workflow
/workflow-monitor --analyze-last

# Monitor a specific workflow execution
/workflow-monitor --session <session-id>

# Analyze efficiency of recent workflows
/workflow-monitor --efficiency-report

Automatic Monitoring (via hooks)

When enabled, workflow-monitor observes execution and flags:

  • Command failures (exit codes > 0)
  • Timeout events
  • Repeated retry patterns
  • Context exhaustion
  • Inefficient tool usage

Detection Patterns

Error Detection

| Pattern | Signal | Severity |

|---------|--------|----------|

| Command failure | Exit code > 0 | High |

| Timeout | Exceeded timeout limit | High |

| Retry loop | Same command >3 times | Medium |

| Context exhaustion | >90% context used | Medium |

| Tool misuse | Wrong tool for task | Low |

Efficiency Detection

| Pattern | Signal | Threshold |

|---------|--------|-----------|

| Verbose output | >1000 lines from command | 500 lines recommended |

| Redundant reads | Same file read >2 times | 2 reads max |

| Sequential vs parallel | Independent tasks run sequentially | Should parallelize |

| Over-fetching | Read entire file when snippet needed | Use offset/limit |

Workflow

Phase 1: Capture (workflow-monitor:capture-complete)

  • Log execution events - Commands, outputs, timing
  • Tag anomalies - Failures, timeouts, inefficiencies
  • Store evidence - For reproducibility

Phase 2: Analyze (workflow-monitor:analysis-complete)

  • Classify issues - Error type, severity, scope
  • Identify root cause - What triggered the issue
  • Suggest fix - What would prevent recurrence

Phase 3: Report (workflow-monitor:report-generated)

  • Generate issue body - Structured format
  • Assign labels - workflow, bug, enhancement
  • Link evidence - Command outputs, session info

Phase 4: Create Issue (workflow-monitor:issue-created)

  • Check for duplicates - Search existing issues
  • Create if unique - Via gh CLI
  • Link to session - For traceability

Issue Template

## Background

Detected during workflow execution on [DATE].

**Source:** [workflow name] session [session-id]

## Problem

[Description of the error or inefficiency]

**Evidence:**

[Command that failed or was inefficient]

[Output excerpt]


## Suggested Fix

[What should change to prevent this]

## Acceptance Criteria

- [ ] [Specific fix criterion]
- [ ] Tests added for new behavior
- [ ] Documentation updated

---
*Created automatically by workflow-monitor*

Configuration

# .workflow-monitor.yaml
enabled: true
auto_create_issues: false  # Require approval before creating
severity_threshold: "medium"  # Only report medium+ severity
efficiency_threshold: 0.7  # Flag workflows below 70% efficiency

detection:
  command_failures: true
  timeouts: true
  retry_loops: true
  context_exhaustion: true
  tool_misuse: true

efficiency:
  verbose_output_limit: 500
  max_file_reads: 2
  parallel_detection: true

Guardrails

  • No duplicate issues - Check existing issues before creating
  • Approval required - Unless auto_create_issues: true
  • Evidence required - Every issue must have reproducible evidence
  • Rate limiting - Max 5 issues per session

Required TodoWrite Items

  • workflow-monitor:capture-complete
  • workflow-monitor:analysis-complete
  • workflow-monitor:report-generated
  • workflow-monitor:issue-created (if issue created)

Integration Points

  • imbue:proof-of-work: Captures execution evidence
  • sanctum:fix-workflow: Implements suggested fixes
  • Hooks: Can be triggered by session hooks for automatic monitoring

Output Format

Efficiency Report

## Workflow Efficiency Report

**Session:** [session-id]
**Duration:** 12m 34s
**Efficiency Score:** 0.72 (72%)

### Issues Detected

| Type | Count | Impact |
|------|-------|--------|
| Verbose output | 3 | Medium |
| Redundant reads | 2 | Low |
| Sequential tasks | 1 | Medium |

### Recommendations

1. Use `--quiet` flags for npm/pip commands
2. Cache file contents instead of re-reading
3. Parallelize independent file operations

### Create Issues?

- [ ] Issue 1: Verbose output from npm install
- [ ] Issue 2: Redundant file reads in validation
  • imbue:proof-of-work: Evidence capture methodology
  • sanctum:fix-workflow: Workflow improvement command

Status: Skeleton implementation. Requires:

  • Hook integration for automatic monitoring
  • Efficiency scoring algorithm
  • Duplicate detection logic

Exit Criteria

  • [ ] All 4 TodoWrite phases completed: capture-complete,

analysis-complete, report-generated, and (if an issue is

created) issue-created

  • [ ] Every issue filed contains reproducible evidence: the exact

command that failed or was inefficient plus an output excerpt

  • [ ] Duplicate check run via gh issue list --search before

creating any issue; duplicate suppressed and existing issue

URL reported instead

  • [ ] No more than 5 issues created per session regardless of

how many anomalies are detected; rate limit enforced

Other skills for the same job

different authors, same section of the catalogue
GitHub Project Management
by ComeOnOliver
×3

Comprehensive GitHub project management with swarm-coordinated issue tracking, project board automation, and sprint planning

14k tokens
Folder Structure Blueprint Generator
by github
vendor ×1

Comprehensive technology-agnostic prompt for analyzing and documenting project folder structures. Auto-detects project types (.NET, Java, React, Angular, Python, Node.js, Flutter), generates detailed blueprints with visualization options, naming conventions, file placement patterns, and extension templates for maintaining consistent code organization across diverse technology stacks.

3k tokens
Sequential Thinking
by mrgoonie
×1

Use when complex problems require systematic step-by-step reasoning with ability to revise thoughts, branch into alternative approaches, or dynamically adjust scope. Ideal for multi-stage analysis, design planning, problem decomposition, or tasks with initially unclear scope.

4k tokens
Openserv Multi Agent Workflows
by internet-court
×1

Multi-agent workflow examples to work together on the OpenServ Platform. Covers agent discovery, multi-agent workspaces, task dependencies, and workflow orchestration using the Platform Client. Read reference.md for the full API reference. Read openserv-agent-sdk and openserv-client for building and running agents.

24k tokens
Caveman Compress
by HoangNguyen0403
×1

> Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md.

7k tokens scripts
API Patterns
by lingxling
×1

API design principles and decision-making. REST vs GraphQL vs tRPC selection, response formats, versioning, pagination.

5k tokens scripts
Github Workflow Automation
by lingxling
×1

Patterns for automating GitHub workflows with AI assistance, inspired by [Gemini CLI](https://github.com/google-gemini/gemini-cli) and modern DevOps practices.

5k tokens
Domain Identification Grouping
by christophacham
×1

Groups existing components into logical business domains to plan service-based architecture. Use when asking "which components belong together?", "group these into services", "organize by domain", "component-to-domain mapping", or planning service extraction from an existing codebase. Do NOT use for identifying new domains from scratch (use domain-analysis) or analyzing coupling (use coupling-analysis).

10k tokens

How to use it

Copy the folder

Take athola/workflow-monitor from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference npm. Without those the skill loads but fails at the first command.