Night Market Skill — ported from claude-night-market/imbue. For the full experience with agents, hooks, and commands, install the Claude Code plugin.
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.
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.
bash
# 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
When enabled, workflow-monitor observes execution and flags:
PatternSignalSeverityCommand failureExit code > 0HighTimeoutExceeded timeout limitHighRetry loopSame command >3 timesMediumContext exhaustion>90% context usedMediumTool misuseWrong tool for taskLow
PatternSignalThresholdVerbose output>1000 lines from command500 lines recommendedRedundant readsSame file read >2 times2 reads maxSequential vs parallelIndependent tasks run sequentiallyShould parallelizeOver-fetchingRead entire file when snippet neededUse offset/limit
workflow-monitor:capture-complete)#workflow-monitor:analysis-complete)#workflow-monitor:report-generated)#workflow-monitor:issue-created)#markdown
## 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]
text
## 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*
yaml
# .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
auto_create_issues: trueworkflow-monitor:capture-completeworkflow-monitor:analysis-completeworkflow-monitor:report-generatedworkflow-monitor:issue-created (if issue created)imbue:proof-of-work: Captures execution evidencesanctum:fix-workflow: Implements suggested fixesmarkdown
## 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 methodologysanctum:fix-workflow: Workflow improvement commandimbue:proof-of-work: Validation methodologyStatus: Skeleton implementation. Requires: