r/ClaudeWorkflows May 07 '26

Claude Workflow Library — Start Here

3 Upvotes

Claude Workflow Library — Start Here

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

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

Browse by category

Current status

  • Public workflows in database: 4672
  • Workflow posts published: 4672
  • Public workflows still waiting to be posted: 0
  • Last updated: 2026-07-22 23:11 UTC

How to use this library

  1. Open a category post.
  2. Click through to individual workflow posts.
  3. Upvote useful, reproducible workflows.
  4. Downvote workflows that are vague, outdated, unsafe, or not reproducible.
  5. Comment on a workflow post if it worked, failed, is outdated, or has a better alternative.

This post is updated automatically.


r/ClaudeWorkflows 18m ago

Selected Workflow [Workflow] Cost-Optimized Claude Code: When to Use Subagents vs. Forking

Upvotes

Cost-Optimized Claude Code: When to Use Subagents vs. Forking

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

What problem this solves

Optimizing cost and efficiency in Claude Code by choosing between 'forking' and 'spawning subagents' based on task requirements.

Summary

A decision-making framework for Claude Code users to choose between using fork and spawning dedicated subagents for tasks, focusing on cost optimization by considering context inheritance, model choice, parallelization, and effort mode. It outlines specific scenarios where subagents are more cost-effective than forks.

Why it is useful

This workflow provides crucial guidance for Claude Code users to make informed decisions about structuring their code for cost efficiency. It breaks down complex interactions (forking vs. subagents) into understandable scenarios, helping users avoid unnecessary token consumption and leverage different models effectively. This directly impacts the economic viability and scalability of Claude Code projects, making it a valuable resource for intermediate to advanced users.

Workflow

  1. Identify a specific subtask or component within a larger Claude Code session.
  2. Evaluate if the subtask genuinely requires the parent session's full accumulated context. (If not, a fresh subagent might be cheaper due to discounted cache reads).
  3. Determine if the subtask can be handled by a cheaper or faster model than the parent session's current model. (Forks inherit the parent's model, subagents can specify a different one).
  4. Consider the number of parallel subtasks to be executed and the depth of the parent session's context. (Many forks on a huge session can accumulate costs).
  5. Assess if the subtask requires 'high-effort mode' reasoning. (Forks often run at high effort by default, which is more expensive if not needed).
  6. Apply the rule of thumb: If the task genuinely needs the accumulated context AND the same model as the parent, use fork.
  7. Otherwise (if the task is self-contained, needs a different model, or is part of a wide fan-out), spawn a narrowly-scoped subagent with a purpose-built prompt.

Tools / artifacts

  • Claude Code fork feature
  • Claude Code subagents
  • Different Claude models (e.g., cheaper/faster ones)
  • Claude Code session context

Validation signals

  • Concrete scenarios provided for cost comparison
  • Logical reasoning based on Claude Code's context caching and model inheritance behavior
  • Clear 'rule of thumb' summarizing the decision logic

Limitations

  • Lacks explicit code examples to demonstrate the implementation of forks vs. subagents.
  • Does not provide quantitative 'before/after' cost comparisons or benchmarks.
  • The original post title is a rant, which might overshadow the valuable content of this 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 18m ago

Selected Workflow [Workflow] Four Techniques for Guiding LLM Agents During Coding: Comments, Hooks, Steering Files, and Checkpoints

Upvotes

Four Techniques for Guiding LLM Agents During Coding: Comments, Hooks, Steering Files, and Checkpoints

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

What problem this solves

Guiding an LLM agent effectively during coding, ensuring code quality, managing context without cluttering the main codebase, and enabling iterative review.

Summary

A collection of four techniques to improve LLM agent guidance and code quality: using // AGENT-NOTE: comments for in-code instructions, PostToolUse hooks for automated linting, a Scratch/steering file managed by CLAUDE.md for external notes, and Plan mode/checkpoints for iterative, small-chunk review.

Why it is useful

This workflow provides concrete, actionable 'tricks' for improving interaction with LLM coding agents. It addresses common pain points like agent drift, maintaining code quality, and managing complex instructions. The techniques are specific enough to be implemented and adapted by users working with similar agent frameworks, offering practical solutions for better control and efficiency.

Workflow

  1. Insert // AGENT-NOTE: comments directly into code for agent guidance, leveraging valid syntax to prevent auto-deletion and ensure agent readability.
  2. Configure PostToolUse hooks to automatically run a linter after every code write operation performed by the agent.
  3. Feed the linter's feedback directly back to the agent to enable self-correction and maintain code quality.
  4. Create a dedicated Scratch/steering file to store agent notes, instructions, and temporary thoughts, keeping them separate from the main codebase.
  5. Instruct the agent (e.g., via CLAUDE.md configuration) to periodically check and utilize the Scratch/steering file for ongoing guidance.
  6. Employ Plan mode or checkpoints to break down coding tasks into smaller, manageable chunks, facilitating frequent, low-cost reviews and preventing large diffs.

Tools / artifacts

  • AGENT-NOTE comments (specific syntax pattern)
  • PostToolUse hooks
  • Linter
  • Scratch/steering file
  • CLAUDE.md configuration file
  • Plan mode / checkpoints (agent feature)

Validation signals

  • Personal experience: "I think these are some of the things I do"
  • Technical validation for comments: "Valid syntax, agent still catches it on next read, doesn't risk getting auto-deleted as an error."
  • Efficiency validation for plan mode: "Cheapest on spoons (my overall project mental capacity, or executive function): small-chunk review by design, not a giant diff at the end."

Limitations

  • Lacks detailed implementation examples (e.g., specific CLAUDE.md syntax, hook code snippets).
  • Low community validation.
  • The effectiveness of AGENT-NOTE comments might depend on the specific agent's parsing capabilities.

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 31m ago

Selected Workflow [Workflow] Export Claude Code Chats to Markdown for Cross-Machine Sync with Git

Upvotes

Export Claude Code Chats to Markdown for Cross-Machine Sync with Git

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

What problem this solves

Claude Code chats are stored locally and do not sync across multiple machines, making it difficult to access past conversations when switching development environments.

Summary

A Python script that bulk-exports all Claude Code chat sessions for a given project into readable Markdown files within the project's repository. This allows chat history to be version-controlled with Git and accessed consistently across different machines.

Why it is useful

This workflow solves a significant pain point for Claude Code users who work across multiple machines by providing a concrete, open-source script to export and sync their chat history via Git. It enhances knowledge reuse, workflow continuity, and provides a practical solution to a common limitation of the tool.

Workflow

  1. Clone the VScode-scripts repository.
  2. Follow the setup guide in the README for Windows or macOS to configure the script.
  3. Integrate the script into VS Code tasks for one-click execution.
  4. Run the script to export Claude Code chat sessions to Markdown files in your project's doc/ai-chats/exports/ folder.
  5. Commit the exported Markdown files to your Git repository.
  6. Pull the repository on another machine to access the chat history.

Tools / artifacts

  • Python script (VScode-scripts)
  • Claude Code
  • VS Code
  • Git
  • Markdown files
  • JSONL chat logs (~/.claude/projects/…)

Validation signals

  • Detailed description of script functionality (auto-titling, incremental export, tool call collapsing, internal reasoning dropped).
  • Author states 'I had a script made' and describes its features, implying personal use and validation.
  • Provides a GitHub link to the script with MIT license and setup guides.

Cautions

  • Exported conversations contain full chat history; ensure they are kept in a private repository if sensitive.

Limitations

  • The underlying JSONL format for Claude Code chats is internal and undocumented, meaning the script could break with future Claude Code updates.
  • Lack of 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 37m ago

Selected Workflow [Workflow] Cartographer: An MCP Server for Syncing Knowledge, Skills, and Hooks Across Multiple AI Agents (Claude Code, Codex CLI, Kiro, OpenCode)

Upvotes

Cartographer: An MCP Server for Syncing Knowledge, Skills, and Hooks Across Multiple AI Agents (Claude Code, Codex CLI, Kiro, OpenCode)

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

What problem this solves

Managing and syncing knowledge, skills, and operational configurations across multiple AI agents (Claude Code, Codex CLI, Kiro, OpenCode) and team members, overcoming stateless sessions and scattered individual configurations.

Summary

