aggregate-logs
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Retrospective analysis and improvement of workflow components with self-evolving patterns
> /plugin marketplace add athola/claude-night-marketHow it fires
How this command gets triggered: by you, by Claude, or both.
/fix-workflowContext preview
What this command does when you run it.
Retrospective analysis and improvement of workflow components with self-evolving patterns
name: fix-workflow description: Retrospective analysis and improvement of workflow components with self-evolving patterns usage: /fix-workflow [--scope sanctum|repo] [--dry-run] [--focus skills|agents|commands|hooks|all] [--difficulty auto|simple|complex]
Run a lightweight retrospective on the **most recent command or session slice** visible in the current context window, then implement targeted improvements to the workflow components involved (skills, agents, commands, hooks).
Use this command when you need to:
This command implements research-backed self-improvement patterns:
| Pattern | Purpose | When Applied | |---------|---------|--------------| | **Reflexion** | Self-critique before applying fixes | Phase 1.5 (after analysis) | | **PDCA Loops** | Plan-Do-Check-Act validation | Each phase transition | | **Difficulty-Aware** | Adjust depth based on complexity | Phase 0 (auto-detected) | | **Outcome Feedback** | Learn from validation results | Phase 2 (close loop) |
/fix-workflow [--scope sanctum|repo] [--dry-run] [--focus skills|agents|commands|hooks|all] [--difficulty auto|simple|complex]
Before starting retrospective analysis, automatically gather existing improvement data:
Identify performance issues in workflow components:
# Get recent skill executions (last 7 days) /skill-logs --last 7d --format json > /tmp/recent-skills.json # Check for failures in workflow components /skill-logs --failures-only --last 7d
**Extract:**
Check if similar workflow issues have been captured:
# Search review-chamber for workflow-related lessons # (If memory-palace commands are available) /review-room search "workflow" --room lessons --limit 5 /review-room search "efficiency" --room patterns --limit 5
**Look for:**
Look for recent fixes to workflow components:
# Find recent improvements to the workflow components git log --oneline --grep="improve\|fix\|optimize\|refactor" --since="30 days ago" \ -- plugins/sanctum/skills/ plugins/sanctum/commands/ plugins/sanctum/agents/ # Check if similar workflows were fixed recently git log -p --since="30 days ago" --grep="workflow" -- plugins/sanctum/
**Identify:**
Stages 2 to 4 below are three agents in a fixed order with structured handoffs, which is a script's shape. `/sanctum:fix-workflow-analysis` (`workflows/fix-workflow-analysis.js`) runs them as one pipeline and returns a plan. Use it when the slice is already captured and the roster does not need to adapt; use the agents directly otherwise. It only runs when asked for: a workflow never starts unasked.
It deliberately stops before step 5. A workflow's subagents run in `acceptEdits` whatever the session's permission mode, so an implementer stage there would apply edits nobody saw proposed. The script also has no shell, so it cannot run one acceptance criterion it writes. Implementation and validation stay in the session, where the diff is visible and a command can actually be run.
1. **Capture the target slice and key evidence:**
2. **Recreate the workflow and surface inefficiencies:**
3. **Analyze improvement options:**
4. **Plan collaboratively (converge on a small, high-use patch):**
Before implementing, the agent evaluates its own improvement plan:
## Self-Critique Questions 1. **Root Cause**: Does this fix address the root cause or just symptoms? - [ ] Verified root cause in Phase 0 data - [ ] Fix targets cause, not effect 2. **Unintended Consequences**: Could this improvement break something else? - [ ] Checked dependent workflows - [ ] Reviewed similar past fixes for side
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.
Generate LEARNINGS.md from skill execution logs over a configurable time window.
Analyze skill file complexity metrics and generate modularization recommendations for splitting or progressive loading.
Scaffold new Claude Code skills with brainstorming, TDD methodology, and proper frontmatter and module structure.