Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 47 additions & 25 deletions docs/get-started/docs-llms.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,64 @@ Use this file to discover all available pages before exploring further.

If your AI tool doesn't support MCP yet, you can use a static documentation file instead. This gives your AI assistant the entire Base documentation as one text file.

<Warning>
The static `llms-full.txt` file is a snapshot and may not include the latest updates. Use [MCP](/get-started/docs-mcp) when possible for always-current docs.
</Warning>
The static `llms-full.txt` file is a snapshot and may not include the latest updates. Use [MCP](/get-started/docs-mcp) when possible for always-current docs.

## Quickstart: Using Base Docs with LLMs

### 1. Copy-paste into your AI tool

**Example Prompt** (ready to use with Claude, Cursor, GPT, etc.):

```
You are an expert Base developer. Use the following full Base documentation as context:

<BASE_DOCS>
{{paste the content of llms-full.txt here}}
</BASE_DOCS>

Task: [Describe your task, e.g. "Write a complete Foundry project that deploys an ERC20 token on Base Sepolia, integrates Flashblocks for fast pre-confirmations, and includes verification + frontend connection with OnchainKit."]
```

### 2. Best Practices for Optimal Results

- **Use section-specific files** for focused tasks (e.g. `./base-chain/llms-full.txt` or `./ai-agents/llms-full.txt`).

- **Always cross-reference** in generated code: See `https://docs.base.org/...`

- **Combine with the Prompt Library**: See [Developer's Guide to Effective AI Prompting](/get-started/prompt-library).

- **Validate generated code** against current network details: [Base Chain Network Information](/base-chain/network-information).

**Recommended cross-references**:

- [Deploy Smart Contracts](/get-started/deploy-smart-contracts)

- [Resources for AI Agents](/get-started/resources-for-ai-agents)

- [Flashblocks Overview](/base-chain/flashblocks/overview)

- [Base Chain RPC Reference](/base-chain/api-reference/rpc-overview)

## Setup Guides

### Setup with Cursor

[Cursor](https://cursor.com/) is an AI-powered code editor built as a fork of VS Code with features like AI code completion and natural language editing.

<Steps>
<Step title="Open docs settings">
Go to **Settings** > **Features** > **Docs**.
</Step>
- Go to **Settings** > **Features** > **Docs**.

<Step title="Add Base docs">
Click **Add new doc** and paste: `https://docs.base.org/llms-full.txt`
</Step>
- Click **Add new doc** and paste: `https://docs.base.org/llms-full.txt`.

<Step title="Reference in chat">
Use `@docs -> Base` in your AI chat to reference the documentation.
</Step>
</Steps>
- Use `@docs -> Base` in your AI chat to reference the documentation.

### Setup with Claude Code

[Claude Code](https://docs.claude.com/en/docs/claude-code/overview) is an agentic coding tool that lives in your terminal and understands your codebase.

<Steps>
<Step title="Download the docs file">
Download the static documentation file from: [https://docs.base.org/llms-full.txt](https://docs.base.org/llms-full.txt)
</Step>
- Download the static documentation file from: [https://docs.base.org/llms-full.txt](https://docs.base.org/llms-full.txt)

- Save the file in your project directory or a known location on your system.

<Step title="Add to your project">
Save the file in your project directory or a known location on your system.
</Step>
- Use the `/read` command or drag and drop the file path to include the documentation in your conversation.

<Step title="Reference in chat">
Use the `/read` command or drag and drop the file path to include the documentation in your conversation. Claude Code will then have access to the full Base documentation for that session.
</Step>
</Steps>
- Claude Code will then have access to the full Base documentation for that session.