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;…
Evaluates and improves skills, agents, commands, and hooks after a workflow slice. Use when execution felt slow, confusing, repetitive, or fragile.
Claude Code
$ npx -y skills add athola/claude-night-market --skill workflow-improvement --agent claude-code
Codex
$ npx skills add athola/claude-night-market --skill workflow-improvement -a codex -y
Cursor
$ npx skills add athola/claude-night-market --skill workflow-improvement -a cursor -y
Gemini CLI
$ npx skills add athola/claude-night-market --skill workflow-improvement -a gemini-cli -y
GitHub Copilot
$ npx skills add athola/claude-night-market --skill workflow-improvement -a github-copilot -y
OpenCode
$ npx skills add athola/claude-night-market --skill workflow-improvement -a opencode -y
Windsurf
$ npx skills add athola/claude-night-market --skill workflow-improvement -a windsurf -y
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
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.
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`
Before analyzing the current session, gather existing improvement data:
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:**
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:**
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:**
**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"
Identify the **most recent command or session slice** in the current context window and capture:
If the slice is ambiguous, pick the most recent *complete* attempt and state the exact boundary you chose.
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:**
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.
Choose 1 approach and define:
Keep the plan bounded: aim for ≤ 5 files changed unless the workflow truly spans more.
Apply changes following sanctum conventions:
Validation should include at least 2 of:
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;…
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use…
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily…
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use…
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled…
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.