Structured AI Workflow with Phase-Based Commands to Reduce Rework

A developer on r/ClaudeAI describes a repeatable, programmable workflow designed to address persistent issues when using AI for daily development. The core problem identified was not needing a smarter model, but needing a repeatable process to stop fixing the same mistakes. Key pain points included AI losing context between sessions, breaking project standards on basics like naming and style, mixing planning with execution, and treating documentation as an afterthought.
Phase-Based Command Workflow
The solution replaces reliance on a single giant prompt with a series of clear, phase-specific commands:
/pwf-brainstorm– Defines scope, architecture, and decisions./pwf-plan– Turns the brainstorm into executable phases and tasks.- Optional quality gates:
/pwf-checklist,/pwf-clarify,/pwf-analyze. /pwf-work-plan– Executes the plan phase by phase./pwf-review– Performs a deeper review./pwf-commit-changes– Closes the task with structured commits.
For small tasks, the developer uses /pwf-work but maintains review and documentation discipline.
The Critical Rule
The rule that had the most significant impact on quality: /pwf-work and /pwf-work-plan are required to read documentation before implementation and update it afterward. This ensures the AI works with "project memory" instead of "half blind," dramatically improving consistency and reducing rework.
Supporting Project Structure
The workflow is supported by a specific project structure to improve AI context:
- One folder for code repositories.
- One folder for workspace assets (docs, controls, configs).
Both folders are opened as multi-root in an editor (like VS Code or Cursor), creating a monorepo-like experience that helps the AI see the full system without chaos.
Results and References
The developer reports direct impacts: fewer repeated mistakes, less rework, better consistency across sessions, and more output with fewer errors. They cited closing 25 tasks (small, medium, large) in a day by avoiding the same error loop. The approach was informed by studying concepts like Compound Engineering, Superpowers, Spec Kit, and Spec-Driven Development, but adapted and refined through personal use rather than copying a framework.
📖 Read the full source: r/ClaudeAI
👀 See Also

Camoufox Cookie Injection: Browse Reddit as Yourself While Your Agent Does the Work
A detailed walkthrough on bypassing Reddit bot detection by extracting Firefox cookies and injecting them into Camoufox via Playwright.

Three Essential OpenClaw Skills for a Stable Setup: Memory, Security, and Discovery
A Reddit post recommends installing three specific types of OpenClaw skills first: a memory fix skill to prevent context loss, a local security vetting skill to check for malicious code, and a curated discovery hub to find maintained tools.

Mac Mini M4 Pro vs Mac Studio M4 Max for Local LLM Inference – Key Considerations
A developer compares Mac Mini M4 Pro (12C CPU/16C GPU, 273 GB/s) vs Mac Studio M4 Max (16C CPU/40C GPU, 546 GB/s), both 64GB/1TB, for local inference with Gemma 4 and Qwen. Key question: is the bandwidth jump worth $600?

Debugging OpenClaw + Ollama Local Model Timeouts: Five Fixes for Silent Failures
A developer identified five root causes for OpenClaw agents silently timing out with local Ollama models like Gemma 4 26B, including a blocking slug generator, a 38K character system prompt, and hidden timeouts. The fixes involve disabling hooks, modifying configs, and adjusting Ollama settings.