Fix Workflow
Retrospective analysis and improvement of workflow components with self-evolving patterns
- Type
- Slash Command
- Repository
- athola/claude-night-market
- GitHub stars
- 339
- License
- MIT
- Repo last updated
- Sep 24, 2026
- Source file
- plugins/sanctum/commands/fix-workflow.md
What Fix Workflow is
Fix Workflow is a slash command published in the athola/claude-night-market repository on GitHub, which has about 339 stars. The repository describes itself as: “23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context optimization, research, and multi-LLM delegation. 186 skills, 128 commands, 54 agents.”
A slash command is a reusable prompt saved as a markdown file and run by typing its name after a slash. In Claude Code, custom commands have been merged into skills: a file in .claude/commands/ and a skill folder in .claude/skills/ both create the same kind of command, and existing command files keep working.
Fix Workflow gives you a repeatable way to run the same instructions without retyping them, optionally with arguments.
How to install Fix Workflow
Claude Code
- Download fix-workflow.md from the repository.
- Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md.
- Run it by typing / followed by its name.
Claude Cowork
- Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
- In Customize → Skills, click +, then upload the ZIP.
- Run it from any task with / and the skill name.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/sanctum/commands/fix-workflow.md, shared under the repository's MIT license. Read the full file on GitHub.
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).
When To Use
Use this command when you need to:
- Workflow execution felt inefficient or needs optimization
- Post-session improvement of skills/agents/commands/hooks
When NOT To Use
- Simple changes that don't need the full workflow
- Work already completed through another sanctum command
Self-Improvement Architecture
This command implements research-backed self-improvement patterns:
Usage
/fix-workflow [--scope sanctum|repo] [--dry-run] [--focus skills|agents|commands|hooks|all] [--difficulty auto|simple|complex]- --scope sanctum|repo: Default sanctum. If repo, improvements may touch non-plugin code and project docs/tests as needed.
- --dry-run: Produce an improvement plan without making changes.
- --focus: Default all. Limit to a component type to keep the change set small.
- --difficulty auto|simple|complex: Default auto. Controls orchestration depth:
- simple: Single-pass improvement (1-2 files, clear fix)
- complex: Full PDCA cycle with reflexion (multi-file, architectural)
- auto: Detect from workflow complexity score
Workflow
Phase 0: Gather Improvement Context (Automatic)
Before starting retrospective analysis, automatically gather existing improvement data:
Step 0.1: Check Skill Execution Metrics
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 7dExtract:
- Skills that failed during the workflow slice
- Skills with high stability_gap (> 0.3) indicating instability
- Common error patterns
- Performance degradation signals
Step 0.2: Query Memory Palace for Lessons
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 5Look for:
- Previously identified workflow inefficiencies
- Patterns from past PR reviews
- Architectural decisions affecting workflows
Step 0.3: Check Recent Git History
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:
- Recurring issues that keep getting fixed
- Components with frequent changes (instability signals)
- Patterns in fix commit messages
Phase 1: Retrospective Analysis
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.
- Capture the target slice and key evidence:
- Load workflow-improvement skill: Skill(sanctum:workflow-improvement) or read plugins/sanctum/skills/workflow-improvement/SKILL.md
- Include Phase 0 findings as additional context
- Recreate the workflow and surface inefficiencies:
- Use workflow-recreate-agent to restate the steps, identify friction, and list involved components
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Fix Workflow?
Fix Workflow is a slash command for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Retrospective analysis and improvement of workflow components with self-evolving patterns
How do I install Fix Workflow in Claude Code?
Download fix-workflow.md from the repository. Save it to ~/.claude/commands/ (all projects) or .claude/commands/ (one project). As a skill, you can instead save it as ~/.claude/skills/<name>/SKILL.md. Run it by typing / followed by its name.
Can I use Fix Workflow in Claude Cowork?
Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it. In Customize → Skills, click +, then upload the ZIP. Run it from any task with / and the skill name.
Is Fix Workflow safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Continuation Agent Lightweight agent designed to continue work from a session state checkpoint. Spawned when the parent agent exceeds context thresholds. This agent: 1. Reads the session state file 2. Re-establishes necessary context 3. Continues the task without interruption 4. Can spawn another continuation agent if needed Subagent · athola/claude-night-market
- Conjure Intelligent delegation framework for routing tasks to external LLM services while retaining strategic oversight Plugin · athola/claude-night-market
- Context Optimizer Autonomous agent for context window optimization and MECW compliance. Subagent · athola/claude-night-market
- Control Desktop Run a computer use task on the desktop via Claude's vision and action API Slash Command · athola/claude-night-market
- Fixit Fix broken functionality from pasted error output, stack traces, or Slash Command · athola/claude-night-market
- Fix Pr Address PR/MR review feedback by reading comments, implementing fixes, and resolving threads. GitHub and GitLab support. Slash Command · athola/claude-night-market
- From Hook Convert Python SDK hooks to declarative rules Slash Command · athola/claude-night-market
- Filter Log Suggest tier-1 filter commands for a log file before any compression or paste. Anchors on the log-debugging-hygiene module. Slash Command · athola/claude-night-market