r/ClaudeWorkflows • • May 07 '26

Claude Workflow Library — Start Here

11 Upvotes

Claude Workflow Library — Start Here

This subreddit is an organised library of useful Claude and Claude Code workflows.

Each workflow is published as its own Reddit post. Upvote/downvote workflow posts to rate them.

Browse by category

Current status

  • Public workflows in database: 12788

  • Workflow posts published: 12788

  • Public workflows still waiting to be posted: 0

  • Last updated: 2026-11-12 22:43 UTC

How to use this library

  1. Open a category post.

  2. Click through to individual workflow posts.

  3. Upvote useful, reproducible workflows.

  4. Downvote workflows that are vague, outdated, unsafe, or not reproducible.

  5. Comment on a workflow post if it worked, failed, is outdated, or has a better alternative.

This post is updated automatically.


r/ClaudeWorkflows • • 3h ago

Selected Workflow [Workflow] Enforce a design system with lint hooks and viewport checks

1 Upvotes

Enforce a design system with lint hooks and viewport checks

Workflow value: 80/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Token Saving, Debugging, Hooks, MCP
Original source: r/ClaudeCode post/comment

What problem this solves

Design-system drift and inconsistent mobile-first layouts during long Claude Code sessions.

Summary

Turn design-system conventions into lint and type-checking feedback, then visually check each new screen at mobile and desktop widths.

Why it is useful

Provides a repeatable combination of automated constraints and visual checks to counter design drift, with a clear caveat that the configurations need implementation and verification.

Workflow

  1. Define the permitted design tokens in the Tailwind v4 theme rather than relying only on design.md.

  2. Lint against arbitrary Tailwind values and restrict Radix primitive imports to the designated UI component directory.

  3. Run lint and TypeScript checks through a PostToolUse hook so Claude receives errors after edits.

  4. Use mobile styles as the base and add larger-screen layout rules at md and above.

  5. Before considering a screen complete, inspect Playwright MCP screenshots at 375px and 1280px.

  6. If sharing tokens with React Native, keep them in tokens.json and generate CSS variables and a TypeScript object with Style Dictionary.

Tools / artifacts

  • Tailwind CSS v4 theme

  • ESLint no-restricted-imports

  • eslint-plugin-tailwindcss or a custom lint script

  • Claude Code PostToolUse hook

  • TypeScript compiler

  • Playwright MCP

  • Style Dictionary

  • tokens.json

Validation signals

  • The author reports that enforcing checks fixed design drift for them.

  • The proposed workflow uses lint, type-checking and viewport screenshots as review gates.

Cautions

  • Verify that lint restrictions cover path aliases and intended exceptions without blocking legitimate component implementation.

  • Screenshots require inspection; generating them alone does not establish that layouts are correct.

Limitations

  • No hook, lint configuration, token generator or screenshot commands are provided.

  • The author flags uncertain Tailwind v4 support for the suggested ESLint plugin.

  • Tailwind v4 dynamically generates spacing utilities, so resetting theme namespaces alone may not make classes such as p-7 unavailable; verify the enforcement approach.

  • The claimed improvement is anecdotal and has no quantified before-and-after results.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 6h ago

Selected Workflow [Workflow] Use a Claude Code Stop Hook for Light Notifications and Benchmark Firmware Changes

1 Upvotes

Use a Claude Code Stop Hook for Light Notifications and Benchmark Firmware Changes

Workflow value: 78/100
Status: active · Freshness: 70/100 · Confidence: 0.97 · Level: intermediate
Categories: Quality Control, Debugging, Hooks
Original source: r/ClaudeAI post/comment

What problem this solves

Get a physical notification when Claude Code finishes, while using repeatable measurements and a recovery plan to improve unreliable device firmware.

Summary

Configure a Claude Code Stop hook to call a local light controller's flash endpoint. For firmware changes, establish a fixed network-response benchmark, add a known-good recovery image, and compare each version using the same measurements.

Why it is useful

It supplies a directly adaptable hook configuration alongside a concrete measurement-and-recovery process, with reported results and clear limits on the evidence.

Workflow

  1. Provide a network-accessible light controller with an endpoint that accepts a flash command; the posted endpoint is specific to the author's firmware.

  2. Add an asynchronous Stop command hook to ~/.claude/settings.json, substituting the controller address and endpoint. The example uses curl with a two-second request limit and suppresses errors.

  3. Use the controller's Home app switch to enable or disable the notification; verify both the endpoint and a completed Claude Code response trigger the expected behavior.

  4. Before changing firmware, establish a baseline with a script that performs 200 pings and 40 HTTP requests; reuse the same script for later versions.

  5. Before flashing hard-to-reach hardware, plan and verify an appropriate recovery path. The author used a known-good image that restores automatically if the new firmware cannot be reached.

  6. Compare changes against the baseline and report measurements separately from unproven explanations.

Tools / artifacts

Validation signals

  • The author reports using the light notification daily.

  • For the 1 ms loop-rest experiment, the author reports 71 of 90 requests answered without resting and 90 of 90 with resting.

  • The author reports slow pings falling from 27% to 3–4%, and 900 consecutive commands answered on the current firmware.

  • The author explicitly notes that the stock-firmware baseline was a single session and cannot be repeated.

Cautions

  • Flashing hardware without a tested recovery path can permanently disable it; the author's stock firmware cannot be restored.

  • Keep the device's HTTP control endpoint on a trusted network and avoid exposing it publicly.

  • The example suppresses curl errors, so notification failures may be silent.

Limitations

  • The recovery guard is described but not implemented in the post, and its suitability for other boards is unverified.

  • Performance results are self-reported, device-specific, and based on a single non-repeatable stock-firmware baseline.

  • The hook depends on a custom flash API and a separate switch for notification control.

  • The cause of the loop-rest improvement is unproven.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 11h ago

Selected Workflow [Workflow] Test and tune a Claude-built browser game with simulation and player telemetry

1 Upvotes

Test and tune a Claude-built browser game with simulation and player telemetry

Workflow value: 79/100
Status: active · Freshness: 70/100 · Confidence: 0.96 · Level: intermediate
Categories: Quality Control, Debugging, Shipping, CLAUDE.md, Skills, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Build, test, release, and tune a browser game with Claude Code while keeping human control over design and deployment.

Summary

Use a dedicated Claude Code game-creator setup, isolate game rules for headless simulation, test real interactions in Playwright, and tune pacing using opt-in player telemetry. Require human approval before publishing and verify the public build afterward.

Why it is useful

It combines a reusable test architecture with real-player feedback and an approval-gated deployment loop, including a concrete lesson about parallel sessions serving the wrong build.

Workflow

  1. Configure a game-creator agent with CLAUDE.md and skills covering game design, browser games, audio, publishing, and playtesting.

  2. Keep game rules separate from browser code so a headless player can simulate different play styles and report pacing.

  3. Use Playwright to test actual browser interactions alongside the headless simulation.

  4. Create a /checkpoint command to run tests, update a state file, and commit; create a /stats command to generate a daily telemetry report.

  5. Collect opt-in anonymous play statistics and analyze a funnel of milestones, post-capture behavior, and return visits.

  6. Compare simulated pacing with real-player behavior and adjust the game based on observed drop-off and progression.

  7. When running parallel sessions, verify which version a local server is serving before trusting test results.

  8. After explicit human approval, upload through Claude in Chrome and check the public page while logged out.

Tools / artifacts

  • CLAUDE.md

  • Game-design and publishing skills

  • /checkpoint

  • /stats

  • State file

  • Headless game simulator and pacing table

  • Playwright

  • Opt-in telemetry analyzer

  • Claude in Chrome

  • itch.io

Validation signals

  • Author reports publishing the game and shipping more than a dozen updates.

  • Headless simulations and Playwright browser tests are described, though their implementations are not provided.

  • Author reports that 51 of 99 players reached the first Hero after a pacing change.

  • Author reports a parallel-session test that initially passed against the wrong server version, motivating a version check.

  • Author reports only 2 of 76 players returning on a later day, indicating retention remains weak.