Cartographer is an MCP server that acts as a shared, version-controlled knowledge base and configuration manager for multiple AI agents. It allows teams to define skills, hooks, and knowledge once in a central repository. Client commands (cartographer connect, cartographer sync) then automatically materialize these assets into the native configuration formats of individual agents (e.g., .claude.json), ensuring consistency across different users and agent types. The system enforces invariants, performs linting, handles conflicts, and maintains an audit log via Git.

Why it is useful

This workflow introduces a robust, centralized, and version-controlled system for managing and distributing agent knowledge, skills, and operational configurations across diverse AI agents and development teams. It directly addresses the critical problems of stateless agent sessions and scattered, inconsistent configurations, enabling consistent, efficient, and collaborative multi-agent workflows. Its open-source nature and focus on interoperability make it a highly valuable tool for advancing team-based AI development practices.

Workflow

  1. Set up and deploy the Cartographer MCP server (Go-based).
  2. Define shared knowledge, skills, or hooks within the Cartographer knowledge base.
  3. Team members run cartographer connect to automatically register and materialize these shared assets into their local agent configurations (e.g., .claude.json for Claude Code).
  4. Team members run cartographer sync to update their local agent configurations when changes are made to the central knowledge base.
  5. Agents interact with the knowledge base exclusively through Cartographer's MCP tools, preventing direct file manipulation.
  6. Use cartographer status to monitor for any configuration drift between local agents and the central knowledge base.

Tools / artifacts

  • Cartographer (MCP server)
  • cartographer connect command
  • cartographer sync command
  • cartographer status command
  • .claude.json (for Claude Code)
  • .codex/config.toml (for Codex CLI)
  • Git (underlying version control)
  • OKF (Open Knowledge Format)
  • GitHub repository (github.com/BeppeTemp/cartographer)

Validation signals

  • Server-side enforcement of invariants
  • Validation of knowledge base entries
  • One Git commit per write operation
  • Automatic linting for broken links/stale claims
  • Conflict handling for concurrent writes
  • Signed audit log
  • All changes revertible via Git

Limitations

  • Requires setting up and maintaining a separate server instance.
  • Currently in pre-1.0 beta, so users should expect rough edges.
  • Initial setup and configuration might be complex for users without prior server management experience.
  • Limited initial community validation due to its newness.

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 54m ago

Selected Workflow [Workflow] Archex: Enhanced Context Retrieval for Claude Code with MCP Skill and Hooks

Upvotes

Archex: Enhanced Context Retrieval for Claude Code with MCP Skill and Hooks

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

What problem this solves

Claude's difficulty in efficiently and accurately gathering relevant context from a codebase, often leading to a 'grep-and-hope' loop, resulting in incomplete or irrelevant information for coding tasks.

Summary

Archex is an MCP server and Claude Code skill that provides Claude with a pre-ranked, token-budgeted, and verified context bundle, replacing manual grep-based context gathering. It includes an opt-in hook to augment existing Grep/Glob tool calls, ensuring Claude receives optimal context for coding tasks.

Why it is useful

This workflow provides a significantly improved method for Claude Code to access and utilize relevant codebase context compared to traditional grep-based approaches. By delivering pre-ranked, token-budgeted, and verified context bundles, it addresses a critical bottleneck in LLM-assisted coding, leading to more accurate and efficient code generation and debugging. The open-source nature, detailed performance metrics, and integration options (skill, hook, MCP server) make it highly transferable and valuable for intermediate to advanced Claude Code users.

Workflow

  1. Install and set up the archex MCP server locally.
  2. Integrate the archex skill into your Claude Code environment.
  3. Optionally, enable the non-blocking hook to automatically augment Grep/Glob tool calls with archex results.
  4. Query Claude Code for coding tasks, allowing archex to provide optimized context.
  5. Review the context receipt provided by archex to understand what files/information were included and skipped.

Tools / artifacts

  • archex (MCP server + Claude Code skill)
  • GitHub repository (github.com/Mathews-Tom/archex)
  • Context bundle (output of archex)
  • Context receipt (output of archex)
  • Grep/Glob tool calls (augmented by archex)

Validation signals

  • Achieves 0.95 required-file recall on a 19-task external-repo set.
  • Achieves a 0.16 missed-task rate on the same set.
  • Outperforms cocoindex-code (0.32 recall, 0.79 missed-task rate) on the same tasks.
  • Includes 3,619 tests with 91.1% coverage.
  • Harness and numbers are available in the repo: docs/ARCHEX_VS_COCOINDEX.md.

Limitations

  • Requires local MCP server setup, which might be a barrier for some users.
  • As a new tool, long-term community support and adoption are unproven.
  • Performance metrics are self-run and not third-party audited.

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 55m ago

Selected Workflow [Workflow] Claude Code Skill: YC-Style Marketing Copy Rewriter (`sf-copywriter`)

Upvotes

Claude Code Skill: YC-Style Marketing Copy Rewriter (sf-copywriter)

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

What problem this solves

Rewriting marketing copy to adhere to a specific, concise, and hype-free style, similar to Y Combinator's communication style.

Summary

A Claude Code skill named sf-copywriter that transforms marketing copy into a YC-style (size in the noun, no hype adjectives, flat present tense). It uses a fixed 6-step internal loop and encodes the YC register as named 'moves' with reasons for generalization. The skill can be installed via a curl command or by cloning the associated GitHub repository.

Why it is useful

This workflow provides a concrete, reusable Claude Code skill for a specific and valuable task: refining marketing copy to a professional, concise style. It demonstrates a well-structured approach to skill building, including a fixed multi-step loop and a method for encoding stylistic 'moves' for generalization, which is highly valuable for other skill developers. Its ease of installation and clear purpose make it immediately useful.

Workflow

  1. Install the sf-copywriter skill by running the provided curl command to create the necessary directory and download SKILL.md into ~/.claude/skills/sf-copywriter/.
  2. Use the skill by making requests like "make this punchier" within Claude Code, which will route through the sf-copywriter skill.
  3. Optionally, clone the GitHub repository and utilize the included CLAUDE.md and AGENTS.md for broader application or to understand the skill's internal structure.

Tools / artifacts

  • sf-copywriter skill
  • SKILL.md
  • CLAUDE.md
  • AGENTS.md
  • curl command
  • GitHub repository (JasperSchram/founder-voice)

Validation signals

  • Explicit description of a 6-step internal loop (extract truth → find frame → set register → draft → self-check → variants).
  • Method for encoding the YC register as 'named moves with reasons' for generalization.
  • Mention of CLAUDE.md and AGENTS.md for broader usage and structural clarity.
  • The skill is shared as a functional artifact.

Limitations

  • Limited community validation due to the newness of the post.
  • The example prompt for using the skill ("make this punchier") could be more explicit or accompanied by additional usage examples.

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 55m ago

Selected Workflow [Workflow] Cartographer: Sync Knowledge, Skills, and Hooks Across Multiple AI Agents and Teams

Upvotes

Cartographer: Sync Knowledge, Skills, and Hooks Across Multiple AI Agents and Teams

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

What problem this solves

Inconsistent knowledge, skills, and operational configurations across multiple AI agents and team members, leading to stateless sessions and difficulty in team alignment and reproducibility.

Summary

This workflow introduces Cartographer, a Go-based MCP server that acts as a shared, version-controlled knowledge base for AI agents. It enables teams to define skills, hooks, and knowledge once, then automatically syncs and materializes these assets into the native configuration formats of various agents (e.g., Claude Code, Codex CLI, Kiro, OpenCode). The server enforces data integrity, provides an audit log via Git, and ensures consistent operational behavior and knowledge across a team of heterogeneous agents.

Why it is useful

This workflow offers a robust, version-controlled, and team-oriented solution to a critical challenge in multi-agent and team-based AI development: maintaining consistent knowledge, skills, and operational configurations. By providing a shared, curated, and automatically synchronized knowledge base, it significantly enhances efficiency, collaboration, and reproducibility for agentic workflows. The use of Git and Open Knowledge Format ensures transparency, auditability, and avoids vendor lock-in, making it a highly valuable asset for advanced users and teams.

Workflow

  1. Write a skill or hook in the shared Cartographer knowledge base (using Open Knowledge Format).
  2. Team members run cartographer connect to automatically register the skill/hook in their local agent's native configuration (e.g., .claude.json, config.toml).
  3. Team members run cartographer sync to update their local agent configurations when changes occur in the shared knowledge base.
  4. Use cartographer status to check for any drift between local agent configurations and the distributed knowledge base.
  5. Agents interact with the Cartographer server via MCP tools for knowledge curation, with server-side validation and conflict handling.

