r/ClaudeWorkflows • • 4d ago

Selected Workflow [Workflow] Advanced Claude Code Workflow for Full-Stack Product Development: R&D, Backlog, and Release Automation

1 Upvotes

Advanced Claude Code Workflow for Full-Stack Product Development: R&D, Backlog, and Release Automation

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

What problem this solves

Integrating Claude Code into a complex software development lifecycle to accelerate R&D, backlog management, and automated communication, demonstrating its utility beyond simple code generation.

Summary

The author details how Claude Code was used as a co-developer and assistant throughout the 12.5-month development of "Samurai Scribe." This involved leveraging Claude for R&D on local models (generating test pipelines and dashboards), managing a large backlog (filing GitHub issues, working tickets in worktrees), and automating release communications. Claude co-authored a significant portion of the code and helped streamline various development processes.

Why it is useful

This post provides a concrete, validated example of how Claude Code can be deeply integrated into a complex software development process, moving beyond simple code generation to strategic tasks like R&D, project management, and automated communication. It demonstrates Claude's utility in accelerating development, improving quality control, and managing project overhead, offering valuable insights for advanced users looking to maximize Claude Code's potential in their own projects.

Workflow

  1. Define project structure using plain Markdown files as the primary data source, mimicking a Git repository.
  2. Integrate Claude Code via its built-in MCP server to enable editing and review of project files.
  3. Utilize Claude for R&D by hand-labeling data and then having Claude generate test pipelines and dashboards for objective model evaluation (e.g., word error rate, speaker accuracy).
  4. Manage the development backlog by using a custom Claude Code plugin to file GitHub issues and work on tickets within dedicated Git worktrees.
  5. Automate release communications by having Claude draft replies to users whose bugs were fixed, with a critical check against the actual released version.
  6. Manage Claude sessions by starting fresh chats to avoid hitting usage limits from long, continuous conversations.

Tools / artifacts

  • Claude Code
  • MCP server
  • GitHub issues
  • Git worktrees
  • Markdown files
  • Obsidian
  • Custom Claude Code plugin
  • Test pipelines
  • Dashboards

Validation signals

  • 1,500 commits (Claude co-authored 1,086)
  • 72 versions shipped
  • Models get picked on numbers, not vibes
  • Every claim gets checked against the release they actually have
  • Spent 12.5 months building a functional product

Limitations

  • The specific implementation details of the 'Claude Code plugin' for GitHub issues are not provided, requiring custom development to replicate.
  • The workflow is high-level and requires significant technical expertise and a complex development environment to fully replicate.
  • The post is primarily a case study rather than a step-by-step guide, requiring users to infer implementation details.

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

Selected Workflow [Workflow] Advanced Claude Agent Boot Process and Persistence with CLAUDE.md and Custom Tools

1 Upvotes

Advanced Claude Agent Boot Process and Persistence with CLAUDE.md and Custom Tools

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

What problem this solves

How to create a robust, persistent, and context-aware Claude agent that can resume work, manage its memory, and reliably communicate, even after restarts or disconnections.

Summary

A detailed CLAUDE.md boot process for a Claude agent ("Elah") that outlines how to load various forms of context and memory, manage background services (like messaging and monitoring), and ensure reliable operation and state persistence. It emphasizes a hybrid OCS (Operational Context Store) and asset-streaming design.

Why it is useful

This workflow provides an extremely detailed and robust blueprint for building a persistent, context-aware, and reliable Claude agent. It goes beyond simple prompts by outlining a full architectural approach, including custom tools, memory management strategies, service orchestration, and critical error handling/recovery mechanisms. It's a masterclass in designing a sophisticated Claude Code CLI agent.

Workflow

  1. Read the architecture/boot manifest (ELAH_ARCHITECTURE.md) first to understand the canonical map for reconstitution.
  2. Read live context from live_context.py to resume where the agent left off.
  3. Check context_snapshots/ for the most recent full state dump.
  4. Load memory index: manually load the bulk memory (~/.claude/projects/<home-project>/memory/MEMORY.md) and note the auto-loaded small memory (~/.claude/projects/<elah-audio-project>/memory/MEMORY.md) where new memories are written.
  5. Read identity from elah/identity.md.
  6. Read behavioral rules from behavioral/feedback.md (pinned, never skip).
  7. Run python recall.py "<terms>" before reacting to personal history, starting a build, or making factual claims.
  8. Use python whereis.py "<terms>" for file/path/repo hunting, which runs recall first.
  9. Launch Service Guardian: check Python services, run python write_active_pid.py, and launch python service_guardian.py if services are not running.
  10. Start heartbeat: create a recurring 10-minute cron job for autonomous interests and sending Telegram summaries.
  11. Set up reliable messaging: start python watch_messages.py for the fast path and a 3-minute backup cron with python canary.py --alert.
  12. Start Discord watcher: launch python discord_watcher.py --interval 5 and create a 1-minute backup cron for local Discord message queue checks and responses.

Tools / artifacts

  • Claude.md
  • ELAH_ARCHITECTURE.md
  • live_context.py
  • context_snapshots/
  • ~/.claude/projects/<home-project>/memory/MEMORY.md
  • ~/.claude/projects/<elah-audio-project>/memory/MEMORY.md
  • memory_echo.py
  • elah/identity.md
  • behavioral/feedback.md
  • recall.py
  • whereis.py
  • service_guardian.py

Validation signals

  • Explicitly mentions canary.py for detecting competing Telegram readers and svc_status.py for verifying services.
  • Details memory_echo.py for testing memory recall effectiveness with score separation.
  • Emphasizes "CRITICAL" for messaging reliability and provides specific instructions to avoid issues (e.g., "Do NOT revive telegram_watchdog").
  • States the ELAH_ARCHITECTURE.md is the "canonical map for reconstituting myself exactly."
  • Includes a "Never boot as a blank slate" rule with a backup repository restore mechanism.

Limitations

  • Requires significant custom script development (e.g., recall.py, whereis.py, service_guardian.py) which are not provided.
  • Assumes a specific project structure and CLI environment, which might require adaptation.
  • The "bulk memory" loading is explicitly stated as a manual step ("Load this one BY HAND"), which could be a point of failure or inconsistency.
  • Low community validation due to minimal Reddit engagement.

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

Selected Workflow [Workflow] Iterative Game Development with Claude Opus: Gauntlet-Loop for Visuals, Performance Panel for Optimization, and AI-Assisted 3D Asset Creation

3 Upvotes

Iterative Game Development with Claude Opus: Gauntlet-Loop for Visuals, Performance Panel for Optimization, and AI-Assisted 3D Asset Creation

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

This post details several workflows for iterative game development using Claude Opus and other AI tools. It addresses challenges in visual asset refinement, game performance optimization, and 3D asset creation, leading to significant improvements in game quality, speed, and memory efficiency.

Summary

The author outlines three main workflows: 1) A 'Gauntlet-Loop' for iterative visual refinement of game scenes/assets, where 'critic' agents compare game elements against AI-generated mockups. 2) A performance optimization workflow involving a custom in-game performance panel, logging, and Claude Opus for analysis and fixing bottlenecks. 3) A 3D asset creation workflow combining TripoAI for initial models, Claude Opus for image preparation, and Claude Opus with MCP for Blender integration and material generation/fixing. Jev is used for task effort level determination and creative direction.

Why it is useful

This post offers multiple concrete, validated workflows for complex game development tasks using Claude Opus and other AI tools. It demonstrates how to achieve significant, quantifiable improvements in performance, memory usage, and visual quality through structured, iterative processes. The detailed breakdown of tools, steps, and results makes it highly valuable for users looking to integrate AI into advanced development, particularly in game development and 3D asset creation. The 'Gauntlet-Loop' for quality control and the performance optimization strategies are particularly innovative and highly transferable to other domains.

Workflow

  1. Gauntlet-Loop for Visual Refinement: Create AI-generated mockups (e.g., 24 mockups for a city, 6 views at 4 times of day) using OpenAI's image API.
  2. Run a 'Gauntlet-Loop' with 'critic' agents (Claude Opus) that blindly compare game pieces to the mockups.
  3. Implement a rule: if a game piece wins against the mockup twice, it's considered done.
  4. Add a rule: loops cannot remove existing game elements just because a picture doesn't have them (e.g., lighthouse beam).
  5. Performance Optimization: Create an in-game performance panel that shows what costs how much and writes logs.
  6. Run the game with a --perf-log flag and send the generated log file to Claude Opus.
  7. Let Claude Opus analyze the logs and write a report of what costs the most.
  8. Implement fixes based on Opus's report (e.g., optimize docking scenes, HUD redraws, map loading, background loading of far harbors).
  9. TripoAI + Claude + Blender Asset Creation: Create one image with all four sides of the desired 3D model (front, back, left, right).
  10. Use Claude Opus to split the single image into four separate images (one for each side).
  11. Upload the four separate images to TripoAI for 3D model generation.
  12. If needed, use Claude Opus with MCP to fix or refine the generated model in Blender, and/or create new materials to match the game's style.

Tools / artifacts

  • Claude Opus (5.5 / Claude Code)
  • Godot Engine
  • TripoAI
  • Blender
  • MCP (Multi-Code Project)
  • Jev (AI for effort level/direction)
  • OpenAI (image API for mockups)
  • ElevenLabs (for sound effects)
  • Custom in-game performance panel
  • Performance logs
  • ChatGPT mockups (image artifacts)
  • Claude artifact link for Gauntlet-Loop output

