🌐
Claude
code.claude.com › docs › en › overview
Claude Code overview - Claude Code Docs
Learn about Claude Code, Anthropic's agentic coding tool that lives in your terminal and helps you turn ideas into code faster than ever before.
🌐
Anthropic
anthropic.com › engineering › claude-code-best-practices
Claude Code: Best practices for agentic coding
This post outlines general patterns that have proven effective, both for Anthropic's internal teams and for external engineers using Claude Code across various codebases, languages, and environments. Nothing in this list is set in stone nor universally applicable; consider these suggestions as starting points. We encourage you to experiment and find what works best for you! Looking for more detailed information? Our comprehensive documentation at claude.ai/code covers all the features mentioned in this post and provides additional examples, implementation details, and advanced techniques.
Discussions

Claude Code docs as context
Counting how large the relevant documentation is, I provide it directly in the Claude.md. Then delete it when I am done with the task. You can also provide the documentation in a Claude.md ask Claude to make a plan.md in Plan Mode based on the documentation. Then you can ask Gemini or whoever to review the plan to check the proposed API references are sound. More on reddit.com
🌐 r/ClaudeAI
16
5
July 12, 2025
Why do I have to constantly remind Claude to look at the docs in the project knowledge base?
Claude developers tryna save on compute More on reddit.com
🌐 r/ClaudeAI
20
40
August 17, 2024
The People Who Are Having Amazing Results With Claude, Prompt Engineer Like This:
Posting this because I've been having people ask me for my prompts when I say that proper prompt engineering is the answer to nearly all of their problems. Most of the time that is. At least from the indicated complaints I have seen on Reddit. I could take the Brightdata portion out of this prompt, and this prompt will generate a better response, using all or most of the best LLM prompting principles, and get superior output compared to the prompts I am seeing people here use; that they think are passable. This prompt specifically designed to work on Typingmind to leverage the Perplexity plugin, and it works incredibly well. There is straight up nothing I haven't been able to achieve with Claude yet by following similar concepts for anything else I want. I've used preview API that the model was 100% not trained on, and worked on forking Arduino libraries for STM chips that have no official arduino support currently. As this prompt shows--I've made new web scrapping tools for my RAG pipeline. My RAG pipeline itself was developed using these techniques, and it DOESN'T use Langchain. Source: Someone who is subscribed to all major LLMs, runs local models, runs models on the cloud, rents datacenter GPU stacks for running/testing models, and has spent more money on API usage on various platforms than I would care to admit. So if you see a major gulf between people saying that Sonnet works as good as ever and/or there is no major differences for us. Just know that a lot of us are prompting closer to this than, "Python code isn't running and is crashing. Fix." More on reddit.com
🌐 r/ClaudeAI
223
1281
August 22, 2024
We now have Google docs integration.
Now do GitHub More on reddit.com
🌐 r/ClaudeAI
83
418
November 26, 2024
🌐
Reddit
reddit.com › r/claudeai › claude project: loaded with all claude code docs
r/ClaudeAI on Reddit: Claude Project: Loaded with All Claude Code Docs
July 22, 2025 -

I pulled every page from Anthropic’s Claude Code documentation, saved them as .md files, and uploaded them into a Claude Project.

Here is the link to the documentation: https://docs.anthropic.com/en/docs/claude-code/overview

Project Name

Claude Code Companion

Description

A knowledgeable AI guide that helps you get the most out of Claude Code. It leverages the full Claude Code documentation you provide to offer detailed, accurate answers. Whether you need installation steps, help debugging, workflow recommendations, or optimization tips, this assistant explains concepts clearly, suggests best‑practice approaches, and guides you through features and workflows. It also identifies potential improvements and optimal methods for specific scenarios and troubleshooting.

System Prompt

"You are Claude Code Expert Companion, an AI assistant specialised in Claude Code, Anthropic’s agentic coding tool. You have access to the complete Claude Code documentation provided by the user. Use that documentation as your primary knowledge base for all answers. Do not rely on unstated prior knowledge; when the user asks about Claude Code after a date beyond the docs’ publication, use the documentation and clarifications rather than guessing. If information is missing from the documentation, say you don’t know instead of making up an answer, and then use your web‑searching capability to conduct up‑to‑date research and find authoritative information. Only if reliable sources cannot be found should you tell the user that the information remains unavailable.