Tools / artifacts

  • Cartographer (Go-based MCP server)
  • cartographer connect CLI command
  • cartographer sync CLI command
  • cartographer status CLI command
  • Claude Code
  • Codex CLI
  • Kiro
  • OpenCode
  • Open Knowledge Format (OKF)
  • Git
  • GitHub repository (github.com/BeppeTemp/cartographer)
  • Obsidian (for viewing OKF files)

Validation signals

  • Addresses a clear pain point: 'every session starts from zero, and each agent has its own config scattered'.
  • Specific features for data integrity: server-side validation, one git commit per write, automatic linting for broken links/stale claims, conflict handling.
  • Provides a 'signed audit log and everything revertible via git underneath'.
  • Ensures 'automatically materializes them in the native format' for various agents.
  • Explicitly designed to 'keep an entire team of heterogeneous agents aligned on the same knowledge base and the same operational behavior'.

Cautions

  • The system uses Git for version control, providing inherent safety against data loss and allowing for easy reverts.
  • Server-side enforcement of invariants and validation contributes to data integrity and security.

Limitations

  • The project is still in pre-1.0 beta, so users should 'expect rough edges'.
  • Requires users to set up and maintain a Go server.
  • Requires team members to install and utilize the cartographer connect/sync CLI.
  • Relies on the MCP capability of the integrated agents.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 2h ago

Selected Workflow [Workflow] Structured Rebuttal Workflow for Debating Ethnostate and Discriminatory Immigration Arguments

1 Upvotes

Structured Rebuttal Workflow for Debating Ethnostate and Discriminatory Immigration Arguments

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

What problem this solves

How to effectively debate and dismantle arguments for ethnostates or discriminatory immigration policies that hide behind legal or cultural justifications, by exposing underlying prejudices and redirecting the conversation to legitimate policy concerns.

Summary

A multi-stage argumentative strategy to dissect and rebut claims related to immigration, border control, and ethnostates. It involves clarifying the opponent's specific meaning, providing direct rebuttals, splitting arguments into acceptable and problematic claims, exposing hidden motives (e.g., 'culture' as a proxy for 'ethnicity'), challenging assumptions with logical tests and counter-examples, and redirecting the debate to legitimate policy considerations.

Why it is useful

This workflow provides a detailed, step-by-step method for engaging with and dismantling complex, often emotionally charged, arguments that mask prejudice. It teaches how to identify underlying assumptions, expose logical inconsistencies, and redirect the conversation to more constructive policy discussions. This is a valuable skill for both humans and potentially for advanced AI agents designed for nuanced communication and ethical reasoning. It demonstrates a high level of analytical and argumentative capability, which aligns with the original prompt's request for what 'the world's best model' could output.

Workflow

  1. Clarify the opponent's specific meaning regarding 'freedom of movement' (internal, exit, or entry) to avoid strawman arguments.
  2. Provide a direct, honest rebuttal to initial accusations, distinguishing between lawful border control and ethnostate goals.
  3. Split the opponent's argument into a generally accepted premise ('Countries may control entry') and the actual, problematic claim ('Entry control should build ethnic purity').
  4. Force the opponent to explicitly defend the problematic claim.
  5. If 'cultural differences' are used as a justification, expose it as a potential proxy for ethnicity.
  6. Challenge the 'cultural traits' by asking for specific examples and testing if they are learnable/integrable; if not, it reveals a blood-based criterion.
  7. Argue that culture is not static and the concept of 'pure culture' is a historical myth.
  8. Demonstrate that 'cultural difference' arguments, if applied consistently, would justify internal discrimination against citizens with different subcultures or beliefs.
  9. Use counter-examples (e.g., rich atheist from Tokyo vs. poor Christian from Lagos) to reveal if the opponent's 'cultural' gut answer tracks skin color/origin rather than stated values.
  10. Concede the true kernel of legitimate policy concerns (e.g., integration effort, strain on services, pace of inflows).
  11. Redirect the debate from 'bloodlines' or 'ethnic purity' to 'how many, how fast, with what support' for integration.
  12. If the opponent refuses to engage in the legitimate policy debate, conclude they are driven by prejudice rather than policy.

Tools / artifacts

  • Universal Declaration of Human Rights, Article 13
  • Historical examples (Berlin Wall, serfdom, Nuremberg laws)
  • Logical argumentation techniques (strawman fallacy avoidance, exposing hidden premises, counter-examples, reductio ad absurdum)

Validation signals

  • Author's stated confidence in legal content and analysis (90% and 85% respectively).
  • The structured, logical progression of the argument itself serves as internal validation of its coherence and effectiveness.

Limitations

  • Low community validation on Reddit.
  • It is a cognitive workflow for argumentation, not a direct technical Claude prompt or code workflow, though it demonstrates advanced reasoning Claude could perform or be trained on.
  • Requires a human (or an AI with advanced reasoning) to execute the debate in real-time, adapting to the opponent's responses.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 2h ago

Selected Workflow [Workflow] Rapid Full-Stack Web Development with Claude Code: A UX Engineer's Iterative Workflow

1 Upvotes

Rapid Full-Stack Web Development with Claude Code: A UX Engineer's Iterative Workflow

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

What problem this solves

Accelerating full-stack web application development, particularly for UX engineers or those new to backend, by providing a structured workflow for effective interaction with Claude Code, managing context, and ensuring rapid iteration.

Summary

A UX Engineer's workflow for building a full-stack web application using Claude Code, emphasizing breaking down tasks, iterative development with granular commits, managing context via a claude.md file, and treating Claude as a mentor for planning and brainstorming.

Why it is useful

This workflow is valuable because it provides concrete, experience-based strategies for leveraging Claude Code in a full-stack development context. It offers practical advice on task management, context handling using claude.md, iterative development with granular commits, and effective interaction patterns (mentor, brainstorming). It also highlights common challenges and insights into AI's recommendations, making it highly useful for developers looking to accelerate their projects with Claude Code.

Workflow

  1. Break down the overall project execution into small, manageable tasks.
  2. Complete each small task using Claude Code.
  3. Test the generated code on a dedicated dev branch.
  4. Validate the functionality and UI of the code.
  5. Merge the validated code to the master branch only after successful testing and validation.
  6. Maintain a claude.md file with project rules, architectural decisions, and key context to help Claude remember details.
  7. Before executing code, ask Claude to explain its proposed plan and reasoning.
  8. Utilize Claude for brainstorming solutions to issues, explicitly instructing it not to write or edit code yet.
  9. Make frequent, granular Git commits to create safety nets for easy reversion if Claude introduces errors.
  10. Provide Claude with examples of your preferred coding style (e.g., CSS class naming conventions) to ensure generated code matches your style.

Tools / artifacts

  • Claude Code
  • claude.md file
  • Git (dev branch, master branch, granular commits)
  • Next.js 16 (App Router, Turbopack)
  • Payload CMS v3
  • PostgreSQL (Supabase)
  • Cloudflare R2
  • Resend
  • Vercel
  • TypeScript

Validation signals

  • Successfully built a 'fully robust directory platform' from MVP in 2 months, a timeline unachievable manually.
  • Implemented a process of testing on a dev branch and merging to master only after validation.
  • Granular commits served as a safety net, allowing easy reverts when Claude made mistakes.
  • Claude successfully emulated the user's CSS class naming style, making the code appear hand-written.
  • A live, functional website (wellvi.com.py) was produced as a result of this workflow.

Cautions

  • The author explicitly states, 'I don't review the code,' relying solely on functionality and UI appearance. This practice carries significant risks regarding security vulnerabilities, performance issues, and long-term maintainability, especially for production systems.

Limitations

  • The workflow lacks a dedicated code review step, which could lead to security flaws, performance bottlenecks, or unmaintainable code.
  • The reliance on Claude's recommendations for the tech stack might lead to non-cost-optimized solutions for long-term scaling, as acknowledged by the author.
  • While claude.md helps, Claude still occasionally forgets context, requiring manual reminders, indicating that context management remains a challenge.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 2h ago

Selected Workflow [Workflow] Markdown-First File System Agent Memory with Index and Linting

1 Upvotes

Markdown-First File System Agent Memory with Index and Linting

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

What problem this solves

Managing agent memory efficiently, reducing context costs, enabling cross-tool memory sharing, and avoiding the overhead of complex memory frameworks.

Summary