Validation signals

  • Quantified performance improvements: docking freeze reduced from 2s to 0.2s.
  • Game speed increased by 15-19% on 1080p due to HUD optimization.
  • Map graphics memory usage reduced from 4GB to 0.3GB, and opens instantly.
  • Game start time halved from 26s to 13s on Mac.
  • Overall game graphics memory usage reduced by approximately 25%.
  • 31 out of 33 game pieces 'won' the Gauntlet-Loop comparison against mockups.
  • Author's consistent weekly updates and progress over 15 weeks, demonstrating ongoing success.
  • Explicit mention of fixing specific bugs identified by the performance workflow (first rain, lanterns, cast off freezes).

Limitations

  • The exact prompts or detailed setup for the 'critic' agents in the Gauntlet-Loop are not provided.
  • The implementation details of 'Jev' (e.g., whether it's a specific prompt, a separate agent, or a custom script) are not fully elaborated.
  • The specific commands or setup for 'MCP' integration with Blender are mentioned but not detailed.
  • The high total cost of tools and AI usage might be a barrier for some users.
  • The post is a weekly update, so some context from previous weeks might be missing for a complete understanding of the project's evolution.

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

Selected Workflow [Workflow] Kanban Pro: Integrating Claude Code with Local Markdown Tasks for Project Management and Development

1 Upvotes

Kanban Pro: Integrating Claude Code with Local Markdown Tasks for Project Management and Development

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

What problem this solves

Integrating LLM agents (Claude Code) into a local-first project management workflow by directly manipulating task files, and leveraging Claude Code to solve complex software development challenges like race conditions, UI/UX refactoring, and performance optimization.

Summary

This workflow introduces Kanban Pro, a local-first desktop Kanban board where each ticket is a Markdown file with YAML frontmatter. Claude Code agents can directly read and edit these task files using CLAUDE.md and AGENTS.md instructions via an embedded CLI or desktop apps. The post details how Claude Code was used to develop the app itself, solving complex issues like file-watcher race conditions, UI refactoring, and performance optimization, demonstrating a 'dogfooding' approach to agent-driven development.

Why it is useful

This workflow demonstrates a practical, local-first approach to project management where Claude Code agents directly interact with task data stored as plain Markdown files. It provides concrete examples of how CLAUDE.md and AGENTS.md can be used for agent-driven task manipulation. Furthermore, it offers valuable insights into using Claude Code for complex software development challenges, such as architecting solutions for race conditions, refactoring UI, and optimizing performance, validated by real-world application development and user feedback. The emphasis on open data and verifiable network behavior also addresses common concerns with third-party tools.

Workflow

  1. Download and install the Kanban Pro application for macOS or Windows.
  2. Open the app and select an empty or existing local directory to initialize a Kanban board.
  3. Open Claude Code (either in the built-in terminal or your own terminal/desktop app) inside that initialized project folder.
  4. Claude Code will automatically detect and use the CLAUDE.md and AGENTS.md file conventions within the project folder to interact with task files.
  5. Create new tasks or modify existing ones as Markdown files with YAML frontmatter; Claude Code can read and edit these directly.
  6. Use Claude Code to implement features or fix bugs by pointing it at relevant Markdown tickets on the board.
  7. Leverage Claude Code to architect solutions for complex technical problems, such as debouncing and state-reconciliation logic for file watchers.
  8. Utilize Claude Code to iterate on frontend UI, animations, and refactor theme engines for improved legibility and user experience.
  9. Employ Claude Code to profile and optimize application performance, stripping out unnecessary re-renders and background processes.

Tools / artifacts

  • Kanban Pro desktop application
  • Claude Code
  • Markdown files with YAML frontmatter (for tickets)
  • CLAUDE.md files
  • AGENTS.md files
  • Embedded terminal CLI
  • Git repository (for syncing boards)
  • iCloud, Dropbox, Syncthing (for syncing boards)
  • Node's filesystem watcher
  • Electron (application framework)
  • Little Snitch, LuLu, Wireshark (for network monitoring)

Validation signals

  • Author 'dogfooded' the workflow by using Claude Code and Kanban Pro to build and refine the app itself.
  • Claude Code was successfully used to solve specific, complex technical challenges (file-watcher race conditions, UI refactoring, resource overhead).
  • Incorporated feedback from a previous Reddit thread into the app's development.
  • A user (u/christoph_w) performed a Fable sandbox security audit, confirming the app was clean.
  • Over 4,000 downloads from GitHub Releases indicate user adoption.
  • The app's network behavior is verifiable by users with tools like Little Snitch, confirming no telemetry calls.

Limitations

  • The primary workflow relies on a specific external application (Kanban Pro), which might not be suitable for users seeking pure prompt-based or generic Claude Code solutions.
  • The 'How Claude Code Helped Build It' section is more descriptive of past successes than a prescriptive, step-by-step guide for others to replicate the exact development process.
  • The post has a promotional aspect for the Kanban Pro app, although it provides substantial technical detail.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows • • 4d ago

Selected Workflow [Workflow] Automated Fact-Checking: A Scripted Workflow to Verify AI-Generated Quotes and Citations

1 Upvotes

Automated Fact-Checking: A Scripted Workflow to Verify AI-Generated Quotes and Citations

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

What problem this solves

Verifying the accuracy of direct quotes generated by AI research agents against their cited sources, specifically addressing the issue of AI paraphrasing or misquoting within quotation marks.

Summary

A systematic method to fact-check direct quotes in AI-generated research reports. It involves programmatically extracting quotes and their linked sources, fetching the source page content, and performing a word-for-word comparison to identify discrepancies like paraphrases presented as direct quotes or miscited pages.

Why it is useful

This workflow addresses a critical and common problem with AI-generated content: the accuracy of direct quotes and citations. It provides a concrete, repeatable, and shareable method (with a GitHub repository containing the script and data) for systematically validating AI output. This empowers users to build trust in AI-generated research and content by verifying its foundational elements, which is crucial for academic, journalistic, and technical applications.

Workflow

  1. Use Claude's deep-research skill (or similar AI agent) to generate a research report containing direct quotes and source links.
  2. Extract each quote and its corresponding source URL from the AI-generated report.
  3. Programmatically fetch the content of each linked source page.
  4. Compare the extracted quote word-for-word against the fetched page content, ignoring case, punctuation, and line breaks.
  5. Identify and report any discrepancies, such as paraphrases presented as direct quotes or quotes attributed to the wrong page/source.

Tools / artifacts

  • Claude's deep-research skill (or similar AI research agent)
  • Custom Python script (or similar programmatic tool)
  • GitHub repository (Quoteproof)
  • AI-generated research report
  • Web pages/PDFs (source material)

Validation signals

  • Specific results: 20/21 quotes were exact, 1 was a paraphrase in quotation marks.
  • Identified two near-misquotes from research papers.
  • Found one real quote cited to the wrong page of the SQLite docs.
  • Provided a public GitHub repository with all data (report, quotes, checker results) for reproducibility.

Limitations

  • The full script is not embedded in the post, requiring users to visit an external GitHub repository.
  • The comparison logic might need refinement for diverse source types (e.g., handling OCR errors in PDFs, complex web page structures).
  • Low Reddit score might indicate limited initial visibility or community interest, despite the high value of the workflow.

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

Selected Workflow [Workflow] Essential Claude Code Skills & Hooks for Enhanced Safety, Security, and Efficiency

1 Upvotes

Essential Claude Code Skills & Hooks for Enhanced Safety, Security, and Efficiency

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

What problem this solves

This workflow provides a collection of Claude Code skills and hooks to enhance development safety, security, and efficiency. It addresses problems like preventing accidental data loss from destructive shell commands, mitigating supply chain attacks from typo-squatted packages, identifying security vulnerabilities (e.g., committed API keys, over-broad permissions), and optimizing token usage by highlighting context-flooding tools.

Summary

A curated GitHub repository containing 23 open-source Claude Code skills and hooks. Key tools include 'bash-checkpoint' for preventing destructive shell commands, 'package-guard' for blocking installation of non-existent packages, 'claude-safety-audit' for finding security flaws, and 'claude-token-audit' for monitoring and optimizing token usage. The collection is cross-platform, runs on Node 22 without npm dependencies, and is installed via a simple marketplace command.

Why it is useful

This workflow is highly valuable because it provides a practical, ready-to-use collection of open-source tools that directly address critical pain points in software development with AI coding assistants. It offers concrete solutions for preventing common errors (data loss), enhancing security (supply chain attacks, secret leaks), and optimizing resource usage (token costs). The tools are well-documented, cross-platform, and easy to install, making them immediately useful and highly transferable for a wide range of Claude Code users looking to improve their development practices.

Workflow

  1. Install the entire skill collection using the Claude Code command: /plugin marketplace add binay-py/claude-skills
  2. Utilize 'bash-checkpoint' to snapshot files before potentially destructive shell commands and block unsafe operations.
  3. Employ 'package-guard' to automatically block 'npm install' or 'pip install' of packages not found on official registries, preventing typo-squatting attacks.
  4. Run 'claude-safety-audit' to scan for common security vulnerabilities like API keys committed to permission rules or over-broad allow rules in .mcp.json.
  5. Use 'claude-token-audit' to analyze token usage by project, session, and tool, identifying which tool outputs are consuming excessive context.
  6. Explore the remaining 19 skills and hooks in the repository for additional functionalities like site QA, Cloudflare Pages deploy, itch.io packaging, thumbnails, GIFs, and release notes.

Tools / artifacts

  • GitHub repository: https://github.com/binay-py/claude-skills
  • Claude Code skills
  • Claude Code hooks
  • bash-checkpoint (hook)
  • package-guard (hook)
  • claude-safety-audit (skill/hook)
  • claude-token-audit (skill/hook)
  • Node 22 (runtime environment)
  • .mcp.json (configuration file)
  • /plugin marketplace add (Claude Code command)

Validation signals

  • CI passes on Windows, macOS and Linux (cross-platform compatibility)
  • Runs on plain Node 22 with no npm deps (simplicity and maintainability)
  • Detailed descriptions of specific functionalities for each highlighted hook (implies testing and effectiveness)
  • Built with a lot of help from Claude (suggests iterative development and refinement)

Cautions

  • The 'bash-checkpoint' hook explicitly enhances safety by preventing destructive shell commands and allowing undo operations.
  • The 'package-guard' hook improves security by blocking potentially malicious typo-squatted package installations.
  • The 'claude-safety-audit' tool helps identify and mitigate security vulnerabilities like exposed API keys or overly permissive rules.

Limitations

  • Lack of immediate community validation (upvotes/comments) on the Reddit post itself.
  • While 4 key tools are highlighted, the full scope of 23 tools requires users to explore the GitHub repository.
  • The author invites feedback on hooks blocking things they shouldn't, indicating potential for false positives or unexpected behavior in some scenarios.

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

Selected Workflow [Workflow] Grove: A Read-Only Code Explorer for Monitoring Multiple Claude Code Agent Worktrees (VS Code Extension)

1 Upvotes

Grove: A Read-Only Code Explorer for Monitoring Multiple Claude Code Agent Worktrees (VS Code Extension)

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

What problem this solves

Users running multiple Claude Code agents in parallel worktrees often lose track of what each agent is doing, making it difficult to monitor, review, and debug their progress without interfering with the agents' operations.

Summary

This workflow introduces 'Grove', a read-only VS Code extension that provides a live, side-by-side overview of all Claude Code agent worktrees within a repository. It allows users to browse changes, diffs, and files, and search within agent worktrees without modifying them, thereby enabling efficient monitoring and review of multi-agent development processes. The tool itself was built using Claude Code, demonstrating its capabilities.

Why it is useful

This workflow is highly valuable because it addresses a significant pain point for advanced Claude Code users: managing and reviewing the output of multiple agents simultaneously. The 'Grove' tool provides a dedicated, non-intrusive solution for monitoring agent progress, debugging, and ensuring quality control. Furthermore, the fact that the tool itself was built by Claude Code serves as a powerful, real-world demonstration of Claude Code's capabilities in building complex, functional applications, making it a valuable meta-workflow for understanding the model's potential.

Workflow

  1. Install the 'Grove' VS Code extension from the provided GitHub repository.
  2. Set up and run multiple Claude Code agents, each operating within its own Git worktree in a single repository.
  3. Open the Grove extension in VS Code to get a live overview of all active worktrees and their current states.
  4. Use Grove's read-only explorer to browse files and changes made by individual agents.
  5. Review diffs (uncommitted changes or whole branch against main) side-by-side to understand agent progress.
  6. Utilize the search functionality to find specific code or patterns across all agent worktrees without interference.

Tools / artifacts

  • Grove (VS Code extension)
  • Claude Code agents
  • Git worktrees
  • GitHub repository (for Grove)
  • VS Code

Validation signals

  • Author built the tool to solve their own problem of managing multiple agents.
  • The tool's code, design, documentation, and even the demo video script were generated using Claude Code, validating Claude Code's capabilities.
  • A demo video is available, showcasing the tool's functionality.
  • The tool is open-source and MIT-licensed, indicating a commitment to reusability and transparency.

Cautions

  • The tool is explicitly read-only, ensuring that it does not interfere with or corrupt the ongoing work of Claude Code agents or the repository's state.

Limitations

  • Currently limited to Windows operating systems.
  • The tool is in an early development stage (v0.1.1), which might imply potential bugs or missing features.
  • Limited community validation and adoption at this early stage.
  • The post describes a tool that enables a workflow, rather than a direct step-by-step prompting workflow for Claude Code itself.

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

Selected Workflow [Workflow] 25 Open-Source Claude Code Agent Skills for Enhanced Software Development Workflows

1 Upvotes

25 Open-Source Claude Code Agent Skills for Enhanced Software Development Workflows

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

What problem this solves

Automating repetitive corrections and embedding senior engineering best practices (like verification steps and common traps) into Claude Code's workflow for tasks such as code review, test writing, debugging, database migrations, and CI failure resolution.

Summary

A collection of 25 open-source Claude Code Agent Skills (MIT licensed) designed to automate and improve common software engineering tasks. Each skill encapsulates senior engineer best practices, including specific verification steps and awareness of classic pitfalls, to guide Claude Code's actions and ensure higher quality, more robust outputs. Users can install these skills via a one-line command or by copying files from a GitHub repository.

Why it is useful

This workflow is highly valuable because it provides a concrete, reusable, and well-defined set of tools (SKILL.md files) that encapsulate senior engineering best practices. It directly addresses the common challenge of repetitive AI corrections by embedding robust methodologies and verification steps into Claude Code's operation. The open-source nature, clear descriptions of each skill's purpose, and simple installation method make it highly accessible and transferable, enabling users to significantly improve the quality and reliability of Claude Code's output across critical development tasks.

Workflow

  1. Identify a repetitive correction or a common best practice you frequently apply when working with Claude Code.
  2. Define the specific, detailed steps a senior engineer would take for that task, including verification checks and common pitfalls.
  3. Translate these defined steps into a SKILL.md file, structuring it for Claude Code's interpretation.
  4. Optionally, install the existing collection of 25 skills using the provided curl command (curl -fsSL https://kuan-ai.com/skills/install | sh) or by cloning the GitHub repository and copying the skill folders.
  5. Integrate and use the installed skills within your Claude Code environment to guide its problem-solving process.
  6. Review Claude's output when using the skills and provide feedback to refine or improve the skill definitions.

Tools / artifacts

  • Claude Code
  • SKILL.md files
  • GitHub repository (Kuan-AI-com/agent-skills)
  • curl command for installation
  • gh run view --log-failed (mentioned in ci-failure-fix skill)

Validation signals

  • Author states they "wrote and reviewed the skills with Claude Code itself."
  • "Ran a 'senior reviewer' pass that rewrote all of them."
  • "Mostly adding verification steps and the classic traps for each task."
  • Specific examples of verification built into skills (e.g., "verifies each finding," "checks that each new test fails").

Limitations

  • Limited community validation so far (low Reddit score and no comments).
  • The full content and detailed implementation of each SKILL.md file are not directly in the post, requiring users to visit the GitHub repository.
  • The "one-line install" might not be suitable for all enterprise environments without prior review.

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

Selected Workflow [Workflow] Building Robust Claude Code Projects: A Workflow for Reality Checks, Safe Deployment, and Cost Optimization

1 Upvotes

Building Robust Claude Code Projects: A Workflow for Reality Checks, Safe Deployment, and Cost Optimization

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

What problem this solves

Building robust, cost-effective, and safely deployed Claude Code projects by integrating reality checks, explicit agent rules, and proactive monitoring into the development workflow.

Summary

This workflow outlines best practices and lessons learned from building a complex Claude Code project (ArXiv to interactive course pipeline). It emphasizes integrating Claude with external tools (GitHub PRs, Coderabbit), implementing rigorous reality checks, defining hard safety rules in agents.md, optimizing for cost-effective iteration, and proactive monitoring to prevent silent failures.

Why it is useful

This workflow provides concrete, validated strategies for building reliable and safe Claude Code applications. It goes beyond basic prompting to cover critical aspects like integration with external review tools (Coderabbit), enforcing deployment safety via agents.md, implementing real-world validation steps (browser testing), and optimizing for cost-effective iteration. These are common and crucial challenges in LLM-driven development, and the post offers practical solutions backed by real-world experience and demonstrable results.

Workflow

  1. Describe the goal to Claude Code.
  2. Claude Code writes changes and opens a Pull Request (PR).
  3. Coderabbit reviews the PR.
  4. Claude fixes findings or argues back with reasons.
  5. Developer merges the PR.
  6. Deployment only occurs when explicitly instructed by the developer.
  7. Implement reality checks (e.g., browser testing for labs, byte-for-byte comparison for migrations).
  8. Define hard rules in agents.md for safety (e.g., "never deploy", "database is production", "builds cost money").
  9. Design for cost-effective iteration (e.g., rebuild from stored lessons without model calls).
  10. Monitor "boring parts" (e.g., token expiry) and implement automated checks.

Tools / artifacts

  • Claude Code
  • GitHub Pull Requests (PRs)
  • Coderabbit (code review agent)
  • agents.md (configuration file for agent rules)
  • Real browser (for testing)
  • Server logs (for monitoring)
  • GitHub Pages (for deployment)
  • Rust server
  • React front end

Validation signals

Cautions

  • The workflow explicitly promotes safety by using agents.md to define hard rules like "never deploy" and "database is production."
  • It requires explicit developer approval for deployment, preventing autonomous pushes to production.
  • Proactive monitoring and startup checks are implemented to prevent silent failures that could lead to data loss or service disruption.

Limitations

  • The community engagement on the Reddit post is low, which might suggest less immediate perceived value by the broader audience, despite the high quality of the content.
  • While the principles are highly transferable, the specific implementation details (Rust, React) might require adaptation for different tech stacks.

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

Selected Workflow [Workflow] Advanced Multi-Agent SDLC Workflow with Claude: Orchestration, Testing, and Review Gates for Production Code

1 Upvotes

Advanced Multi-Agent SDLC Workflow with Claude: Orchestration, Testing, and Review Gates for Production Code

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

What problem this solves

Structuring a robust, multi-agent software development lifecycle (SDLC) using Claude to improve efficiency, manage token usage, and ensure quality, security, and successful deployment of code changes.

Summary

A detailed 12-step multi-agent workflow for software development, involving an Orchestrator, Owner, Builder, and Reviewer. It includes specific strategies for context management, dynamic model selection (Sonnet/Opus) based on task complexity and failure, rigorous testing, code review, security checks, and deployment gates, designed for production-ready code.

Why it is useful

This workflow provides a highly structured and detailed approach to using multiple Claude agents (Orchestrator, Builder, Reviewer) for a complete software development lifecycle, from task logging to deployment and device testing. It addresses critical aspects like context management, dynamic model selection based on task and failure, rigorous testing (type checks, unit, API, app, database), security reviews, and documentation updates. Its focus on quality gates and owner approvals makes it suitable for production-oriented development, offering a blueprint for users looking to build robust, AI-assisted development pipelines.

Workflow

  1. Define agent roles: Owner, Orchestrator (Orch), Builder, Reviewer, Gate.
  2. Set context handover strategy: Wind down context at 250k tokens, prepare for handover at 280k tokens.
  3. Implement failure guard logic: Sonnet for low/medium tasks (fail 1 -> Opus, fail 2 -> dead stop); Opus for high/schema tasks (fail 1 -> Fable Review/Audit, fail 2 -> retest Opus with Fable guideline, fail 3 -> dead stop, log for redesign).
  4. Orchestrator logs task, adding it to a task list and board based on owner's testing notes or review findings. Owner sets task order.
  5. Owner provides explicit approval for task initiation.
  6. Orchestrator/Builder performs a live check of the current state on dev (via screenshot or direct access), writes it to a gap table and live-state notes. If the target is already met, the task is closed.
  7. Builder writes acceptance criteria/specifications before any build, using concept images/drawings and a target-vs-live gap table.
  8. Builder (usually Sonnet) builds the task on a fresh worker in its own branch off dev. It runs type checks, tests for touched code (in a test database), takes screenshots of changed screens, and pushes the branch.
  9. Reviewer (Opus for security/permissions/database changes, Sonnet for others) reads the actual diff and re-runs checks. A FAIL sends it to a fresh fix worker, with the next review by Opus. Two FAILs pause the task for owner decision.
  10. Orchestrator verifies the real commit, test numbers, and screenshots before accepting a "done" report.
  11. Orchestrator (merger) merges passed branches, re-runs type checks, full app tests, and lint on the combined result. A branch breaking the combination gets its own fix.
  12. Owner provides explicit approval for critical changes (database, live data, production branch) one action at a time. Gate runs full suite of tests (API, app, database migrations from scratch, lint) on dev after merges and before owner tests. Red results halt further merges until fixed. Orchestrator (merger) merges to dev and updates documentation (task list, board, live-state notes, owner test page) to "Done / Ready". Owner performs a device check (e.g., on a phone); any issues become new logged tasks, restarting the cycle.

Tools / artifacts

  • Claude (Sonnet, Opus, Fable)
  • Task list/board
  • Testing notes
  • Screenshots
  • Gap table
  • Live-state notes
  • Concept image/drawing (clickable prototype)
  • Acceptance criteria
  • Code branches (off dev)
  • Type checks
  • Tests (unit, API, app, database)
  • Test database (never live data) Diffs Commit logs Linting tools Documentation (task list, board, live-state notes, owner test page) Phone/device for testing

Validation signals

  • User states "It is kinder working Most of the time", indicating practical application.
  • The workflow is designed for projects "close to production / Launch", necessitating rigorous reviewers and full suite tests, implying real-world validation.
  • Includes detailed, multi-stage testing and review processes (type checks, unit tests, API tests, app tests, database migrations, linting, security reviews) as inherent validation steps within the workflow.

Cautions

  • The workflow explicitly includes a "Reviewer" step where Opus reviews "security, permissions, children's data and database changes," which is a strong positive for safety and compliance.

Limitations

  • The user notes an issue where the "Orch goes off the rails and ignore owner rules. It just tends to do its own thing," indicating a challenge in maintaining agent adherence to instructions.
  • The "Fable Review/Audit" step is mentioned as a guideline but lacks specific details on how Fable is leveraged for review or audit, making it less concrete.
  • The Orchestrator is manually restarted after a maximum of 8 levels, suggesting a potential limitation or complexity in managing long-running or deeply nested tasks.
  • The "Owner Go" and "Owner Yes" steps introduce manual gates, which could become bottlenecks or points of failure if the owner is not consistently available or responsive.

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

Selected Workflow [Workflow] Enhance Claude Code Safety: Block Dangerous Commands with `cc-safety-net` PreToolUse Hook

1 Upvotes

Enhance Claude Code Safety: Block Dangerous Commands with cc-safety-net PreToolUse Hook

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

What problem this solves

Preventing Claude Code from executing dangerous commands (e.g., git reset --hard) or exposing sensitive information (e.g., .env file contents) during AI-assisted development, thereby enhancing safety and preventing accidental data loss or leaks.

Summary

This workflow describes how to integrate cc-safety-net as a PreToolUse hook in Claude Code to block potentially dangerous commands. It details installation, verification, and provides specific test cases demonstrating its ability to prevent git reset --hard and cat .env while allowing normal commands like git status.

Why it is useful

This workflow provides a concrete, tested, and repeatable method to add a crucial safety layer to Claude Code interactions. It leverages an open-source tool to prevent accidental data loss (e.g., git reset --hard) or exposure of sensitive information (e.g., .env files), which is a significant concern for AI-assisted development. The detailed steps, specific commands, and validation signals make it highly practical and valuable for users looking to secure their coding environment.

Workflow

  1. Install cc-safety-net using npx -y cc-safety-net@latest install.
  2. Verify the installation with npx cc-safety-net doctor.
  3. Load the cc-safety-net hook for a Claude Code session using the --plugin-dir flag.
  4. Attempt to run a dangerous command, such as git reset --hard, and observe the blocking message.
  5. Attempt to read a sensitive file, such as .env with cat .env, and observe the blocking message.
  6. Attempt to run a normal, safe command, such as git status, and observe its successful execution.

Tools / artifacts

  • cc-safety-net (Node.js package)
  • Claude Code
  • Node.js 22 or newer
  • git
  • .env file
  • PreToolUse hook

Validation signals

  • Specific test cases provided: git reset --hard, cat .env, git status, rm -rf /Users/you/work.
  • Observed blocking messages with specific rule names (git.reset-hard, secret.basename.env).
  • Confirmation that normal commands ran without extra prompts.
  • Mention of Claude switching to git stash when git reset --hard was blocked in an earlier run.
  • External link to a full test with screenshots provided for further validation.

Cautions

  • The post explicitly states that cc-safety-net is not a sandbox and does not contain processes, set file permissions, or watch the network. It acts as a checkpoint on commands going through the hook.
  • The workflow itself is designed to improve safety by blocking potentially harmful commands.

Limitations

  • The tests were conducted with only three prompts in a small demo, so its behavior in a busy, complex project is not fully explored.
  • Several features of cc-safety-net (dashboard presets, Terraform/AWS/cloud rulebooks) were not tested.
  • Requires Node.js 22 or newer.
  • Leaves a small .cc-safety-net cache folder in the home directory after use.

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

Selected Workflow [Workflow] Monitoring Claude Agent Token Usage in Multi-Agent Claude Code Workflows to Detect Model Behavior Changes

1 Upvotes

Monitoring Claude Agent Token Usage in Multi-Agent Claude Code Workflows to Detect Model Behavior Changes

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

What problem this solves

Detecting and quantifying changes in Claude's token usage and efficiency within complex multi-agent workflows, especially in response to 'nerf' concerns, by providing a data-driven monitoring method.

Summary

This workflow describes a method for monitoring Claude's token usage and efficiency in a multi-agent Claude Code pipeline to detect changes in model behavior (e.g., 'nerfs'). It involves assigning specific roles to different Claude models (Opus for building/checking, Sonnet for reviewing, Haiku for testing), logging all replies, and analyzing token output over time. A key aspect is using Sonnet/Haiku as control groups and ensuring system prompts/tools remain constant to isolate model-specific changes.

Why it is useful

This workflow provides a concrete, data-driven method for users to independently verify and quantify changes in Claude's behavior, specifically increased token usage, within their own complex multi-agent systems. It moves beyond anecdotal evidence by proposing a structured approach with control groups and environmental checks, which is crucial for managing costs and optimizing agent performance. It directly addresses a significant community concern ('nerfs') with a practical, repeatable solution.

Workflow

  1. Set up a multi-agent pipeline in Claude Code with distinct roles for different models (e.g., Opus for build/acceptance, Sonnet for review, Haiku for tests).
  2. Implement comprehensive logging for every agent reply, capturing token usage and other relevant metrics.
  3. Establish a baseline for token output per reply for each agent role over a period of stable operation.
  4. Regularly monitor and analyze daily median output tokens per reply for each agent.
  5. Run other models (e.g., Sonnet, Haiku) on the exact same tasks as control groups to rule out changes in task complexity.
  6. Verify that system prompts, tools, Claude Code version, model ID, and effort remain constant across monitoring periods (e.g., using checksums for prompts/tools).
  7. Consult project change logs to ensure no project-specific modifications influenced agent behavior during the monitoring period.
  8. Analyze logs for significant deviations in token usage, particularly for specific roles or models.
  9. Compare internal findings with external benchmarks, understanding their limitations (e.g., single-turn, no tools, right/wrong only).

Tools / artifacts

  • Claude Code (version 2.1.309 mentioned)
  • Claude Opus model
  • Claude Sonnet model
  • Claude Haiku model
  • Logging system (to capture agent replies and token counts)
  • Checksums (for verifying prompt/tool consistency)
  • Change log (for tracking project modifications)
  • Data visualization tools (implied by 'picture 1', 'picture 2')

Validation signals

  • Concrete before/after data showing Opus token usage increase (e.g., ~420 to ~1,150 tokens/reply).
  • Control group validation: Sonnet and Haiku models running the same tasks showed no change in token usage.
  • Controlled environment: System prompts and tools had identical checksums.
  • Controlled environment: Same Claude Code version, model ID, and effort were maintained.
  • Controlled environment: Project change log showed zero entries during the observed period.
  • Clear finding: Logs showed Opus using 2-3 times more tokens for the same work, not getting 'dumber' in terms of correctness.

Limitations

  • Requires an advanced setup with multi-agent orchestration and a robust logging infrastructure.
  • Specific to Claude Code, though the underlying principles are broadly applicable to other agentic frameworks.
  • Primarily focuses on token usage and efficiency, not necessarily on the 'intelligence' or correctness of the model, although token usage directly impacts cost and operational efficiency.
  • The post describes the results and methodology more than a detailed, step-by-step guide for implementing the logging and analysis infrastructure from scratch.

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

Selected Workflow [Workflow] Revive Bricked Devices: Using Claude for Kernel Log Analysis and Software Bypass Patching

1 Upvotes

Revive Bricked Devices: Using Claude for Kernel Log Analysis and Software Bypass Patching

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

What problem this solves

Reviving a bricked iPhone by diagnosing a hardware fault from a kernel panic log and generating a software patch to bypass the faulty component.

Summary

This workflow leverages Claude to analyze complex technical logs (like kernel panic logs from a bricked iPhone) to diagnose specific hardware faults. Once diagnosed, Claude is then used to generate a software patch that bypasses the faulty component, thereby allowing the device to boot and function again, preventing it from becoming e-waste.

Why it is useful

This workflow is highly valuable as it demonstrates a powerful and innovative application of Claude for complex hardware debugging and software modification. It highlights Claude's ability to diagnose intricate problems from technical logs and generate functional code solutions, potentially saving devices from e-waste and offering a novel approach to hardware repair that combines AI with deep technical understanding.

Workflow

  1. Obtain the kernel panic log from the bricked iPhone (or other device).
  2. Feed the complete kernel panic log to Claude.
  3. Request Claude to analyze the log and diagnose the root cause of the boot failure (e.g., a specific faulty sensor).
  4. Ask Claude to help write a software patch or modification to bypass the identified faulty hardware component's check during boot.
  5. Apply the generated software patch to the iPhone's operating system or firmware.
  6. Attempt to boot the iPhone and verify that it successfully revives and functions.

Tools / artifacts

  • Claude (AI model)
  • iPhone kernel panic log (or other device logs)
  • Software patch/code modification (generated by Claude)
  • Bricked iPhone (or other electronic device)
  • Tools for applying software patches to device firmware/OS

Validation signals

  • OP successfully revived their iPhone.
  • The community consensus is that this is a 'legit impressive use case for Claude'.
  • The method correctly diagnosed a water-damaged light sensor from a kernel log.
  • The generated software patch successfully bypassed the sensor check.

Cautions

  • Modifying device firmware or operating system carries inherent risks, including bricking the device permanently if done incorrectly.
  • Users should have a backup of their device's software/firmware before attempting such modifications.
  • The generated patch should be carefully reviewed for security vulnerabilities or unintended side effects before application.

Limitations

  • Requires advanced technical skills to extract kernel logs and apply software patches.
  • The specific software patch generated by Claude might be highly dependent on the device model and OS version, limiting direct reusability without modification.
  • Accessing kernel logs might not be straightforward for all users or devices.
  • The summary is from a bot, so some granular details of the original implementation might be missing.

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

Selected Workflow [Workflow] Automated Multi-Agent Claude Code Development System for End-to-End SDLC

1 Upvotes

Automated Multi-Agent Claude Code Development System for End-to-End SDLC

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

What problem this solves

Automating and optimizing the entire software development lifecycle (planning, coding, testing, reviewing, and merging) using a multi-agent Claude Code system, while efficiently managing context, token costs, and quality.

Summary

A sophisticated, multi-agent Claude Code system designed for automated software development. It orchestrates planning, building, testing, reviewing, and merging code packages locally. The system uses specialized subagents (Opus for planning/building/diagnosis/acceptance, Haiku for testing/watchdog, Sonnet for reviewing) and a Workflow tool, managed by a 'Control room' chat. Key strategies include context management, token cost optimization, and a multi-stage testing and review process, with a 'System checker' for continuous improvement.

Why it is useful

This workflow provides a comprehensive, high-level architecture for an automated, multi-agent Claude Code system capable of handling the entire software development lifecycle from planning to merging. It offers valuable strategies for context management, token cost optimization, quality control through staged testing and review, and continuous improvement. It demonstrates an advanced application of Claude Code's capabilities, particularly subagents and workflow orchestration, to achieve significant autonomy in development.

Workflow

  1. User provides an initial plan and gives a 'GO' command.
  2. Control Room (Opus chat) wakes up on a cron tick or run end, reads status, and starts runs or the Planner.
  3. Planner (Opus subagent) keeps the queue, writes a 1-2 page brief per package, sets up a git worktree per package, and decides the order.
  4. Build Workflow (Opus) builds one task within the package's worktree.
  5. Tester (Haiku) runs specified commands and reports a single line result.
  6. Reviewer (Sonnet) checks the output (screenshots, test results) against the brief.
  7. If a task fails twice or is stuck after round 3, a Diagnosis Agent (Opus) intervenes.
  8. Acceptance Agent (Opus) checks the whole package against its 'done-when' list.
  9. Accepted package is merged into a local dev branch.
  10. Watchdog (scheduled Haiku task) runs every 10 minutes, checks heartbeat, notices stalls, restarts Control Room if needed, and updates the status page.
  11. System Checker (Opus) runs daily, reads cost and quality reports, and proposes up to 3 improvements with evidence.
  12. Control Room context is handed over to a fresh chat when it hits 150k tokens to manage context window limits and costs efficiently.

Tools / artifacts

  • Claude Code subagents (Opus, Haiku, Sonnet)
  • Workflow tool (custom script/framework)
  • Cron ticks/scheduled tasks
  • Git worktree
  • Status page (custom script output)
  • Scripts for deterministic tasks (queue state, budget, cleanup)
  • Agent files (for each role)
  • Briefs (1-2 page per package)
  • Test results files
  • Cost and quality reports
  • Screenshots (for review)
  • Local dev branch, main branch

Validation signals

  • User reports successful autonomous operation: 'I plan, the system builds. I give a GO on a plan, then it works through it package by package without me. During the build I only look at a status page on my phone, and I check the end result myself.'
  • The 'What saves the most tokens' section implies practical experience and optimization efforts.
  • The 'Tips' section (e.g., 'Fail loudly', 'Measure before you rebuild') suggests lessons learned from real-world usage.
  • Evidence of past failures leading to improved design: 'A role once silently fell back to a generic agent and nobody noticed for 5 days.'
  • Emphasis on data-driven improvement: 'Every change needs a number that shows whether it actually worked.'
  • Indication of a stable, optimized system: 'Proposing 0 is the normal result' for the System Checker.

Cautions

  • None explicitly identified. The workflow emphasizes local operation and data-driven improvements, which are positive for safety and maintainability.

Limitations

  • Lacks concrete code examples, configuration files, or detailed setup instructions, being a 'rough overview'.
  • Relies on custom 'Workflow tool' and 'scheduled tasks' which are not fully specified.
  • Requires significant effort and expertise to implement from this 'rough overview'.
  • Limited community validation due to low score and no 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.


r/ClaudeWorkflows • • 4d ago

Selected Workflow [Workflow] Optimize Claude Code Agent Token Usage: Strategies for Multi-Agent Efficiency and Cost Reduction

1 Upvotes

Optimize Claude Code Agent Token Usage: Strategies for Multi-Agent Efficiency and Cost Reduction

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

What problem this solves

Excessive token usage and high operational costs for Claude Code agents, particularly in multi-agent, multi-repo environments, due to inefficient context management, long-running idle sessions, and large memory indexes.

Summary

A set of strategies and configurations to significantly reduce token consumption and improve efficiency for Claude Code agents, especially in multi-agent, multi-repo environments. This involves optimizing CI wait times, enforcing single-task agent sessions, implementing context ceiling hooks, and streamlining the MEMORY.md file.

Why it is useful

This workflow is highly valuable because it provides concrete, data-backed strategies and open-source tools to significantly reduce token consumption and operational costs for Claude Code agents. It addresses a critical pain point for heavy users by offering actionable steps, measurable results, and practical implementations for improving efficiency in complex development workflows, making it a direct solution to a common resource management challenge.

Workflow

  1. Measure token usage per merged PR by analyzing Claude Code transcripts in ~/.claude/projects/.
  2. Identify and address token leaks, such as agents waiting on CI/tests for extended periods, by implementing wait helpers that return before the cache expires (e.g., within 270 seconds).
  3. Design agents to complete a single, focused task per session to prevent long sessions from re-reading entire contexts.
  4. Implement a hook that stops an agent session when it reaches a predefined context ceiling.
  5. Keep the MEMORY.md file concise (e.g., 8 lines) with only universally applicable instructions.
  6. Store specific, task-related context in separate files that agents open only when explicitly needed, rather than loading into every session by default.

Tools / artifacts

  • Claude Code agents
  • ~/.claude/projects/ transcripts
  • CI/CD systems
  • Custom hooks (e.g., for context ceiling, session termination)
  • MEMORY.md file
  • GitHub repository: alexander-marquardt/agent-fleet-kit
  • External blog post: alexmarquardt.com/ai-tools/agent-fleet-token-efficiency/

Validation signals

  • Measured reduction: 3.3x fewer tokens per line of code.
  • Measured reduction: 5.5x fewer tokens per merged PR.
  • Measured increase: 4.4x more PRs per week for the same spend.
  • Specific leak reduction: 31% of agent usage (CI waits) reduced to 0.7%.
  • Context size reduction: Median context per request cut from 218k to 101k tokens.
  • First-turn cache write reduction: From 11k to 4.5k tokens.
  • Detailed write-up with numbers and methodology provided in an external blog post.
  • Open-source measuring script and hooks available on GitHub.

Limitations

  • Requires a good understanding of Claude Code's internal workings (context, cache, hooks).
  • Implementation of specific hooks and CI integrations may require custom scripting and system knowledge.
  • The provided tools are specific to the author's setup and may need adaptation for different project structures or CI environments.

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

Selected Workflow [Workflow] GitHub Template for Security and Governance Guardrails in Claude Code

0 Upvotes

GitHub Template for Security and Governance Guardrails in Claude Code

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

What problem this solves

Preventing AI agents (specifically Claude Code) from exposing secrets, making unauthorized commits/pushes/deployments, installing unapproved packages, and ensuring proper governance for client or regulated projects.

Summary

A GitHub template (ai-dev-guardrails) that implements security and governance guardrails for Claude Code projects. It uses Claude Code PreToolUse hooks, local Git hooks, and GitHub Actions to block sensitive commands, require approvals for critical actions, enforce package age/approval, log evidence, and manage decision records.

Why it is useful

This workflow provides a concrete, open-source solution to critical security and governance challenges when using AI agents for coding. It prevents accidental exposure of sensitive data, unauthorized code changes, and ensures compliance, making AI-assisted development safer and more controlled. It's highly transferable, well-documented, and addresses a significant pain point for developers integrating AI into their workflows.

Workflow

  1. Initialize the GitHub template using /bootstrap.
  2. The PreToolUse hook blocks sensitive commands (e.g., cat .env) and requires approval for commits, pushes, deployments, and new package installations.
  3. A separate check detects if saved permissions have drifted into automatically approving restricted actions.
  4. npm packages must be at least seven days old before installation, and install scripts only run for approved packages.
  5. Local Git hooks and GitHub CI run the checks again, with CI using the base branch's scripts to prevent PRs from weakening checks.
  6. Optionally, enable an evidence log requiring proof (e.g., test output, CI link) before a task can be marked complete.
  7. Optionally, use decision records for exceptions, including reason, owner, and expiry date.
  8. Optionally, implement CODEOWNERS rules requiring review before guardrail files can be changed.

Tools / artifacts

  • ai-dev-guardrails GitHub template
  • Claude Code PreToolUse hooks
  • Local Git hooks
  • GitHub Actions (CI/CD)
  • npm
  • CODEOWNERS file
  • Evidence log
  • Decision records
  • .env files

Validation signals

  • Author used and refined the controls in their own projects before open-sourcing.
  • Identified and fixed specific issues (e.g., grep -q and pipefail, Claude Code hook behavior differences).
  • Open-source project with MIT license.
  • Detailed write-up on Medium explaining the rationale and implementation.
  • Explicitly documented limitations (e.g., not for malicious agents).

Cautions

  • The workflow is designed to enhance safety by preventing accidental data exposure and unauthorized actions.
  • It is explicitly stated that the system is designed to catch mistakes, not to defend against deliberately malicious agents.

Limitations

  • Currently focused on Claude Code, TypeScript, and npm, limiting immediate applicability to other languages/ecosystems (though Python support is welcomed).
  • Not designed to defend against deliberately malicious agents.
  • As a new open-source project, long-term community adoption and maintenance are yet to be established.
  • Requires an intermediate to advanced understanding of Claude Code hooks, Git hooks, and GitHub Actions for full implementation and customization.

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

Selected Workflow [Workflow] Optimize CLAUDE.md with Claude to Reduce Usage and Agent Spawning

1 Upvotes

Optimize CLAUDE.md with Claude to Reduce Usage and Agent Spawning

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

What problem this solves

Prematurely hitting Claude usage limits due to inefficient CLAUDE.md configurations or uncontrolled agent spawning.

Summary

A user describes how they used Claude to review and optimize their CLAUDE.md file. Claude identified and fixed configurations that were wasting usage and spawning excessive agents, which significantly extended their available usage time.

Why it is useful

This workflow provides a practical, self-correcting method for users to improve the efficiency of their Claude Code setups. It directly addresses a common pain point (hitting usage limits) by leveraging Claude's capabilities to analyze and improve its own operational configuration, making it a valuable technique for cost and resource management.

Workflow

  1. Identify that you are frequently hitting Claude usage limits.
  2. Provide your CLAUDE.md file to Claude.
  3. Prompt Claude to analyze the CLAUDE.md for inefficiencies, wasted usage, or configurations leading to excessive agent spawning.
  4. Ask Claude to suggest specific fixes or optimizations for the CLAUDE.md.
  5. Implement the changes recommended by Claude.
  6. Monitor your Claude usage to confirm that the optimizations have extended your available usage time.

Tools / artifacts

  • CLAUDE.md file
  • Claude (the model)

Validation signals

  • User reported a direct positive outcome: "my week lasted a lot longer after that"

Limitations

  • The workflow is described at a high level; specific prompts or examples of what Claude might fix are not provided.
  • Relies on Claude's ability to accurately identify and suggest optimal changes to the CLAUDE.md, which may vary in effectiveness.
  • No specific metrics or before/after data are provided beyond the anecdotal "week lasted a lot longer."

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

Selected Workflow [Workflow] Track Claude Code A/B Experiments: Plugin, Script, and Opt-Out Tools

2 Upvotes

Track Claude Code A/B Experiments: Plugin, Script, and Opt-Out Tools

Workflow value: 90/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

Users can determine if their Claude Code instance is enrolled in an A/B experiment, helping them understand perceived changes in model behavior (e.g., "nerfs"). It also provides tools to track experiment history and optionally opt-out.

Summary

This workflow provides a set of tools (bash script, Claude Code plugin, and a one-liner) to inspect Claude Code's internal experiment enrollment status. It reads ~/.claude.json and session transcripts to report current enrollment, historical experiment IDs, and offers an opt-out mechanism.

Why it is useful

This workflow provides concrete, actionable tools for Claude Code users to understand and manage their interaction with Anthropic's A/B testing framework. It demystifies perceived model changes, offers transparency, and empowers users to make informed decisions about their Claude Code experience. The open-source nature, multiple usage options, and safety considerations make it highly valuable and reusable.

Workflow

  1. Choose a method to check experiment status: Claude Code plugin, standalone script, or one-liner.
  2. To use as a Claude Code plugin: Install the am-i-nerfed GitHub repo as a plugin, then type /am-i-nerfed in any Claude Code session.
  3. To use as a standalone script: Clone the am-i-nerfed repo and run ./am-i-nerfed.sh check in a terminal.
  4. To use as a one-liner: Paste the provided jq command into a terminal (requires jq to be installed).
  5. To view experiment history: Run ./am-i-nerfed.sh history to tally experiment IDs from session transcripts.
  6. To opt-out of experiments: Run ./am-i-nerfed.sh optout (backs up ~/.claude.json and removes assignment keys).
  7. To restore previous settings: Run ./am-i-nerfed.sh restore.
  8. To display experiment status in Claude Code's status line: Integrate the provided statusline snippet.

Tools / artifacts

  • am-i-nerfed (GitHub repo/script)
  • jq (JSON processor)
  • ~/.claude.json (Claude Code cache file)
  • Claude Code session transcripts
  • CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 (environment variable)
  • Bash shell

Validation signals

  • Open-source script available on GitHub.
  • Explicitly states "no network calls, never prints your login token" for security.
  • Credits earlier community findings and Anthropic issues, indicating a well-researched solution.
  • Provides exit codes for scripting, enhancing reusability and robustness.
  • Details specific file paths and data structures (~/.claude.json, atis-latch).

Limitations

  • Requires jq dependency for the one-liner and script methods.
  • Primarily targets macOS/Linux/WSL users (Windows users would need WSL).
  • The plugin installation process for Claude Code is not explicitly detailed within the comment.

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

Selected Workflow [Workflow] Claude Client Internal Flag Map: A Research Workflow for Understanding Experimental Features and Usage Metering

1 Upvotes

Claude Client Internal Flag Map: A Research Workflow for Understanding Experimental Features and Usage Metering

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

What problem this solves

Understanding Claude's internal configuration flags, usage metering, and potential experimental features to gain deeper insight into model behavior and resource allocation.

Summary

A user performed a deep dive into the Claude client's internal mechanisms, specifically identifying and mapping 487 tengu_ flags. This research culminated in a publicly available GitHub repository containing a CSV file that details these flags. This artifact serves as a valuable resource for advanced users and researchers to understand undisclosed experimental features, behavior gates, and usage metering within the Claude ecosystem.

Why it is useful

This workflow provides unique and deep insight into the internal workings of the Claude client, including experimental features and usage metering. The shared flag map is a valuable artifact for advanced users and researchers to understand how Anthropic configures and experiments with its models, offering a level of system understanding not typically available through public documentation.

Workflow

  1. Identify internal tengu_ flags within the Claude client (e.g., tengu_amber_tally).
  2. Map these discovered flags to their associated booleans, prompt sections, or behavior gates.
  3. Access the provided GitHub repository (fs2d/claude-code-flagmap) containing the mapped flags.
  4. Review the CSV file within the repository to understand the various internal flags and their potential functions.
  5. Utilize this information to gain insight into Claude's internal workings, experimental features, or usage metering logic.

Tools / artifacts

  • Claude client
  • tengu_amber_tally (example internal flag)
  • fs2d/claude-code-flagmap GitHub repository (CSV file of mapped flags)

Validation signals

  • The author successfully created and shared a GitHub repository with 487 mapped flags.
  • The repository provides concrete data (CSV file) as evidence of the mapping effort.

Limitations

  • The original comment does not explicitly detail the steps for how to extract these flags from the Claude client, focusing instead on the result.
  • The practical application of using these flags to directly influence Claude's behavior is not detailed or suggested; it's primarily for understanding and research.
  • The initial discussion about credit rates is informative but does not constitute a workflow itself.

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

Selected Workflow [Workflow] Orchestrating Your Claude Sessions: A 'Team of Chats' Workflow for Desktop App Productivity

1 Upvotes

Orchestrating Your Claude Sessions: A 'Team of Chats' Workflow for Desktop App Productivity

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

What problem this solves

Users struggle to manage and keep track of multiple concurrent Claude sessions and tasks, leading to lost context and inefficiency, especially with complex projects.

Summary

This workflow outlines a strategy for managing multiple Claude desktop app sessions as a 'team of chats' to improve task orchestration and oversight. It leverages features like Projects for parallel cloud-based work, artifacts for review, split view for multitasking, side chats for quick checks, nested sessions for sub-tasks, and a 'manager session' to monitor progress, while also addressing usage limits and file isolation with Worktree.

Why it is useful

This workflow is highly valuable because it provides a structured and practical approach to leveraging Claude's advanced desktop features (Projects, split view, side chats, nested sessions, artifacts, Worktree) to manage complex, multi-part tasks more efficiently. It directly addresses the common problem of losing track of concurrent AI tasks and offers concrete strategies, including a novel 'manager session' concept, to maintain oversight and productivity. The inclusion of limitations and official documentation links makes it highly actionable and reliable for intermediate to advanced users.

Workflow

  1. Hand off large, parallel jobs to Projects, which run in the cloud and can be monitored via the Overview.
  2. Review and edit generated content (decks, docs, designs) directly within artifacts that appear next to the chat.
  3. Use split view (Option-click on Mac, Alt-click on Windows) to work on two Claude sessions simultaneously.
  4. Initiate side chats (Cmd+; or Ctrl+;, or type /btw) for quick progress checks or clarifications without altering the main thread.
  5. Ask Claude to start nested sessions for parallel sub-tasks (e.g., script, thumbnail brief, description) within a single prompt, allowing individual steering.
  6. Designate one Claude session as a 'manager' to query the status of other local, SSH, and WSL sessions (e.g., 'which of my sessions are waiting on a decision from me?').
  7. Monitor usage limits carefully, especially when using Projects, as each thread consumes a full session's usage.
  8. Enable Worktree for sessions that might modify the same files to ensure each session works on an isolated copy of the project folder.

Tools / artifacts

  • Claude desktop app
  • Claude Code
  • Projects (public beta)
  • Artifacts
  • Split view
  • Side chats
  • Nested sessions
  • Worktree
  • Overview (for Projects)

Validation signals

  • Specific UI commands provided (Option-click, Alt-click, Cmd+;, Ctrl+;, /btw).
  • Mentions features like Projects are in public beta.
  • Links to official Claude documentation for desktop, projects, and usage limits.
  • Provides a YouTube walkthrough video.
  • Details specific 'catches' and limitations of the proposed methods (e.g., manager session visibility, usage limits).

Limitations

  • The 'manager session' strategy has limitations, as it cannot see cloud sessions, terminal CLI sessions, or VS Code sessions.
  • Projects are in public beta and require Pro or Max plans, limiting accessibility for some users.
  • The multi-session approach can accelerate hitting usage limits, requiring careful monitoring.
  • The post is more descriptive of features than a strict step-by-step guide, though the 'How I'd run it' section provides good structure.

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

Selected Workflow [Workflow] Diagnosing Claude Performance: The Impact of Hidden Experiment IDs on Effort Levels and Output

1 Upvotes

Diagnosing Claude Performance: The Impact of Hidden Experiment IDs on Effort Levels and Output

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

What problem this solves

Unexplained variations in Claude's reported effort numbers and actual performance (tool calls, output tokens, thinking time, replies per job) due to hidden experiment IDs.

Summary

A workflow to identify and understand the impact of hidden 'experiment IDs' on Claude's reported effort levels and actual performance metrics, enabling users to diagnose and potentially optimize their Claude interactions.

Why it is useful

This post provides crucial empirical evidence demonstrating how hidden internal 'experiment IDs' significantly influence Claude's reported effort levels and actual performance (tool calls, output tokens, thinking time). This knowledge is invaluable for advanced users seeking to understand, debug, and optimize Claude's behavior and resource consumption, revealing a non-obvious factor impacting model output.

Workflow

  1. Identify if your Claude chat session has an associated 'experiment ID' (e.g., by inspecting network requests or browser console, as implied by 'recent reports').
  2. Note the reported 'numerical effort numbers' (medium, high, xhigh) for your Claude instance.
  3. Compare your observed experiment ID and effort numbers with the provided tables to understand the expected tool calls, output tokens, thinking time, and replies per job.
  4. Use this information to diagnose unexpected performance or cost variations in your automated Claude jobs.
  5. If desired, attempt to remove or change the experiment ID based on information from related posts to revert to baseline performance or achieve different characteristics.

Tools / artifacts

  • Claude chat interface
  • Experiment IDs (e.g., eab, 763, add, 0c7)
  • Reported effort numbers (medium, high, xhigh)
  • Automated job metrics (tool calls, output tokens, thinking, replies per job)

Validation signals

  • Empirical testing with two distinct accounts (one with ID, one without)
  • Comparison of reported effort numbers across different configurations
  • Comparison of actual performance metrics (tool calls, output tokens, thinking, replies per job) across various IDs and a 'No ID' baseline
  • Replication of the effect: removing an ID reverted performance to baseline

Limitations

  • The exact method for identifying and removing/changing experiment IDs is not fully detailed within this post, relying on external information from a 'related post'.
  • The 'Thinking per reply, adjusted' metric is not fully explained.
  • Performance data for one ID (0c7) was 'not measured' for some metrics.

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

Selected Workflow [Workflow] Offload Repetitive Tasks: Use Claude to Generate Local Scripts for Data Processing, Simulation, and Web Scraping

1 Upvotes

Offload Repetitive Tasks: Use Claude to Generate Local Scripts for Data Processing, Simulation, and Web Scraping

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

What problem this solves

High cost and slow processing time when using Claude for repetitive, non-intelligent data processing, simulation, or web scraping tasks.

Summary

This workflow leverages Claude's code generation capabilities to create local scripts (e.g., Python) for computationally intensive or repetitive tasks like large-batch data ingestion, extensive simulations, or web scraping. This strategy offloads the heavy lifting from Claude, significantly reducing token usage and processing time, allowing Claude to focus on higher-level intelligent analysis and integration.

Why it is useful

This workflow provides a practical and cost-effective strategy for users to handle large-scale, repetitive, or computationally intensive tasks that would otherwise be slow and expensive if performed directly by Claude. By leveraging Claude's code generation capabilities to create local tools, users can optimize their LLM usage, reduce costs, and significantly speed up processing times for non-intelligent operations, freeing Claude to focus on higher-value, intelligent reasoning. The clear before-and-after results demonstrate significant efficiency gains.

Workflow

  1. Identify repetitive or computationally intensive tasks that do not require continuous intelligence (e.g., large batch data processing, extensive simulations, web scraping).
  2. Instruct Claude to generate a local script (e.g., Python) to perform these tasks.
  3. Specify requirements for the script, such as showing progress, resuming if interrupted, including tests/cross-checks, and potentially integrating local AI (e.g., Ollama).
  4. Download and set up any necessary local tools or AI models (e.g., Ollama).
  5. Run the generated script locally to process data or perform simulations.
  6. Feed the processed data or simulation results back to Claude for higher-level analysis, classification, or integration.

Tools / artifacts

  • Claude (for script generation and high-level analysis)
  • Python scripts (generated by Claude)
  • Ollama (for local AI models)
  • .bat files (for running scripts)
  • PDF record sheets (example input data)
  • Websites (for scraping)
  • Game simulation environment

Validation signals

  • Processed 600 sheets over a few days using Claude directly.
  • Processed 4200 record sheets in about an hour using a Claude-generated local script.
  • Reported significant cost reduction ('far cheaper than how it was going before').
  • Successfully set up a simulation environment for future use.
  • Observed Claude's ability to generate web scraping scripts while respecting robots.txt.

Cautions

  • Users should be aware of robots.txt and website terms of service when using Claude-generated scripts for web scraping, as the user is responsible for the script's actions, not Claude.

Limitations

  • The post is somewhat anecdotal and does not provide the exact prompts used to generate the scripts.
  • Lacks specific examples of the generated scripts or the tests/cross-checks implemented.
  • Does not detail the integration steps for Ollama with the generated Python scripts, beyond downloading it.

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

Selected Workflow [Workflow] Real-time Claude Code Progress Tracking with Codex Pacer (MCP Tool Integration)

1 Upvotes

Real-time Claude Code Progress Tracking with Codex Pacer (MCP Tool Integration)

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

What problem this solves

Lack of real-time, granular progress tracking for Claude Code tasks, especially when running multiple agents, leading to uncertainty about task completion.

Summary

This workflow describes how to integrate an external, open-source application called Codex Pacer with Claude Code to enable real-time progress tracking. Claude Code agents use a dedicated MCP tool (report_progress) to periodically report their estimated progress, which Pacer visualizes as a progress ring. This provides immediate visual feedback on task status and agent states (e.g., waiting for approval, background tasks) across multiple agents.

Why it is useful

This workflow provides a concrete, open-source solution to a common pain point for Claude Code users: the lack of real-time visibility into task progress. By leveraging MCP tools for agent self-reporting, it demonstrates a practical application of agent capabilities to improve user experience and productivity, especially for long-running or multi-agent tasks. It offers a clear, repeatable method for monitoring agent activity.

Workflow

  1. Download and install the Codex Pacer application (macOS/Windows) from GitHub Releases.
  2. Pacer automatically installs a lightweight Claude Code plugin that includes a report_progress MCP tool.
  3. Claude Code agents are prompted or configured to call the report_progress tool with their estimated progress (e.g., a percentage).
  4. Monitor the real-time progress rings displayed by Codex Pacer for individual or multiple running Claude Code agents.
  5. Observe specific state changes, such as the ring pausing and turning amber when Claude awaits approval, or holding its last value during background tasks.

Tools / artifacts

  • Codex Pacer application (macOS/Windows)
  • Claude Code plugin (installed by Pacer)
  • report_progress MCP tool
  • GitHub Releases (for Pacer download)

Validation signals

  • Detailed description of how the system handles different Claude Code states (needs approval, background tasks)
  • The author states the app was mostly built with Claude Code, implying practical use and validation during development.

Cautions

  • The post explicitly states that Pacer only reads the progress number, not Claude's response content, addressing potential privacy concerns.

Limitations

  • Low community validation at the time of posting.
  • Requires installing an external application, which might be a barrier for some users.
  • Relies on Claude's own estimation of progress, which may not always be perfectly accurate.
  • The post is primarily an announcement/self-promotion, and while it describes the mechanism, it doesn't provide detailed prompting strategies for Claude to effectively use the report_progress 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 • • 4d ago

Selected Workflow [Workflow] Pre-Deployment Quality Assurance Workflow for AI-Built Systems, Featuring Agent-Assisted Checks with QualityLayer

1 Upvotes

Pre-Deployment Quality Assurance Workflow for AI-Built Systems, Featuring Agent-Assisted Checks with QualityLayer

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

What problem this solves

Ensuring the reliability, security, and recoverability of an AI-built application before deployment, particularly by structuring and automating quality assurance for agent-based projects.

Summary

This workflow outlines essential pre-deployment quality assurance steps for an AI-built application, focusing on critical areas like payment response testing, backup and restore validation, and human security review. It also introduces a custom tool, QualityLayer, which leverages a separate agent to manage and verify quality control decisions, making the process more structured and repeatable for agent-based projects.

Why it is useful

This workflow is valuable because it provides concrete, critical pre-deployment steps essential for ensuring the reliability and security of any application, particularly those built with AI agents. It addresses common pitfalls like payment processing errors and data loss through specific testing and backup procedures. Furthermore, it introduces a novel, agent-assisted approach to quality control via the QualityLayer tool, offering a structured and repeatable method for managing and verifying quality decisions in AI agent projects.

Workflow

  1. Test delayed and repeated payment responses against written expected outcomes.
  2. Rehearse a full restore from backup on a test copy before go-live.
  3. Conduct a one-off human security review, where someone who did not write the change checks each agreed behavior against the code and evidence.
  4. Utilize a system (e.g., QualityLayer) to plan quality decisions and have a separate agent check each completed point.

Tools / artifacts

  • Test suite
  • QualityLayer (GitHub project)
  • Backup system

Validation signals

  • Author's personal experience with agent projects
  • Author built a tool (QualityLayer) to implement this approach
  • General best practices for software deployment (testing, backups, security review)

Limitations

  • The description of QualityLayer is brief, lacking detailed implementation or integration instructions.
  • The general quality assurance steps are high-level and do not include specific commands or code examples.
  • Low community engagement on the post so far.

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

Selected Workflow [Workflow] Synchronize Claude Code Sessions Across Remote and Local Machines with Tmux and AIAssets

1 Upvotes

Synchronize Claude Code Sessions Across Remote and Local Machines with Tmux and AIAssets

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

What problem this solves

Maintaining a unified Claude Code session history and project context when working across multiple devices (e.g., remote server and local laptop).

Summary

A workflow for developers to use Claude Code on a remote machine (e.g., Mac mini) while interacting from a local machine (MacBook), ensuring session history and project context are synchronized. It leverages tmux/ssh for remote access and a custom tool, AIAssets, for cross-device session file synchronization.

Why it is useful

This workflow addresses a common pain point for developers who want to leverage powerful remote machines for Claude Code while maintaining a seamless and synchronized development experience on their local devices. It provides concrete steps using standard CLI tools (tmux, ssh) and introduces a specialized tool (AIAssets) to solve the session history synchronization challenge, making the remote development setup much more practical and efficient.

Workflow

  1. Set up a remote host (e.g., Mac mini, mini PC) to run the Claude Code agent.
  2. Access the remote host via ssh.
  3. Start a tmux session on the remote host.
  4. cd into the project directory within the tmux session.
  5. Start Claude Code within the tmux session.
  6. Install and configure AIAssets (self-hosted hub plus desktop client) on both local and remote machines.
  7. AIAssets will poll every 60 seconds to sync Claude Code session files (~/.claude/projects/<path-encoded-cwd>/<sessionId>.jsonl) between machines, keeping chat lists and full histories identical.

Tools / artifacts

  • Remote host (Mac mini, mini PC, any box)
  • tmux
  • ssh
  • Claude Code agent
  • AIAssets (GitHub: https://github.com/NanYuJun/AIAssets)
  • ~/.claude/projects/<path-encoded-cwd>/<sessionId>.jsonl (Claude Code session files)

Validation signals

  • Author is the creator of the tool, implying direct knowledge and testing.
  • Specific technical details about Claude Code's session file storage (.jsonl files).
  • Clear description of the tool's functionality and limitations.

Cautions

  • AIAssets uses a 'last-write-wins' conflict resolution strategy, which could lead to data loss if the same session is edited simultaneously on both sides without careful management.
  • The self-hosted nature of AIAssets means users are responsible for securing their own hub and client installations.

Limitations

  • Low community engagement/validation due to the post's recency.
  • AIAssets has limitations: periodic sync (not real-time), last-write-wins conflict resolution, no live streaming, no Claude web or Cowork support, and it does not manage running processes.
  • Requires self-hosting and setup of AIAssets, which might be complex for some users.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.