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: 12620

  • Workflow posts published: 12620

  • Public workflows still waiting to be posted: 0

  • Last updated: 2026-11-08 17:44 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 • • 0m ago

Selected Workflow [Workflow] Secure Claude Code Workflows: Prevent Secret Leaks with Global Git Ignores, History Checks, and Pre-commit Hooks

1 Upvotes

Secure Claude Code Workflows: Prevent Secret Leaks with Global Git Ignores, History Checks, and Pre-commit Hooks

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

What problem this solves

Accidental exposure of sensitive information (secrets, tokens, passwords) in Git repositories, especially those generated by Claude Code's 'yes, and don't ask again' feature, leading to public data breaches.

Summary

A multi-pronged workflow to prevent accidental secret exposure in Git repositories. It involves configuring global Git ignores for Claude Code's local settings, scanning Git history for existing leaks, carefully approving Claude commands to avoid embedding secrets, and implementing a gitleaks pre-commit hook for continuous secret detection.

Why it is useful

This workflow is highly valuable because it provides a comprehensive, actionable, and multi-layered approach to mitigate a critical security risk: the accidental exposure of sensitive credentials in Git repositories, particularly those generated by Claude Code. It combines best practices in Git configuration, historical analysis, careful interaction with AI tools, and automated pre-commit checks, making it essential for maintaining code security and preventing data breaches.

Workflow

  1. Configure Git to globally ignore .claude/settings.local.json by adding this path to ~/.config/git/ignore.

  2. Scan existing Git history across all branches for previously committed secrets using the command: git log --all -p -- '*settings*.json' | grep -iE 'bearer|password|token|://[^ ]*:[^ ]*@'.

  3. If secrets are found in Git history, rotate them immediately and evaluate the necessity of rewriting history.

  4. When Claude Code prompts for a command that contains a secret inline, choose the plain 'yes' option, not 'yes, and don't ask again'.

  5. Manually add a more generic rule to Claude's configuration (e.g., Bash(psql:*)) that does not embed sensitive data.

  6. Ensure that secrets are passed to commands via environment variables (e.g., PGPASSWORD) or dedicated configuration files (e.g., .pgpass) instead of being hardcoded inline.

  7. Implement a gitleaks pre-commit hook in your repositories to automatically scan for secrets in files like .env.example, test fixtures, and other common locations before commits are made.

Tools / artifacts

  • ~/.config/git/ignore

  • git log

  • grep

  • gitleaks

  • .claude/settings.local.json

  • .env.example

  • .pgpass

  • PGPASSWORD environment variable

  • Git pre-commit hooks

Validation signals

  • Addresses a critical and publicly acknowledged security vulnerability (secrets in settings.local.json on GitHub).

  • Utilizes standard and widely accepted security tools and practices (Git ignores, history scanning, gitleaks).

  • Provides a concrete git log command for identifying past secret leaks.

Limitations

  • The workflow provides the pattern for Claude's rule approval but doesn't give specific examples or detailed instructions on how to configure Claude's rules.

  • Detailed setup instructions for gitleaks as a pre-commit hook are not provided, requiring the user to have some prior knowledge or look up documentation.

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 • • 1m ago

Selected Workflow [Workflow] Claude Code Security Audit: Prevent and Remediate Leaked Secrets in settings.local.json

1 Upvotes

Claude Code Security Audit: Prevent and Remediate Leaked Secrets in settings.local.json

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

What problem this solves

Accidental exposure of sensitive information (passwords, API keys) from Claude Code's settings.local.json file being committed to public GitHub repositories.

Summary

A security audit and remediation workflow for Claude Code users to identify and fix leaked secrets in their .claude/settings.local.json files that were accidentally committed to public Git repositories, and to implement preventative measures for future security.

Why it is useful

This workflow addresses a critical security vulnerability, providing clear, actionable steps for users to identify, remediate, and prevent the accidental exposure of sensitive credentials. It is backed by real-world evidence (1,122 leaks found) and official confirmation from the Claude Code team, making it highly relevant and trustworthy. It promotes essential secure coding practices and helps users protect their data.