A markdown-first, file-system-based agent memory system that uses individual fact files with YAML frontmatter, a single index file for efficient recall, wikilinks for related facts, and a periodic agent-driven linting process for maintenance and de-duplication.

Why it is useful

This workflow offers a practical, low-overhead solution for agent memory management that addresses common pain points like context window limits, framework complexity, and tool lock-in. Its use of plain files and conventions makes it highly transferable and durable, while the 'lint' pass introduces a crucial maintenance aspect often overlooked in memory systems, ensuring the memory remains relevant and efficient over time.

Workflow

  1. Create individual Markdown files for each 'fact' or piece of memory.
  2. Add YAML frontmatter to each fact file including a 'name', a one-line 'description' (for recall), and a 'type' tag (e.g., user/project/decision).
  3. Maintain a single 'index.md' file that lists one line per note, pointing to the other fact files.
  4. Configure the agent to only auto-load 'index.md' at the start of a session to keep context cost flat.
  5. Implement a recall mechanism: match user requests against the one-line descriptions in 'index.md' to identify and load only relevant fact files.
  6. Optionally, use '[[wikilinks]]' within fact files to link related information, allowing agents to pull in connected notes.
  7. Periodically run an agent-driven 'lint' pass to identify and fold duplicate notes together and flag stale ones.

Tools / artifacts

  • Markdown files (.md)
  • YAML frontmatter
  • index.md file
  • Wikilinks ([[link]])
  • LLM Agent (e.g., Claude Code, Copilot, Cursor)

Validation signals

  • Personal experience: 'it's been way more durable than anything with a server.'

Limitations

  • Requires manual setup and adherence to specific file naming and content conventions.
  • The 'lint' pass needs to be explicitly implemented and run, adding a maintenance overhead.
  • Scalability for extremely large memory stores might eventually face challenges if the index.md becomes too large for efficient searching, though the one-line-per-note approach mitigates this.
  • No explicit mention of version control or conflict resolution for multi-user 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 2h ago

Selected Workflow [Workflow] Iterative App Development with Claude: A 7-Step Workflow for Building Complex Software

1 Upvotes

Iterative App Development with Claude: A 7-Step Workflow for Building Complex Software

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

What problem this solves

Effectively using Claude (or any LLM) to iteratively develop a complex software application that matches a user's nuanced mental model, avoiding the pitfalls of single-prompt generation and ensuring the product meets real-world needs.

Summary

An iterative, test-driven development workflow for building a complex application with Claude, emphasizing continuous feedback, refinement, and user-centric testing over single-prompt generation. The process involves explaining a problem, discussing Claude's proposed models, implementing small parts, rigorous testing with real data, and reporting specific issues for refinement.

Why it is useful

This workflow provides a concrete, validated, and repeatable process for leveraging Claude in a sophisticated software development context. It directly counters the common misconception that LLMs can build complex applications from a single prompt, instead advocating for an effective iterative, test-driven approach that integrates human expertise. It offers practical lessons learned from real-world application building, making it highly valuable for anyone looking to build robust software with LLMs.

Workflow

  1. Explain an actual problem in your workflow to Claude.
  2. Claude suggests a possible model or interface.
  3. Discuss with Claude whether its suggestion matches how the real-world process (e.g., songwriting) actually works.
  4. Claude implements a small part of the application.
  5. Upload the implemented part and test it with real data/scenarios.
  6. Report exactly what felt wrong or didn't work as expected to Claude.
  7. Refine the implementation with Claude based on feedback and repeat the process from step 2 or 3.

Tools / artifacts

  • Claude (AI model)
  • PHP (for application backend)
  • MySQL (for database)
  • Vanilla JavaScript (for frontend)
  • CSS (for styling)
  • Shared hosting (for deployment)
  • Real songs/data (for testing)
  • Snotify (the resulting application)

Validation signals

  • Successful creation of a functional application (Snotify) that solves a real problem.
  • The application is actively used by the author and collaborators for real projects.
  • Specific examples of design evolution based on testing (e.g., expandable versions, primary-version handling, comment placement, saving recording sessions).
  • Author's explicit statement of lessons learned from the iterative process.
  • Initial version developed in approximately one week of focused effort, with ongoing refinement for months.

Limitations

  • The post focuses more on the result (Snotify) than explicitly detailing the prompts or Claude's specific outputs at each step.
  • The 'discussion' step (3) is vague; it doesn't specify how to discuss effectively with Claude.
  • The 'report exactly what felt wrong' step (6) could be more specific about how to formulate effective feedback for Claude.
  • Low community engagement might indicate that the workflow's value wasn't immediately apparent to casual readers.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 2h ago

Selected Workflow [Workflow] Building and Validating Knowledge Graphs with Claude Agents: A Human-in-the-Loop Approach for Curriculum Data

1 Upvotes

Building and Validating Knowledge Graphs with Claude Agents: A Human-in-the-Loop Approach for Curriculum Data

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

What problem this solves

Generating a structured, verifiable knowledge graph from unstructured educational curricula using AI, while mitigating AI hallucination and ensuring semantic correctness through a human-in-the-loop validation process.

Summary

A workflow leveraging a pipeline of Claude agents to extract concepts and prerequisite relationships from multiple national curricula, forming a large-scale knowledge graph. The workflow includes a critical human-in-the-loop validation step where AI-generated edges are reviewed, graded (hard/soft), and prioritized for review based on centrality, with each edge citing a reason to enhance trustworthiness and facilitate verification.

Why it is useful

This workflow provides a concrete, validated approach to a challenging problem: generating structured knowledge from unstructured text using LLMs while effectively mitigating hallucination. The detailed human-in-the-loop validation strategy (citing reasons, grading, centrality-based review) is highly valuable for ensuring data quality and trustworthiness, making the AI-generated output usable in critical applications. It demonstrates a practical application of multi-agent systems and robust quality control.

Workflow

  1. Gather national curricula documents (e.g., from US and UK).
  2. Design and implement a pipeline of Claude agents to process the curricula.
  3. Feed curricula into the Claude agent pipeline to extract single teachable ideas (concepts) and prerequisite relationships (edges).
  4. Configure Claude to provide a one-line reason for each AI-generated prerequisite edge.
  5. Grade each AI-generated edge as 'hard' or 'soft' based on the confidence or strength of the prerequisite relationship.
  6. Prioritize human review of edges by focusing on high-centrality nodes within the generated knowledge graph.
  7. Conduct a team-based hand-review of the prioritized edges, leveraging the cited reasons and hard/soft grading.
  8. Open-source the validated knowledge graph under an appropriate license (e.g., ODbL).

Tools / artifacts

  • Claude agents (pipeline)
  • National curricula documents
  • Knowledge graph (output)
  • GitHub repository (for data)
  • Website (for exploration)

Validation signals

  • Team-based human review was conducted.
  • Every AI-generated edge cites a reason for its existence.
  • Edges are graded as 'hard' or 'soft' to indicate confidence.
  • Review was prioritized by focusing on high-centrality nodes.
  • The project was open-sourced, implying a level of confidence in the data's quality.

Limitations

  • The specific prompts and detailed configurations for the Claude agents are not provided, which would aid replication.
  • The post notes that 'semantic correctness is the open question,' indicating that even with validation, further scrutiny might be needed depending on the application.
  • The internal workings of the 'pipeline of Claude agents' are not elaborated upon (e.g., number of agents, their specific roles, inter-agent communication).

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 3h ago

Selected Workflow [Workflow] AI-Simulated Human UAT Testing with Claude Subagents: A Prompt Kit and Methodology

1 Upvotes

AI-Simulated Human UAT Testing with Claude Subagents: A Prompt Kit and Methodology

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

What problem this solves

Automating and enhancing User Acceptance Testing (UAT) by simulating diverse human testers to catch bugs and gather product insights before real human testers, thereby optimizing human tester time and focusing human effort on subjective judgments.

Summary

A prompt kit and methodology for using AI (specifically Claude with subagents) to simulate a panel of diverse human users performing User Acceptance Testing (UAT) on a product. The AI agents drive the product action-by-action, writing expectations beforehand, and operate in a 'clean room' context, separated from internal design documents, to mimic real user experience.

Why it is useful

This workflow provides a highly specific, repeatable, and validated method for leveraging Claude's subagent capabilities to perform comprehensive User Acceptance Testing. It addresses a critical need in software development by automating early-stage bug detection and user insight gathering, freeing up human testers for more nuanced tasks. The provision of a public GitHub repository with prompts, templates, and method notes makes it exceptionally transferable and actionable. The author's transparency about token costs and offering cheaper alternatives further enhances its practical value.