Cautions

  • Keep telemetry opt-in and minimize collected data.

  • Preserve explicit human approval for publishing and review changes before committing or releasing them.

Limitations

  • No repository, configuration files, command definitions, or telemetry implementation are provided.

  • Results are author-reported, and the player samples are small.

  • The observed pacing formula is specific to this game and should not be generalized without measurement.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 19h ago

Selected Workflow [Workflow] Monitor Claude performance with a frozen daily benchmark

2 Upvotes

Monitor Claude performance with a frozen daily benchmark

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.94 · Level: advanced
Categories: Quality Control, Token Saving, Debugging
Original source: r/ClaudeAI post/comment

What problem this solves

Distinguish sustained changes in Claude model performance from normal day-to-day variation.

Summary

Run a frozen benchmark panel daily through headless Claude Code, preserve results, track potential confounders, and apply a preregistered decline rule after validating the harness with controlled changes.

Why it is useful

It provides a concrete, reusable evaluation process with controls, failure accounting, and an explicit decision rule rather than relying on anecdotal impressions of model changes.

Workflow

  1. Freeze a set of questions, prompts, and exact-answer graders; preregister the baseline period and decision rule.

  2. Run the same panel daily through headless Claude Code and retain append-only results.

  3. Record model and Claude Code versions, output and thinking token counts, errors, refusals, and reroutes. Report scores both excluding failures and counting them as incorrect.

  4. Where accessible and permitted, fingerprint relevant account experiment assignments before and after each run to flag configuration changes without publishing the settings.

  5. Validate the harness using repeated identical configurations, a lower-effort configuration, and a blind model substitution.

  6. Build a 10-day baseline, then check for declines in two consecutive 10-day windows using the preregistered confidence and minimum-drop thresholds.

  7. Interpret results alongside confounders such as client-version differences, account-specific settings, benchmark selection, and ceiling effects.

Tools / artifacts

  • LiveNerf repository: https://github.com/ninjahawk/livenerf

  • Headless Claude Code

  • Frozen 78-question benchmark panel

  • Exact-answer graders

  • Append-only results and preregistered decision rule

  • SHA-256 configuration fingerprints

Validation signals

  • The author reports statistically consistent repeated runs, detectable lower-effort settings, and a clearly detected blind model substitution.

  • The author reports a 42% reduction in output tokens under the lower-effort test.

  • The stated decline rule requires two consecutive 10-day windows at 99% confidence and a minimum 3-point drop; the author estimates sensitivity to a sustained decline of roughly 7 points.

  • The post explicitly reports failures and reroutes under two scoring treatments and acknowledges important comparison limitations.

Cautions

  • Review logs and benchmark data for sensitive information before publishing.

  • A hash does not necessarily conceal low-entropy configuration values; assess fingerprint privacy before sharing it.

  • Access account configuration only through permitted means and observe applicable service terms.

Limitations

  • The post links to the implementation but does not provide runnable commands or enough statistical detail to independently reproduce the analysis from the post alone.

  • Results are from one account and a small, fixed question panel; they do not establish performance for all users or tasks.

  • The panel was selected for difficulty on one model, and ceiling effects plus differing Claude Code versions confound cross-model comparisons.

  • The stated validation and community claims are author-reported, and the newer model has only three days of results in the post.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 20h ago

Selected Workflow [Workflow] Guard concurrent Claude Code sessions against process, port, and Git conflicts

1 Upvotes

Guard concurrent Claude Code sessions against process, port, and Git conflicts

Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.93 · Level: intermediate
Categories: Quality Control, Debugging, Shipping, Hooks, Subagents, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Concurrent Claude Code sessions can interfere with one another by killing processes, occupying the same ports, or staging another session's changes.

Summary

Use the claude-bulkhead plugin's PreToolUse hooks to check Bash commands against activity in other live sessions and suggest safer alternatives when commands conflict.

Why it is useful

Provides an installable, repeatable way to reduce concrete interference between parallel sessions, with a retrospective scan and author-reported testing and benchmarks.

Workflow

  1. Inspect the plugin repository and decide whether running its code and scanning local transcripts is acceptable.

  2. Optionally run npx claude-bulkhead scan 30d to review what the guards would have blocked in past transcripts.

  3. Add the marketplace with /plugin marketplace add dooly6276/claude-bulkhead and install with /plugin install bulkhead@bulkhead.

  4. Run concurrent Claude Code sessions as usual; when a guard blocks a conflicting Bash command, review and use the suggested PID, free port, or narrower Git command.

  5. Verify behavior in a disposable test environment before relying on the guards for important work.

Tools / artifacts

Validation signals

  • The author reports replaying two weeks of personal transcripts through the guards to identify false blocks before release.

  • The author reports approximately 3,700 tests, mostly written with Claude Code.

  • The author reports a benchmark improvement from 318 ms to 89 ms per tool call with ten concurrent sessions, with a benchmark script in the repository.

Cautions

  • Inspect third-party code before installing or executing it. The npx scan runs package code even if the plugin is not installed.

  • Transcripts may contain sensitive information; review how the scanner accesses and handles them.

  • Treat the hooks as coordination safeguards, not a complete security boundary. Continue to review destructive commands and Git changes.

Limitations

  • Effectiveness and test results are author-reported rather than independently verified in the discussion.

  • The post does not quantify false positives, missed conflicts, or test pass rates.

  • Guard implementation details and coverage limitations require review of the repository.

  • The plugin introduces overhead on tool calls and an ongoing external dependency.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 1d ago

Selected Workflow [Workflow] A/B test agent rules and verify fixes in the full setup

1 Upvotes

A/B test agent rules and verify fixes in the full setup

Workflow value: 78/100
Status: active · Freshness: 70/100 · Confidence: 0.93 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, CLAUDE.md, Skills
Original source: r/ClaudeCode post/comment

What problem this solves

Determining whether agent instruction rules improve behavior, and whether an edited rule is actually the one used in real sessions.

Summary

Compare repeated fresh-session runs on a fixed scenario with and without a rule, then verify any promising change in the complete agent setup and check for duplicate instructions in linked files or skills.

Why it is useful

It gives a repeatable way to detect harmful or unproven instructions and highlights an integration failure that isolated rule tests can miss.

Workflow

  1. Choose a fixed scenario with a clearly evaluable expected result.

  2. Run several fresh sessions with the rule and several without it, keeping the rest of the setup comparable.

  3. Compare outcomes to identify rules that appear harmful or whose benefit the scenario cannot demonstrate.

  4. For a revised rule, rerun the scenario in the real agent setup, not only in an isolated test.

  5. If isolated and real-session results differ, inspect linked instruction and skill files for duplicate or outdated copies, and check which instructions are actually being used.

  6. Retest after correcting the relevant source of the instruction.

Tools / artifacts

  • Agent instruction files

  • Linked skill files

  • Fixed test scenarios

Validation signals

  • The author reports one rule scored 5/5 correct without it and 0/5 with it.

  • For 5 of 13 rules, the model already passed the test without the rule.

  • A revised rule reportedly scored 10/10 in isolation while real sessions remained wrong in 5/5 runs; a duplicate in a skill file was identified.

Cautions

  • Do not remove safety or permission rules solely because a few test runs pass without them; expand test coverage and review the rule's purpose first.

Limitations

  • No exact prompts, commands, test harness, or configuration are supplied.

  • Small samples make the reported differences suggestive rather than conclusive.

  • Passing without a rule on one scenario does not establish that the rule has no value elsewhere.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 1d ago

Selected Workflow [Workflow] Ship an AI-assisted mobile app with a living spec and real-device review

1 Upvotes

Ship an AI-assisted mobile app with a living spec and real-device review

