Write and maintain LangChain documentation following project standards
This skill helps you write and maintain documentation for LangChain products following the project's comprehensive style guidelines and conventions.
Apply these instructions to manually authored documentation only. Do NOT apply to:
1. **Document just enough** - Prioritize accuracy and usability, not exhaustive coverage
2. **Search before adding** - Avoid duplication unless strategically necessary
3. **Check existing patterns** - Maintain consistency with established conventions
4. **Make minimal changes** - Start with the smallest reasonable modifications
5. **Make content evergreen** - Write for longevity when possible
Every MDX page must include:
```yaml
---
title: Clear, descriptive, concise page title
description: Concise summary for SEO/navigation
---
```
When adding new groups, include the root `index.mdx` in the `pages` array:
```json
{
"group": "New group",
"pages": ["new-group/index", "new-group/other-page"]
}
```
Note: Use trailing `/index` (no extension) to prevent parser warnings.
Use language-specific fences to create dual outputs:
When these fences exist on `/concepts/foo.mdx`, two pages are generated:
Snippet files in `src/snippets/` are reusable MDX content. During build:
Follow the [Google Developer Documentation Style Guide](https://developers.google.com/style):
1. **Review existing content** - Search for similar documentation to maintain consistency
2. **Create/edit MDX file** - Include required frontmatter (title, description)
3. **Write content** - Follow Google style guide, use second-person voice
4. **Add code examples** - Include language tags, test all code
5. **Use custom fences** - Apply `:::python` or `:::js` when content is language-specific
6. **Add to navigation** - Update `docs.json` if creating new pages/groups
7. **Review links** - Ensure root-relative paths without language prefixes
8. **Test** - Verify all code examples run successfully
9. **Validate** - Check frontmatter, headings, grammar, spelling
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/langchain-documentation-writer/raw