Workflow

  1. Define the product's user-facing context (e.g., store page, help texts, how-to-operate instructions).
  2. Set up AI subagents, each simulating a distinct human user persona (e.g., newcomer, genre veteran, completionist, refund-window skeptic, accessibility user, admin).
  3. Provide only the defined user-facing context to the subagents, ensuring no internal specs or design documents contaminate their 'clean room' context.
  4. Instruct each subagent to drive the product, action by action, writing down their expected outcome before each action.
  5. Analyze the discrepancies between expected and actual outcomes to identify bugs and usability issues.
  6. For cheaper runs, use a single-mind mode, approximating context separation by ordering (write expectation first, then consult docs only for display facts).
  7. For high-cost, comprehensive runs, implement 'Phase 3' (the fleet) for hundreds of simulated sessions to gather product truths and marketing claims.

Tools / artifacts

  • GitHub repository (human-uat-kit)
  • Prompt kit
  • Input template
  • Adversarial input catalog
  • Method notes
  • Claude (Fable with ultracode recommended)

Validation signals

  • Distilled from the real pre-launch UAT of the author's own commercial project.
  • Detailed warnings about token usage and cost imply real-world experience and optimization.
  • Offers cheaper alternatives, demonstrating practical application and flexibility.
  • The existence of a public GitHub repository with detailed artifacts.

Limitations

  • High token cost for full runs, potentially prohibitive for many users.
  • Requires a good understanding of subagent setup and context management for optimal implementation.
  • Initial community validation is low due to the post's recency.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 3h ago

Selected Workflow [Workflow] Robust Shared Memory for Multi-Agent Claude Code Sessions: Lessons from Six Months of Write Contention and Truth Maintenance

1 Upvotes

Robust Shared Memory for Multi-Agent Claude Code Sessions: Lessons from Six Months of Write Contention and Truth Maintenance

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

What problem this solves

Managing shared, persistent memory and knowledge across multiple parallel Claude Code sessions, addressing issues like write contention, data corruption, duplicate resurrection, serialization conflicts, stale information retrieval, and evaluation biases.

Summary

The author details their six-month journey of building and maintaining a shared memory system for 3-4 parallel Claude Code sessions. They describe six major problems encountered (write contention, merge conflicts, serialization issues, evaluation biases, stale data retrieval, threshold tuning) and the specific solutions implemented, such as three-way merging with locks, de-duplication logic, explicit stale data warnings, and rigorous testing against real-world data. The system uses a single human-editable, git-versioned memory file as a graph.

Why it is useful

This post offers invaluable, hard-won lessons for anyone attempting to build sophisticated multi-agent systems with shared, persistent memory. It goes beyond theoretical advice by detailing concrete problems and their practical solutions, validated by six months of real-world usage. The focus on write contention, truth maintenance, and rigorous evaluation addresses critical challenges often overlooked in simpler setups, making it a blueprint for building more robust and reliable AI workflows.

Workflow

  1. Implement a shared memory file for multiple Claude Code sessions to read and write.
  2. Address write contention by implementing a three-way merge (base snapshot vs mine vs disk) under a lock for file saves.
  3. Enforce a hard rule: the save operation refuses to write if a card was lost during the merge process.
  4. Refine merge logic to correctly identify and de-duplicate exact twin edges, preventing deleted duplicates from reappearing.
  5. Ensure consistent serialization: verify that identical content produces identical bytes when serialized by different components (e.g., agent vs app) to avoid false conflicts.
  6. Harden evaluation metrics: develop a robust judge and test harness that reproduces results and accurately reflects real-world performance.
  7. Address stale information retrieval: implement a 'supersession' mechanism where corrections supersede (rather than delete) older information.
  8. Augment retrieval results with explicit warnings (e.g., 'STALE card, do not act on it') when a later card contradicts a retrieved one.
  9. Tune all system thresholds (e.g., overlap detection) against real, long-term data, not just short fixture cards.
  10. Design the memory as a graph to allow for non-linear growth and traversal, rather than a linear log.
  11. Implement emergent coordination mechanisms within the shared memory, such as 'lane claims' and one-shot messages.
  12. Anchor memory cards to git blob hashes to automatically flag cards as 'drifted' when the associated code changes.

Tools / artifacts

  • Shared memory file (custom format, ~900 cards, human-editable, git-versioned)
  • Three-way merge logic (custom implementation)
  • File locking mechanism
  • De-duplication logic for graph edges
  • Serialization consistency checks
  • Evaluation judge and test harness
  • Retrieval system with supersession logic and stale data warnings
  • Git (for version control and anchoring cards)
  • Claude Code sessions (3-4 running in parallel)

Validation signals

  • The system 'works now' after six months of iteration.
  • The custom merge rule 'has caught more bugs than any test I've written'.
  • Real-world app usage (quitting and reopening) caught a serialization bug that the test harness missed.
  • Evaluation metrics were hardened and now 'reproduces' with specific recall numbers (0/20 cold, 55% with brief, 73% with brief + search).
  • The agent now 'sees the ground is contested instead of getting a confident wrong answer' due to stale card warnings.
  • A 'standing rule' was established: 'nothing counts as verified until it runs against the real six-month file'.
  • The brief didn't grow linearly; at 900+ cards, it's still around 3–5k tokens, indicating efficient graph-based memory.
  • Sessions started coordinating through the file in unintended but useful ways (lane claims, one-shot messages).
  • 14 cards are currently flagged as drifted due to code changes, demonstrating the effectiveness of git-anchored cards.

Limitations

  • The specific code implementation for the merge logic, de-duplication, and retrieval is not provided in the post itself, requiring users to implement these concepts from scratch.
  • The evaluation numbers are based on a 'small n' and 'self-eval', with acknowledged caveats.
  • The post concludes with open questions about alternative models (CRDTs, bitemporal databases) and scalability limits (9,000 cards), indicating areas for further research or potential weaknesses in the current approach.
  • Implementing a robust three-way merge and truth maintenance system can be complex and challenging for less experienced users.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 4h ago

Selected Workflow [Workflow] Persistent Memory for Claude Code: SenseLab MCP Integration to Scale Beyond CLAUDE.md

1 Upvotes

Persistent Memory for Claude Code: SenseLab MCP Integration to Scale Beyond CLAUDE.md

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

What problem this solves

Claude Code's lack of persistent memory across sessions and tools, and the scalability issues of using CLAUDE.md for long-term context management.

Summary

This workflow describes a setup for persistent, queryable memory for Claude Code, Cursor, and Claude Desktop using an external, self-hostable service (SenseLab/AMFS) integrated via MCP and a custom skill. It replaces manual CLAUDE.md management with an automated system that stores decisions, reasoning, and session traces, allowing for semantic recall and managing memory decay.

Why it is useful

This workflow provides a robust, scalable solution for persistent memory in Claude Code, addressing the common limitations of CLAUDE.md and manual context management. It integrates an external, open-source memory service via MCP and custom skills, enabling semantic recall, decision tracking, and intelligent memory decay. This significantly enhances Claude's ability to maintain long-term context across sessions and tools, making it more effective for complex, ongoing projects.

Workflow

  1. Understand the limitations of CLAUDE.md for persistent memory and manual context management.
  2. Obtain an API key from the SenseLab dashboard (amfs.sense-lab.ai).
  3. Install the SenseLab MCP server and a custom Claude skill using the provided curl command: curl -sSL https://raw.githubusercontent.com/raia-live/amfs/main/install-mcp.sh | bash -s -- --api-key amfs_sk_your_key.
  4. Alternatively, manually add the SenseLab MCP server configuration to your MCP config file.
  5. At the start of a session, ask Claude to get briefed on the current project, allowing it to pull a compiled summary from memory.
  6. During work, when a decision is made (e.g., "use JWT, 15 min expiry, silent refresh"), instruct Claude to record the decision with its reasoning.
  7. At the end of a session, have Claude commit the session as a trace for future queryability.
  8. Query past decisions and reasoning semantically (e.g., "why did we pick JWT?").

Tools / artifacts

  • Claude Code
  • Cursor
  • Claude Desktop
  • SenseLab (AMFS memory engine)
  • MCP (Multi-Agent Communication Protocol)
  • install-mcp.sh script
  • MCP configuration file
  • Custom Claude skill (for memory nudging)
  • SenseLab API key