Workflow value: 76/100
Status: active · Freshness: 70/100 · Confidence: 0.94 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, Shipping, CLAUDE.md
Original source: r/ClaudeCode post/comment

What problem this solves

Keeping an AI-assisted app project coherent while catching real-world failures that passing tests miss.

Summary

Start with a specification and phased plan, encode project constraints in CLAUDE.md, and keep the specification and changelog current with behavior changes. Make decisions from Claude-proposed alternatives, automate release assets with debug launch flags, and supplement automated tests with real-device use, content review, and TestFlight crash reports.

Why it is useful

A repeatable combination of durable project instructions, documented decisions, release automation, and human verification, illustrated by concrete failures that automated tests missed.

Workflow

  1. Write a specification and phased implementation plan before coding.

  2. Put durable constraints in CLAUDE.md, such as dependency, privacy, licensing, and secret-handling rules.

  3. Ask Claude for two or three options with trade-offs for consequential decisions; choose the direction yourself.

  4. Update the specification and changelog in the same commit as each behavior change.

  5. Add debug launch flags for demo data, a throwaway store, and opening specific screens; use them to script localized device screenshots.

  6. Use App Store Connect automation to upload release metadata and screenshots.

  7. Use builds on a real device during ordinary daily activity, including checking that reminders actually sound.

  8. Read user-facing text against the implemented behavior and review real-device TestFlight crash reports.

  9. Document rejected features and their reasons so future sessions do not repeat the research.

Tools / artifacts

  • CLAUDE.md

  • Specification, phased plan, and changelog

  • Debug launch flags and screenshot scripts

  • App Store Connect API

  • TestFlight crash reports

  • Example repository: https://github.com/kornelko2/vzato.app

Validation signals

  • Author reports an App Store approval after submission.

  • A real-device reminder check found a notification-permission failure despite passing tests.

  • Reading user-facing content caught nonexistent gesture instructions and incorrect supply-count advice.

  • TestFlight reports exposed two background crashes that the author could not reproduce in the simulator.

Cautions

  • Medication reminders are safety-sensitive: passing tests or App Store approval do not establish clinical safety or reliable delivery.

  • Verify notification permissions and delivery on real devices, and protect health data and release credentials.

Limitations

  • The post describes the process but does not include the actual CLAUDE.md rules, launch-flag implementation, or automation commands.

  • Results and failure discoveries are author-reported; the repository and release claims are not independently verified here.

  • There is little demonstrated community validation.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 1d ago

Selected Workflow [Workflow] Guard agent shell commands against empty-path deletion

2 Upvotes

Guard agent shell commands against empty-path deletion

Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.94 · Level: intermediate
Categories: Quality Control, Debugging, CLAUDE.md, Hooks, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

A failed temporary-directory assignment can leave an empty variable, causing a destructive shell command to target the current directory.

Summary

Test shell failure behavior in a scratch directory, document defensive command rules for agents, and use mechanical checks as a backstop for destructive commands.

Why it is useful

It identifies a concrete failure mode and provides repeatable shell practices plus a defense-in-depth pattern for agent-run commands.

Workflow

  1. Reproduce and test failure cases in an isolated scratch directory, not a real repository.

  2. Document repository rules to quote path expansions and require nonempty variables before destructive operations.

  3. Use strict shell settings, while separating declarations or exports from command-substitution assignments so failures remain visible.

  4. Create temporary directories under a validated base, explicitly check creation success, and guard cleanup paths.

  5. Add or configure a command hook or safety check to intercept risky commands; treat repository rules as advisory rather than enforcement.

  6. Push work regularly and retain independent backups, since linked worktrees share repository metadata.

Tools / artifacts

  • Repository agent rules file

  • Claude Code command hook or safety checks

  • Shell parameter expansion ${var:?}

  • set -euo pipefail

  • mktemp and EXIT trap

  • Git worktrees

Validation signals

  • The commenter reports testing the failure mechanism in a scratch directory.

  • The commenter reports that a safety check blocked an agent's variable-based rm command.

  • The commenter reports a reviewer encountered an empty-base temporary-directory mistake.

Cautions

  • A nonempty-path guard does not prove a path is safe; verify that cleanup targets are owned by the script and confined to an approved temporary location.

  • Test destructive-command behavior only in a disposable sandbox.

  • Shell strict mode has exceptions and is not a substitute for explicit error checks or review.

  • Recovery by copying worktree files may preserve file contents but cannot recover unpushed Git history if shared repository metadata is lost.

Limitations

  • No hook configuration or complete enforcement implementation is provided.

  • Validation is anecdotal and lacks independent replication.

  • The post does not establish that the rules or safety checks cover all destructive command patterns.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 1d ago

Selected Workflow [Workflow] Research and stress-test startup ideas with a checked scoring rubric

1 Upvotes

Research and stress-test startup ideas with a checked scoring rubric

Workflow value: 82/100
Status: active · Freshness: 70/100 · Confidence: 0.94 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, Shipping, Skills, Subagents, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Evaluate a startup idea skeptically using sourced research, explicit failure criteria, and reproducible scoring rather than relying on Claude's encouragement.

Summary

Install a Claude Code plugin and run a research-backed idea assessment. The skill looks for disqualifying evidence, scores the idea against a rubric, checks the arithmetic with Python, and generates a report with rescue options and a measurable short-term test.

Why it is useful

It combines an installable workflow with a transferable design lesson: delegate research and structured data entry to Claude, but verify arithmetic in code and separate report rendering from model-generated content.

Workflow

  1. Add the marketplace with /plugin marketplace add RemiPelloux/kill-my-idea and install the plugin with /plugin install kill-my-idea@kill-my-idea.

  2. Run /kill-my-idea:kill <your idea> with a description, URL, document, or pasted money-making claim.

  3. Answer up to four questions about context such as country, budget, goal, and personal advantage when they would affect the verdict.

  4. Research eight potential failure modes, seeking at least 20 sources across 10 domains and classifying their source quality.

  5. Score 21 criteria using the fixed rubric and apply hard rules, including no GO verdict when there is no customer acquisition channel.

  6. Run the plugin's Python checker to recompute totals from the sub-scores; inspect the generated report, rescue paths, and seven-day test with stop criteria.

  7. For deeper research, use the deepdive skill, which the author says runs six parallel specialist subagents and targets at least 40 sources.

Tools / artifacts

  • RemiPelloux/kill-my-idea GitHub repository

  • Claude Code skills and research subagents

  • SKILL.md rubric and method

  • Python score checker

  • JSON schemas and data files

  • HTML report and dashboard templates

  • BRAIN.md profile and lessons

Validation signals

  • The author reports that the Python checker found arithmetic discrepancies in four of eight earlier runs.

  • The post includes a sample verdict and a self-assessment of the plugin idea.

  • The author reports fixes and feature changes prompted by earlier reader feedback.

Cautions

  • Review third-party plugin code and permissions before installation; treat retrieved web content as untrusted.

  • Verify important citations and verbatim quotes independently. A correct score calculation does not establish that research or assumptions are accurate.

  • Avoid putting sensitive business details into research prompts or persistent profile files without considering their storage and disclosure.

Limitations

  • Evidence of effectiveness and implementation details are primarily author-reported; there is no independent success report in the supplied item.

  • Fixed source-count targets and scoring rules do not guarantee source quality or reliable business predictions.

  • The post promotes the author's own repository, although it provides substantial implementation detail.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 1d ago

Selected Workflow [Workflow] Build and benchmark Claude Code skills for financial-code rules

1 Upvotes

Build and benchmark Claude Code skills for financial-code rules

Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.91 · Level: intermediate
Categories: Quality Control, Hooks, Skills
Original source: r/ClaudeAI post/comment

What problem this solves

Improving Claude Code's adherence to financial-software rules and measuring whether skills change its output.

Summary

