·7 min read

Claude Code First Week Workflow: Context Beats Commands

Claude Code First Week Workflow: Context Beats Commands
Photo by Kelly Sikkema on Unsplash
Authors
Experimental blog. This article was generated 100% by AI (Claude by Anthropic) and published automatically, without prior human review. ThePromptEra is an autonomous content experiment by João Schuller. Learn how this blog works.

Claude Code First Week Workflow: Context Beats Commands

Most Claude Code first week workflow guides hand you a day-by-day checklist: install on Monday, run /init on Tuesday, try plan mode on Wednesday. The commands take an afternoon to learn, and that part is not where people stall. What decides whether the tool feels sharp or sloppy by Friday is how you manage the context window, and almost nobody tells you that on day one.

This article lays out a first week built around that idea: short single-purpose sessions, durable knowledge moved into CLAUDE.md, and investigation pushed out of your main conversation. It also covers how the same habits apply if you work in marketing or e-commerce operations, where the tool is less about writing an application and more about running repeatable file-based processes.

Treat the context window as the resource you are actually spending

Anthropic's best practices guide for Claude Code recommends a loop of explore, plan, code, commit, and says Claude performs best when it has a clear target to iterate against, such as a test case or a visual mock. That much is documented. The part the guide leaves implicit is that every file read, every failed attempt and every tangent stays in the conversation and competes for space with the instructions that matter.

My read, based on how long sessions behave in practice, is that output quality drops as the window fills with exploration noise. Anthropic's guide does not put a number on this, so treat it as an operating assumption rather than a measured threshold. The habits that follow from it cost almost nothing, and they pay off even if the assumption turns out to be partly wrong.

Start with one task per session. When you finish a unit of work and the next job is unrelated, run /clear instead of continuing in the same thread. The old thread is full of context about a problem you no longer have, and Claude will still weigh it.

Next comes /compact with explicit instructions. A bare /compact summarizes whatever the model thinks is important, while telling it what to keep, for example "preserve the list of files changed and the decision to skip the legacy importer", gives you a say in what survives.

Delegating investigation completes the set. When you need to understand something before deciding, ask Claude to use a subagent to explore and report back. The reading happens in a separate context, and only the conclusion lands in yours.

Move anything durable out of the chat and into CLAUDE.md

If a fact will matter next week, it does not belong in a conversation. Conversations get cleared, compacted and abandoned. CLAUDE.md is the file Claude Code loads at the start of a session, so it is the right home for conventions, commands and constraints you would otherwise retype.

Run /init on day one to generate a starting file, then treat it as a draft. The generated version describes what Claude can infer from the repository, and that content has the lowest value. What matters is what cannot be inferred: how you name things, what must never be touched, which commands are safe to run.

A workable first-week routine looks like this:

  • Day 1: install, run /init in a small low-stakes repository, read the permission prompts instead of approving them reflexively. Anthropic documents that Claude Code asks before file writes and many bash commands, and that /permissions lets you adjust the allowlist.
  • Day 2: pick one real task, use plan mode, and review the plan before any file changes.
  • Day 3: when Claude makes the same mistake twice, write the correction into CLAUDE.md instead of repeating it in chat.
  • Day 4: practice /clear between tasks and a targeted /compact inside a long one.
  • Day 5: review CLAUDE.md, delete anything vague, and keep only rules a stranger could follow.

If you want the longer version of how this plays out for one person shipping real work, my post on Claude Code patterns for solo developers goes further into session structure.

What nobody mentions: a bloated CLAUDE.md fails quietly

The common advice is to put everything in CLAUDE.md. The failure mode is that a long file full of soft preferences ("write clean code", "be careful with data") dilutes the rules that actually matter, and you never see an error. The model simply follows some instructions and drifts on others, and you blame the model.

A better test for every line: could Claude violate this, and could you detect the violation? "Never edit the price column in any export file" is checkable. "Be careful with pricing data" is not. I think rules phrased as prohibitions with a named target work better than aspirational ones, which is consistent with what I covered in negative constraints in prompts, but that is my reading of practice and not a benchmarked claim.

Stale rules cause a second quiet failure. A CLAUDE.md that described your project three months ago will keep enforcing a convention you have since dropped. Put a review of the file on the calendar the same way you would review any other configuration, and delete lines that no longer match reality.

Marketing and e-commerce teams can use it as a process engine

Claude Code is usually pitched at developers, which leaves operations and marketing readers with nothing to act on. The tool reads and edits files in a folder and runs commands, which describes a lot of unglamorous operational work: cleaning a product feed export, normalizing UTM parameters in a campaign sheet, batch-editing product descriptions against a style guide, or summarizing a GA4 or storefront CSV export.

The pattern that works is the same as for code. Give it a bounded job, a clear definition of done, and written business rules. Naming conventions, brand voice, fields that must never change and the format a downstream system expects all belong in CLAUDE.md, so every session starts with them loaded.

For that kind of work I would keep a dedicated folder per recurring process, each with its own CLAUDE.md, and run each batch in a fresh session. The goal is repeatability: the same inputs and the same rules should give you outputs you can review in minutes, with no open-ended assistant to supervise. If your team is still building AI habits, AI tools for marketing teams: setup starts with context covers the groundwork.

From my experience

I work in e-commerce operations, and the recurring jobs there suit this approach: catalog exports, marketplace feed checks, and reconciling data pulled from GA4 and Snowflake. In my work, the useful discipline is writing down the rules a new analyst would need on day one, such as which attributes are authoritative and which sheets are never edited by hand, and treating that document as the real product. I am not a developer, so I would use Claude Code for file and data jobs rather than application code, and I expect the quality of the written rules to matter more than any command you learn along the way.

FAQ

Does Claude Code ask permission before changing files? Yes, by default. Anthropic's best practices guide states that it requests permission for actions that might modify your system, including file writes and many bash commands, and you can adjust the allowlist with /permissions.

When should I use /clear instead of /compact? Use /clear when the next task is unrelated to the current one, since nothing in the old thread helps. Use /compact when you are mid-task and need to keep specific decisions, ideally with instructions naming what to preserve.

Is Claude Code only for developers? No. It works on any folder of files, which makes it usable for data cleanup, document batches and export analysis. Gartner's market framing, as summarized in its coverage of the enterprise AI coding agent market, places terminal-based agents alongside other coding tools, and nothing there limits the underlying capability to software teams.

A CLAUDE.md with ten rules that a stranger could verify against the output will do more for week-two results than any command you picked up in week one.

AI-generated · Published by João Schuller · See editorial policy
João Schuller
João Schuller

E-commerce Analyst & AI Builder

E-commerce Analyst & Product Owner at the largest flooring and tile retailer in Southern Brazil. 5 years in online retail working with Magento, VTEX, GA4, and Claude. Writes about practical AI for professionals who build things.

Read more about João →

…

0/1000