Skip to content
Development
Skill

/workflow-improvement

Evaluates and improves skills, agents, commands, and hooks after a workflow slice. Use when execution felt slow, confusing, repetitive, or fragile.

From plugin
claude-night-market
343200 skills60 agents162 commands1 MCP

Claude Code

$ npx -y skills add athola/claude-night-market --skill workflow-improvement --agent claude-code

SKILL.md

workflow-improvement.SKILL.md
name: workflow-improvement
description: Evaluates and improves skills, agents, commands, and hooks after a workflow slice. Use when execution felt slow, confusing, repetitive, or fragile.
alwaysApply: false
category: workflow-ops
tags:
- workflow
- retrospective
- efficiency
- commands
- agents
- skills
- hooks
tools: []
complexity: medium
estimated_tokens: 900

Workflow Improvement

When To Use

Use this skill after running a command or completing a short session slice where execution felt slow, confusing, repetitive, or fragile.

This skill focuses on improving the *workflow assets* (skills, agents, commands, hooks) that were involved, not on feature work itself.

When NOT To Use

  • Implementing features - focus on feature work first

Required Progress Items

1. `fix-workflow:context-gathered` 2. `fix-workflow:slice-captured` 3. `fix-workflow:workflow-recreated` 4. `fix-workflow:improvements-generated` 5. `fix-workflow:plan-agreed` 6. `fix-workflow:changes-implemented` 7. `fix-workflow:validated` 8. `fix-workflow:lesson-stored`

Step 0: Gather Improvement Context (`context-gathered`)

Before analyzing the current session, gather existing improvement data:

0.1: Check Skill Execution History

Query memory-palace logs for recent performance issues:

# Recent failures (last 7 days)
/skill-logs --failures-only --last 7d

# Performance metrics for involved plugins
pensive:skill-review --plugin sanctum --recommendations

**Capture:**

  • Skills with stability_gap > 0.3
  • Recent failure patterns and error messages
  • Performance degradation trends

0.2: Query Knowledge Base

Search for previously captured workflow lessons:

# If memory-palace review-chamber is available
/review-room search "workflow improvement" --room lessons
/review-room search "efficiency" --room patterns

**Look for:**

  • Similar workflow issues from past PRs
  • Recurring patterns in workflow failures
  • Architectural decisions affecting workflows

0.3: Check Git History

Identify recurring issues through commit patterns:

git log --oneline --grep="improve\|fix\|optimize" --since="30 days ago" \
  -- plugins/sanctum/skills/ plugins/sanctum/commands/

# Look for unstable components (frequent fixes)
git log --oneline --since="30 days ago" --follow \
  -- plugins/sanctum/skills/workflow-improvement/

**Extract:**

  • Components with frequent bug fixes (instability signals)
  • Patterns in improvement commit messages
  • Recurring issue themes

**Output Format:**

## Improvement Context

### Skill Performance Issues
- sanctum:workflow-improvement: stability_gap 0.35 (5 failures in 7 days)
- Error pattern: "Missing validation in Step 2"

### Knowledge Base Lessons
- PR #42 lesson: "Workflow validation should happen at start, not end"
- Pattern: Early validation reduces iteration time by 30%

### Git History Insights
- workflow-improvement skill: 8 commits in 30 days (instability signal)
- Recurring theme: "Add missing prerequisite checks"

Step 1: Capture the Session Slice (`slice-captured`)

Identify the **most recent command or session slice** in the current context window and capture:

  • **Trigger**: What command / request started it (include the literal `/command` if present)
  • **Goal**: What "done" meant for the user
  • **Artifacts touched**: Skills, agents, commands, hooks (names + file paths)
  • **Evidence**: Key tool calls / errors / retries that indicate inefficiency
  • **Context from Step 0**: Reference any relevant patterns from improvement context

If the slice is ambiguous, pick the most recent *complete* attempt and state the exact boundary you chose.

Step 2: Recreate the Workflow (`workflow-recreated`)

Reconstruct the workflow as a numbered list of 5 to 20 steps, identifying inputs, branch points for decisions, and outputs such as file changes or state modifications. During this reconstruction, identify specific friction points that reduce efficiency. These often include repeated steps or redundant tool calls, as well as missing guardrails where validation occurs too late or prerequisites are unclear. Other common issues are a lack of automation for tasks that should be scripted, and discoverability gaps caused by confusing naming conventions.

**Cross-reference with Step 0 context:**

  • Are friction points matching known failure patterns?
  • Do repeated steps align with git history themes?
  • Are missing guardrails mentioned in review-chamber lessons?

Step 3: Generate Improvements (`improvements-generated`)

Generate 3 to 5 distinct improvement approaches and score each on impact, complexity, reversibility, and consistency with existing sanctum patterns. The scoring should specifically address whether the change prevents the recurrence of patterns identified in Step 0. Prioritize improvements that address components with a high stability gap (greater than 0.3) or recurring issues found in the git history. You should also incorporate lessons from the review-chamber and aim to reduce failure modes identified in the skill logs. Prefer small, high-use changes such as tightening a skill's exit criteria, adding missing command options, improving hook guardrails for better observability, or splitting overloaded commands into clearer phases.

Step 4: Agree on a Plan (`plan-agreed`)

Choose 1 approach and define:

  • Acceptance criteria ("substantive difference")
  • Files to change
  • Validation commands to run
  • Out-of-scope items to defer

Keep the plan bounded: aim for ≤ 5 files changed unless the workflow truly spans more.

Step 5: Implement (`changes-implemented`)

Apply changes following sanctum conventions:

  • Keep naming consistent across `commands/`, `agents/`, `skills/`, `hooks/`
  • Prefer documentation-first improvements if ambiguity was the primary issue
  • If behavior changes, add/adjust tests in `plugins/sanctum/tests/`

Step 6: Validate Substantive Improvement (`validated`)

Validation should include at least 2 of:

  • Plugin valid
Read more
@athola
Ships withclaude-night-market

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.

343200 skills60 agents1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
343
Star history of athola/claude-night-market on GitHub, a chart by star-history.com

Other skills on claude-night-market.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about workflow-improvement.

Which coding agents can use workflow-improvement?
workflow-improvement installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.