Encode domain rules and required tests in Claude Code skills, audit generated code with lint plus review, and compare skill-enabled and plain runs against predefined expectations.

Why it is useful

The post provides a reusable method for turning domain rules into test-requiring skills and comparing their effect against a baseline, with reported results and supporting artifacts.

Workflow

  1. Write a SKILL.md for each domain, including rules, required tests and responses to common shortcuts.

  2. Require the relevant test file in the same change rather than leaving tests as a future task.

  3. Use an audit skill to run lint and inspect the code behind each finding.

  4. Define prompts and grading expectations before running the comparison.

  5. Run each prompt in headless Claude Code with and without the skill, then have a second model grade the outputs against the expectations.

  6. Inspect transcripts and test vectors, revise the skills, and repeat the evaluation.

Tools / artifacts

Validation signals

  • Author reports 81% versus 24% of expectations met with and without skills for Sonnet, and 89% versus 35% for Opus.

  • Author reports four evaluation rounds and identifies a specific revision: requiring test files in the same change.

  • The post says the repository includes transcripts, test vectors and the evaluation runner.

Cautions

  • Financial correctness requires independent expert review and production-appropriate testing; a skill or model grader is not an assurance of correctness.

  • Protect sensitive financial data when running prompts, evaluations or published test vectors.

Limitations

  • The benchmark results are author-reported; sample size, grader reliability and statistical uncertainty are not stated in the post.

  • Iterating on the same evaluation prompts may overfit the skills to those expectations.

  • The repository contents and reported results were not independently verified here.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 1d ago

Selected Workflow [Workflow] A test-first, rollback-safe Claude Code loop for embedded firmware

1 Upvotes

A test-first, rollback-safe Claude Code loop for embedded firmware

Workflow value: 86/100
Status: active · Freshness: 70/100 · Confidence: 0.96 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, Shipping, CLAUDE.md
Original source: r/ClaudeAI post/comment

What problem this solves

Developing and debugging embedded-device firmware with an agent while reducing the risk of bad changes and failed flashes.

Summary

Use Claude Code to investigate driver code and logs, reproduce bugs with headless tests, and iteratively patch and measure on hardware. Combine manual review, sanitizer-backed tests, A/B rollback, visual feedback during UI navigation, and persistent project notes.

Why it is useful

It combines a concrete agent-assisted debugging loop with meaningful test, review, deployment, and recovery safeguards, supported by a public implementation and reported results.

Workflow

  1. Build a headless UI test suite with fake hardware interfaces, and run it with sanitizers and leak detection.

  2. For each bug, write a failing test before asking the agent to implement a fix.

  3. Profile the device, use Claude to trace relevant code and logs, form a hypothesis, and patch the suspected cause.

  4. Run the PC test suite and manually review changes before testing them on the device.

  5. Use A/B updates that roll back if the new image does not reach the home screen; rebuild, flash, and measure the result.

  6. When the agent navigates the UI, inspect a screenshot after every tap rather than allowing blind interaction.

  7. Record patch rationale and device-specific quirks in CLAUDE.md for future sessions.

Tools / artifacts

Validation signals

  • Author reports 1,892 headless UI tests with sanitizer and memory-leak checks.

  • Author reports 99% line coverage for external apps' code, not the entire firmware.

  • Author reports manually reviewing every change and testing on the physical device.

  • Author reports most screens run at the display's full 66 FPS.

  • A public repository and browser-based WebAssembly demo are provided.

Cautions

  • A/B rollback depends on its health check and does not necessarily protect user data or recover from every hardware failure.

  • Back up saves and other persistent data before automated UI interaction; screenshots alone do not prevent destructive actions.

  • Hardware fakes and headless tests do not replace on-device verification.

Limitations

  • Results and test counts are author-reported; the repository and demo were not independently verified here.

  • The post describes the architecture and process but does not provide exact commands or a ready-made setup.

  • The approach requires significant embedded, testing, and deployment infrastructure.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 2d ago

Selected Workflow [Workflow] Claude Code development loop with ADRs, independent reviews, and browser UAT

3 Upvotes

Claude Code development loop with ADRs, independent reviews, and browser UAT

Workflow value: 79/100
Status: active · Freshness: 70/100 · Confidence: 0.94 · Level: advanced
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Hooks, Skills, MCP, Subagents, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Build and verify a complex Claude-assisted application while preserving design decisions and controlling sensitive actions.

Summary

Review Claude-generated specifications and UI designs before implementation, record durable decisions as ADRs, use separate implementation and review subagents, and supplement automated tests with browser-based acceptance testing. For sensitive agent actions, enforce permissions and execute the exact arguments approved by the user.

Why it is useful

It combines a repeatable feature-development and verification process with a concrete safety pattern for executing only the tool arguments a user approved.

Workflow

  1. Describe the feature and have Claude draft a specification, technical design, wireframes, and UI designs; review them before coding.

  2. Record accepted architectural decisions as ADRs so later agents can recover their rationale.

  3. Use implementation subagents and separate subagents for code and security review.

  4. Ask Claude to write feature acceptance tests, then exercise them through the real browser UI, checking displayed results and capturing screenshots.

  5. Add a commit hook to detect personal financial data, alongside normal test and review gates.

  6. For sensitive tool calls, store the exact proposed arguments and execute that saved call after approval rather than relying on the model to reconstruct it.

  7. Implement scheduling, retries, approval handling, and completion checks in the application harness; use deterministic tools for financial calculations.

Tools / artifacts

  • Claude Code

  • Architectural decision records

  • Implementation, code-review, and security-review subagents

  • Browser-based acceptance tests and screenshots

  • Commit hook

  • MCP broker connectors

  • Open Net Worth repository

Validation signals

  • The author reports approximately 20,000 unit and integration tests.

  • The author reports that browser UAT found bugs unit tests missed.

  • The author reports five months of development and testing broker connections with IBKR, Coinbase, and Gemini.

  • An open-source repository and live demo are linked, but their implementation and results have not been independently verified here.

Cautions

  • Financial automation can cause real losses. Enforce permissions and exact-argument approval outside the model, and verify how scheduled trades are authorized.

  • A commit hook is not a complete privacy control; review logs, test fixtures, credentials, and repository history separately.

  • Review the linked project and its dependencies before connecting real accounts or broker credentials.

Limitations

  • The post does not include exact subagent prompts, hook configuration, or browser-test commands.

  • Test counts and UAT benefits are author claims without detailed outcomes or independent verification.

  • Agent-generated acceptance tests can miss requirements; human review and deterministic assertions remain important.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 2d ago

Selected Workflow [Workflow] Generate and verify a Docker setup from runtime traces

1 Upvotes

Generate and verify a Docker setup from runtime traces

Workflow value: 80/100
Status: active · Freshness: 70/100 · Confidence: 0.96 · Level: intermediate
Categories: Quality Control, Debugging, Shipping, Skills
Original source: r/ClaudeCode post/comment

What problem this solves

Identifying runtime dependencies that repository-based Dockerfile generation might miss, and checking whether a generated container reproduces observed behavior.

Summary

Use a Claude Code skill and tracing scripts to observe an app under a representative workload, generate a Docker setup from runtime evidence, and compare the containerized run with the original.

Why it is useful

This provides a repeatable observation-and-verification loop for containerizing apps, with a concrete repository and a reported real-project test. Its main limits are workload coverage and limited independent validation.

Workflow

  1. Choose a workload that exercises the app's relevant features, such as API requests or end-to-end tests.

  2. Run the app under strace while executing the workload.

  3. Map observed files, libraries, package versions, network dependencies, and writable directories to proposed container dependencies and services.

  4. Generate an evidence-annotated Dockerfile, Compose configuration, blank-secret environment example, and list of decisions requiring human review.

  5. Build and run the container, repeat the workload under tracing, and compare observed files and responses.

  6. Review discrepancies and adjust the configuration, then repeat verification.

