Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
athola avatar

Workflow Monitor

  • 107 installs
  • 325 repo stars
  • Updated August 2, 2026
  • athola/claude-night-market

workflow-monitor is an agent skill that catalogs detection patterns for command failures, timeouts, retry loops, and context exhaustion—usable whenever a solo builder runs multi-step agent workflows and needs

About

workflow-monitor documents detection patterns for errors and inefficiencies in long-running Claude or Codex-style workflows. Solo builders who chain shell commands through an agent install it to recognize command failures via exit codes and stderr, timeout events, excessive retries of the same command, context window exhaustion, and bloated command output. The readme supplies concrete bash and Python snippets you can embed in monitors, hooks, or review scripts rather than a single packaged CLI. It is journey-wide because brittle automation shows up while building features, shipping tests, growing ops scripts, and operating daily agent sessions. The skill is procedural pattern reference—intermediate complexity assumes you can wire detection into your night-market or custom orchestration layer.

  • Detects non-zero exit codes and stderr error/failed/exception patterns
  • Flags timeout events including exit code 124 and timed-out messaging
  • Retry-loop heuristic when the same command runs more than three times
  • Context exhaustion signals when usage exceeds roughly 90% or truncation appears
  • Efficiency pattern for verbose output exceeding about 500 lines

Workflow Monitor by the numbers

  • 107 all-time installs (skills.sh)
  • Ranked #761 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/athola/claude-night-market --skill workflow-monitor

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs107
repo stars325
Security audit2 / 3 scanners passed
Last updatedAugust 2, 2026
Repositoryathola/claude-night-market

What it does

Detect agent workflow failures—command errors, timeouts, retry loops, and context exhaustion—so long autonomous sessions stay efficient.

Who is it for?

Best when you're orchestrating repeated shell-heavy agent sessions and want copy-paste detection logic for monitors or custom workflow runners.

Skip if: Skip if you need a turnkey hosted observability product with dashboards and alerts out of the box.

When should I use this skill?

Designing or reviewing agent workflow monitors for command failure, timeout, retry loops, context limits, or excessive output.

What you get

You apply documented detection signals and snippets so workflows surface errors, timeouts, retry loops, and efficiency issues before they waste another hour of agent time.

  • Detection pattern catalog
  • Embeddable bash/Python check snippets

By the numbers

  • Retry-loop threshold: same command more than 3 times
  • Context exhaustion signal: >90% usage
  • Verbose output heuristic: >500 lines

Files

SKILL.mdMarkdownGitHub ↗

Table of Contents

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

PatternSignalSeverity
Command failureExit code > 0High
TimeoutExceeded timeout limitHigh
Retry loopSame command >3 timesMedium
Context exhaustion>90% context usedMedium
Tool misuseWrong tool for taskLow

Efficiency Detection

PatternSignalThreshold
Verbose output>1000 lines from command500 lines recommended
Redundant readsSame file read >2 times2 reads max
Sequential vs parallelIndependent tasks run sequentiallyShould parallelize
Over-fetchingRead entire file when snippet neededUse offset/limit

Workflow

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

1. Log execution events - Commands, outputs, timing 2. Tag anomalies - Failures, timeouts, inefficiencies 3. Store evidence - For reproducibility

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

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

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

1. Generate issue body - Structured format 2. Assign labels - workflow, bug, enhancement 3. Link evidence - Command outputs, session info

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

1. Check for duplicates - Search existing issues 2. Create if unique - Via gh CLI 3. 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

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

Required TodoWrite Items

1. workflow-monitor:capture-complete 2. workflow-monitor:analysis-complete 3. workflow-monitor:report-generated 4. 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

Related Skills

  • imbue:proof-of-work: Evidence capture methodology
  • sanctum:fix-workflow: Workflow improvement command
  • imbue:proof-of-work: Validation methodology

---

Status: Skeleton implementation. Requires:

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

Related skills

How it compares

Pattern library for DIY workflow guards—not a replacement for full APM or CI log aggregation platforms.

FAQ

Who is workflow-monitor for?

Developers running Claude Night Market–style or custom multi-command agent workflows who need explicit error and efficiency detection rules.

When should I use workflow-monitor?

Use it during build automation scripting, ship CI agent runs, grow ops maintenance bots, and operate daily coding agents—anytime you want to catch failures, timeouts, >3 command retries, or >90% context usage.

Is workflow-monitor safe to install?

Check this page’s Security Audits panel for publication source and any audit metadata; the skill describes monitoring patterns and does not by itself execute commands until you integrate the snippets.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.