How I use Claude Code (Meta Staff Engineer Tips)
Overview
John Kim shares 50 Claude Code practices drawn from six months of daily use, from setting up a project-root workflow and writing concise CLAUDE.md instructions to managing context, validation, and permissions. His central argument is that reliable AI coding depends on fresh, focused context and strong feedback loops; he also demonstrates plan-first development, reusable skills, targeted subagents, and parallel work across terminal sessions.
Key takeaways
- A concise, project-specific CLAUDE.md with architecture details and working build or test commands helps Claude act on the repository and validate its own changes.
- Plan-first work improves execution: refine assumptions and requirements before editing, rather than accumulating trial-and-error prompts in an increasingly bloated context.
- The quality of an AI coding workflow depends heavily on its validation loop, whether that means an Xcode build, browser automation, application logs, or performance traces.
- Use /context to audit token consumption and limit MCPs to integrations needed for the current project, since tool descriptions and usage can expand the active context.
- Subagents are most useful for independent, atomic investigations; tasks that rely on detailed knowledge of the current implementation often work better in the main session.
- Parallel Claude Code sessions can increase throughput, but concurrent edits to one project call for Git worktrees to isolate each session’s branch and files.
Chapters
- Launch Claude Code from the project root so it can load relevant project rules and context.
- Run /init to analyze the codebase and create an initial CLAUDE.md describing its architecture and technologies.
- Keep CLAUDE.md concise, around 300 lines as a rough target, and organize it around project purpose, domain knowledge, architecture, and validation steps.
- Include build and test commands, such as the Xcode build flow, so Claude can check its work and iterate.
- Use Shift+Tab to switch modes; John Kim generally starts new features in plan mode before accepting edits.
- Press Escape to stop a run and redirect Claude when it makes a wrong assumption; use double Escape to clear draft input.
- On an empty prompt, double Escape opens rewind options for restoring an earlier conversation or code state.
- Drag screenshots into Claude Code for UI tasks and describe what the image shows; consider a relevant Figma MCP for design context.
- Use /clear when starting an unrelated task so old discussion does not influence the new work.
- Use /context to inspect token usage and identify large contributors, including MCP tools that may consume substantial context.
- Let automatic compaction summarize long sessions; John Kim uses manual compaction mainly when saving notes to a personal project knowledge base.
- Use /model to select a model based on cost and task needs, /resume to recover a session, /mcp to inspect integrations, and /help to explore commands.
- Treat Git as the primary safety net for code changes, rather than relying on rewind as a substitute for version control.
- Put the most important instructions first and express project-specific requirements as clear rules, including concrete examples where useful.
- When Claude repeats a mistake involving a custom DSL or company-specific pattern, correct the code and ask Claude to update CLAUDE.md so the lesson persists.
- Add workflow triggers, such as a phrase that invokes an Xcode MCP build, to make project-specific actions easier to request.
- Commit CLAUDE.md for teammates only after removing personal or machine-specific details and checking that its added context is worth loading for everyone.
- Use --dangerously-skip-permissions only in disposable or low-risk environments, and retain permission safeguards for destructive actions such as file deletion.
- Start substantial work in plan mode, challenge the proposed approach, and refine requirements before asking Claude to edit files.
- Prefer fresh, well-scoped context over repeatedly adding failed attempts; a clear plan gives implementation a stable reference.
- Create task-specific validation loops, such as compiling an iOS app with Xcode, checking browser flows with Puppeteer, or inspecting logs and performance traces.
- Save project notes and to-dos in a personal knowledge base and load them when needed, rather than carrying every project detail into every session.
- Interrupt Claude when it is making unsupported assumptions, and use concurrent sessions to keep work moving while another task is running.
- Turn a repeatable workflow into a skill by asking Claude to save the steps as an instruction file; skills can also be invoked as slash commands.
- Ask Claude to maintain skills as workflows evolve, but verify that integrations and sources, such as Twitter access, are actually available.
- Use MCPs for specific integrations such as Figma or Xcode, while monitoring their token and context costs with /context.
- Reserve subagents for atomic or independent investigations that benefit from parallel execution; keep tightly coupled implementation and testing work in the main session when it needs shared context.
- Use lazy-loaded project notes to keep the active context focused instead of permanently loading every instruction and project detail.
- Run several Claude Code instances in iTerm2 and switch between tasks while each instance works independently.
- Use Command+D to create a terminal pane and keyboard navigation to move between sessions; rename tabs for projects or environments such as local and remote SSH.
- Use Git worktrees when multiple sessions need to edit the same repository concurrently, giving each session a separate working tree and branch.
- Configure completion notifications, such as a sound, to notice when a long-running session finishes without watching it continuously.
- Use /chrome to let Claude inspect and interact with a browser, including searching YouTube for cooking videos or navigating sites without a direct API.
- Combine browser actions with reusable commands or skills to gather information and return results to the session.
- Configure hooks for actions before or after tool use, such as running a formatter or linter after edits.
- Consider safety hooks that block destructive operations, especially in work environments where database or filesystem changes could be costly.
- Explore plugins as bundles combining capabilities such as skills, MCP integrations, subagents, and scripts.
- Browse Anthropic’s plugin ecosystem for existing workflows before building an equivalent setup from scratch.
- Keep the guiding principle consistent across tools: provide Claude with the context needed for the task, and avoid adding irrelevant context.
Transcript excerpt
0:00 Hello. Hello there. How's it going everybody? Today we're going to go over my 50 cloud code tips. I've been working with cloud code basically every day for about 6 months now. And I feel like I've learned a ton of things. And yes, I am one of those engineers that are basically not writing code anymore. I'm still in cloud code like 12 hours a day actively pair programming with cloud code basically and reviewing a ton of code. I still read every single line of code. That's actually my biggest bottleneck right now, the reviewing of the code. But I thought it would be great to show you kind of the best tips that I've learned along the way. And these are kind of tips that I wish I knew when I was first getting started. We're going to start off with some foundation stuff like setting up very quick setup stuff, a little bit about
0:46 like cloud.md rules, like what you should put in, what you should think about, and kind of some of the advanced stuff for later. But without further ado, let's dive into 50 cloud code tips. So, I got my terminal here and I just have some slides behind to uh tell you guys what I'm doing. So, here is the foundations that I mentioned. We're going to cover getting started, keyboard shortcuts, some essential like slash commands, and a little bit of a deep dive into the claw.md. So, let's get started. All right. So, for tip number one, you want to run cloud code in your root directory of whatever project you're working on. So, for example, I have this Pomodoro app that I'm like kind of been working on. So, I'll type in like claude here. And that's essentially how you get started. And you
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, John Kim.