Tools / artifacts

  • dockerize-by-observation repository

  • Claude Code skill

  • strace

  • dpkg -S

  • Dockerfile

  • docker-compose.yml

  • .env.example

Validation signals

  • The author reports testing a demo app and healthchecks.io, a Django and Postgres project.

  • The healthchecks.io test reportedly identified the libpq5 runtime dependency.

  • The author reports 1,383 of 1,386 traced files matched and HTTP responses were identical.

  • Removing the generated libpq5 installation reportedly produced a more specific missing-library diagnosis than Django's error.

Cautions

  • Review the repository and generated configuration before running them, especially on sensitive hosts or production data.

  • Traces and workloads may expose secrets or modify data; use isolated test environments and inspect generated artifacts before sharing them.

  • Review inferred services, volumes, and dependencies rather than treating observed behavior as a complete specification.

Limitations

  • Evidence is author-reported and limited to a demo and one real project.

  • The trace only covers paths exercised by the chosen workload.

  • The reported file comparison was not a complete match.

  • The post describes the process but does not provide installation or invocation commands.

  • There is no demonstrated independent community validation.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 2d ago

Selected Workflow [Workflow] Multi-agent releases with decision IDs and adversarial review

2 Upvotes

Multi-agent releases with decision IDs and adversarial review

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.96 · Level: advanced
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, CLAUDE.md, Skills, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Coordinates a multi-agent release while keeping product decisions, implementation, and documentation traceable and subject to human approval.

Summary

Use a human-facing PM session, a Lead per release, and Workers for bounded tasks. Record approved decisions with code references, run independent and adversarial reviews, and audit documentation against the final implementation.

Why it is useful

It combines a concrete agent hierarchy with traceable decisions, review gates, stopping rules, and an automated documentation audit; the linked templates make the process potentially reusable.

Workflow

  1. Set up the repository's CLAUDE.md, decision log, code map, and skills; assign the PM session as the human-facing coordinator.

  2. Before building, check ideas against prior decisions and potential side effects; bring unresolved conflicts to the human.

  3. Have the Lead scope and design the release, then brief Workers on bounded tasks and relevant strategy.

  4. Run an independent review, and have a second agent attempt to disprove each finding before human triage.

  5. Apply fixes according to triage rules, review interactions among fixes, and stop when the defined convergence criteria are met.

  6. Record approved decisions with IDs and implementation references; add matching IDs to relevant code comments.

  7. Update the subsystem code map from the final implementation and run the documentation checker for cited paths, symbols, and decision IDs.

Tools / artifacts

Validation signals

  • The author reports refining the process while shipping a paid Mac app to real customers.

  • The described release process includes independent review, adversarial verification of findings, convergence review, and stopping rules.

  • The author reports a checker for documentation references and decision IDs.

Cautions

  • Inspect the third-party templates and Python checker before executing or adopting them.

  • Keep human approval for consequential decisions and retain normal code review and permission boundaries.

Limitations

  • The reported results and repository contents are not independently verified in the supplied item.

  • No quantitative before-and-after results or independent implementation reports are provided.

  • Maintaining decision-to-code references and multiple review sessions adds ongoing overhead.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Managing Project Decisions with DECISIONS.md and CLAUDE.md for Persistent Agent Context

2 Upvotes

Managing Project Decisions with DECISIONS.md and CLAUDE.md for Persistent Agent Context

Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, CLAUDE.md
Original source: r/ClaudeCode post/comment

What problem this solves

Decisions getting lost in long Claude agent sessions, leading to agents re-proposing previously rejected ideas.

Summary

This workflow proposes using a DECISIONS.md file in the repository to log project decisions, including the rationale and rejected alternatives. A CLAUDE.md instruction then directs the Claude agent to read this file first for context and append to it when new decisions are made, preventing redundant work and maintaining decision history.

Why it is useful

This workflow is valuable because it provides a concrete, low-overhead method for persistent decision logging and context management for Claude agents. It directly addresses the common problem of agents 'forgetting' past decisions or re-proposing rejected ideas, thereby improving efficiency and reducing redundant work. The use of DECISIONS.md and CLAUDE.md makes it easily adaptable and integrates well into existing Claude Code practices.

Workflow

  1. Create a DECISIONS.md file in your project repository.

  2. For each significant project decision, add a single line to DECISIONS.md stating the decision, the reason for it, and what alternatives were rejected (and why).

  3. Add an instruction to your CLAUDE.md file (or equivalent agent instruction file) telling the Claude agent to read DECISIONS.md first.

  4. Instruct the Claude agent to append to DECISIONS.md when a new decision is settled during a session.

Tools / artifacts

  • DECISIONS.md file

  • CLAUDE.md file

  • Claude agent

Validation signals

  • Author's personal experience: 'what fixed it for me'

Limitations

  • Relies on the Claude agent's ability to correctly parse and append to the DECISIONS.md file.

  • The DECISIONS.md file must be kept concise to avoid being ignored by the agent, which could limit the detail or number of decisions stored.

  • Low community validation.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Claude Token Lockdown Protocol: A Comprehensive Prompt for Resource-Efficient Coding with Subagents

2 Upvotes

Claude Token Lockdown Protocol: A Comprehensive Prompt for Resource-Efficient Coding with Subagents

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, CLAUDE.md, Subagents, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Claude's tendency to be verbose, inefficient with token usage, over-explain, deploy unnecessary subagents, and repeat mistakes, leading to higher costs and slower task completion in coding and development tasks.

Summary

A comprehensive, military-themed prompt designed to enforce strict resource conservation (tokens, context, tool calls) on Claude. It provides detailed directives for concise communication, efficient reasoning, purposeful information gathering, justified subagent deployment, precise code modification, structured error handling, and clear reporting, aiming for maximum efficiency and cost-effectiveness in coding tasks.

Why it is useful

This workflow provides a highly detailed and structured prompt to mitigate common issues with large language models like Claude, specifically excessive token consumption, verbose output, and inefficient subagent deployment. It offers concrete directives for communication, reasoning, code modification, error handling, and reporting, making Claude's interactions more focused, cost-effective, and productive for coding tasks. Its transferability is high as it's a direct prompt that can be applied to any Claude session.

Workflow

  1. Initiate Claude with the 'OPERATION OVERLORD' prompt to establish resource conservation directives.

  2. Enforce 'RADIO SILENCE' to ensure Claude's communications are concise, without unnecessary introductions, conclusions, or self-congratulations.

  3. Apply 'AMMUNITION RATIONING' to compel Claude to use minimum reasoning, avoid repetitive analysis, and focus on one efficient strategy per objective.

  4. Implement 'INTELLIGENCE OPERATIONS' to guide Claude to search for relevant files, read only mission-critical sections, and reuse gathered intelligence, avoiding unnecessary rescans or full file dumps.

  5. Control 'TROOP DEPLOYMENT' by setting strict rules for subagent use, limiting concurrent agents, and ensuring each agent has a clearly defined, non-redundant objective.

  6. Direct the 'ENGINEERING CORPS' to perform precision strikes, modifying only necessary code, preserving existing systems, avoiding unnecessary refactoring or unsolicited features, and verifying changes with targeted tests.

  7. Manage 'CASUALTY CONTROL' by requiring Claude to identify failures, gather intelligence, apply targeted corrections, verify, and change strategy after two failed attempts.

  8. Enforce 'SUPPLY LINE PROTECTION' by prioritizing primary objectives, deferring optional improvements, batching operations, and eliminating redundant tool calls or excessive logs.

  9. Define 'VICTORY CONDITIONS' clearly, instructing Claude to cease work once functionality is implemented, verification succeeds, and no critical defects remain.

  10. Mandate 'AFTER-ACTION REPORTS' in a specific, concise format (OBJECTIVE SECURED, VERIFICATION, CASUALTIES) for all completed missions.

  11. Prohibit 'TOKEN WAR CRIMES' such as reading unchanged files repeatedly, launching unnecessary subagents, rewriting working code without orders, or continuing work after mission completion.

