claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Detects workflow failures and inefficient patterns then files GitHub issues. Use when a workflow step repeatedly fails or produces inconsistent output.
$ npx -y skills add athola/claude-night-market --skill workflow-monitor --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/workflow-monitorContext preview
The summary Claude sees to decide when to auto-load this skill.
Detects workflow failures and inefficient patterns then files GitHub issues. Use when a workflow step repeatedly fails or produces inconsistent output.
name: workflow-monitor description: Detects workflow failures and inefficient patterns then files GitHub issues. Use when a workflow step repeatedly fails or produces inconsistent output. alwaysApply: false category: workflow-methodology tags: - workflow - monitoring - error-detection - efficiency - automation dependencies: - leyline:git-platform - imbue:proof-of-work - sanctum:workflow-improvement tools: [] usage_patterns: - error-detection - efficiency-analysis - issue-creation complexity: intermediate model_hint: standard estimated_tokens: 2500 modules: - modules/detection-patterns.md - modules/issue-templates.md - modules/efficiency-metrics.md
`superpowers:systematic-debugging`)
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.
# 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:
| 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 |
| 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 |
1. **Log execution events** - Commands, outputs, timing 2. **Tag anomalies** - Failures, timeouts, inefficiencies 3. **Store evidence** - For reproducibility
1. **Classify issues** - Error type, severity, scope 2. **Identify root cause** - What triggered the issue 3. **Suggest fix** - What would prevent recurrence
1. **Generate issue body** - Structured format 2. **Assign labels** - workflow, bug, enhancement 3. **Link evidence** - Command outputs, session info
1. **Check for duplicates** - Search existing issues 2. **Create if unique** - Via gh CLI 3. **Link to session** - For traceability
## 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*
# .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
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
1. `workflow-monitor:capture-complete` 2. `workflow-monitor:analysis-complete` 3. `workflow-monitor:report-generated` 4. `workflow-monitor:issue-created` (if issue created)
## 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 vali
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.