OmniscioGuidesClaude Code everyday tasks
Claude Code everyday tasks: step-by-step recipes
Most of a day with Claude Code is a handful of repeating jobs, and each one has a shape that works better than the others. This page walks them in the order they come up: learning code you did not write, fixing a bug, refactoring, adding tests, opening a pull request, writing documentation.
It then covers the smaller habits that make those jobs easier: images and @ references, notes folders that are not code, and the commands and habits that carry work across sittings and sessions.
One boundary up front: these are everyday tasks. The dynamic workflows feature is a different thing — a script Claude writes to orchestrate many subagents — and has its own guide.
Sources read on November 22, 2026. By the Omniscio team. Updated .
Understand a codebase
Anthropic's recipe is four steps: move to the project root, start claude, ask for a high-level overview, then dive into the components you care about.
cd /path/to/project
claude
give me an overview of this codebaseThe follow-up questions are where the value is, and each one is a plain sentence:
explain the main architecture patterns used here
what are the key data models?
how is authentication handled?Anthropic's tips for this stage: start with broad questions and narrow down, ask about the conventions and patterns the project uses, and request a glossary of the project's own terms.
To find a specific feature, ask Claude to locate the files, then ask how they fit together, then ask it to trace a flow:
find the files that handle user authentication
how do these authentication files work together?
trace the login process from front-end to databaseIf you do this often, Anthropic suggests installing a code intelligence plugin for your language, which gives Claude precise go-to-definition and find-references navigation.
Source: "Understand new codebases" in Common workflows, read November 22, 2026.
Fix a bug
The recipe has three moves: share the error, ask for options, then ask for the one you picked.
I'm seeing an error when I run npm test
suggest a few ways to fix the @ts-ignore in user.ts
update user.ts to add the null check you suggestedThree details change the answer. Give the command that reproduces the problem and get a stack trace, mention the steps that reproduce it, and say whether it happens every time or only sometimes.
Asking for a few options first is the part people skip, and it is what keeps a fix inside the codebase's existing style instead of introducing a second way to do the same thing.
Refactor
Refactoring adds a step to the bug recipe — find, suggest, refactor, then run the tests:
find deprecated API usage in our codebase
suggest how to refactor utils.js to use modern JavaScript features
refactor utils.js to use ES2024 features while maintaining the same behavior
run tests for the refactored codeAnthropic's tips are the ones a reviewer would give: ask Claude to explain the benefit of the modern approach, ask for backward compatibility where it matters, and do the work in small, testable increments.
Write tests
Find what is uncovered, ask for scaffolding, then ask for the cases that matter, then run them:
find functions in NotificationsService.swift that are not covered by tests
add tests for the notification service
add test cases for edge conditions in the notification service
run the new tests and fix any failuresClaude examines your existing test files and matches their style, framework and assertion patterns, so a new test file looks like the rest of the suite. Anthropic's advice for coverage is to ask for the edge cases you might have missed: error conditions, boundary values, and unexpected inputs.
If a test is failing and the cause is not obvious, the error messages guide covers the runtime errors Claude Code reports, and the stuck session guide covers a run that stops making progress.
Open a pull request
You can ask for the whole thing in one sentence, "create a pr for my changes", or go step by step: summarise the changes, generate the pull request, then refine the description.
summarize the changes I've made to the authentication module
create a pr
enhance the PR description with more context about the security improvementsTo find the session again later, run claude --from-pr 1234 with your own pull request number, which opens the session picker filtered to sessions linked to that pull request, or paste the pull request URL into the /resume picker's search.
Claude links a session to a pull request when it creates one with gh pr create or glab mr create, and when it works on an existing pull request.
Anthropic's tip is to review the generated pull request before submitting and ask Claude to highlight risks or considerations.
Write documentation
The documentation recipe is find, generate, improve, verify:
find functions without proper JSDoc comments in the auth module
add JSDoc comments to the undocumented functions in auth.js
improve the generated documentation with more context and examples
check if the documentation follows our project standardsName the documentation style you want, ask for examples inside it, and point it at the public APIs, interfaces and complex logic rather than everything at once.
Images, @ references and notes folders
Images
There are three ways to get an image in front of Claude: drag and drop it into the Claude Code window, copy it and paste with Ctrl+V (or Alt+V on Windows and WSL), or give it a path and ask about the image at that path.
Screenshots of errors, UI mockups and diagrams are the usual cases: "Here's a screenshot of the error. What's causing this?" is a complete prompt. When Claude refers to an image as [Image #1], Cmd+Click on a Mac or Ctrl+Click on Windows and Linux opens it in your default viewer.
@ references
Typing @ opens a path suggestion menu and includes the file's content in the conversation, without waiting for Claude to read it:
Explain the logic in @src/utils/auth.js
What's the structure of @src/components?Two limits are worth knowing. The content is included when it fits the Read tool's token limit, 25,000 tokens by default, and a text file larger than 256KB is not included at all. A directory reference shows the file listing rather than the contents of the files in it.
An @ file reference also adds the CLAUDE.md in that file's directory and its parent directories to context. Because including the file makes no tool call, a PreToolUse hook does not run for it; to stop references from including file contents, set CLAUDE_CODE_DISABLE_FILE_MENTIONS to 1 in your shell or in the env block of user or managed settings — project and local settings ignore it — which requires Claude Code v2.1.299 or later.
Notes and other non-code folders
Claude Code works in any directory. Run it inside a notes vault or a documentation folder and it searches, edits and reorganises markdown the same way it would code. The .claude/ directory and CLAUDE.md sit alongside other tools' configuration without conflict, and Claude reads files fresh on each tool call, so an edit you make in another application is visible the next time it reads that file.
Asking Claude about Claude Code
Claude can answer questions about its own features and limits, looking the answers up in the current documentation rather than in the version you are running: "can Claude Code create pull requests?", "how does Claude Code handle permissions?", "what are the limitations of Claude Code?". Anthropic also points at /powerup, which runs interactive lessons with animated demos.
Sources: "Work with images", "Reference files and directories", "Work in notes and non-code folders" and "Ask Claude about its capabilities" in Common workflows, read November 22, 2026.
Carry work across sittings and sessions
Resume a conversation
Claude Code saves every conversation locally. claude --continue resumes the most recent one in the current directory, and it prints No conversation found to continue and exits when there is nothing to resume. claude --resume chooses from a list instead, and /resume does the same from inside a running session.
Coming back to a session you left open is its own case: the session recap guide covers the one-line summary Claude Code writes while you are away.
Run two sessions without collisions
A git worktree is a separate checkout on its own branch, created from an existing commit, so the repository needs at least one commit before it exists:
claude --worktree feature-authRun the same command with a different name in a second terminal and the two sessions no longer collide on the same files. The worktrees guide covers cleanup and what each worktree holds, and running several sessions covers the wider habits.
Plan before editing
Plan mode has Claude read files and propose a plan with no edits until you approve it. Start with claude --permission-mode plan, or press Shift+Tab mid-session until the status bar shows ⏸ plan mode on.
Delegate the reading
Exploring a large codebase fills your context with file reads. A subagent reads into its own context window and reports back a summary, so only the findings arrive:
use a subagent to investigate how our auth system handles token refreshThe subagents guide covers defining your own agents with their own tools and instructions.
Pipe Claude into a script
For CI, pre-commit hooks and batch work, Claude runs non-interactively and reads standard input:
git log --oneline -20 | claude -p "summarize these recent commits"Anthropic documents the output formats, permission flags and fan-out patterns under non-interactive mode.
Put a task on a schedule
Anthropic lists four places a recurring task can run, and the choice is about where it should run rather than what it does: cloud scheduled tasks run even when your computer is off and can also trigger on API calls or GitHub events; desktop scheduled tasks run on your machine and can reach local files, tools and uncommitted changes; GitHub Actions ties a task to repository events or a cron schedule; and /loop polls inside the current session.
Sources: "Resume previous conversations", "Run parallel sessions with worktrees", "Plan before editing", "Delegate research to subagents", "Pipe Claude into scripts" and "Run Claude on a schedule" in Common workflows, read November 22, 2026.
Where these answers come from
- Every recipe, command and claim about how Claude Code behaves: Common workflows, read November 22, 2026.
- What dynamic workflows are, in the boundary paragraph: the documentation index, read November 22, 2026.
- The same page names Best practices for higher-level guidance on prompting and context management; that pointer is Anthropic's.
No command on this page was run against a repository to check it: every recipe and every command is Anthropic's own wording, quoted as it appears.
Common questions
What is the difference between common workflows and dynamic workflows?
Common workflows are the everyday recipes on this page: understanding code, fixing a bug, refactoring, writing tests and opening a pull request, each a short series of prompts. Dynamic workflows are a separate Claude Code feature where Claude writes a script that orchestrates many subagents.
How do I get back to a conversation I started earlier?
Run claude --continue to resume the most recent session in the current directory, or claude --resume to choose from a list. Inside a running session, /resume does the same. If there is nothing to continue in that directory, --continue prints No conversation found to continue and exits.
How do I stop Claude editing files before I have approved the plan?
Use plan mode. Start with claude --permission-mode plan, or press Shift+Tab mid-session until the status bar shows plan mode is on. Claude reads files and proposes a plan but makes no edits until you approve it.
Does @ include the whole file in the conversation?
It includes the file's content when the file fits the Read tool's token limit, 25,000 tokens by default, and a text file larger than 256KB is not included at all. A directory reference shows its file listing, not the contents of the files in it.
Can I run Claude Code non-interactively in a script?
Yes. Pipe input into claude -p with the instruction, for example git log --oneline -20 | claude -p "summarize these recent commits". Anthropic documents output formats, permission flags and fan-out patterns under non-interactive mode.