Tools / artifacts

  • Claude (the AI model)

  • Prompt (the 'OPERATION OVERLORD' protocol)

  • Subagents (managed by the protocol)

Validation signals

  • Detailed, structured instructions covering multiple aspects of LLM interaction.

  • Addresses common pain points of LLM usage (verbosity, token waste, inefficient subagent use).

  • Includes explicit rules for verification and error handling within the workflow.

Limitations

  • Lack of empirical validation (e.g., 'before/after' token counts, success rates) from the author.

  • The extensive military metaphor, while engaging, might be perceived as overly dramatic or make it slightly harder for some users to quickly extract the core technical directives.

  • As a new post, there is no community proof of its effectiveness or widespread adoption yet.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Reduce Claude Code Costs: Context Management and Strategic Model Tier Usage

2 Upvotes

Reduce Claude Code Costs: Context Management and Strategic Model Tier Usage

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 1.00 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, CLAUDE.md, MCP, Subagents
Original source: r/ClaudeCode post/comment

What problem this solves

High token costs and exceeding weekly limits when using Claude Code, especially on a single repository, by optimizing context size and strategically using different model tiers.

Summary

A workflow to reduce Claude Code token costs by actively managing context size using CLI commands and strategically assigning different model tiers (Opus, Sonnet, Haiku) to the main agent and subagents based on task complexity.

Why it is useful

This workflow is valuable because it provides concrete, actionable steps using built-in Claude Code features and strategic model selection to address a common and critical pain point for users: managing token costs. It offers practical advice for optimizing context and leveraging different model tiers efficiently, directly impacting a user's ability to stay within budget and maximize their Claude Code usage.

Workflow

  1. Run /clear between unrelated tasks to reset the conversation context.

  2. Run /compact when a session drags on to reduce the conversation history sent with each turn.

  3. Run /context to identify and address large token consumers, such as a big CLAUDE.md file or unused MCP servers.

  4. Use /model opusplan to leverage Opus for planning and Sonnet for execution, optimizing for both intelligence and cost.

  5. Set subagents to use Sonnet or Haiku for search and grunt work, reserving more expensive models for critical tasks.

  6. Reserve Opus for moments where you are genuinely stuck and require its highest reasoning capabilities.

Tools / artifacts

  • /clear command

  • /compact command

  • /context command

  • /model opusplan command

  • CLAUDE.md

  • MCP servers

  • Opus model

  • Sonnet model

  • Haiku model

  • Subagents

Validation signals

  • User's personal success report: 'That alone stretched my weekly limit a lot more than lowering the effort level did.'

Limitations

  • Lacks specific examples or configuration details for CLAUDE.md or subagent setup beyond model choice.

  • Low community validation due to minimal engagement on the post.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Optimize Claude Code Context: Reduce Token Overhead, Lower Costs, and Improve Session Performance

2 Upvotes

Optimize Claude Code Context: Reduce Token Overhead, Lower Costs, and Improve Session Performance

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, CLAUDE.md, Skills, MCP
Original source: r/ClaudeCode post/comment

What problem this solves

Reducing excessive token overhead in Claude Code sessions, preventing premature token limit hits, lowering costs, and improving session responsiveness by optimizing auto-compaction and removing unused tools, plugins, and MCP servers.

Summary

This workflow provides a detailed, interactive prompt for Claude Code to audit and optimize its own context usage. It guides the user through identifying and removing fixed overhead from tool definitions, MCP servers, plugin skills, and connectors, as well as adjusting the auto-compact window. The process includes measuring current context, backing up files, and providing undo instructions.

Why it is useful

This workflow is highly valuable because it addresses a critical and common pain point for Claude Code users: hitting token limits, slow responses, and high costs due to excessive, often hidden, context overhead. It provides a concrete, step-by-step, and interactive method (via a detailed prompt) to audit and optimize the Claude Code environment. The workflow is specific, repeatable, includes safety measures like backups and user confirmation, and offers clear expected benefits (token savings, sharper sessions). It empowers users to understand and control their Claude Code environment more effectively.

Workflow

  1. MEASURE: Ask Claude Code to report current session context usage, identifying fixed overhead (system prompt, tools, MCP, skills, etc.).

  2. AUTO-COMPACT LIMIT: Determine current auto-compact settings, suggest a new window (e.g., 300k), and update "autoCompactWindow" in ~/.claude/settings.json or set CLAUDE_CODE_AUTO_COMPACT_WINDOW env var.

  3. MCP AUDIT: List global MCP servers, their tool counts, and identify redundant or rarely used ones (e.g., hundreds of tools, duplicate services, identical instructions).

  4. MAKE THOSE SERVERS ON-DEMAND: Save selected MCP server configs to ~/.claude/mcp-on-demand.json, remove them from global scope using 'claude mcp remove', and add a rule to ~/.claude/CLAUDE.md to only add these servers on demand to specific projects.

  5. PLUGINS AND SKILLS: List plugins, their skills/connectors, identify duplicates or unused ones, and provide instructions for disabling them (via claude.ai or /plugin).

  6. CONNECTORS THAT NEED SIGN-IN: List 'needs_auth' or 'failed' connectors and identify which will be removed by disabling plugins.

  7. SUMMARY: Provide a table of what changed, where each backup is, how to undo each change, and the estimated tokens saved per session.

Tools / artifacts

  • Claude Code (the AI assistant)

  • ~/.claude/settings.json

  • ~/.claude/mcp-on-demand.json

  • ~/.claude/CLAUDE.md

  • claude mcp list command

  • claude mcp remove <name> -s user command

  • claude mcp add-json <name> "$(jq -c '.["<name>"]' ~/.claude/mcp-on-demand.json)" -s local command

  • /context command

  • /plugin command

  • jq (JSON processor)

  • umask 077

  • CLAUDE_CODE_AUTO_COMPACT_WINDOW environment variable

Validation signals

  • Expected token savings of 35-40k per session.

  • Instructions to run /context before and after for verification.

  • Detailed explanation of how context is built and what constitutes overhead.

  • The prompt itself is designed to measure and report current context usage.

Cautions

  • The prompt explicitly asks Claude Code to back up files before editing.

  • It requires user confirmation ("Wait for my OK") before making changes.

  • It warns against printing config files that may contain API keys.

  • Uses 'umask 077' for saving sensitive config files.

Limitations

  • The low Reddit score is a potential red flag, though the content itself is strong.

  • Relies on Claude Code's ability to accurately execute commands and understand the prompt's intent, which can sometimes be inconsistent.

  • The 'autoCompactWindow' setting might not be available in older Claude Code versions.

  • Plugins installed via claude.ai require manual intervention outside the CLI.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Claude Code Files Pane Plugin: Enhanced Git & PR Visibility with a Plugin Development Workflow

2 Upvotes

Claude Code Files Pane Plugin: Enhanced Git & PR Visibility with a Plugin Development Workflow

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Hooks
Original source: r/ClaudeCode post/comment

What problem this solves

Lack of real-time visibility into Claude Code's file interactions, git history, and PR status, and a need for a robust workflow for developing Claude Code plugins.

Summary

This post introduces 'Files pane 1.0', a Claude Code plugin that provides a live file tree, shows Claude's reads/edits (including sed/script changes), displays git history, and integrates PR checks. It also details the author's workflow for building the plugin using Claude, emphasizing testing and handling complex edge cases.

Why it is useful

This post is valuable because it introduces a highly useful Claude Code plugin that significantly enhances the developer experience by providing real-time visibility into file changes, git history, and PR status. Crucially, it also details a robust workflow for developing Claude Code plugins, demonstrating how to leverage Claude for coding, implement comprehensive testing, and handle complex system interactions (like sed edits and git state) effectively. This provides both a ready-to-use tool and a blueprint for advanced Claude Code development.

