-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy path.cursorrules
More file actions
121 lines (97 loc) · 5.36 KB
/
.cursorrules
File metadata and controls
121 lines (97 loc) · 5.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# LangChain Documentation Guidelines
Documentation for LangChain products hosted on Mintlify. These guidelines apply to manually authored docs only—not `**/reference/**` directories or build artifacts.
For full guidelines, see `CLAUDE.md` in the repository root.
## Critical rules
1. **Always ask for clarification** rather than making assumptions
2. **Never use markdown in frontmatter `description`** — breaks SEO
3. **Never edit `reference/` directory** — auto-generated
4. **Always update `src/docs.json`** when adding new pages
5. **Use Tabler icons only** — not FontAwesome
6. **Test code examples** before including them
## Repository structure
```
docs/
├── src/ # All manually authored content
│ ├── docs.json # Mintlify config + navigation (88KB)
│ ├── index.mdx # Home page
│ ├── style.css # Custom CSS
│ ├── langsmith/ # LangSmith product docs (~324 MDX files)
│ ├── oss/ # Open source docs (~1800 MDX files)
│ │ ├── langchain/ # LangChain framework
│ │ ├── langgraph/ # LangGraph framework
│ │ ├── deepagents/ # Deep Agents
│ │ ├── python/ # Python-specific (integrations, migrations, releases)
│ │ ├── javascript/ # TypeScript-specific (integrations, migrations, releases)
│ │ ├── integrations/ # Shared integration content
│ │ ├── concepts/ # Conceptual overviews
│ │ └── contributing/ # Contribution guides
│ ├── snippets/ # Reusable MDX snippets
│ ├── images/ # Documentation images
│ │ ├── brand/ # Logos, favicons
│ │ └── providers/ # Provider icons (dark/ and light/ variants)
│ └── fonts/ # Font files
├── pipeline/ # Python build system & preprocessors
├── reference/ # Auto-generated API reference — do not edit
├── build/ # Build output — do not edit
├── scripts/ # Helper utilities
└── tests/ # Pipeline tests
```
## Navigation map
Navigation is defined in `src/docs.json`. The site has 4 products. When adding pages, find the correct product/tab/group below, then update the matching section in `docs.json`.
### Home
Single page (`src/index.mdx`). No tabs.
### LangSmith (`src/langsmith/`)
7 tabs, all files in `src/langsmith/`:
| Tab | Groups |
|-----|--------|
| Get started | Account administration (Workspace setup, Users & access control, Billing & usage), Tools, Additional resources |
| Observability | Tracing setup (Integrations, Manual instrumentation), Configuration & troubleshooting, Viewing & managing traces, Automations, Feedback & evaluation, Monitoring & alerting |
| Evaluation | Datasets, Set up evaluations (Run, Types, Frameworks, Techniques, Tutorials), Analyze experiment results, Annotation & human feedback |
| Prompt engineering | Create and update prompts, Tutorials |
| Agent deployment | Configure app, Deployment guides, App development, Studio, Auth & access control, Server customization |
| Platform setup | Overview, Hybrid, Self-hosted (by cloud provider, Setup guides, Enable features, Configuration, External services, Auth) |
| Reference | LangSmith Deployment APIs, Releases |
### Fleet (`src/langsmith/fleet/`)
Flat groups (no tabs): Get started, Tools and integrations, Advanced, Additional resources
### Open source (`src/oss/`)
2 language dropdowns (Python, TypeScript), each with 7 identical tabs:
| Tab | Directory |
|-----|-----------|
| Deep Agents | `src/oss/deepagents/` |
| LangChain | `src/oss/langchain/` |
| LangGraph | `src/oss/langgraph/` |
| Integrations | `src/oss/python/integrations/` or `src/oss/javascript/integrations/` |
| Learn | `src/oss/` (various) |
| Reference | `reference/` — auto-generated, do not edit |
| Contribute | `src/oss/contributing/` |
## Quick reference
| What | Where/How |
|------|-----------|
| Navigation config | `src/docs.json` |
| Reusable snippets | `src/snippets/` |
| Provider icons | `src/images/providers/` |
| Icon library | Tabler — https://tabler.io/icons |
| Mintlify components | https://mintlify.com/docs/components |
| Auto-link syntax | `@[ClassName]` — defined in `pipeline/preprocessors/link_map.py` |
## Frontmatter
Every MDX file requires:
```yaml
---
title: Clear, concise page title
description: SEO summary — no markdown allowed (no links, backticks, formatting)
---
```
## Syntax
- Language-specific content: `:::python` or `:::js` fences (generates separate Python/JS pages)
- Code highlighting: `# [!code highlight]`, `# [!code ++]`, `# [!code --]`
- API reference links: `@[ClassName]` for first mention of SDK classes/methods
## Style
Follow [Google Developer Documentation Style Guide](https://developers.google.com/style).
- Be concise — second-person imperative present tense
- Sentence-case headings with active verb, not gerund ("Add a tool" not "Adding a tool")
- American English spelling
- No markdown in description fields
- No absolute URLs for internal links
- No `/python/` or `/javascript/` in links (resolved by build pipeline)
- No FontAwesome icon names
- No H5 or H6 headings