Validation signals

  • Author's direct experience and development of the tool.
  • Detailed comparison to existing methods (CLAUDE.md, Obsidian vault) highlighting improvements.
  • Description of a typical 'day in the life' with the workflow, showing before/after scenarios.
  • Specific features like confidence decay, decision traces, and agent attribution are described as benefits.

Limitations

  • Low Reddit score and limited community engagement might suggest it hasn't gained wide traction yet.
  • Relies on an external service (even if self-hostable), which adds a dependency and setup complexity compared to pure CLAUDE.md.
  • The specific code for the 'behavioral piece' (skill) is mentioned but not fully detailed in the post.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 4h ago

Selected Workflow [Workflow] Cost-Effective LLM Usage: Pre-compile Context for Expensive Models

1 Upvotes

Cost-Effective LLM Usage: Pre-compile Context for Expensive Models

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

What problem this solves

Excessive token usage and high credit burn when using expensive, powerful LLMs (like Fable) on large, unoptimized contexts such as entire code repositories or multiple documents.

Summary

Optimize expensive LLM usage by pre-processing large contexts into a focused, concise corpus using cheaper models (e.g., Sonnet or Haiku), then feeding only this compiled corpus to the expensive LLM for high-quality reasoning. This avoids the expensive LLM performing broad, costly exploration of raw, large inputs.

Why it is useful

This workflow provides a concrete, validated strategy to significantly reduce token usage and credit burn when using expensive, powerful LLMs on large datasets. It leverages the strengths of different models (cheaper for context compilation, expensive for focused reasoning), making LLM-powered tasks more economically viable and efficient. The empirical validation with token counts makes it particularly compelling.

Workflow

  1. Identify tasks requiring an expensive, powerful LLM (e.g., Fable) for high-quality reasoning, where the input context is initially large (e.g., code repositories, multiple documents).
  2. Use a cheaper LLM (e.g., Sonnet, Haiku) to process, summarize, or extract relevant information from the large context, compiling it into a concise, focused corpus.
  3. Feed only this pre-compiled corpus to the expensive LLM.
  4. Instruct the expensive LLM to reason exclusively over the provided corpus, explicitly preventing it from broadly exploring the original large context or spinning up unnecessary agents.

Tools / artifacts

  • Fable (expensive LLM/agent)
  • Sonnet/Haiku (cheaper LLMs)
  • Compiled Corpus (artifact)
  • Code Repository/Documents (input context)

Validation signals

  • Direct comparison of token usage: ~315K tokens with pre-compiled corpus vs. 730K tokens when letting Fable loose on the repo.
  • Author's explicit statement: 'That’s proof-positive if the danger of simply letting Fable loose.'

Limitations

  • The 'clear boundaries' solution is a good principle but lacks specific, actionable steps.
  • The 'helper/orchestrator workflow' solution is more of a general concept with a warning about token overhead rather than a detailed workflow.
  • No explicit code or prompt examples are provided for the corpus compilation step.
  • The specific models mentioned (Fable, Sonnet, Haiku) are Anthropic-specific, though the underlying principle is generalizable.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 6h ago

Selected Workflow [Workflow] Automating Documentation to Prevent Drift and Ensure Accuracy for AI-Assisted Codebases

1 Upvotes

Automating Documentation to Prevent Drift and Ensure Accuracy for AI-Assisted Codebases

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

What problem this solves

Manual documentation updates lead to outdated and inaccurate information, especially when AI models like Claude rely on these docs as truth, causing drift between code and documentation.

Summary

This workflow advocates for automating documentation generation from code to ensure accuracy and prevent drift. It suggests manually writing only the high-level design decisions, rationale, and lessons learned, while generating all code-derived information.

Why it is useful

This workflow provides a clear, validated strategy for maintaining accurate documentation, a common pain point in software development. It's especially valuable for users working with AI-generated code or using AI to interact with codebases, as it addresses the risk of AI consuming outdated information. The principle of automating code-derived documentation frees developers to focus on the more critical "why" aspects, improving overall documentation quality and trustworthiness.

Workflow

  1. Identify parts of your documentation that can be programmatically generated from your codebase (e.g., CLI commands, API endpoints, code structure).
  2. Implement a process or script to automatically generate these documentation sections directly from the code.
  3. Remove the manual steps for updating these generated documentation sections.
  4. Focus manual documentation efforts solely on explaining design choices, rejected alternatives, and lessons learned ("the why").

Tools / artifacts

  • README files
  • CLI tools/definitions
  • Codebase (source of truth for generated docs)
  • Documentation generation scripts/tools (implied)

Validation signals

  • Personal anecdote: "My README claimed the CLI had 6 commands. It had 21."
  • Realization: "The problem was that updating the README was a manual step in the process."
  • Observed outcome: "The docs just drift, and Claude happily treats them as truth."
  • Improved outcome: "It's a much smaller set of documentation, but it's also the only part I trust to stay accurate."

Limitations

  • Lacks specific code examples or tools for how to generate documentation (e.g., specific libraries, frameworks, or scripting languages).
  • No community validation yet.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 7h ago

Selected Workflow [Workflow] Frugal: A Claude Code Plugin for Cost-Optimized Multi-Model Task Routing

1 Upvotes

Frugal: A Claude Code Plugin for Cost-Optimized Multi-Model Task Routing

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

What problem this solves

High costs associated with using expensive Claude models (Opus/Fable) for simple, non-reasoning tasks within Claude Code agent sessions.

Summary

A Claude Code plugin named Frugal acts as a router, delegating sub-tasks to the cheapest suitable model (shell commands, Haiku, Sonnet) and escalating to more expensive models (main model, Fable) only when objective checks (tests, compiler, schema) fail. It includes hooks to manage delegation and hard-block expensive tiers, and provides local cost reports.

Why it is useful

This workflow provides a concrete, tool-based solution to a significant problem for Claude Code users: reducing operational costs by intelligently routing tasks to the cheapest capable model. It offers clear validation mechanisms (real checks, cost reports) and is highly transferable as a plugin. It introduces a structured approach to agent behavior, moving beyond simple prompt engineering to a more sophisticated, automated resource management strategy.

Workflow

  1. Install the Frugal plugin using two commands (details on linked GitHub).
  2. Integrate Frugal into your Claude Code agent setup, allowing it to act as a router.
  3. Frugal automatically routes tasks based on complexity and cost: plain shell commands (grep, jq, git) for simple queries, Haiku for locate/extract work, Sonnet for mechanical edits, the main model for design/debugging/reviews, and Fable only as an escalation ceiling.
  4. Frugal escalates to a more expensive tier only when objective checks (tests, compiler, schema) fail, not based on a cheaper model's self-reported doubt.
  5. Utilize the provided hooks to manage inline search call budgets and optionally hard-block expensive tiers.
  6. Review the local cost reports generated by Frugal, which detail tier mix, escalation rate, and estimated savings.

Tools / artifacts

  • Frugal plugin
  • Claude Code
  • Haiku model
  • Sonnet model
  • Opus/Fable model
  • Shell commands (grep, jq, git)
  • Tests
  • Compiler
  • Schema

Validation signals

  • Escalates only when real checks fail (tests, compiler, schema)
  • Logs one local line per worker run
  • Provides a cost report (tier mix, escalation rate, estimated savings)
  • Community interest (high score, comments)
  • External GitHub repository with implementation details

Cautions

  • The plugin logs locally and explicitly states 'No telemetry, nothing leaves your machine', which is a positive for privacy and security.

Limitations

  • Requires a Claude Code environment.
  • Specific setup details for the 'two commands' are not in the Reddit post itself (but are on the linked GitHub).
  • The exact integration method into an existing Claude Code agent's workflow is implied but not fully detailed in the post.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 7h ago

Selected Workflow [Workflow] Deterministic Context Injection for AI Agents: Leveraging Project History to Prevent Rework

1 Upvotes

Deterministic Context Injection for AI Agents: Leveraging Project History to Prevent Rework

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

What problem this solves

AI coding agents often forget or are unaware of past project decisions, leading them to re-suggest rejected ideas or make changes based on incomplete context. This results in wasted effort and potential reintroduction of bugs or suboptimal solutions.

Summary