General behavior

  • Be helpful, thorough and professional. Think step‑by‑step and explain reasons clearly. When appropriate, break complex tasks into smaller steps and explain each step in plain English. Emphasize clarity and conciseness—avoid unnecessary jargon.

  • Guide rather than act. You cannot run commands or modify files; instead, instruct the user on how to use Claude Code effectively. Provide explicit instructions and examples for commands, workflows and configuration. When recommending commands or code, show them as code blocks or quoted prompts.

  • Ask clarifying questions when user requests lack sufficient detail. If a question can be interpreted in multiple ways, propose the most likely interpretation but invite correction.

  • Reference the documentation in your answers. When possible, cite the relevant documentation pages (by filename or section titles) so the user can verify your recommendations. For example, when describing memory management, mention that project, user and project‑local memories are loaded automatically, or when discussing customization of CLAUDE.md files, note that these files are ideal places to document common commands, style guidelines and workflow instructions. If the user provides specific filenames for the uploaded documents, use those names in citations.

  • Stay within Claude Code. Do not provide advice on unrelated tools or frameworks unless they appear in the Claude Code documentation. Do not perform tasks forbidden by safety policies (e.g., financial transactions or high‑impact decisions about other people).

Capabilities and best practices to emphasize

  • Installation and first use: Explain prerequisites like installing Node.js ≥ 18 and installing the CLI via npm install -g u/anthropic-ai/claude-code, then starting an interactive session with claude. Remind users that Claude Code securely stores credentials and always asks before modifying files or performing Git actions.

  • Core capabilities: Highlight that Claude Code can build features from natural‑language descriptions, debug and fix issues, navigate any codebase, and automate tedious tasks like linting and release notes. It works in the terminal and takes action by editing files, running commands and creating commits. It follows the Unix philosophy—composable and scriptable interactions allow piping input and output.

  • Best‑practice workflows: Recommend the Explore–Plan–Code–Commit cycle: ask Claude to read relevant files, then have it plan before coding, then implement and verify the solution, and finally commit and create a pull request. Encourage test‑driven development (write tests first, run them, then write code until tests pass), and iterative refinement using screenshots or mockups for UI work. For bug fixing, advise sharing the error, asking for fix recommendations, and then applying and verifying the fix.

  • Precision and specificity: Stress that Claude Code performs better with specific instructions. Encourage users to give detailed tasks (e.g., “write a new test case for foo.py covering the edge case where the user is logged out” rather than “add tests”). Suggest breaking complex tasks into ordered steps and telling Claude to explore before making changes.

  • Customizing context: Explain that CLAUDE.md files automatically provide context and should document common commands, core files, style guides and workflow notes. Show where to place these files (project root, parents, children or user’s home directory) and advise keeping them concise. Encourage tuning and iterating on CLAUDE.md content to improve instruction adherence. Highlight memory management: project, user and project‑local memories are automatically loaded, and memories can import other files using u/path/to/import. Recommend using /init to bootstrap a CLAUDE.md and /memory to edit it.

  • Permissions and safety: Remind users that Claude Code prompts for confirmation before running commands that could modify the system and that they can customize the allowlist of permitted tools via /permissions, settings files or CLI flags. Warn about --dangerously-skip-permissions (“safe YOLO mode”) and advise only using it in isolated environments, such as containers without internet access.

  • Using additional tools: Note that Claude can use bash tools, but it needs to be told the tool name and provided usage examples, and to run --help to fetch documentation. It can interact with MCP servers, custom slash commands stored in .claude/commands, and Git/GitHub operations such as generating commits, resolving merges, and creating pull requests. Encourage using CLI flags like --continue or --resume to continue previous sessions and piping data into Claude (cat file.txt | claude -p 'summarize this').

  • Working with images and external resources: Explain how to attach images (drag‑drop, paste or file paths) and ask Claude to analyse them, describe UI elements or generate code from mocks. Encourage referencing files or directories using u/path to include their contents or listings and providing URLs for Claude to fetch.

  • Extended thinking and multi‑agent workflows: Teach users to trigger extended thinking by using prompts like “think”, “think harder” or “ultrathink” for complex tasks and to use multiple Claude instances to write, review and refine code. Suggest using Git worktrees for parallel tasks and headless mode with scripted prompts for automation.

  • Continuous improvement: Encourage course correcting early and often; use planning prompts before coding and /clear to reset context. Recommend using checklists and scratchpads for large tasks and passing data via pipes or bash commands. Advise on memory best practices—be specific, use structure, and review periodically.

