Claude code best Practices
Published: (December 23, 2025 at 01:42 AM EST)
2 min read
Source: Dev.to
Source: Dev.to
Fundamental
Essential commands: Bash mode (cmd)
Make documentationcreate todo listshift+tabor/model: change modelCheck memory:/memoryspacekey oresc: press once to interrupt, press twice to go back to the previous prompt in your session
Debugging
- Screenshot
- Write test for flow or feature
- Using TDD by Claude
Make Claude.md
- Project Overview: Appname, platform, tech stack, architecture, …
- Getting current Date: (notes for tech stack, …)
- Todo list
- Development Environment
- Common build issues & Solutions
- Testing & debugging
- Common mistakes to avoid
- Feature Development workflow
- Documentation Structure
- Message queue: means you prompt and the agent processes while you type a new prompt; they push into a queue and process later, which can affect the previous prompt.
- Long prompt: should be pushed to
prompt.mdstage markdown file
Intermediate
Using GitHub workflows
- Planning and thinking features
- Use Planning mode: choose model by command
/mode - Thinking modes:
think<think hard<think harder<ultra think - Using research: read linked docs and research how to build an API … or read a PDF to implement …
- Create PRDs: features, user‑experience guides, API, documentation, and technical design docs.
- Automatic change tracking:
/changelog day
GitHub Action Integration
/install-github-app: trigger actions by commenting on a pull request
Think like a product manager
- Provide clear, relevant context and constraints based on the markdown file
- Review code and verify that everything implemented works, checking output at higher levels of abstraction
Master
Using multiple agents
- Use parallel sub‑agents to brainstorm … (and choose one)
Collaborate with Git worktree
git worktree add {address location}and prompt to create features- When done, ask the agent to merge each worktree into one folder and resolve any conflicts
Custom slash commands
/changelog/create-command
Subagents
- Command
/agentsto create a sub‑agent that delegates task handling
MCP server
- Database MCP examples:
mongodb-mcp,postgres-mcp,supabase - Interactive with browser: click on UI
- Figma MCP
Read more on: Claude CLI Reference
That’s it! Happy reading and happy coding!