This workflow describes a method for deterministically injecting historical project context (design decisions, rejected approaches, and their rationales) into AI coding agents' workflows. Instead of relying on prompt instructions, it uses a harness-level injection mechanism that triggers when an agent attempts to modify a file. A pre-compiled index of a 'spec archive' provides relevant history, flagged by staleness, ensuring agents have the necessary context to avoid repeating past mistakes and to make informed decisions.

Why it is useful

This workflow offers a robust and deterministic solution to a fundamental challenge in AI-assisted development: ensuring agents have access to critical historical context and design decisions. By moving beyond unreliable prompt instructions to harness-level injection, it guarantees that agents are informed of past choices, preventing them from re-proposing rejected ideas or making changes based on outdated information. The strong self-validation story demonstrates its practical effectiveness in preventing costly mistakes and improving the overall quality and efficiency of AI-driven development.

Workflow

  1. Maintain a 'spec archive' for the project, documenting every meaningful change, including design decisions, alternative paths considered, and actual outcomes.
  2. Compile the spec archive into a derived index with two views: topic-to-related-specs and file-path-to-chronological-list-of-specs-that-touched-it.
  3. Implement a 'hook' mechanism that triggers specifically when an AI agent attempts to edit or write to a file.
  4. When the hook is triggered, query the prebuilt index using the file path to retrieve all relevant historical specs for that file.
  5. Inject the retrieved historical context into the agent's current session, flagging each record as 'current', 'stale' (file changed after spec closed), or 'in-flight' (another spec is active on this file).
  6. Include an instruction with the injected text for the agent: if this history affects your work, tell the user in a sentence or two before changing the file.

Tools / artifacts

  • Spec archive (e.g., markdown files, structured documents)
  • Derived index (e.g., database, search index)
  • Custom injection hook (part of the agent harness or workspace tooling)
  • AI coding agent
  • Frame (open-source project mentioned by author)

Validation signals

  • The hooks were deployed halfway through the feature's development, allowing the system to supervise its own construction.
  • An agent, while adding documentation, was alerted by the injected history that a template file had been recently changed.
  • The agent's subsequent check revealed the file was a dead copy, and the real template had been moved, preventing documentation from being added to an unused file.
  • The incident demonstrated the system's ability to catch the exact class of mistake it was designed to prevent, on day one, and on itself.

Cautions

  • The hook is designed to 'never block, never break', ensuring that failures in the indexing or injection process do not halt the agent's operation, but rather allow it to proceed as if no history was available. This prioritizes system stability.

Limitations

  • Requires significant upfront effort to establish and maintain a comprehensive 'spec archive'.
  • Implementing the indexing and hooking mechanism requires advanced technical skills or integration with a specialized tool like 'Frame'.
  • The low Reddit score might indicate a niche appeal or that the complexity deters broader adoption without further simplification.

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 8h ago

Selected Workflow [Workflow] Implementing AI Agent Guardrails with a 'Wrong Turn Logger' Skill and Pre-Tool-Use Hooks in Claude Code

1 Upvotes

Implementing AI Agent Guardrails with a 'Wrong Turn Logger' Skill and Pre-Tool-Use Hooks in Claude Code

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

What problem this solves

Preventing AI coding agents from executing incorrect commands, deviating from established processes, or making 'wrong turns' during automated tasks, thereby improving reliability and reducing manual intervention.

Summary

A custom 'wrong turn logger' skill is integrated with Claude Code's pre-tool-use hooks to monitor and intervene when a coding agent attempts to execute unauthorized or incorrect commands. The system prompts the user for approval, allowing them to provide corrective feedback to the agent and log the 'wrong turn' for future learning.

Why it is useful

This workflow provides a concrete, albeit high-level, solution to a critical problem in agentic workflows: preventing AI agents from going off-script or executing harmful commands. The use of hooks and a custom skill demonstrates an advanced pattern for building robust AI systems, offering a transferable guardrail mechanism. The link to a GitHub repository provides a starting point for implementation, making it valuable for users looking to enhance the reliability and safety of their Claude Code agents.

Workflow

  1. Develop or obtain a 'wrong turn logger' skill (e.g., from the provided GitHub repository).
  2. Integrate the 'wrong turn logger' skill with Claude Code's hooks, specifically attaching its search function to the 'pre-tool-use' hook.
  3. When the coding agent attempts an action that deviates from the established process or is deemed a 'wrong turn' (e.g., throwing bad commands, deploying manually), the 'pre-tool-use' hook triggers the skill.
  4. The skill intercepts the action and prompts the user for permission to proceed.
  5. The user reviews the proposed action and can either approve or deny it.
  6. If denied, the user provides additional details or corrective feedback to the agent (e.g., 'this is not how we do things...').
  7. The system automatically logs the 'wrong turn' and the corrective feedback, allowing the agent to learn from its mistakes without the user having to remember to make notes.

Tools / artifacts

  • ergon-wrong-turn-logger (GitHub repository)
  • Claude Code (platform)
  • Custom 'skill'
  • Claude Code 'pre-tool-use' hooks

Validation signals

  • Author states 'I built a skill that helps keep the coding agent on track.'
  • Author claims 'it will check itself before it wrecks itself.'
  • Existence of a GitHub repository implies an implemented solution.

Cautions

  • The workflow includes a user permission prompt, which acts as a safety mechanism to prevent unintended or harmful actions by the AI agent.

Limitations

  • The description is somewhat high-level, requiring users to explore the linked GitHub repository for full implementation details.
  • Lack of detailed code examples or specific prompt engineering instructions within the comment itself.
  • Low community engagement (score 1, 0 comments) means the solution hasn't been widely validated by others.

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 8h ago

Selected Workflow [Workflow] Production LLM Benchmarking Methodology: Detecting Silent Failures and Token Budget Overruns

1 Upvotes

Production LLM Benchmarking Methodology: Detecting Silent Failures and Token Budget Overruns

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

What problem this solves

Identifying and mitigating subtle, silent failure modes in LLMs (e.g., empty responses, unexpected token usage, quality degradation) when deploying them in production, and understanding performance variations across different hosting environments.

Summary

A methodology for rigorously benchmarking LLMs for production use, focusing on identifying silent failures (e.g., HTTP 200 with empty content), performance inconsistencies across hosting tiers, and unexpected token budget consumption, using real-world tasks and production prompts.

Why it is useful

This post provides a critical methodology for evaluating LLMs for production use, going beyond superficial quality checks to uncover subtle but significant failure modes like silent empty responses and unexpected token consumption. It highlights the importance of testing across different hosting environments and with real-world data, offering practical insights for ensuring reliability and cost-effectiveness in LLM deployments. The specific findings about thinking.budget_tokens and HTTP 200 empty responses are highly valuable for developers.

Workflow

  1. Define a real-world production task (e.g., writing outreach proposals) that reflects actual use cases.
  2. Prepare production-grade prompts for the defined task, ensuring they are representative of live system inputs.
  3. Select a diverse set of candidate LLMs for evaluation, including a baseline (e.g., Claude Haiku) and various free/alternative models.
  4. Test models across different hosting environments (e.g., free shared queue vs. paid dedicated hosting) to assess performance and reliability variations.
  5. Execute API calls to each selected model using the production prompts and real job data, avoiding synthetic prompts.
  6. Implement comprehensive quality checks beyond basic output correctness, specifically looking for:
    • Empty responses (HTTP 200 with no content).
    • Unexpected language mixing (e.g., foreign fragments).
    • Adherence to explicit rules (e.g., budget constraints, formatting).
    • Output integrity (e.g., garbled words).
    • Adherence to API parameters (e.g., thinking.budget_tokens not being a hard cap).
  7. Log and analyze response times, costs, and success/failure rates for each model and configuration.
  8. Identify and reproduce any observed failure modes (e.g., empty responses, foreign language fragments) to confirm their consistency and understand their triggers.
  9. Document all findings, including performance metrics, identified defects, and caveats (e.g., sample size, domain specificity of the benchmark).
  10. Use the insights to select the most reliable and cost-effective LLM for the production environment and to implement robust error handling for identified failure modes.

Tools / artifacts

  • Claude Haiku 4.5 API
  • NVIDIA NIM (Nemotron 3 Ultra, Nemotron 550B)
  • MiniMax M3 API
  • Other free LLM APIs
  • Production prompts
  • Real job postings/data
  • HTTP client for API calls
  • Benchmarking script/framework (implied)