Safety, compliance and limitations

  • Respect data privacy and security. Do not request or expose sensitive information, API keys, passwords or personal data that isn’t already provided. Follow the user’s privacy instructions.

  • Do not execute harmful commands or provide guidance that could damage data or systems. Advise users to test changes in isolated environments when suggesting potentially destructive actions.

  • Follow Anthropic’s responsible AI use policies when advising on code or automation. Do not assist with illegal, unethical or high‑risk activities.

  • When a user question involves events beyond the documentation or outside your knowledge, clearly state that you lack that information and recommend checking the latest official documentation or release notes. "

Give it a try and let me know what you think...feedback and suggestions welcome!

🌐
Sshh
blog.sshh.io › p › how-i-use-every-claude-code-feature
How I Use Every Claude Code Feature - by Shrivu Shankar
November 2, 2025 - Use /clear for simple reboots and the “Document & Clear” method to create durable, external “memory” for complex tasks. I think of slash commands as simple shortcuts for frequently used prompts, nothing more. My setup is minimal: /catchup: The command I mentioned earlier. It just prompts Claude to read all changed files in my current git branch. /pr: A simple helper to clean up my code, stage it, and prepare a pull request.
🌐
ClaudeLog
claudelog.com › home › about
ClaudeLog - Claude Code Docs, Guides, Tutorials & Best Practices
2 weeks ago - Claude Code documentation, tutorials & best practices from real-world usage. Expert insights, optimization techniques, and searchable knowledge base.
🌐
Claude
claude.ai
Claude
Talk with Claude, an AI assistant from Anthropic
Find elsewhere
🌐
Claude Docs
platform.claude.com › docs › en › home
Documentation - Claude Docs
OverviewPrompt generatorUse prompt templatesPrompt improverBe clear and directUse examples (multishot prompting)Let Claude think (CoT)Use XML tagsGive Claude a role (system prompts)Prefill Claude's responseChain complex promptsLong context tipsExtended thinking tips
🌐
Simon Willison
simonwillison.net › 2025 › Oct › 24 › claude-code-docs-map
claude_code_docs_map.md
October 24, 2025 - The claude_code_docs_map.md file is a neat Markdown index of all of their other documentation - the same pattern advocated by llms.txt.
🌐
Claude Docs
docs.claude.com
Claude Docs: Home
OverviewPrompt generatorUse prompt templatesPrompt improverBe clear and directUse examples (multishot prompting)Let Claude think (CoT)Use XML tagsGive Claude a role (system prompts)Prefill Claude's responseChain complex promptsLong context tipsExtended thinking tips
🌐
Reddit
reddit.com › r/claudeai › claude code docs as context
r/ClaudeAI on Reddit: Claude Code docs as context
July 12, 2025 -

I'm new to Claude Code and wonder what's the best approach to giving it a product documentation as context/reference. There are a lot of options:

  1. Give it a link and ask it to research it - my guess is this is not the most effective approach.

  2. Context7 - only gives access to snippets

  3. Extract the docs and upload it in the project folder
    a. should I convert them to 1 huge file
    b. Or keep separate files/pages
    Will Claude handle huge a documentation source?

  4. Use RAG - vector, graph, etc

  5. Use gemini as a research agent with it's huge context

Which works best?

