Retrospective workflow evaluation and improvement of skills, agents, commands, and hooks. workflow improvement, retrospective, workflow efficiency Use when: workflow felt slow, confusing, or needs optimization DO NOT use when: simple one-off fixes - use fix-pr or do-issue instead.
Analyzes recent workflow inefficiencies and generates improvements for skills, agents, commands, and hooks.
/plugin marketplace add athola/claude-night-market/plugin install pensive@claude-night-marketThis skill inherits all available tools. When active, it can use any tool Claude has access to.
modules/auto-issue-creation.mdUse 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.
fix-workflow:context-gatheredfix-workflow:slice-capturedfix-workflow:workflow-recreatedfix-workflow:improvements-generatedfix-workflow:plan-agreedfix-workflow:changes-implementedfix-workflow:validatedfix-workflow:lesson-storedcontext-gathered)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"
slice-captured)Identify the most recent command or session slice in the current context window and capture:
/command if present)If the slice is ambiguous, pick the most recent complete attempt and state the exact boundary you chose.
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:
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.
plan-agreed)Choose 1 approach and define:
Keep the plan bounded: aim for ≤ 5 files changed unless the workflow truly spans more.
changes-implemented)Apply changes following sanctum conventions:
commands/, agents/, skills/, hooks/plugins/sanctum/tests/validated)Validation should include at least 2 of:
Record the before/after comparison as metrics, not prose:
## Validation Results
### Before Improvement
- Step count: 15
- Tool calls: 23
- Failure points: 3
- Duration: ~8 minutes
- Manual interventions: 5
### After Improvement
- Step count: 11 (-4, -27%)
- Tool calls: 17 (-6, -26%)
- Failure points: 0 (-3, -100%)
- Duration: ~5 minutes (-37%)
- Manual interventions: 2 (-3, -60%)
### Verification
[E1] Command: `python3 plugins/sanctum/scripts/test_workflow.py`
Output: All tests passed (0.5s)
[E2] Command: `/validate-plugin sanctum`
Output: No issues found
After validation, capture the improvement for future reference:
Commit with descriptive message that future searches will find:
git add <changed-files>
git commit -m "improve(sanctum): <component> - <specific fix>
Addresses recurring issue: <pattern from Step 0>
Reduces <metric> by <percentage>
Evidence: stability_gap reduced from 0.35 to 0.12
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>"
If the improvement addresses a high-value pattern:
# Store in review-chamber lessons
/review-room capture --room lessons --title "Workflow: <pattern name>"
Track the improvement's impact:
# Check post-improvement stability
pensive:skill-review --skill sanctum:<component> --recommendations
This creates a feedback loop where future /fix-workflow and /update-plugins runs will reference this lesson.
If a command is not found, confirm that all dependencies are installed and accessible in your PATH. For permission errors, check file system permissions and run the command with appropriate privileges. If you encounter unexpected behavior, enable verbose logging using the --verbose flag to capture more detailed execution data.
Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use for discovering, retrieving, and improving prompts.
Search, retrieve, and install Agent Skills from the prompts.chat registry using MCP tools. Use when the user asks to find skills, browse skill catalogs, install a skill for Claude, or extend Claude's capabilities with reusable AI agent components.
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.