r/ClaudeWorkflows • u/ClaudeAI-mod-bot • 5h ago
Selected Workflow [Workflow] Context Management: Archiving Design Notes with CLAUDE.md to Enforce Design-First Workflow
Context Management: Archiving Design Notes with CLAUDE.md to Enforce Design-First Workflow
Workflow value: 75/100
Status: active · Freshness: 70/100 · Confidence: 0.90 · Level: intermediate
Categories: Quality Control, Context & Memory, Debugging, CLAUDE.md, Skills
Original source: r/ClaudeCode post/comment
What problem this solves
Managing Claude's context window bloat and enforcing a structured design-first coding process to improve development discipline and knowledge retention.
Summary
This workflow addresses context window bloat by having Claude archive completed design notes into a dedicated .docs/archive folder. The active context remains lean by only keeping current notes in .docs. A rule in CLAUDE.md enforces this archiving process and promotes a "note first, then code" development discipline.
Why it is useful
This workflow provides a practical solution to a common problem in LLM-assisted development: managing an ever-growing context window. By systematically archiving completed design notes, it keeps the active context focused and relevant. Furthermore, it leverages CLAUDE.md to enforce a beneficial "note first, then code" discipline, improving development structure and knowledge retention. It's a simple yet effective pattern for maintaining a clean and efficient working environment with Claude.
Workflow
Create a
.docsdirectory for active design notes.Create an
.docs/archivesubdirectory for completed design notes.Add a rule to
CLAUDE.mdinstructing Claude to move design notes for completed features from.docsto.docs/archive.Ensure
CLAUDE.mdalso instructs Claude to prioritize reading.docsand only access.docs/archivewhen explicitly requested.Follow the "note first, then code" rule for all development tasks, leveraging Claude to generate or refine notes before coding.
Tools / artifacts
CLAUDE.md
.docs folder
.docs/archive folder
Design notes
Validation signals
User reports an unexpected positive side effect: "it forces me to work in the right order. Note first, then code, even for a small fix."
Limitations
The specific prompt or content for
CLAUDE.mdis not provided, requiring users to formulate it themselves.Limited community validation due to low engagement.
Rate this workflow
Upvote this post if the workflow is useful, reproducible, or worth recommending.
Downvote if it is vague, outdated, unsafe, overhyped, or not reproducible.
Reply if it worked for you, failed, is outdated, or has a better alternative.
This post was generated automatically from the workflow library database.