Source profileQuality 92/100Review permissions

athola/claude-night-market/plugins/sanctum/skills/workflow-improvement/SKILL.md

workflow-improvement

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

Source repository stars
331
Declared platforms
0
Static risk flags
1
Last source update
2026-08-26
Source checked
2026-08-28

Decision brief

What it does: where it fits

Evaluates and improves skills, agents, commands, and hooks after a workflow slice.

Best for

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

Not for

  • 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…
  • Common Issues

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/athola/claude-night-market --skill "plugins/sanctum/skills/workflow-improvement"
Safe inspection promptEditorial

Inspect the Agent Skill "workflow-improvement" from https://github.com/athola/claude-night-market/blob/6720bb5cdeadeea6de6e4786a449126b3d417536/plugins/sanctum/skills/workflow-improvement/SKILL.md at commit 6720bb5cdeadeea6de6e4786a449126b3d417536. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Step 0: Gather Improvement Context (context-gathered)

    Before analyzing the current session, gather existing improvement data:

    Before analyzing the current session, gather existing improvement data:Query memory-palace logs for recent performance issues:
  2. 02

    If memory-palace review-chamber is available

    /review-room search "workflow improvement" --room lessons /review-room search "efficiency" --room patterns bash git log --oneline --grep="improve\|fix\|optimize" --since="30 days ago" \ -- plugins/sanctum/skills/ plugins/sanctum/commands/

    /review-room search "workflow improvement" --room lessons /review-room search "efficiency" --room patterns bash git log --oneline --grep="improve\|fix\|optimize" --since="30 days ago" \ -- plugins/sanctum/skills/ plugin…
  3. 03

    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…

    Trigger: What command / request started it (include the literal /command if present)Goal: What "done" meant for the userArtifacts touched: Skills, agents, commands, hooks (names + file paths)
  4. 04

    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 repea…

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

    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 im…

    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 th…

Permission review

Static risk signals and limitations

Runs scripts

medium · line 63

The documentation asks the agent to run terminal commands or scripts.

git log --oneline --grep="improve\|fix\|optimize" --since="30 days ago" \

Runs scripts

medium · line 67

The documentation asks the agent to run terminal commands or scripts.

git log --oneline --since="30 days ago" --follow \

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score92/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars331SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
athola/claude-night-market
Skill path
plugins/sanctum/skills/workflow-improvement/SKILL.md
Commit
6720bb5cdeadeea6de6e4786a449126b3d417536
License
MIT
Collected
2026-08-28
Default branch
master
View the original SKILL.md

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 TodoWrite 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 validators / unit tests passing (targeted)
  • Re-running the minimal workflow reproduction with fewer steps or less manual work
  • A clear reduction in failure modes (e.g., earlier validation, clearer options)

Record the before/after comparison as metrics, not prose:

  • Step count reduction
  • Tool call reduction
  • Errors avoided (what would have failed before)
  • Duration improvement (if measurable)

Metrics Comparison Template

## 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

Step 7: Close the Loop (Store Lessons)

After validation, capture the improvement for future reference:

7.1: Update Git History

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"

No AI-attribution trailer. plugins/imbue/hooks/vow_no_ai_attribution.py blocks co-authorship and generated-by trailers naming an AI model at PreToolUse, so a template carrying one hands the agent a commit its own toolchain refuses.

7.2: Post Tooling Learnings to Discussions (Preferred)

Observations about night-market tooling (skill behavior, agent coordination, hook timing, command UX) belong in https://github.com/athola/claude-night-market/discussions, not local memory. Always target the night-market repo regardless of which repo you are currently working in.

Use the GraphQL pattern in plugins/sanctum/commands/fix-pr-modules/steps/6-complete.md Sub-Step 6.7. It resolves the night-market repository and the Learnings category by ID and hardcodes athola/claude-night-market as the target, so it works from any repo.

Do not reach for plugins/abstract/scripts/post_learnings_to_discussions.py here. It takes no arguments: it parses LEARNINGS.md and posts the aggregated daily digest, which is a different artifact from one observation captured mid-workflow.

Repo-specific learnings stay in the current repo. Tooling learnings always go to https://github.com/athola/claude-night-market/discussions so the framework can improve.

7.3: Capture Lesson in Memory Palace (Optional, Local Only)

If the improvement addresses a repo-specific pattern (not tooling), store it locally:

# Store in review-chamber lessons
/review-room capture --room lessons --title "Workflow: <pattern name>"

7.4: Update Improvement Metrics

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.

Record Lessons Learned (decision journal)

If this work involved rework, a failed approach, or a blocker, record it to docs/lessons-learned.md so the insight survives past the session (draft and confirm):

  • If leyline is installed, invoke Skill(leyline:decision-journal) and append a lesson entry (what_happened, what_didnt_work, root_cause, action; set phase to review). Show the draft; append on confirmation.
  • Fallback (leyline absent): append to docs/lessons-learned.md using the in-file ENTRY TEMPLATE; assign the next LL-NNN id.

Supporting Modules

Exit Criteria

  • The session slice is captured with a stated boundary, trigger, goal, and artifacts touched
  • At least 3 distinct improvement approaches were generated and scored
  • One approach was chosen with acceptance criteria and a bounded file list (<= 5 files unless justified)
  • Validation records before/after metrics (step count, tool calls, or failure points), not prose
  • If the slice involved rework, a failed approach, or a blocker, the lesson is recorded to docs/lessons-learned.md via the decision journal

Troubleshooting

Common Issues

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.

Frequently asked questions

What to verify before installation and use

What does the workflow-improvement source document cover?

Evaluates and improves skills, agents, commands, and hooks after a workflow slice.

How do I install workflow-improvement?

The source record exposes this install command: npx skills add https://github.com/athola/claude-night-market --skill "plugins/sanctum/skills/workflow-improvement". Inspect the command and pinned source before running it.

Which permission-related actions were detected?

Static rules flagged exec-script in the source; the page lists the matching lines and excerpts.

Alternatives

Compare before choosing

Computed 10029,236

garrytan/gbrain

bulk-ingestion

End-to-end discipline for turning any large data source (audio libraries, email takeouts, document corpora, chat exports, API dumps) into brain pages at scale. The lifecycle spine: SCHEMA → ACCESS → TRIAL → EVALUATE → IMPROVE → CODIFY → TEST → SKILLIFY → BULK → MONITOR. State is tracked in a durable JSON manifest (see MANIFEST-PATTERN.md) so any crash, session boundary, or subagent fan-out resumes from ground truth instead of memory.

Computed 10025,136

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

Computed 10015,385

wanshuiyin/Auto-claude-code-research-in-sleep

citation-audit

Use it for operations and research tasks; the detail page covers purpose, installation, and practical steps.

Computed 10014,706

prowler-cloud/prowler

postgresql-indexing

PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing index usage statistics, reindexing, dropping indexes, or working with partitioned table indexes. Also trigger when discussing index strategies, partial indexes, or index maintenance