docs
Copilot instructions424 starsChanged 3 months agoMITView on GitHub
Documentation for LangChain products hosted on Mintlify. These guidelines apply to manually authored content under src/, not Mintlify build/ output. AGENTS.md in the repository root is the authoritative guide. Read it before making any non-trivial change. This file carries only the rules that apply to every task. Prose style rules (voice, headings, terminology, page structure) live in .github/instructions/docs-style.instructions.md and load automatically when you edit src/**/*.mdx. For the navigation map (every product, menu item, tab, and group), see AGENTS.md. Navigation is…
In this repository19 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/docs-style.mdcCursor rule
- add-docs-pageSkill
- docs-code-samplesSkill
- docs-editSkill
- docs-restructureSkill
- docs-reviewSkill
- docs-team-voiceSkill
- docs-tooling-notionSkill
- submit-integrationSkill
- update-integrations-prsSkill
- verify-against-sourceSkill
- langgraph-docsSkill
- write-timestampSkill
- pandas-patternsSkill
- deep-agentsSkill
- langchainSkill
- langgraphSkill
- langsmithSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Always update
src/docs.json: when adding new pages - Distinctive: line 17
Test code examples: before including them
- Distinctive: line 56
Every MDX file requires:
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
LangChain Documentation Guidelines
Documentation for LangChain products hosted on Mintlify. These guidelines apply to manually authored content under src/, not Mintlify build/ output.
AGENTS.md in the repository root is the authoritative guide. Read it before making any non-trivial change. This file carries only the rules that apply to every task.
Prose style rules (voice, headings, terminology, page structure) live in .github/instructions/docs-style.instructions.md and load automatically when you edit src/**/*.mdx.
Critical rules
- Always ask for clarification rather than making assumptions
- Never fabricate examples, JSON snippets, policy details, or use case descriptions: use only content from the user or existing source files
- Never use markdown in frontmatter
description: breaks SEO - Never edit
build/: Mintlify build output (regenerate withmake buildormake dev) - Always update
src/docs.jsonwhen adding new pages - Use Tabler icons only, not FontAwesome
- Test code examples before including them
- Always run
make lint_proseon changed files before committing: CI blocks on it
Repository structure
docs/
├── src/ # All manually authored content
│ ├── docs.json # Mintlify config + navigation
│ ├── index.mdx # Home page
│ ├── style.css # Custom CSS
│ ├── langsmith/ # LangSmith product docs
│ │ └── fleet/ # Fleet (nav label: "No-code agents")
│ ├── oss/ # Open source docs (LangChain, LangGraph, Deep Agents, OpenWiki)
│ ├── snippets/ # Reusable MDX snippets
│ ├── images/ # Documentation images
│ └── fonts/ # Font files
├── pipeline/ # Python build system & preprocessors
├── build/ # Build output, do not edit
├── scripts/ # Helper utilities
└── tests/ # Pipeline testsFor the navigation map (every product, menu item, tab, and group), see AGENTS.md. Navigation is defined in src/docs.json as 2 products: AGENT DEVELOPMENT LIFECYCLE (Home, Build, Test, Deploy, Monitor) and PRODUCTS AND SETUP (LangSmith setup, LLM Gateway, No-code agents, Engine, Deep Agents Code). Nav names do not match source directory names, so consult AGENTS.md before placing a new page.
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 |
| Authoring skills | .agents/skills/ (run make skills for Claude Code) |
Frontmatter
Every MDX file requires:
---
title: Clear, concise page title
description: SEO summary, no markdown allowed (no links, backticks, formatting)
---Syntax
- Language-specific content:
:::pythonor:::jsfences (generates separate Python and TypeScript pages) - Code highlighting:
# [!code highlight],# [!code ++],# [!code --] - API reference links:
@[ClassName]for the first mention of SDK classes or methods
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