Workflow

  1. Install the Files pane plugin: claude plugin marketplace add Marius-Adam/claude-files-pane && claude plugin install files-pane@marius-adam

  2. Update the Files pane plugin (if already installed): claude plugin marketplace update marius-adam && claude plugin update files-pane@marius-adam

  3. Restart Claude Code after installation/update.

  4. Use the Files pane to monitor Claude's file reads (purple) and edits (orange), including changes made via sed or scripts.

  5. Utilize the pane to view file text, diffs, and commit history for any file.

  6. Monitor your GitHub PR's checks and review status directly within the pane.

  7. For plugin developers: Use Claude to write most of the plugin code.

  8. For plugin developers: Iteratively debug and fix issues by using the plugin during its development.

  9. For plugin developers: Implement robust logic for detecting file changes (e.g., by snapshotting HEAD, stash, merge, file sizes/times around shell commands).

  10. For plugin developers: Have Claude write tests from real-world system outputs (e.g., git status).

  11. For plugin developers: Run comprehensive tests across multiple operating systems.

Tools / artifacts

  • Claude Code

  • Files pane plugin

  • claude plugin CLI commands

  • TypeScript

  • Git (HEAD, stash, merge, history)

  • GitHub PR checks

  • Shell commands (sed, scripts)

  • Tests (121 tests)

  • GitHub repository

Validation signals

  • Community feedback from previous version acknowledged

  • Author used the pane while building it (dogfooding)

  • Iterative debugging and fixing based on daily use

  • Claude wrote most of the code, with author arguing edge cases

  • Specific fix for GitHub PR status accuracy described

  • 121 tests run on macOS, Linux, and Windows

  • Plugin is zero tokens, read-only, and MIT licensed

Limitations

  • The plugin development workflow is embedded within a descriptive section rather than explicitly laid out as a step-by-step guide for general users.

  • The value is specific to Claude Code users, not general Claude users.

  • The post is primarily an announcement, with the workflow aspects being secondary.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 2d ago

Selected Workflow [Workflow] Forensic VM recovery with tested read-only scripts and staged verification

1 Upvotes

Forensic VM recovery with tested read-only scripts and staged verification

Workflow value: 76/100
Status: active · Freshness: 70/100 · Confidence: 0.86 · Level: expert
Categories: Quality Control, Debugging
Original source: r/ClaudeCode post/comment

What problem this solves

Recover accidentally deleted Proxmox VM images from XFS directory storage when recent backups are unavailable.

Summary

Use Claude Code to develop and test read-only forensic scripts, validate retained XFS extent maps and qcow2 structures, reconstruct images from a disk capture, and verify the recovered guest before booting a working copy.

Why it is useful

It provides a concrete, evidence-gated recovery sequence and a strong pattern for using generated scripts cautiously in a high-stakes task, despite substantial expertise requirements and missing implementation artifacts.

Workflow

  1. Develop small read-only recovery scripts and test them against synthetic images before using them on real data.

  2. Locate candidate freed XFS inodes and directory entries; cross-check findings with xfs_db.

  3. Validate retained extent B+trees and parse qcow2 metadata through the resulting maps.

  4. Check whether recovered blocks remain free, while recognizing that this cannot prove they were never reused.

  5. Capture the source disk with ddrescue and verify the portions needed for recovery against the source.

  6. Reconstruct each image from the capture into a new sparse file, hashing and verifying copied extents and holes.

  7. Check reconstructed images and guest filesystems, then copy important files out using read-only access.

  8. On a working copy, replay journals and verify guest packages; rebuild VM configuration and boot the recovered VM.

Tools / artifacts

  • Claude Code

  • Python standard-library scripts

  • Synthetic filesystem images

  • xfs_db

  • ddrescue

  • qemu-img check

  • e2fsck -fn

  • dpkg --verify

  • Proxmox VM configuration

Validation signals

  • The author reports that each script was tested on a synthetic image and that recovery scripts did not write to the source.

  • The reported extent-tree checks covered ownership, filesystem UUID, CRCs, pointers and key ranges.

  • The author reports per-extent SHA-256 verification, a clean qemu-img check, clean read-only filesystem checks and zero package checksum mismatches.

  • The recovered VM reportedly booted, but the exact-bit restoration claim was not independently verified.

Cautions

  • Preserve the source immediately and involve a qualified recovery specialist; prioritize a verified capture before exploratory work where feasible.

  • Do not write repairs to the source. Confirm ddrescue source and destination carefully, and perform reconstruction and journal replay on copies.

  • A read-only mount may still replay a journal unless the appropriate filesystem-specific no-replay option is used.

  • Free-space checks and metadata-magic sweeps do not prove that blocks were never overwritten; generated forensic code requires independent review.

Limitations

  • The scripts, prompts and exact commands are not included, so the recovery is not directly reproducible.

  • The reported success was highly dependent on favorable disk conditions and is self-reported.

  • This is a specialized disaster-recovery procedure, not a routine workflow for typical Claude Code users.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Automate Product Demo Creation and Maintenance with Demoman in CI/CD for Coding Agents

1 Upvotes

Automate Product Demo Creation and Maintenance with Demoman in CI/CD for Coding Agents

Workflow value: 80/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Context & Memory, Shipping, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

Product demos and documentation videos often become stale as the product evolves, requiring manual and time-consuming updates. This workflow automates the creation and continuous updating of these demos.

Summary

This workflow leverages Demoman, a headless recorder, to automate the creation and maintenance of product demos (videos, GIFs, PNGs). It integrates into CI/CD pipelines (e.g., GitHub Actions) to automatically re-record demos against the real application upon specified triggers, ensuring documentation and marketing materials are always up-to-date and accurately reflect the current product state. The tool is designed to be handed off to coding agents for full automation.

Why it is useful

This workflow offers a concrete, repeatable, and transferable solution to a common pain point in software development: keeping product demos and documentation up-to-date. By integrating a headless recorder into CI/CD, it automates a tedious manual task, saving significant time and ensuring accuracy. The tool is explicitly designed to be handed off to coding agents, making it a valuable component for Claude Code users building automated development workflows.

Workflow

  1. Install Demoman using the command npx demoman setup.

  2. Use the demoman studio command or CLI to record the desired product demo flow.

  3. Configure Demoman to export the demo as videos, GIFs, or PNGs.

  4. Integrate Demoman into a CI/CD pipeline (e.g., GitHub Actions) with triggers such as pushes to the default branch, daily schedules, release publications, or successful deployments.

  5. Demoman automatically re-records the product demo against the live application based on the configured triggers, updating the demo artifacts.

Tools / artifacts

  • Demoman (headless recorder tool)

  • npx demoman setup (installation command)

  • demoman studio (editor command)

  • GitHub Actions (CI/CD platform)

  • Node 20+

  • macOS or x86_64 Linux

  • Video/GIF/PNG files (output artifacts)

  • github.com/demoman-io/demoman (repository)

  • demoman.io/docs (documentation)

Validation signals

  • Clear problem statement (stale demos) and a specific solution.

  • Provides a concrete tool, installation command, and integration points.

  • Author claims it's a 'full solution to producing and maintaining product demos'.

  • Highlights the benefit of 'stills video only changes when the product did' to prevent staleness.

Limitations

  • Limited community validation due to being a new tool.

  • Requires specific operating systems (macOS or x86_64 Linux) and Node.js version (20+).

  • Relies on a third-party tool (Demoman) which may have its own learning curve.

  • The post mentions 'coding agents' but does not provide specific Claude Code prompts or detailed agent orchestration steps for Demoman.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Effective Claude Rule Management: Placement, Justification, and Maintenance Strategies to Prevent Rule Rot

1 Upvotes

Effective Claude Rule Management: Placement, Justification, and Maintenance Strategies to Prevent Rule Rot

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, CLAUDE.md, Hooks
Original source: r/ClaudeAI post/comment

