back to home

ykdojo / claude-code-tips

45 tips for getting the most out of Claude Code, from basics to advanced - includes a custom status line script, cutting the system prompt in half, using Gemini CLI as Claude Code's minion, and Claude Code running itself in a container. Also includes the dx plugin.

View on GitHub
6,552 stars
449 forks
2 issues

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing ykdojo/claude-code-tips in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/ykdojo/claude-code-tips)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

45 Claude Code Tips: From Basics to Advanced Here are my tips for getting the most out of Claude Code, including a custom status line script, cutting the system prompt in half, using Gemini CLI as Claude Code's minion, and Claude Code running itself in a container. Also includes the dx plugin. 📺 Quick demo - See some of these tips in action with a multi-Claude workflow and voice input: Table of Contents • Tip 0: Customize your status line • Tip 1: Learn a few essential slash commands • Tip 2: Talk to Claude Code with your voice • Tip 3: Break down large problems into smaller ones • Tip 4: Using Git and GitHub CLI like a pro • Tip 5: AI context is like milk; it's best served fresh and condensed! • Tip 6: Getting output out of your terminal • Tip 7: Set up terminal aliases for quick access • Tip 8: Proactively compact your context • Tip 9: Complete the write-test cycle for autonomous tasks • Tip 10: Cmd+A and Ctrl+A are your friends • Tip 11: Use Gemini CLI as a fallback for blocked sites • Tip 12: Invest in your own workflow • Tip 13: Search through your conversation history • Tip 14: Multitasking with terminal tabs • Tip 15: Slim down the system prompt • Tip 16: Git worktrees for parallel branch work • Tip 17: Manual exponential backoff for long-running jobs • Tip 18: Claude Code as a writing assistant • Tip 19: Markdown is the s**t • Tip 20: Use Notion to preserve links when pasting • Tip 21: Containers for long-running risky tasks • Tip 22: The best way to get better at using Claude Code is by using it • Tip 23: Clone/fork and half-clone conversations • Tip 24: Use realpath to get absolute paths • Tip 25: Understanding CLAUDE.md vs Skills vs Slash Commands vs Plugins • Tip 26: Interactive PR reviews • Tip 27: Claude Code as a research tool • Tip 28: Mastering different ways of verifying its output • Tip 29: Claude Code as a DevOps engineer • Tip 30: Keep CLAUDE.md simple and review it periodically • Tip 31: Claude Code as the universal interface • Tip 32: It's all about choosing the right level of abstraction • Tip 33: Audit your approved commands • Tip 34: Write lots of tests (and use TDD) • Tip 35: Be braver in the unknown; iterative problem solving • Tip 36: Running bash commands and subagents in the background • Tip 37: The era of personalized software is here • Tip 38: Navigating and editing your input box • Tip 39: Spend some time planning, but also prototype quickly • Tip 40: Simplify overcomplicated code • Tip 41: Automation of automation • Tip 42: Share your knowledge and contribute where you can • Tip 43: Keep learning! • Tip 44: Install the dx plugin • Tip 45: Quick setup script Tip 0: Customize your status line You can customize the status line at the bottom of Claude Code to show useful info. I set mine up to show the model, current directory, git branch (if any), uncommitted file count, sync status with origin, and a visual progress bar for token usage. It also shows a second line with my last message so I can see what the conversation was about: This is especially helpful for keeping an eye on your context usage and remembering what you were working on. The script also supports 10 color themes (orange, blue, teal, green, lavender, rose, gold, slate, cyan, or gray). To set this up, you can use this sample script and check the setup instructions. Tip 1: Learn a few essential slash commands There are a bunch of built-in slash commands (type to see them all). Here are a few worth knowing: /usage Check your rate limits: If you want to watch your usage closely, keep it open in a tab and use Tab then Shift+Tab or ← then → to refresh. /chrome Toggle Claude's native browser integration: /mcp Manage MCP (Model Context Protocol) servers: /stats View your usage statistics with a GitHub-style activity graph: /clear Clear the conversation and start fresh. Tip 2: Talk to Claude Code with your voice I found that you can communicate much faster with your voice than typing with your hands. Using a voice transcription system on your local machine is really helpful for this. On my Mac, I've tried a few different options: • superwhisper • MacWhisper • Super Voice Assistant (open source, supports Parakeet v2/v3) You can get more accuracy by using a hosted service, but I found that a local model is strong enough for this purpose. Even when there are mistakes or typos in the transcription, Claude is smart enough to understand what you're trying to say. Sometimes you need to say certain things extra clearly, but overall local models work well enough. For example, in this screenshot you can see that Claude was able to interpret mistranscribed words like "ExcelElanishMark" and "advast" correctly as "exclamation mark" and "Advanced": I think the best way to think about this is like you're trying to communicate with your friend. Of course, you can communicate through texts. That might be easier for some people, or emails, right? That's totally fine. That's what most people seem to do with Claude Code. But if you want to communicate faster, why wouldn't you get on a quick phone call? You can just send voice messages. You don't need to literally have a phone call with Claude Code. Just send a bunch of voice messages. It's faster, at least for me, as someone who's practiced the art of speaking a lot over the past number of years. But I think for a majority of people, it's going to be faster too. A common objection is "what if you're in a room with other people?" I just whisper using earphones - I personally like Apple EarPods (not AirPods). They're affordable, high quality enough, and you just whisper into them quietly. I've done it in front of other people and it works well. In offices, people talk anyway - instead of talking to coworkers, you're talking quietly to your voice transcription system. I don't think there's any problem with that. This method works so well that it even works on a plane. It's loud enough that other people won't hear you, but if you speak close eno…