Sponsor Suno AI Music arrow_forward
Slash Command

Fix Workflow

Retrospective analysis and improvement of workflow components with self-evolving patterns

Type
Slash Command
GitHub stars
339
License
MIT
Repo last updated
Sep 24, 2026

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

  1. Download fix-workflow.md from the repository.
  2. 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.
  3. Run it by typing / followed by its name.

Claude Cowork

  1. Turn the command into a skill: create a folder with the file saved as SKILL.md and zip it.
  2. In Customize → Skills, click +, then upload the ZIP.
  3. 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 7d

Extract:

  • 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 5

Look 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.

  1. 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
  1. 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

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.