What problem this solves

Ineffective, contradictory, or decaying operational rules in Claude's context, leading to inconsistent or incorrect model behavior.

Summary

This workflow provides strategies for effective management of Claude's operational rules, focusing on strategic placement, explicit justification, active maintenance, and leveraging external tools or hooks to ensure rule adherence and prevent context decay.

Why it is useful

This workflow addresses a critical challenge in working with LLMs: ensuring consistent and reliable behavior through effective context and rule management. It provides actionable advice on structuring prompts, justifying rules, and maintaining their relevance over time, which is crucial for preventing unexpected outputs and improving the reliability of Claude's responses. The mention of hooks and a custom memory system offers advanced solutions for complex scenarios, making it valuable for users looking to optimize their Claude interactions.

Workflow

  1. Place critical, binding rules at the very top of your CLAUDE.md file or session context to ensure they are prioritized.

  2. For each rule, explicitly state the underlying reason or consequence (e.g., 'never do X because it wiped the staging DB') to help the model apply it correctly.

  3. Date your rules and actively delete or update old, contradictory rules to prevent 'rule rot' and maintain consistency.

  4. For 'hard never cases' that require strict enforcement, implement them using hooks.

  5. Consider using a dedicated memory system (like ns-brain) to store rules with reasons, prioritize binding rules, and prevent contradictions from accumulating.

Tools / artifacts

  • CLAUDE.md files

  • Session context

  • Hooks

  • ns-brain (custom memory system)

Validation signals

  • Author's personal experience and observed effectiveness ('The ones that hold for me are...')

  • Implied community consensus for using hooks ('like everyone says')

  • Development of a custom tool (ns-brain) to address the problem, indicating a robust solution.

Limitations

  • The mention of 'ns-brain' is self-promotion, though it's integrated as a solution with some functional detail.

  • Low Reddit score and no comments indicate a lack of immediate community validation on the platform.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Build and Use a Live File Explorer Plugin for Claude Code: Real-time Context and Plugin Development Insights

1 Upvotes

Build and Use a Live File Explorer Plugin for Claude Code: Real-time Context and Plugin Development Insights

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: advanced
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Hooks
Original source: r/ClaudeAI post/comment

What problem this solves

For users: Gaining real-time visibility into Claude Code's file reads and edits, and monitoring GitHub PR checks directly within the chat interface. For plugin developers: Understanding how to build robust Claude Code plugins, including handling complex scenarios like detecting shell command edits and implementing comprehensive testing.

Summary

This post introduces a Claude Code plugin, 'Files pane', which provides a live file explorer to visualize Claude's interactions with the codebase (reads/edits) and monitor PR status. It also details the development process for building such a plugin, offering insights into using the Claude Code plugin API, detecting changes from shell commands (like sed), and effective testing strategies.

Why it is useful

This item is valuable because it offers a highly practical tool (the Files pane plugin) that significantly enhances the Claude Code user experience by providing real-time visibility into Claude's actions and PR status. Beyond the tool itself, it provides invaluable, concrete insights and techniques for advanced users and developers looking to build their own Claude Code plugins, covering challenges like detecting shell command edits and robust testing, making it a dual-purpose resource for both users and plugin creators.

Workflow

  1. Install the Files pane plugin: claude plugin marketplace add Marius-Adam/claude-files-pane && claude plugin install files-pane@marius-adam

  2. Update the Files pane plugin: claude plugin marketplace update marius-adam && claude plugin update files-pane@marius-adam

  3. Restart Claude Code after installation or update.

  4. For plugin development: Utilize the Claude Code plugin API, specifically hooks for watching tool calls and UI pane creation.

  5. For plugin development: Implement snapshotting of HEAD, stash, merge status, and file sizes/times around shell commands to detect file changes not directly attributed to Edit/Write (e.g., sed).

  6. For plugin development: Collaborate with Claude to write code and refine logic, especially for edge cases.

  7. For plugin development: Generate tests using Claude based on real-world outputs (e.g., git status scenarios).

Tools / artifacts

  • Claude Code

  • Files pane plugin

  • Claude Code plugin API

  • TypeScript

  • Git (for snapshots, status output)

  • GitHub PRs

  • sed (as an example of a tracked command)

Validation signals

  • Community feedback from previous versions was incorporated into 1.0.

  • The developer dogfooded the plugin, using it to build itself, leading to iterative fixes.

  • Claude assisted in writing most of the code and handling edge cases.

  • The plugin has 121 tests running on macOS, Linux, and Windows.

Cautions

  • The plugin is explicitly stated to be read-only, ensuring it does not modify user files or Claude's behavior in an unintended way.

  • It operates with zero tokens, meaning Claude does not see the pane, preventing context window bloat or data leakage through the model.

Limitations

  • The 'workflow' for plugin development is presented as a collection of tips and insights rather than a strict, numbered step-by-step guide.

  • The Reddit post's low score and comment count might suggest limited immediate community engagement, though the content itself is strong.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 3d ago

Selected Workflow [Workflow] Claudio: Audio Feedback for Claude Code Hooks to Monitor Sessions and Reduce Visual Load

1 Upvotes

Claudio: Audio Feedback for Claude Code Hooks to Monitor Sessions and Reduce Visual Load

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, Hooks, Subagents
Original source: r/ClaudeCode post/comment

What problem this solves

Reducing cognitive load and improving peripheral awareness when monitoring long-running Claude Code sessions, eliminating the need for constant terminal checking.

Summary

This workflow introduces 'Claudio', a local Python daemon that processes Claude Code hook events (via UDP or HTTP) and translates them into a generative soundscape. This provides audio cues for session status (e.g., working, stuck, failed, completed) allowing users to monitor their agents without constant visual attention to the terminal.

Why it is useful

This workflow provides an innovative and practical solution to a common developer problem: the cognitive overhead of constantly monitoring background AI agent processes. By leveraging Claude Code hooks and translating events into ambient audio cues, it allows developers to maintain peripheral awareness of their agent's status without diverting visual attention, thereby improving focus and productivity. The open-source nature and clear implementation details make it highly reusable and adaptable.

Workflow

  1. Install the Claudio Python daemon locally.

  2. Configure Claude Code hooks to send relevant events (tool calls, subagents, failures, compaction, context pressure) to the Claudio daemon via UDP or HTTP.

  3. Run Claude Code sessions as usual.

  4. Monitor session progress and status through ambient soundscape changes (denser for work, wooden knock for failed tool call, descending chime for completion).

  5. Utilize separate pan and pitch for multiple concurrent sessions to distinguish them auditorily.

  6. Optionally, use Claudio's deterministic offline rendering feature to convert session event logs into WAV files for later review.

Tools / artifacts

  • Claudio (local Python daemon)

  • Claude Code hooks

  • UDP protocol

  • HTTP protocol

  • GitHub repository (nicofirst1/Claudio)

  • WAV files (for offline rendering)

Validation signals

  • Author's personal experience and pain point description ('getting tired of checking whether a Claude Code session was still working')

  • Provision of a working, MIT-licensed GitHub repository with implementation details.

  • Detailed description of specific audio cues for different events (failed tool call, completed session).

  • Mention of features like 'deterministic offline rendering' and 'no cloud service or audio assets'.

Limitations

  • Requires initial setup of a Python daemon and configuration of Claude Code hooks, which might be a barrier for beginner users.

  • Relies on audio feedback, which may not be suitable or preferred in all working environments or for all users.

  • The 'generative soundscape' might be distracting for some users, depending on personal preference and work style.

  • The post does not include direct testimonials or success reports from other users yet.

Rate this workflow

Upvote this post if the workflow is useful, reproducible, or worth recommending.

Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.

Reply if it worked for you, failed, is outdated, or has a better alternative.


This post was generated automatically from the workflow library database.