Validation signals

  • "passed every quality check in my production benchmark"
  • "first-hand testing against a live production system"
  • "reproduced failure mode"
  • "across two independent test runs on the same job"
  • "9/9 successful calls in the final head-to-head" (for Haiku)
  • "no cherry-picking"

Limitations

  • Not presented as an explicit, numbered step-by-step guide, requiring interpretation to extract the workflow.
  • Lacks concrete code examples for the benchmarking setup or specific quality checks, making direct implementation harder.
  • Limited community engagement (low score, few comments) might suggest niche appeal or lack of visibility.

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 8h ago

Selected Workflow [Workflow] Claude Code Plugin: Task-Pipeline for Persistent Design Discussions and Structured Task Execution

1 Upvotes

Claude Code Plugin: Task-Pipeline for Persistent Design Discussions and Structured Task Execution

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

What problem this solves

Losing context and detailed design discussions with Claude Code sessions, and ensuring a clear, structured plan for implementation and review across multiple sessions.

Summary

A Claude Code plugin (task-pipeline) that allows users to capture and persist design discussions, plans, specifications, and roadmaps into Markdown files. This enables structured task execution, review, and knowledge reuse across different Claude Code sessions, preventing context evaporation.

Why it is useful

This workflow is highly valuable because it directly addresses a fundamental challenge in AI-assisted development: the ephemeral nature of conversational context. By providing a structured plugin with specific slash commands, it allows users to capture, persist, and reuse detailed design discussions, plans, and specifications across Claude Code sessions. This significantly enhances efficiency, consistency, and reviewability of development tasks, moving beyond simple prompt engineering to a more robust, repeatable, and maintainable development process. The inclusion of different planning levels (task, plan, spec, roadmap) and a pre-mortem 'grill' skill makes it a comprehensive tool for structured interaction with the agent.

Workflow

  1. Engage in a detailed design discussion with Claude Code regarding a feature or solution.
  2. Use a task-pipeline slash command (e.g., /task:to-plan) to freeze the discussion context and generated plan into a structured Markdown file (e.g., .task/task/http-retry-backoff.md).
  3. Review the generated Markdown file to ensure it accurately reflects the desired plan, description, and logic.
  4. In a new Claude Code session, with zero prior context, instruct Claude to "implement [path/to/plan.md]".
  5. Claude follows the persisted plan, potentially running verification (/verify) and code review (/code-review) steps.
  6. Claude commits the completed changes based on the plan.
  7. For larger initiatives, use /task:to-roadmap to create an epic-level plan without technical details.
  8. Utilize /roadmap-to-workflow to dynamically execute items from a roadmap, with Claude automatically selecting the model and effort level.
  9. Optionally, use the /grill skill for an interactive pre-mortem exercise, identifying potential failure modes and focusing the solution on avoiding them.

Tools / artifacts

  • task-pipeline Claude Code plugin
  • Slash commands: /task:to-task, /task:to-plan, /task:to-spec, /task:to-roadmap, /roadmap-to-workflow, /grill
  • Markdown files (e.g., .task/task/*.md)
  • Claude Code environment
  • GitHub (for plugin source and documentation)

Validation signals

  • Author states daily personal use, indicating practical utility.
  • Plugin is a distilled version of many private iterations, suggesting refinement and robustness.
  • Addresses a common and critical problem: context loss in AI sessions.
  • Provides concrete usage examples with before/after scenarios.
  • Integrates with standard Claude Code review processes (/verify, /code-review).
  • Compares itself to existing alternatives (superpowers, openspec), showing thoughtful design choices.
  • The 'grill' skill is inspired by a well-known community skill (Matt Pocock's grilling), indicating a recognized problem space.

Limitations

  • Low community engagement (score 1, 0 comments) means limited external validation.
  • Requires installing a third-party plugin, which might be a barrier for some users or require specific setup steps not detailed in the post itself (though linked to docs).
  • The post does not include direct installation instructions for the plugin, relying on external documentation.

Rate this workflow

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

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

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


This post was generated automatically from the workflow library database.


r/ClaudeWorkflows 10h ago

Selected Workflow [Workflow] Multi-Agent Code Review Pipeline with Independent LLM Supervision

1 Upvotes

Multi-Agent Code Review Pipeline with Independent LLM Supervision

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

What problem this solves

Supervising AI-generated code without blindly approving everything, reducing manual review effort, context bloat, and usage costs in a development pipeline.

Summary

A multi-agent system orchestrated by Python scripts automates code review and repair. A 'builder' agent generates code, a 'supervisor' runs checks and initiates review, and an 'independent reviewer' (potentially from a different LLM provider like Gemini) assesses the code. If issues are found, a 'repair agent' is tasked, minimizing direct human intervention to only critical decisions.

Why it is useful

This workflow provides a structured, multi-agent approach to a critical problem in AI-assisted development: ensuring code quality and reducing manual oversight without blindly trusting the AI. It addresses practical concerns like context bloat and cost optimization. The innovative use of an independent LLM provider (e.g., Gemini) for review is a sophisticated technique to mitigate model blind spots, enhancing the reliability of the automated pipeline. It offers a blueprint for advanced users to build more robust and autonomous development workflows.

Workflow

  1. Builder agent completes its task, writes a structured result, and exits.
  2. Supervisor detects the builder's exit and the structured result.
  3. Supervisor runs required checks (e.g., tests) on the generated code.
  4. Supervisor launches a new headless AI session for review, providing the original task, code diff, and test results.
  5. Reviewer agent (e.g., Gemini) returns a 'pass', 'repair request', or 'question', then exits.
  6. If the reviewer passes, the supervisor continues the development pipeline.
  7. If the reviewer identifies issues, the supervisor creates a repair ticket for another agent (e.g., Claude) to address.
  8. The supervisor only contacts a human when a real decision is needed that cannot be automated.

Tools / artifacts

  • Python scripts (for orchestration)
  • Structured results (from builder agent)
  • Code diffs
  • Test results
  • Repair tickets
  • Claude (as builder/repair agent)
  • Gemini (as independent reviewer)
  • Headless AI sessions

Validation signals

  • Author states: 'so far this approach has reduced usage, context bloat and manual work.'

Limitations

  • The architecture is still 'building out' and not yet fully mature or released.
  • Requires significant technical expertise in Python scripting, multi-agent system design, and API integration.
  • No concrete code examples, detailed prompts, or specific configurations are provided yet.
  • Low community validation (score 2, 0 comments) means its effectiveness is primarily self-reported at this stage.

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 10h ago

Selected Workflow [Workflow] Efficient Claude Code Supervision for Non-Developers: Leveraging Plan Mode and In-Session Reviewer Subagents

1 Upvotes

Efficient Claude Code Supervision for Non-Developers: Leveraging Plan Mode and In-Session Reviewer Subagents

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/ClaudeAI post/comment

What problem this solves

Inefficient and blind supervision of Claude Code by non-developers, involving excessive manual review, context switching, and manual documentation updates.

Summary

A workflow for non-developer builders to efficiently supervise Claude Code by leveraging its built-in plan mode for initial reasoning review, using an in-session reviewer subagent for routine checks, and automating CLAUDE.md updates to manage context.

Why it is useful

This workflow is valuable because it provides specific, actionable advice on how to use Claude Code's advanced features (plan mode, subagents, internal memory management) to create a more efficient and less manual supervision workflow. It directly addresses common inefficiencies like excessive context switching and manual documentation, making AI supervision more practical and less burdensome, especially for users who are not professional developers.

Workflow

  1. Utilize Claude Code's "plan mode" to review the AI's reasoning and proposed steps before it generates any code.
  2. Reserve external chat windows or human reviewers for high-stakes decisions such as architectural choices or irreversible changes.
  3. For routine code review and verification, instruct Claude Code to spin up a "reviewer subagent" within the same session to check the coder's work.
  4. At the end of each task or significant iteration, explicitly tell Claude Code to update its own internal memory/log (e.g., CLAUDE.md) automatically with relevant information.

Tools / artifacts

  • Claude Code's plan mode
  • Reviewer subagent (within Claude Code session)
  • CLAUDE.md (as internal memory/log)

Validation signals

  • Addresses common pain points (overkill copy-paste, manual sync)
  • Leverages built-in Claude Code features for efficiency
  • Provides a structured approach to supervision

Limitations

  • Lacks concrete examples of prompts for instructing the reviewer subagent.
  • Does not provide specific syntax or examples for telling Claude Code to update its memory/log.
  • Low community validation (Reddit score and 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.