Top answer
1 of 5
3
Counting how large the relevant documentation is, I provide it directly in the Claude.md. Then delete it when I am done with the task. You can also provide the documentation in a Claude.md ask Claude to make a plan.md in Plan Mode based on the documentation. Then you can ask Gemini or whoever to review the plan to check the proposed API references are sound.
2 of 5
2
A very valid question! And I don’t have an answer. I wish I had. You already listed a good set of tactics that I started testing. With highly varying outcomes. I initially walked off, creating massive context files for me, structured them, broke them down, nested them etc. then I discovered that clients or IDE‘s handle this extremely different and/ or badly. Not to speak of the model behind it. Big context breaks context windows big time. Not cool. My first idea was: stuff everything into a rag. Generally good idea! Still is. But high effort in doing so, keeping up-to-date and all other RAG constraints. Next: how to feed the llm in an appropriate way so I don’t blow my context window all the time? When is the best time to inject? Which chunk of info to pick? All of this needs planning, logic…not easy. Slam one ore more agents between RAG and llm? Sure. But how and what exactly shall it do? To be honest - I have no idea. I just try to experience what works. Experiment. One big document? Bad idea. Structure it and possible concatenate parts of it to bigger files, if required. Sometimes extensive context works, then again it doesn’t or the llm plain ignores me lol. I come to the conclusion this is a highly underdeveloped area. It needs a lot of testing and experimentation. Clients and llms require a standardized way of handling external context, piped to them in an automated way. Even if I come up with some super smart logic how to balance input size, timing, context fragment etc. - that doesn’t mean the llm will accept it or can handle it! So it’s a difficult balance between building something on your side vs. Waiting for the market to develop a long-term solution. One way would be to fine-tune a custom llm or train something for personal use-case and start evaluating your tactics against it.
🌐
GitHub
github.com › ericbuess › claude-code-docs
GitHub - ericbuess/claude-code-docs
Local mirror of Claude Code documentation files from https://docs.anthropic.com/en/docs/claude-code/, updated every 3 hours.
Starred by 510 users
Forked by 83 users
Languages   Shell 59.7% | Python 40.3%
🌐
Sid Bharath
siddharthbharath.com › home › blog › cooking with claude code: the complete guide
Cooking with Claude Code: The Complete Guide - Sid Bharath
July 8, 2025 - Tell Claude to Do it For You – Simply tell Claude to update the documentation when you’ve finished a big feature or refactor as it has the full context of the work it just finished. You can also automate this with hooks or custom commands (more on this later). Quality and Code Standards – Embed comprehensive quality standards directly in your doc files to ensure consistent code quality.
🌐
Claude Code Docs
claudecodedocs.com › claude code docs › documentation › getting started
Claude Code Docs - Learn how to get started with Claude Code
Claude Code docs provides the most comprehensive guide to Claude Code tutorials, and guides. Learn AI-powered terminal development with step-by-step tutorials and practical examples.
🌐
GitHub
github.com › anthropics › claude-code
GitHub - anthropics/claude-code: Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
October 29, 2025 - Claude Code is an agentic coding ... commands. Use it in your terminal, IDE, or tag @claude on Github. Learn more in the official documentation....
Starred by 47.7K users
Forked by 3.3K users
Languages   Shell 46.4% | Python 33.8% | TypeScript 12.9% | PowerShell 4.7% | Dockerfile 2.2%
🌐
Claude Docs
docs.claude.com › en › docs › claude-code › sdk › migration-guide
Migrate to Claude Agent SDK
September 29, 2025 - Guide for migrating the Claude Code TypeScript and Python SDKs to the Claude Agent SDK
🌐
Claude
claude.com › product › claude-code
Claude Code - AI coding agent for terminal & IDE | Claude
1 month ago - Claude Code is an agentic AI coding tool that understands your entire codebase. Edit files, run commands, debug issues, and ship faster—directly from your terminal, IDE, Slack or on the web.
🌐
Anthropic
anthropic.com › news › claude-code-on-the-web
Claude Code on the web
November 12, 2025 - Cloud-based sessions share rate limits with all other Claude Code usage. Explore our documentation to learn more.
🌐
Claudecode
claudecode.pro › docs
Documentation - Claude Code
Complete Claude Code documentation, including installation guides, API reference, best practices, and advanced topics.