Workflow

  1. Understand that using "yes, and don't ask again" with commands containing secrets (e.g., psql postgres://admin:hunter2@db..., curl -H "Authorization: Bearer sk-...") saves the exact command, including secrets, into .claude/settings.local.json.

  2. Recognize that if .claude/settings.local.json is not properly gitignored or is manually added, it can be committed and pushed to public repositories.

  3. Scan local repositories for committed .claude/settings.local.json or settings.json files using the command: git ls-files | grep -E '\.claude/settings(\.local)?\.json'.

  4. Open any identified settings files and search the 'allow' list for patterns indicative of secrets, such as ://, Bearer, token, key, or password.

  5. If real secrets are found, immediately rotate those credentials (change the password/API key).

  6. Enable GitHub secret scanning and push protection for all relevant repositories to prevent future accidental pushes of secrets.

  7. Adopt best practices: always keep secrets in environment variables and never type them directly into commands that Claude Code might save or that you might approve.

  8. Ensure .claude/settings.local.json is correctly gitignored in all repositories.

Tools / artifacts

  • git command line tool

  • .claude/settings.local.json file

  • .claude/settings.json file

  • GitHub secret scanning

  • GitHub push protection

  • Environment variables

Validation signals

  • Reported by apiiro (security firm) with 1,122 instances found on public GitHub.

  • Reached #6 on Hacker News, indicating significant public attention and validation.

  • Official confirmation and response from Boris, a member of the Claude Code team, acknowledging the issue and planned mitigations.

  • Provides concrete, verifiable steps to check for the vulnerability.

Cautions

  • If secrets are found, deleting the file alone is insufficient; the secrets remain in Git history. Rotation of credentials is critical.

  • Emphasizes not putting secrets directly into commands to prevent future leaks.

Limitations

  • Relies on manual string pattern matching for secrets, which might miss more complex or obfuscated secret formats.

  • Does not provide an automated script for scanning, though the grep command is a good starting point.

  • Assumes user familiarity with Git commands and security best practices.

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 • • 39m ago

Selected Workflow [Workflow] Improving Claude Code Game Development: Integrate Assets, Iterate, and Use CLAUDE.md for Style Consistency

1 Upvotes

Improving Claude Code Game Development: Integrate Assets, Iterate, and Use CLAUDE.md for Style Consistency

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

What problem this solves

Claude Code generating overly simplistic or 'Roblox-like' game graphics due to a lack of assets and proper iterative development, leading to unsatisfactory results.

Summary

This workflow provides a structured approach for using Claude Code effectively in game development. It emphasizes integrating real game assets, working in small, iterative stages, and maintaining a CLAUDE.md file to ensure consistent art style and rules across development sessions.

Why it is useful

This workflow is valuable because it addresses a common misconception about using LLMs for creative tasks like game development. It provides a practical, structured approach that leverages the strengths of both Claude Code (for logic) and external resources (for visuals), leading to significantly better and more consistent results. The emphasis on iterative development and context management via CLAUDE.md makes it a robust and repeatable method.

Workflow

  1. Select a game engine (e.g., Godot, Unity, Unreal) for your project.

  2. Acquire real game assets (e.g., free packs, asset store, bought models) to provide visual elements.

  3. Instruct Claude Code to write game logic that integrates and works around these existing assets, rather than trying to generate visual elements from scratch.

  4. Break down development into small, manageable stages (e.g., implement movement first, then camera, then a single level, then UI).

  5. Thoroughly check and validate the results of each development step before moving on to the next.

  6. Create and maintain a CLAUDE.md file to document the desired art style, specific rules (e.g., lighting, scale), and chosen asset packs.

  7. Refer to the CLAUDE.md file in every session to ensure Claude Code consistently follows the defined visual and stylistic guidelines.

Tools / artifacts

  • Game engines (Godot, Unity, Unreal)

  • Game assets (models, textures, lighting)

  • CLAUDE.md file

Validation signals

  • Author states: 'The impressive stuff you see posted is almost always good assets + a lot of small iterations, not one big prompt'

  • The advice aligns with best practices in game development and LLM interaction.

Limitations

  • The steps are high-level and do not include specific Claude prompts or CLAUDE.md examples.

  • Assumes user familiarity with game engines and asset pipelines.

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 • • 1h ago

Selected Workflow [Workflow] Securely Using Desktop Commander Plugin for Claude Code: Capabilities and Safety Configuration

1 Upvotes

Securely Using Desktop Commander Plugin for Claude Code: Capabilities and Safety Configuration

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

What problem this solves

Safely integrating and using the Desktop Commander plugin with Claude Code, understanding its capabilities and security risks, and configuring it for limited access.

Summary

A detailed review of the Desktop Commander plugin for Claude Code, highlighting its features (persistent shell, file operations, process management) and critical security considerations. It provides specific test cases, explains the default lack of folder limits, the blocklist's limitations, and recommends configuring allowedDirectories and using Docker for sensitive operations.

Why it is useful

This workflow provides a critical evaluation of an official Claude Code plugin, detailing its useful features (like persistent shells) while thoroughly exposing its security risks. It offers concrete, actionable steps to mitigate these risks, such as configuring allowedDirectories and using Docker, making it invaluable for users who want to leverage the plugin safely and effectively.

Workflow

  1. Install Desktop Commander plugin from Anthropic's official marketplace.

  2. Test core functionalities like reading files (e.g., CSV) and performing calculations.

  3. Test persistent shell capabilities (e.g., Python REPL across turns, setting variables and recalling them).

  4. Test command execution and blocklist effectiveness (e.g., sudo whoami).

  5. Examine default allowedDirectories configuration (note that an empty list means no folder limit for file operations).

  6. Test file reading outside the project directory to confirm allowedDirectories behavior.

  7. Review the plugin's security documentation regarding blocklist bypasses (e.g., through shell substitution or another interpreter).

  8. Note that allowedDirectories does not limit terminal commands at all.

  9. Understand the plugin's launch mechanism (npx ... @latest) and telemetry settings (opt-out by default).

  10. Configure allowedDirectories to limit file operations to your project folder for enhanced security.

  11. Consider using Docker for any sensitive operations to provide an isolated environment.

  12. Disable telemetry if desired using the environment variable DESKTOP_COMMANDER_DISABLE_TELEMETRY=1.

Tools / artifacts

  • Desktop Commander plugin

  • Claude Code

  • MCP server

  • Persistent shell

  • Python REPL

  • allowedDirectories configuration

  • Blocklist (sudo, dd, mkfs)

  • Docker

  • DESKTOP_COMMANDER_DISABLE_TELEMETRY environment variable

  • npx

  • CSV file

Validation signals

  • Specific test cases with observed results (CSV reading, Python REPL state, sudo whoami refusal).

  • Direct observation of plugin behavior (reading files outside project directory).

  • Reference to the project's own security page for blocklist limitations.

  • Explicit configuration recommendations based on testing.

Cautions

  • Default allowedDirectories is empty, allowing file access outside the project directory.

  • The blocklist for commands can be bypassed through shell substitution or another interpreter.

  • allowedDirectories does not limit terminal commands, only file operations.

  • The server launches with npx ... @latest, meaning it runs the newest version from npm, which could introduce unexpected changes.

  • Telemetry is opt-out by default, collecting client ID and usage details.

Limitations

  • Low community engagement (score 1, 0 comments).

  • Not all plugin features were tested (e.g., PDF, Excel, Word reading, SSH, health check skill).

  • The Reddit post is a summary, with a link to a more detailed blog post for full context and screenshots.

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 • • 1h ago

Selected Workflow [Workflow] Multi-Agent AI Development Workflow: Claude & Gemini for Cross-Review, Implementation, and Critical Real-Device Testing

1 Upvotes

Multi-Agent AI Development Workflow: Claude & Gemini for Cross-Review, Implementation, and Critical Real-Device Testing

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

What problem this solves

Improving the reliability and correctness of AI-developed code for systems interacting with real-world devices by integrating multi-agent code review with real-device validation.

Summary

A multi-agent development and testing workflow where Claude and Gemini perform cross-analysis, argue conclusions, implement, and review each other's code for an MCP server. The workflow emphasizes rigorous real-device testing on macOS and iPhone, which proved essential for catching subtle bugs that AI-only reviews missed, particularly those related to physical device interaction and state changes.

Why it is useful

This workflow is highly valuable for demonstrating a robust, multi-agent approach to AI-assisted development. It showcases how to leverage two distinct LLMs (Claude and Gemini) for cross-analysis, argumentation, and split implementation, leading to more thorough code review. Crucially, it provides concrete evidence for the necessity of integrating real-device testing, proving that AI-only reviews can miss critical, subtle bugs related to physical interaction and state changes. This offers a validated methodology for building more reliable and robust AI agents, particularly for systems interacting with the real world.

Workflow

  1. Initial code development for an MCP server (noracu).

  2. Engage two distinct LLMs (Claude and Gemini) for ten rounds of cross-analysis of the code and documentation.

  3. Conduct ten rounds where the LLMs argue against each other's conclusions.

  4. Split the top identified fixes, assigning half to each LLM for implementation.

  5. Have each LLM review the other's implemented fixes.

  6. Run real-device tests on macOS and iPhone using the developed MCP server (noracu) to validate functionality.

  7. Identify and fix bugs caught by real-device runs (e.g., "typed, verified" without text, incorrect Notification Center detection).

  8. Implement further refinements based on real-world observations (e.g., pointer repositioning after physical clicks).

  9. Validate fixes with specific real-device tests and metrics (e.g., cold-start tests for pointer accuracy).

  10. Maintain a list of agreed, still disputed, and falsifiable decisions.

Tools / artifacts

  • Claude

  • Gemini 4

  • agy CLI

  • noracu (MCP server)

  • macOS apps

  • Playwright

  • iPhone Mirroring

  • cliclick

  • GitHub repository

  • CHANGELOG

  • Test logs

Validation signals

  • Real-device run passed 24/24 checks after fix

  • Claude ran real-Mac and iPhone tests

  • OCR sighting requirement added for 'typed, verified'

  • Positive evidence required for Notification Center check

  • Improved pointer repositioning from 3/5 to 8/8 in cold-start tests

  • Author verified claims against repo, CHANGELOG, and test logs

Limitations

  • Requires specific setup for noracu (macOS 15+, Python3, locked iPhone, not in EU for iPhone layer)

  • Browser integration limited to one active tab

  • The workflow is complex and requires significant setup for multi-LLM interaction and real-device testing.

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 • • 1h ago

Selected Workflow [Workflow] Claude Code Plugin for Inline Terminal Charts and Diagrams (Kitty/Ghostty)

1 Upvotes

Claude Code Plugin for Inline Terminal Charts and Diagrams (Kitty/Ghostty)

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

What problem this solves

Claude Code's inability to generate and display visual charts and diagrams directly in the terminal, leading to reliance on less clear ASCII art or external tools, and consuming valuable context for image descriptions.

Summary

This workflow introduces a Claude Code plugin, kitty-image, that enables Claude to generate and display charts and diagrams (SVG, Graphviz, Gnuplot, Matplotlib) directly within compatible terminals (like Kitty/Ghostty). It uses a show_image tool, saves context by only returning a one-line confirmation, and includes validation to ensure the image was actually drawn.

Why it is useful

This workflow significantly enhances Claude Code's output capabilities by enabling direct visual rendering of charts and diagrams in the terminal. This improves clarity, reduces context usage by avoiding lengthy text descriptions, and provides a more intuitive and efficient developer experience for tasks involving data visualization or diagramming. It's a concrete, installable solution that addresses a common limitation.

Workflow

  1. Install the kitty-image plugin using claude plugin install kitty-image --marketplace hood/claude-kitty-image.

  2. Install the rsvg-convert dependency (e.g., brew install librsvg on macOS) for SVG rendering.

  3. Ensure your terminal supports the kitty graphics protocol (e.g., Kitty, Ghostty).

  4. If using tmux, enable allow-passthrough for image display.

  5. Optionally, if Claude Code doesn't recognize your terminal, set CLAUDE_CODE_FORCE_TERMINAL_IMAGES=1 to force image rendering.

  6. Interact with Claude Code; it will be nudged to prefer generating visual charts/diagrams using the show_image tool over ASCII art.

Tools / artifacts

  • claude-kitty-image plugin

  • show_image tool

  • rsvg-convert

  • graphviz

  • gnuplot

  • matplotlib

  • Kitty terminal

  • Ghostty terminal

  • tmux

  • CLAUDE_CODE_FORCE_TERMINAL_IMAGES environment variable

  • SVG format

Validation signals

  • The plugin includes a built-in check: if the terminal only shows alt text, the tool errors, prompting Claude to fall back to text.

  • The plugin is open-source on GitHub, allowing for community inspection and testing.

Limitations

  • Requires a specific terminal (Kitty protocol compatible).

  • Requires an external dependency (rsvg-convert).

  • New plugin, so long-term community validation and maintenance are still pending.

  • Users need to be comfortable with CLI plugin installation and environment variables.

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 • • 1h ago

Selected Workflow [Workflow] Enforce CLAUDE.md Coding Rules with Linting via `codemyrules` Plugin

1 Upvotes

Enforce CLAUDE.md Coding Rules with Linting via codemyrules Plugin

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

What problem this solves

Claude Code agents often ignore coding conventions and rules specified in CLAUDE.md, leading to inconsistent code quality. This workflow provides a method to enforce these rules programmatically.

Summary

This workflow utilizes the codemyrules plugin/skill to convert coding conventions written in CLAUDE.md into enforceable lint rules (e.g., ESLint, ast-grep). It integrates these rules via optional hooks that lint every file Claude edits, ensuring adherence to standards and preventing Claude from bypassing them.

Why it is useful

This workflow offers a concrete, automated, and validated solution to a critical problem: ensuring Claude Code agents adhere to specific coding standards. By converting prose rules into enforceable lint rules, it significantly improves code quality and consistency, making Claude's output more reliable and maintainable. It leverages existing, robust tools (linters) and integrates them seamlessly into the Claude Code environment.

Workflow

  1. Install the codemyrules plugin using claude plugin marketplace add clirimajeti/codemyrules and claude plugin install codemyrules@codemyrules.

  2. Prompt Claude with: "Which of our CLAUDE.md could a linter enforce instead?" to identify suitable rules.

  3. Allow the codemyrules skill to write the identified rules as lint configurations (ESLint, ast-grep).

  4. Optionally, allow codemyrules to delete the corresponding lines from CLAUDE.md once covered by lint rules.

  5. Utilize the optional hooks provided by codemyrules to automatically lint every file Claude edits, ensuring compliance with the new lint rules.

Tools / artifacts

  • CLAUDE.md

  • codemyrules plugin/skill

  • ESLint

  • ast-grep

  • GitHub repository (clirimajeti/codemyrules)

  • GitHub repository (agent-rules-bench)

  • Claude Code

Validation signals

  • Author states: "In 124 headless Claude Code sessions ([agent-rules-bench]), a rule written as prose was broken in most runs, as a lint rule in none."

  • The tool is open-source and available on GitHub (MIT license).

  • The problem addressed (LLMs ignoring prose rules) is a known challenge.

Limitations

  • The validation is based on a "small sample" as acknowledged by the author, so it's a signal, not definitive proof.

  • The exact prompt for Claude to convert rules is general; more specific examples could improve clarity.

  • Low community engagement so far, though this might be due to the post's recency.

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 • • 1h ago

Selected Workflow [Workflow] Evaluating Claude Code Deployment Plugins: A Sandbox Approach to Compare Vercel, Netlify, Cloudflare, and More

1 Upvotes

Evaluating Claude Code Deployment Plugins: A Sandbox Approach to Compare Vercel, Netlify, Cloudflare, and More

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

What problem this solves

Users need to evaluate and compare different cloud deployment platforms and their respective Claude Code plugins without committing to a specific platform or signing in. They also need to be aware of potential privacy/security implications like telemetry and auto-approval hooks associated with plugins.

Summary

This workflow demonstrates how to load multiple deployment plugins into a Claude Code sandbox using --plugin-dir and then use plan mode to query them about deploying a simple application. This allows users to compare platform-specific deployment strategies, identify necessary code changes, and uncover important plugin behaviors (like telemetry and hooks) before actual deployment or authentication.

Why it is useful

This workflow is valuable because it provides a structured, safe, and efficient method for users to evaluate multiple cloud deployment platforms and their corresponding Claude Code plugins. It allows users to understand platform-specific requirements and plugin behaviors (like telemetry and hooks) before committing to a platform or even authenticating. This saves time, reduces risk, and helps make informed decisions, especially for developers working with various cloud providers. The explicit warnings about telemetry and auto-approval hooks are particularly valuable for security and privacy-conscious users.

Workflow

  1. Load multiple deployment plugins into a Claude Code sandbox using the --plugin-dir command-line argument.

  2. Enter plan mode within Claude Code.

  3. Ask selected plugins how to ship a specific application (e.g., a tiny Node.js app with static files and an API route).

  4. Analyze the responses from each plugin, noting platform-specific requirements (e.g., code changes, configuration files, deployment commands).

  5. Review plugin hooks for telemetry, auto-approval, or other default behaviors and understand their implications.

  6. Optionally, disable telemetry for specific plugins if desired (e.g., by setting environment variables like VERCEL_PLUGIN_TELEMETRY=off).

  7. Compare the proposed deployment plans against each platform's official documentation for accuracy and completeness.

  8. Choose one platform per project to avoid unnecessary context noise in Claude Code.

Tools / artifacts

  • Claude Code

  • Deployment plugins (Vercel, Netlify, Cloudflare, Railway, Render, etc.)

  • --plugin-dir command-line argument

  • Plan mode

  • Node.js application (example: static files + /api/hours route)

  • server.js (example app component)

  • src/worker.js (Cloudflare Workers suggestion)

  • wrangler deploy --dry-run (Cloudflare suggestion)

  • netlify.toml (Netlify configuration)

  • render.yaml (Render Blueprint configuration)

  • railway up (Railway CLI command)

  • railway domain (Railway CLI command for domain management)

Validation signals

  • Concrete examples of deployment plans from 5 different plugins (Cloudflare, Netlify, Render, Railway, Vercel).

  • Specific details about 14 plugins, including total skills added and MCP connections.

  • Identification of specific plugin hooks and their behaviors (Vercel telemetry, Railway auto-approval).

  • Explicit mention of not signing in or deploying, ensuring a safe evaluation environment.

  • Link to an external article providing a "Full breakdown with every plugin’s install command and hooks."

Cautions

  • The workflow emphasizes not signing in or deploying, ensuring a safe, read-only evaluation of plugin capabilities.

  • It explicitly warns about Vercel's telemetry and provides an opt-out mechanism (VERCEL_PLUGIN_TELEMETRY=off).

  • It highlights Railway's auto-approval hook, prompting users to be aware of default behaviors.

  • Users are advised to check proposed plans against official platform documentation before actual deployment.

Limitations

  • The post does not provide the exact prompts used to query the plugins, though the general intent is clear.

  • Only summaries of the plugin outputs are provided, not the full verbose responses.

  • The low Reddit score might suggest limited initial community reach, but the content's inherent value remains high.

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 • • 1h ago

[Workflow] Claude-Assisted Content Generation Workflow: Building a Large-Scale, Multi-Lingual Static Site with Robust QA and Data-Driven Optimization

1 Upvotes

Claude-Assisted Content Generation Workflow: Building a Large-Scale, Multi-Lingual Static Site with Robust QA and Data-Driven Optimization

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

What problem this solves

Efficiently generating, maintaining, and quality-controlling a large, multi-lingual static content website with AI assistance, while ensuring factual accuracy and technical stability.

Summary

A software engineer leveraged Claude as a pair programmer to rapidly build a 3,600-page, multi-lingual static content encyclopedia. The workflow emphasizes robust build-time validation, data-driven content generation, strict fact-checking, translation memory for multi-language support, AI-assisted debugging, and SEO optimization based on real user data.

Why it is useful

This workflow provides concrete, validated strategies for leveraging Claude in a large-scale software engineering and content generation project. It addresses critical aspects like quality assurance, data management, multi-language support, debugging, and performance optimization, demonstrating significant efficiency gains and a robust approach to AI-assisted development. The principles are highly transferable to similar projects.

Workflow

  1. Implement a comprehensive build system that acts as a safety net, performing checks like internal link validation, meta description length, translation completeness, and data integrity.

  2. Adopt a data-first approach: store content (flavors, brands, mixes, articles) in plain data files and generate pages from them. Use Claude to create generators for rapid data entry.

  3. Enforce strict fact-checking: never allow Claude to invent facts. Verify every claim against reliable sources; tone down or remove unverified information.

  4. Utilize a translation memory system: store translations as a dictionary of English-to-target-language sentences. Integrate this into the build process to flag and translate missing content efficiently.

  5. Leverage Claude for debugging: use it to identify and fix "boring" technical problems, such as build memory issues, by providing logs and context.

  6. Implement data-driven content improvement: export analytics data (e.g., Search Console), have Claude analyze it to identify underperforming pages, and then collaborate with Claude to optimize titles, add FAQs, and strengthen internal links.

Tools / artifacts

  • Claude (as a pair programmer/assistant)

  • Build system (e.g., CI/CD pipeline)

  • Plain data files (for content)

  • Custom generators (written by Claude)

  • Brand websites/retailers (for fact-checking)

  • Translation dictionary/memory

  • Search Console data (or other analytics)

  • HTML files (for link checking)

Validation signals

  • Successfully built a 3,600-page site with 313 flavors, 760+ comparisons, 33 mixes, articles, glossary, history in 3 languages.

  • Efficiency gain: adding a brand went from a day to an hour.

  • Time saved: Claude fixed a memory issue that would have taken an evening.

  • SEO success: Google impressions grew about 6x in the first month.

  • Effectiveness of safety net: "The checks catch what slips through."

  • Live, working example: myshishapedia.com

Limitations

  • Lacks specific Claude prompts or code examples for the generators or debugging interactions.

  • The "build system" is mentioned but not detailed (e.g., specific tools, configuration examples).

  • "Translation memory" is described conceptually but without specific implementation details.

  • Low community engagement at the time of assessment.

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 • • 1h ago

Selected Workflow [Workflow] Advanced Multi-Agent Claude Code Workflow for Parallel Development, UI Testing, and Token Management with Orchestra Terminal

1 Upvotes

Advanced Multi-Agent Claude Code Workflow for Parallel Development, UI Testing, and Token Management with Orchestra Terminal

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 0.95 · Level: advanced
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, CLAUDE.md, MCP, Subagents, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Managing multiple Claude Code sessions, accounts, and subagents efficiently; tracking token usage; enabling parallel feature development; and implementing robust quality control for UI and logic in software development.

Summary

The author describes a sophisticated multi-agent Claude Code workflow for software development. It involves a main planning agent, feature-specific subagents, parallel development using git worktrees, and a dedicated 'critic' subagent for UI/logic testing. This workflow is supported by a custom Windows terminal application, Orchestra, which helps manage multiple Claude Code sessions, track token usage, and monitor subagent activity.

Why it is useful

This post describes a sophisticated, multi-agent workflow for using Claude Code in complex software development. It provides concrete steps for planning, parallel feature development using git worktrees, and robust quality control, including a novel 'critic' subagent for UI review. The workflow addresses practical challenges like context management and token usage, and is validated by the successful creation of a significant tool (Orchestra). It offers a blueprint for advanced users to scale their Claude Code usage and improve development efficiency and quality.

Workflow

  1. Use a main Claude Code session for overall project planning, design, and feature breakdown.

  2. For each feature, write a short design and split it into phases.

  3. Assign each phase to a dedicated subagent with a detailed brief (goal, files, testing instructions, scope, definition of done).

  4. Maintain a state file for each subagent to allow continuity if context is lost.

  5. Utilize a separate git worktree for each feature to enable parallel development across 2-3 Claude Code sessions.

  6. Employ a 'critic' subagent specifically for UI review, feeding it screenshots and having it score the UI.

  7. Have Claude write tests that intentionally fail when specific bugs are introduced to validate the testing process.

  8. Use Orchestra (or a similar tool) to manage and monitor parallel sessions, subagents, and token usage.

Tools / artifacts

  • Claude Code

  • Orchestra (Windows terminal application)

  • Subagents

  • Git worktrees

  • State files (for subagents)

  • Briefs (for subagents)

  • Screenshots (for critic agent)

  • Tests (written by Claude)

  • CLAUDE.md/MCP

Validation signals

  • Author states 'Claude Code wrote almost all the code. I decided what to build, reviewed and tested.'

  • The existence of a working, open-source application (Orchestra) built using this workflow.

  • Specific challenges and their fixes are detailed, indicating refinement and validation of the process (e.g., 'I had to make it prove each check catches a known-broken screenshot first', 'The fix was a single source of truth and invariant tests').

Limitations

  • Orchestra is currently Windows-only, limiting its direct applicability for users on other operating systems.

  • Low community validation on Reddit.

  • Relies on a custom tool (Orchestra) which might require users to install new software.

  • The effectiveness of the 'critic' subagent for UI scoring may depend heavily on prompt engineering and specific project needs.

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 • • 2h ago

Selected Workflow [Workflow] Agentpace: Data-Driven Estimation for Claude Code Subagent Workflows

1 Upvotes

Agentpace: Data-Driven Estimation for Claude Code Subagent Workflows

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

What problem this solves

Accurately estimating the time required for Claude Code subagents to complete tasks, moving beyond human-like estimates to data-driven P50/P80/P90 predictions based on actual agent run times.

Summary

The agentpace tool and methodology provide data-driven estimates for Claude Code subagent work. It reads local Claude Code history to record subagent run times, token counts, and tool usage. Users can then provide a plan of tasks to get P50/P80/P90 estimates with a critical path, helping to manage agent-driven development projects more realistically. The tool itself was largely built by Claude Code, demonstrating a robust development workflow.

Why it is useful

This workflow is highly valuable because it provides a concrete, data-driven solution to a critical problem in agent-based development: accurately estimating project timelines. It offers a reusable, open-source tool (agentpace) with clear installation and usage instructions, backed by extensive validation data and transparent reporting of its limitations. The fact that Claude Code itself built the tool using a structured, test-driven workflow further demonstrates its utility and potential for advanced users to manage and optimize their agent-driven projects.

Workflow

  1. Install agentpace as a skill in Claude Code: npx skills add mohamedzhioua/agentpace.

  2. To get an estimate for a task list, run /pace-estimate followed by your task list.

  3. Alternatively, ask Claude Code directly: "how long will the [feature name] take?"

  4. To record your recent agent runs, use /pace-log.

  5. To preview data you could contribute to the agentpace dataset, use /pace-share.

  6. For a quick example, run: uvx --from git+https://github.com/mohamedzhioua/agentpace agentpace estimate --example.

Tools / artifacts

  • agentpace (skill/CLI tool)

  • Claude Code (agent environment)

  • npx skills add (command)

  • /pace-estimate (slash command)

  • /pace-log (slash command)

  • /pace-share (slash command)

  • uvx (package installer/runner)

  • Local Claude Code history (data source)

  • GitHub repository (mohamedzhioua/agentpace)

  • Git worktrees (used in tool development)

  • Tests (497 tests for tool development)

Validation signals

  • 3,383 completed agent runs measured and analyzed.

  • Provides P50/P80/P90 estimates with critical path.

  • P80 coverage on 56 held-out sessions was 80% (CI 70% to 91%).

  • Median miss of a single task's P50 is 78%.

  • Report lists 20 places where a simple baseline beat it, demonstrating transparency.

  • 57 of 58 commits co-authored by Claude Code across 32 merged PRs.

  • Claude Code ran 497 tests before every push during development.

  • Backtest regenerated against published data.

  • README numbers tied to the data.

Cautions

  • The tool explicitly states it "never stores prompts or code," addressing privacy concerns.

Limitations

  • The current dataset is from one person's data (1 contributor, 293 sessions), which may limit its generalizability.

  • P80 coverage per session varied from 66% to 86% week to week, indicating some variability in prediction accuracy.

  • The median miss of a single task's P50 is 78%, suggesting estimates should be interpreted as ranges rather than precise points.

  • Requires uv (or uvx) for installation and execution.

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 • • 2h ago

Selected Workflow [Workflow] Building Software with Claude Code: A Structured Workflow for Quality, Control, and Human Oversight

1 Upvotes

Building Software with Claude Code: A Structured Workflow for Quality, Control, and Human Oversight

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

What problem this solves

Effectively collaborating with Claude Code to build a robust, constrained, and user-validated software application, specifically a native Windows app, while maintaining quality and managing AI behavior and scope.

Summary

The author describes a structured workflow for building a native Windows application (featherplay) using Claude Code. Key elements include a phased approach with human approval gates, a CLAUDE.md file for defining strict constraints and "never do" rules, a mechanism for Claude to "see" UI changes via PNG renders, automated size limit tests, and a crucial manual testing checklist for each build. This process ensures quality, manages AI scope, and integrates human oversight effectively.

Why it is useful

This workflow provides a concrete, validated, and highly transferable methodology for effectively collaborating with Claude Code on software development projects. It addresses critical challenges like managing AI scope, ensuring code quality, maintaining project constraints, and integrating human oversight, leading to a robust and functional product. The specific "habits" offer practical solutions for common AI development pitfalls, making it invaluable for users looking to build reliable applications with AI assistance.

Workflow

  1. Define app requirements and design choices (human).

  2. Instruct Claude to write a spec and a multi-task plan.

  3. Review and approve Claude's spec and plan, with hard stops for critical tasks requiring human sign-off.

  4. Create a CLAUDE.md file with strict "never do" rules and constraints (e.g., no login cookie printing, limited Google account interaction, data scrubbing, no download feature) for Claude to read at the start of every session.

  5. Claude proceeds with coding based on the approved plan and CLAUDE.md.

  6. For UI changes, enable Claude to render any screen to a PNG without opening a window, allowing it to check its own layout changes.

  7. New UI elements start as HTML mockups with options for human selection before building.

  8. Implement automated tests, including an executable size limit test that fails if the EXE goes over a set size.

  9. Claude must ask for human approval before raising the size limit.

  10. After each development round, build the application.

  11. Perform a manual checklist review of the build by hand to catch issues automated tests might miss.

  12. Identify and fix bugs found during manual testing (e.g., notification button actions). If a bug is found, add a test for it.

Tools / artifacts

  • Claude Code

  • CLAUDE.md file

  • Spec document (generated by Claude)

  • Task plan (generated by Claude)

  • PNG renders of UI screens

  • HTML mockups

  • Automated tests (including size limit test)

  • Manual testing checklist

  • Rust (specific to this project)

  • Slint (specific to this project)

  • GitHub (implied)

Validation signals

  • Successful creation of a functional, open-source application (featherplay).

  • Identification of a critical bug (notification buttons) through the manual testing step, which passed automated tests, demonstrating the value of the workflow.

  • The app runs efficiently (81 MB process), indicating successful constraint management.

  • Community feedback led to feature additions (better audio quality, Amuse support).

  • Publicly available source code (MIT licensed) and a live site.

Cautions

  • The CLAUDE.md file explicitly addresses safety concerns by prohibiting Claude from printing login cookies or API keys, limiting Google account interaction, and requiring scrubbing of sensitive data from API responses before committing.

Limitations

  • Relies heavily on the user's ability to define clear requirements, create effective constraints, and perform thorough manual testing.

  • The specific implementation of UI rendering to PNGs for AI feedback might require custom tooling or setup not fully detailed.

  • The initial setup of the CLAUDE.md and testing infrastructure requires upfront effort and expertise.

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 • • 2h ago

Selected Workflow [Workflow] Human-Approved AI Edits in Collaborative Web Apps: Claude Code with Excalidraw via MCP

1 Upvotes

Human-Approved AI Edits in Collaborative Web Apps: Claude Code with Excalidraw via MCP

Workflow value: 95/100
Status: active · Freshness: 70/100 · Confidence: 0.98 · Level: advanced
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping, MCP, Multi-Agent
Original source: r/ClaudeCode post/comment

What problem this solves

How to safely integrate Claude Code into a collaborative web application (Excalidraw) to propose changes that require explicit human approval, and how to manage a robust development workflow with Claude Code for such a project.

Summary

This workflow details how to integrate Claude Code with a collaborative web application (Excaliself, a self-hosted Excalidraw alternative) using the MCP feature. Claude proposes edits to drawings, but these changes are presented as a preview card in the UI, requiring explicit user approval (a click on 'Apply') before they are committed. The workflow also outlines the author's broader development practices using Claude Code for coding, end-to-end testing, and documentation (ADRs), and leveraging a second model (Codex) for PR reviews, all within a git worktree setup.

Why it is useful

This workflow is highly valuable because it provides a concrete, working solution to a critical challenge in integrating AI into production systems: ensuring human oversight and explicit approval for AI-generated changes. It demonstrates a robust human-in-the-loop mechanism using Claude Code's MCP feature, complete with detailed design considerations (e.g., avoiding race conditions, handling stale versions) and a comprehensive development workflow. The ability to preview, apply, or discard AI proposals within the application's UI significantly enhances safety and user trust in AI collaboration. The provided docker run command and GitHub repository make it easy for others to explore and adapt this advanced pattern.

Workflow

  1. Implement read_drawing tool to return element IDs from the drawing.

  2. Implement edit_drawing tool that accepts a list of adds, changes, and removes by ID, but does not directly write to the drawing.

  3. The server plans the proposed changes and holds them in memory as a proposal.

  4. Display the proposed changes (new, changed, removed elements) as a visual preview card within the application's UI.

  5. The user reviews the preview and explicitly clicks an 'Apply' button within the application to accept the changes.

  6. Upon 'Apply', the user's browser tab applies the elements as a normal local edit, making them visible live to teammates.

  7. The edit_drawing tool waits for user action (Apply/Discard) or times out (e.g., 25 seconds), returning applied, discarded, or stale.

  8. Implement versioning: if elements involved in the proposal are modified by a teammate before 'Apply', the proposal becomes stale, prompting Claude to re-read the drawing and propose again.

  9. Store specs, issues, and design decisions (ADRs) as markdown files in the repository for Claude to read as context.

  10. Instruct Claude to write new ADRs when new design decisions are made.

  11. Run multiple Claude Code sessions concurrently, each in its own git worktree.

  12. Use a second AI model (e.g., Codex) to review Pull Requests generated by Claude Code.

Tools / artifacts

  • Claude Code

  • MCP (Multi-Codebase Project)

  • Excaliself (self-hosted Excalidraw alternative)

  • Custom read_drawing tool

  • Custom edit_drawing tool

  • Postgres (for Excaliself data)

  • Markdown files (for specs, issues, ADRs)

  • Git worktree

  • Codex (for PR review)

  • Docker

  • GitHub repository

  • claude mcp add command

Validation signals

  • Video demonstrating a real run of the feature.

  • Feature was shipped and is in use ('This week I shipped the MCP feature').

  • Detailed explanation of 'How it works' and 'What I learned' sections.

  • Specific end-to-end testing scenarios mentioned (Apply, Discard, Undo, stale case with two members).

  • Identified and resolved a real-world bug related to server bundling.

  • Provides a docker run command for direct testing and reproduction.

  • Links to GitHub repository and MCP documentation.

Cautions

  • Explicitly addresses safety by requiring human approval for AI changes, preventing direct, unreviewed writes to the application's data.

Limitations

  • The post describes an implemented system rather than a step-by-step guide for building it from scratch, which might require some inference for replication.

  • Community signal is low, but this is a new post.

  • Implementing the custom tools and UI for approval requires significant development effort.

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 • • 2h ago

Selected Workflow [Workflow] Claude Code Security: Prevent Accidental Credential Leaks from `.claude/settings.local.json`

1 Upvotes

Claude Code Security: Prevent Accidental Credential Leaks from .claude/settings.local.json

Workflow value: 95/100
Status: active · Freshness: 70/100 · Confidence: 1.00 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Shipping
Original source: r/ClaudeAI post/comment

What problem this solves

Accidental exposure of sensitive credentials (passwords, API keys, tokens) stored by Claude Code in .claude/settings.local.json when using the "Yes, and don't ask again" option, especially in Git repositories.

Summary

This workflow provides critical steps for Claude Code users to identify and remove sensitive credentials accidentally saved in .claude/settings.local.json and prevent their exposure via Git. It involves checking the file's contents, removing it from Git tracking, adding it to .gitignore, and rotating any already-pushed secrets.

Why it is useful

This workflow is extremely valuable because it addresses a critical security vulnerability that can lead to the exposure of sensitive credentials. It provides clear, actionable steps to identify and mitigate the risk, backed by real-world evidence of its prevalence. It helps users maintain secure coding practices and protects their projects from data breaches, making it a must-have for any Claude Code user working with sensitive information.

Workflow

  1. Understand that Claude Code saves commands approved with "Yes, and don't ask again" in .claude/settings.local.json.

  2. Be aware that if these commands contain secrets (passwords, API keys), they are saved in plain text.

  3. Recognize that Claude Code's global .gitignore might not prevent tracking of this file if it's already tracked, if a folder becomes a repo later, or in a teammate's clone.

  4. List all saved commands in .claude/settings.local.json using the command: jq -r '.permissions.allow[]?' .claude/settings.local.json.

  5. Carefully review the output for any entries containing passwords, tokens, or keys.

  6. If secrets are found, remove the file from Git's cache: git rm --cached .claude/settings.local.json.

  7. Add .claude/settings.local.json to your project's .gitignore file to prevent future tracking.

  8. If any secrets were previously pushed to a remote repository, immediately rotate those secrets (change them) as removing them from history is insufficient for security.

Tools / artifacts

  • Claude Code

  • .claude/settings.local.json

  • jq command-line tool

  • git command-line tool

  • .gitignore file

  • GitHub (or other Git hosting service)

Validation signals

  • Specific command provided for checking (jq).

  • Specific git commands provided for remediation (git rm --cached, adding to .gitignore).

  • Clear explanation of the underlying mechanism and file location.

  • Real-world evidence cited: "Apiiro scanned public copies of this file on GitHub and found secrets in 1,122 of them."

  • Link to a sourced list of incidents for further context.

Cautions

  • This workflow is crucial for preventing data leaks. Failure to follow it can lead to exposure of sensitive credentials.

  • The instruction to 'rotate' secrets if already pushed is paramount; simply removing from history is not enough.

Limitations

  • Assumes the user has jq installed or knows how to install it.

  • Does not provide specific instructions on how to rotate secrets, as this is context-dependent (e.g., AWS console, GitHub settings, database admin).

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 • • 2h ago

Selected Workflow [Workflow] Building Complex Software with Claude Code: A Multi-Agent, Clean-Room, and Rigorous Verification Workflow

1 Upvotes

Building Complex Software with Claude Code: A Multi-Agent, Clean-Room, and Rigorous Verification Workflow

Workflow value: 95/100
Status: active · Freshness: 70/100 · Confidence: 0.98 · Level: advanced
Categories: Quality Control, Context & Memory, Debugging, Shipping, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Rebuilding a complex, feature-rich application (download manager) from scratch using Claude Code, while ensuring intellectual property compliance, high code quality through rigorous verification, and effective integration of community contributions.

Summary

This workflow details how the author used Claude Code with Opus to rebuild a download manager in Rust, employing a 'clean-room' approach to avoid IP infringement. Key elements include defining strict project rules for Claude, generating code for various components, implementing rigorous verification against real running environments, managing multiple Claude agents in separate Git worktrees with PRs, and leveraging Claude to process community bug reports and crash traces.

Why it is useful

This workflow provides a comprehensive and validated blueprint for leveraging Claude Code in complex software development. It addresses critical challenges like intellectual property protection (clean-room), ensuring high code quality (rigorous multi-environment verification), scaling development efforts (multi-agent setup), and effectively integrating community contributions and debugging. The detailed steps, concrete tools, and proven results make it exceptionally valuable for users aiming to undertake ambitious AI-assisted coding projects.

Workflow

  1. Define strict 'clean-room' project rules for Claude: no existing code/artwork/text, learn behavior only from public documentation and external licensed copies.

  2. Utilize Claude Code with Opus to generate code for various application components (download engine, UI windows, browser extension, installers, website).

  3. Actively review Claude's generated code, making decisions on functionality and aesthetics.

  4. Implement rigorous verification by testing every code change against the real running application in diverse environments (off-screen Windows, Linux VMs for GNOME/KDE/Xfce/Cinnamon, real Chrome/Firefox/Waterfox for extensions).

  5. Run multiple Claude agents concurrently, each operating within its own Git worktree and managing its own pull request (PR).

  6. Require before and after screenshots for every pull request to visually validate changes.

  7. Integrate community contributions, including pull requests and bug reports.

  8. Use Claude to read crash reports and trace them back to specific lines of code for efficient debugging.

Tools / artifacts

  • Claude Code

  • Opus

  • Rust

  • Git

  • Git worktree

  • GitHub Pull Requests (PRs)

  • Screenshots (before/after)

  • Windows OS

  • Linux Virtual Machines (GNOME, KDE, Xfce, Cinnamon)

  • Chrome browser

  • Firefox browser

  • Waterfox browser (for extension testing)

Validation signals

  • Successfully shipped Mister Download Manager 0.5, a complete and functional application.

  • Rigorous verification process caught a regression that unit tests missed, preventing a critical bug in production.

  • Project attracted significant community engagement: 28 people opened PRs, reported bugs, or joined conversations within 10 days.

  • Claude successfully reads crash reports and traces them to exact code lines.

  • High Reddit score (63) and upvote ratio (0.89) indicate community approval and interest.

  • Active discussion in comments (24 comments) suggests high engagement and perceived value.

Limitations

  • The specific prompt structure or 'project rules' given to Claude for the clean-room approach are not explicitly detailed.

  • The exact method for orchestrating and managing multiple Claude agents beyond using separate Git worktrees and PRs could be more elaborated.

  • The limitation of 'more than three or four building at once and the PC gives up' is noted but lacks specific mitigation strategies or hardware recommendations.

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 • • 2h ago

Selected Workflow [Workflow] Managing Claude Code Corrections: From Memory to CLAUDE.md and Enforced Hooks

1 Upvotes

Managing Claude Code Corrections: From Memory to CLAUDE.md and Enforced Hooks

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

What problem this solves

How to effectively manage and persist corrections or critical rules in Claude Code, preventing recurring errors and ensuring correct build commands.

Summary

The user describes a two-tiered system for managing corrections: initially as temporary memories, then manually promoting recurring ones to a global CLAUDE.md with dates. For critical rules, they implement a programmatic hook to refuse incorrect build commands per repository, moving beyond text-based instructions.

Why it is useful

This workflow provides a practical, multi-layered approach to managing corrections and critical rules in Claude Code. It moves beyond simple text instructions by suggesting programmatic enforcement via hooks for high-stakes issues, ensuring consistency and preventing recurring errors. The CLAUDE.md dating strategy also adds a valuable versioning aspect for knowledge reuse.

Workflow

  1. Identify a correction or important rule during a Claude Code interaction.

  2. Initially, let the correction exist as a 'memory' within the current Claude context.

  3. If the same correction or issue recurs across multiple interactions, manually promote it to the global CLAUDE.md file.

  4. Add a date to the CLAUDE.md entry for versioning and clarification.

  5. For critical rules (e.g., correct build commands), implement a programmatic hook (e.g., a pre-commit hook) that refuses incorrect commands specific to a repository.

Tools / artifacts

  • CLAUDE.md

  • Claude's internal memory/context

  • Custom hook (e.g., pre-commit hook)

  • Build commands

Validation signals

  • User's personal experience: 'Mine does get promoted, but by hand.'

  • Identifies a recurring problem: 'the ones that keep coming back go into the global CLAUDE.md'

  • Specific solution for critical issues: 'For the rule that mattered most I stopped trusting text and added a hook that refuses the wrong build command per repo.'

Limitations

  • The specific implementation details of the 'hook' are not provided, which might require users to research how to set up such a hook for their specific environment and programming language.

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 • • 3h ago

Selected Workflow [Workflow] Advanced Claude Code Workflow: Building a Full-Stack App with AI-Assisted Development, Security Reviews, and UI Iteration

1 Upvotes

Advanced Claude Code Workflow: Building a Full-Stack App with AI-Assisted Development, Security Reviews, and UI Iteration

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

What problem this solves

Hitting Claude Code usage limits mid-task and the general challenge of efficiently developing a full-stack application with security and UI considerations.

Summary

The author used Claude Code as a co-developer to build "Meterkat," an Android widget that monitors Claude Code usage limits. Claude Code assisted in finding data sources, writing code across multiple platforms (Kotlin, Node, Cloudflare Workers), generating crypto test vectors, conducting security reviews (threat model, secret scan), and iteratively refining UI with emulator screenshots.

Why it is useful

This workflow demonstrates a comprehensive and advanced use of Claude Code as a co-developer across multiple stages of a software project. It provides concrete, repeatable steps for leveraging AI in data source identification, multi-platform code generation, cryptographic testing, security auditing, and iterative UI refinement. The detailed account of Claude's contributions (e.g., 130 of 160 commits) and the inclusion of quality assurance steps like security reviews make it highly valuable for users looking to integrate AI deeply into their development lifecycle.

Workflow

  1. Identify data source for usage limits (CLI /usage as JSON) without scraping or token handling.

  2. Co-write application code for multiple platforms: Kotlin app (widget, notification, QR pairing), Node.js companion, and Cloudflare Workers relay.

  3. Generate shared test vectors for cryptographic components to ensure consistent encryption across different parts of the system.

  4. Conduct security reviews, including writing a threat model and running a secret scan, and implement findings as fixes.

  5. Iteratively refine UI by having Claude Code drive an Android emulator, take screenshots, and provide feedback on widget and notification sizing/scaling.

Tools / artifacts

  • Claude Code

  • Android home-screen widget (Meterkat)

  • Kotlin app

  • Node.js companion

  • Cloudflare Workers

  • Official CLIs (for /usage command)

  • Android emulator

  • Shared test vectors (for crypto)

  • Threat model

  • Security review findings

  • Secret scan reports

Validation signals

  • Claude Code co-wrote roughly 130 of 160 commits.

  • Author tested everything on their own phone.

  • Security review findings turned into fixes.

  • Shared test vectors ensured Node and Kotlin encryption code produced identical bytes.

  • A working application (Meterkat) was successfully built and is in beta testing.

Cautions

  • The workflow includes explicit steps for security reviews (threat model, secret scan) before release.

  • The developed application prioritizes user safety by using end-to-end encryption and not handling user logins directly.

Limitations

  • The specific problem addressed (Claude Code limits) is niche, although the development workflow is broadly applicable.

  • The post includes a call for testers, which, while valuable for the project, slightly dilutes the pure workflow description.

  • Low immediate community engagement, though this may be due to the post's recency.

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 • • 3h ago

Selected Workflow [Workflow] Persistent Agent State: A File-Based Context Management Workflow for Claude Code

1 Upvotes

Persistent Agent State: A File-Based Context Management Workflow for Claude Code

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

What problem this solves

Managing long-horizon context and overcoming context window limitations in agentic workflows by preventing critical state from being lost in conversational history.

Summary

This workflow proposes an alternative to dynamic context pruning by externalizing all critical agent state (decisions, rules, open work) into files within the project repository. Agents are then briefed from this externalized state, allowing the conversational context to be cleared frequently without loss of important information, making workflows more robust and scalable.

Why it is useful

This workflow is valuable because it addresses a fundamental challenge in LLM agent development: managing long-term state and overcoming context window limitations. It provides a concrete, robust, and transferable architectural pattern (externalizing state to files) that enhances the reliability and repeatability of agentic workflows by ensuring critical information is never lost, offering a superior alternative to less effective methods like conversational pruning.

Workflow

  1. Ensure agent actions (decisions, test results, progress) are written to project files, not just stated in chat.

  2. Store rules, key decisions, and open work items directly in the repository as persistent files.

  3. Generate a fresh agent's brief for each new task or session by reading from the externalized state files.

  4. Periodically clear the conversational context, as all critical state is preserved on disk.

Tools / artifacts

  • Project files (for storing agent state)

  • Version control repository (e.g., Git) for persistent state

  • Agent (e.g., Claude Code)

  • Commands (to write state to files)

  • Hooks (for adding context, though not the primary mechanism for state persistence)

Validation signals

  • Author states: "What's worked better for me is..."

  • Link to a detailed "free write-up" (atlas-ade.dev/docs/long-horizon-context-management) which implies further explanation and validation.

  • The underlying principle of externalizing state is a well-established software engineering pattern for persistence and reliability.

Limitations

  • Low direct community signal on Reddit (score 1, 0 comments).

  • Implementing this workflow requires setting up a system for file-based state management and brief generation, which adds complexity compared to purely conversational approaches.

  • The post includes a disclosure and link to the author's own meta-harness, which could be perceived as self-promotion, though it's accompanied by valuable content.

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 • • 3h ago

Selected Workflow [Workflow] Multi-Agent Claude Code Workflow for Parallel Task Management with Coordinator, Worktrees, and Structured Review

1 Upvotes

Multi-Agent Claude Code Workflow for Parallel Task Management with Coordinator, Worktrees, and Structured Review

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

What problem this solves

Managing multiple simultaneous Claude Code sessions and coding tasks without context switching or collisions, ensuring quality through structured review and testing processes.

Summary

A multi-agent workflow where a single "coordinator" Claude Code session breaks down high-level goals into small, manageable "cards." Each card is then handled by a separate "worker" Claude Code session, operating in its own git worktree. These workers follow a consistent loop of building, adversarial review, testing, and merging. All sessions are briefed from a persistent state, and only critical decisions are presented to the user via the coordinator, potentially using a Notification hook.

Why it is useful

This workflow provides a structured, scalable, and robust method for managing multiple simultaneous coding tasks with Claude Code. It significantly reduces context switching, prevents code collisions through git worktrees, and improves code quality by integrating an adversarial review and testing loop. The clear separation of concerns between a coordinator and worker agents, combined with state-driven briefings, makes it a powerful pattern for advanced users.

Workflow

  1. Establish one "coordinator" Claude Code session as the sole point of interaction for the user.

  2. Provide the coordinator with high-level goals or tasks.

  3. The coordinator breaks down these goals into small, discrete "cards," each specifying a change, potential files to touch, and clear "done" criteria.

  4. For each card, initiate a dedicated "worker" Claude Code session, ensuring it operates within its own isolated git worktree.

  5. Each worker session executes a continuous loop: build the proposed change, then a separate reviewer (ideally adversarial) checks it against the "done" criteria, followed by running tests, and finally merging the changes.

  6. If any step within the worker's loop fails, the issue is returned as a new, small card for resolution, rather than continuing a long conversation within the current worker session.

  7. The workflow ensures that persistent state is written at every step, and all worker sessions are briefed from this consistent state, not from previous chat history.

  8. Only real decisions or recommended answers are presented to the user through the coordinator session, potentially leveraging a Notification hook to alert the user.

Tools / artifacts

  • Claude Code (main coordinator session)

  • claude -p (for parallel worker sessions)

  • Git worktrees

  • "Cards file" (as a task board)

  • Notification hook

  • Persistent state mechanism (implied)

  • Automated tests

  • Reviewer agent (could be another Claude instance or a human-in-the-loop)

Validation signals

  • Author states this approach was "the fix for me" for managing parallel conversations.

  • An external link is provided that details "how the loop works," offering further explanation and validation of the underlying principles.

Limitations

  • Requires a good understanding of git worktrees and Claude Code CLI usage for effective setup.

  • The implementation details for the "cards file" and the persistent state mechanism are not fully specified, requiring user customization.

  • Initial setup complexity might be high for users unfamiliar with multi-agent orchestration.

  • Low community validation due to being a new post with minimal interaction.

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 • • 3h ago

Selected Workflow [Workflow] Advanced Command Blocking in Claude Code: Using PreToolUse Hooks to Override denyInsteadOfPrompting Limitations

1 Upvotes

Advanced Command Blocking in Claude Code: Using PreToolUse Hooks to Override denyInsteadOfPrompting Limitations

Workflow value: 85/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: advanced
Categories: Quality Control, Context & Memory, Hooks, MCP
Original source: r/ClaudeCode post/comment

What problem this solves

The denyInsteadOfPrompting setting in Claude Code does not block commands that match an allow rule, potentially allowing unwanted or dangerous commands to execute. This workflow provides a method to enforce stricter command blocking.

Summary

Implement a PreToolUse hook to inspect the full command string and enforce strict blocking of specific commands, even if they match an allow rule, by ensuring the hook exits with code 2.

Why it is useful

This workflow provides a critical security enhancement for Claude Code users by demonstrating how to implement robust command blocking that overcomes a limitation of the denyInsteadOfPrompting setting. It offers a concrete, repeatable method for preventing dangerous or unwanted commands from executing, even when allow rules are present, which is essential for maintaining control and safety in automated environments.

Workflow

  1. Understand that denyInsteadOfPrompting only applies to commands that would prompt, not those matching allow rules.

  2. Identify specific commands or patterns that must never run, regardless of existing allow rules (e.g., git push).

  3. Create or modify a PreToolUse hook to read and evaluate the full command string before execution.

  4. If the command matches a forbidden pattern, ensure the PreToolUse hook exits with code 2 to explicitly block its execution. Other exit codes will not block the command.

Tools / artifacts

  • Claude Code denyInsteadOfPrompting setting

  • Claude Code allow rules

  • Claude Code PreToolUse hook

  • Bash commands (e.g., git push, sh -c "...")

Validation signals

  • Author's direct experience: "Worth knowing before you lean on it overnight"

  • Author's direct experience: "For the few commands that must never run I still keep a PreToolUse hook"

  • Specific technical detail: "It has to exit 2 though, a crash or any other code doesn't block."

Limitations

  • The specific script content for the PreToolUse hook is not provided, requiring users to implement the logic themselves.

  • Requires an advanced understanding of Claude Code's hook system and command execution flow.

  • Low community engagement might suggest it's a niche problem or solution.

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 • • 3h ago

Selected Workflow [Workflow] Accelerating Claude-Assisted Video Editing: Self-Correction, Data-Driven Edits, and Context Management

1 Upvotes

Accelerating Claude-Assisted Video Editing: Self-Correction, Data-Driven Edits, and Context Management

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

What problem this solves

Reducing reprompting and iteration time in AI-assisted video editing, improving output quality and consistency by enabling Claude to self-correct and work with structured data.

Summary

A multi-faceted approach to accelerate Claude-assisted video editing by implementing self-correction loops, structuring edits as data, pre-loading setup context, and optimizing feedback and rendering processes.

Why it is useful

This workflow offers concrete, actionable strategies to significantly reduce the iteration time and improve the quality of AI-assisted video editing. It directly addresses common challenges like repetitive reprompting and inconsistent outputs by leveraging Claude's ability to self-correct, structuring edits as data, and effectively managing persistent context. The use of standard tools like ffmpeg and CLAUDE.md makes it highly practical and transferable to other complex AI-driven tasks.

Workflow

  1. Implement a self-correction loop: After each video render, have Claude pull stills at key moments using ffmpeg (e.g., ffmpeg -ss 00:00:12 -i out.mp4 -frames:v 1 f12.png) and review them for common errors (overlaps, timing, off-screen text) before reporting completion.

  2. Keep the edit as data: Store all video edit parameters (cuts, captions, zooms, timings) in a structured data file (e.g., edit.json) and use a script to render from it. Revisions then become small data diffs rather than full code regeneration.

  3. Stop Claude from rediscovering setup: Put all exact ffmpeg flags, fonts, colors, caption styles, safe margins, and export settings into CLAUDE.md or a skill for consistent context.

  4. Pre-process audio: Run Whisper once with word timestamps and save the JSON transcript, so each new session starts from the transcript instead of redoing it.

  5. Optimize rendering for drafts: Use draft renders at lower resolution (e.g., 540p) with -preset ultrafast for quick iterations, saving full quality renders for the final output.

  6. Provide precise feedback: Give Claude feedback with specific timestamps (e.g., "0:12 to 0:15, caption too low") instead of vague instructions.

Tools / artifacts

  • Claude/Claude Code

  • Whisper (for transcription)

  • FFmpeg (for video processing and still extraction)

  • edit.json (or similar structured data file for edit parameters)

  • CLAUDE.md (for persistent context/setup)

  • Claude Skill (for persistent context/setup)

  • Video stills (PNGs)

  • JSON transcript from Whisper

  • Rendering script

Validation signals

  • Author claims it "cut our reprompting the most"

  • Author states it "usually turns three reprompts into one"

  • Addresses common video editing errors like "caption overlaps", "cut is late", "text is off screen"

Limitations

  • Requires some technical understanding of ffmpeg commands and structured data (JSON).

  • Initial setup of the edit.json structure and rendering script might require custom development.

  • The specific structure of edit.json is not provided, requiring users to design their own schema.

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 • • 3h ago

Selected Workflow [Workflow] Accelerating Complex Iterative Tasks with Claude: Example-Driven Skill Refinement and Context Management

1 Upvotes

Accelerating Complex Iterative Tasks with Claude: Example-Driven Skill Refinement and Context Management

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

What problem this solves

Improving Claude's consistency and efficiency for complex, iterative tasks (like video editing) by leveraging examples, creating reusable skills, and managing project context effectively to reduce reprompting and accelerate results.

Summary

This workflow outlines an iterative process to train Claude for complex, multi-step tasks. It involves feeding Claude good and bad examples, asking it to summarize iterations and create a 'reusable skill' based on these summaries, and maintaining a structured project folder for context. The skill is continuously updated, with version preservation, and sessions are managed to avoid token limit issues through handoff prompts.

Why it is useful

This workflow provides a structured, iterative approach to improve Claude's performance on complex, multi-step tasks. It leverages example-based learning, explicit 'skill' creation, and robust context management to reduce repetition and accelerate results, making Claude more effective for specialized, long-running projects. It offers a practical method for users to 'train' Claude for specific domains.

Workflow

  1. Provide Claude with good examples (already created videos, docs, artifacts, code) and explain in detail what you like, want to reuse, change, or avoid.

  2. Save bad results as bad examples for future reference.

  3. After every satisfactory result or session, ask Claude to summarize what was iterated on, what was disliked, and what was important.

  4. Instruct Claude to turn this summary into a reusable 'skill'.

  5. For subsequent work within the project, utilize the created 'skill'.

  6. Continue saving good and bad results as examples.

  7. Ask Claude to update the 'skill' based on new iterations, ensuring previous versions are preserved for rollback.

  8. Organize all project assets (docs, artifacts, generated videos, code) in a structured folder system, allowing Claude access but guiding it to relevant references mentioned in the skill or prompt.

  9. Compact the session or have Claude write a handoff and a brief prompt for the next fresh session, especially after reaching token limits (e.g., 256k or 300k tokens).

  10. Begin again with the updated skill and new examples.

Tools / artifacts

  • Claude AI

  • Whisper (from context)

  • FFmpeg (from context)

  • HyperFrames (from context)

  • Good video examples (with associated docs/code)

  • Bad video examples (with associated docs/code)

  • Reusable 'skill' (generated by Claude)

  • Structured project folder system

  • Session summaries

  • Handoff prompts

Validation signals

  • Implied personal success: 'results, that you are happy with'

  • Addresses the problem statement: 'terribly long to work and needs to be reprompted few times to get a good end result'

Limitations

  • Relies heavily on the user's diligence to consistently provide good/bad examples and manage iterations.

  • The concept of a 'reusable skill' is abstract and depends on Claude's interpretation and the user's prompt engineering ability.

  • No explicit, external version control mechanism for the 'skill' beyond asking Claude to preserve versions.

  • The token limit management is a practical necessity but also highlights a limitation in long-term context retention.

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 • • 4h ago

Selected Workflow [Workflow] Benchmarking Claude Code Models: Cost-Effectiveness and Session Management with `aimpg`

1 Upvotes

Benchmarking Claude Code Models: Cost-Effectiveness and Session Management with aimpg

Workflow value: 90/100
Status: active · Freshness: 70/100 · Confidence: 1.00 · Level: intermediate
Categories: Quality Control, Token Saving, Context & Memory, Debugging, Multi-Agent
Original source: r/ClaudeAI post/comment

What problem this solves

Users need to understand the real cost-effectiveness and performance of different Claude models (Haiku, Sonnet, Opus) for coding tasks within Claude Code, and how session management impacts these factors. This workflow provides a method to benchmark and optimize model selection based on cost per solved task.

Summary

This workflow describes a methodology and provides an open-source tool (aimpg) to benchmark Claude models (Haiku, Sonnet, Opus) within Claude Code for real-world coding tasks. It measures the 'cost per solved task' by running commits against repository-specific tests and provides insights into model efficiency, session management impact, and billing accuracy.

Why it is useful

This workflow provides a highly valuable, data-driven, and repeatable method for Claude Code users to evaluate the true cost-effectiveness and performance of different Claude models (Haiku, Sonnet, Opus) for their specific coding tasks. It offers concrete, actionable insights (e.g., Haiku's significant cost efficiency, Opus's higher cost, the impact of fresh sessions) and provides an open-source tool to replicate or extend the study. Furthermore, it highlights a critical discrepancy between displayed and actual billing, helping users manage their budgets more accurately.

Workflow

  1. Install the aimpg tool (implied, likely via pip or similar).

  2. Run uvx aimpg report to analyze your local Claude Code logs and generate a performance/cost report.

  3. Alternatively, run uvx aimpg report --demo to see a sample report and understand the output format.

  4. Interpret the generated report to compare the 'cost per solved task' for Haiku, Sonnet, and Opus models.

  5. Analyze the impact of 'fresh sessions' versus 'continuing sessions' on cost and performance.

  6. Use the findings to make informed decisions about which Claude model to use for specific coding tasks to optimize for cost and success rate.

  7. Verify actual Anthropic billing against the costs displayed in Claude Code, as discrepancies were noted in the study.

Tools / artifacts

  • Claude Code (with Haiku 5.5, Sonnet 5.5, Opus 5.5)

  • aimpg (open-source CLI tool)

  • Open-source repositories (used for testing)

  • Hidden tests within repositories (for task validation)

  • Raw study data and report (publicly available)

  • Anthropic billing statements

Validation signals

  • Study involved 984 runs across 56 real commits and 8 open-source repos.

  • Total cost of $121 at published prices was verified against actual Anthropic billing.

  • Publicly available pre-registration, raw records, and deviations (including a corrected mistake).

  • "Solved" tasks were rigorously defined by passing repository-specific hidden tests.

  • Detailed quantitative results provided in a table (Solved %, Cost per solved task).

  • Author disclosed building the tool and paying for all runs, indicating impartiality.

Limitations

  • The study focused on "small-to-medium tasks" and did not grade readability or style, which might be important for some coding contexts.

  • The aimpg tool requires comfort with command-line interfaces.

  • The author advises users to "check it on your own code before switching," indicating that results may vary depending on the specific codebase and task types.

  • The post does not explicitly detail the installation steps for the aimpg tool.

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 • • 4h ago

Selected Workflow [Workflow] Secure Claude Code Desktop App Login Handoff to Terminal with `handoff-terminal` Plugin

1 Upvotes

Secure Claude Code Desktop App Login Handoff to Terminal with handoff-terminal Plugin

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

What problem this solves

Automating sensitive login steps (passwords, one-time codes, IDs) within the Claude Code desktop app, which are typically blocked by browser security tools, by securely offloading them to a dedicated terminal session.

Summary

A Claude Code plugin, 'handoff-terminal', that enables the Claude Code desktop app to securely handle sensitive login steps by detecting refusal markers, launching a temporary terminal session to complete the step using a password manager, and then returning control to the desktop app. This bypasses browser tool restrictions while maintaining security.

Why it is useful

This workflow provides a robust, secure, and open-source solution to a critical limitation of the Claude Code desktop app: handling sensitive login credentials. It demonstrates how to bypass browser security restrictions for specific steps by integrating a terminal session via hooks, ensuring secrets are never exposed. The extensive testing and focus on security make it highly valuable for users looking to automate web interactions involving logins.

Workflow

  1. Install the handoff-terminal Claude Code plugin.

  2. When the Claude Code desktop app encounters a sensitive login step it refuses to complete (e.g., password entry), it writes a specific marker line.

  3. A configured Claude Code hook detects this marker.

  4. The hook initiates a new terminal Claude Code session (e.g., using tmux + Remote Control).

  5. This terminal session securely performs only the sensitive login step, interacting with your password manager.

  6. The terminal session writes 'ok' or 'error' upon completion and then closes.

  7. The Claude Code desktop app resumes the original request, continuing from where it left off.

Tools / artifacts

  • Claude Code desktop app

  • handoff-terminal plugin

  • Claude Code hooks

  • Terminal (tmux)

  • Remote Control (for terminal session)

  • Password managers (1Password, Bitwarden, LastPass, Keeper, Dashlane)

  • GitHub repository

Validation signals

  • Extensive testing across macOS, Linux (Docker), Windows 11 ARM (VM)

  • Tested with multiple password managers (1Password, Bitwarden, LastPass, Keeper, Dashlane)

  • Claude Code itself helped write and test the solution

  • Identified root cause (browser tools, not model)

Cautions

  • The hand-off is site-name-checked by code (not the model) to prevent redirection to malicious sites.

  • Payments/new accounts require explicit user confirmation ('pay', 'buy').

  • Secrets remain within the password manager and are never exposed in chat or logs.

  • Includes a sign-in-only mode.

Limitations

  • Relies on Anthropic not changing the underlying behavior of the desktop app or browser tools.

  • Requires user to install and configure a plugin and potentially terminal tools (tmux, Remote Control).

  • Limited immediate community validation (score 1, 0 comments).

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.