KillerSkills
Try FreeLeaderboardMarketplaceSubmitPricingDocs
Sign in

Build AI fluency for your role.

Product

  • Workflows
  • Marketplace
  • Submit Content
  • Pricing

Resources

  • Documentation
  • FAQ
  • How It Works

Company

  • About
  • Contact

Legal

  • Privacy
  • Terms

© 2026 Cyligence, LLC. All rights reserved.

KillerSkills - KillerSkills is an AI fluency platform | Product HuntKillerSkills - KillerSkills is an AI fluency platform | Product Hunt
Back to Marketplace

LangChain Documentation Standards

Verified

Guidelines for writing unified LangChain documentation in Mintlify format with MDX, custom language fences, and style conventions.

documentationlangchaindocumentationmdxmintlifytechnical-writingstyle-guidepythonjavascript

LangChain Documentation Standards


You are contributing to LangChain's unified documentation repository hosted on Mintlify. Follow these standards to maintain consistency and quality across all manually authored content.


Scope


These instructions apply **only to manually authored documentation**. They do NOT apply to:


  • Files in `**/reference/**` directories (auto-generated API reference)
  • Build artifacts and generated files

  • For reference documentation, see `.github/instructions/reference-docs.instructions.md`.


    Working Principles


    1. **Ask for clarification** rather than making assumptions

    2. **Push back on ideas** when necessary - cite sources and explain reasoning

    3. **Never lie, guess, or fabricate information**

    4. **Start with minimal changes** - make the smallest reasonable edits first

    5. **Search existing content** before adding new material to avoid duplication


    Project Structure


  • **Format:** MDX files with YAML frontmatter
  • **Configuration:** `docs.json` for navigation, theme, and settings
  • **Components:** Mintlify components
  • **Snippets:** Reusable MDX content in `src/snippets/`

  • Content Strategy


    1. **Document just enough** for user success - balance thoroughness with clarity

    2. **Prioritize accuracy and usability** over exhaustive coverage

    3. **Make content evergreen** when possible

    4. **Reference existing content** instead of duplicating

    5. **Check existing patterns** for consistency before adding new sections


    docs.json Configuration


    Refer to the [docs.json schema](https://mintlify.com/docs.json) when building navigation.


    **Important:** When adding a new group, include the root `index.mdx` in the `pages` array:


    ```json

    {

    "group": "New group",

    "pages": ["new-group/index", "new-group/other-page"]

    }

    ```


    Omit the file extension but include the trailing `/index`. Omitting this will raise parser warnings.


    Frontmatter Requirements


    Every MDX file must include:


    ```yaml

    ---

    title: Clear, descriptive, concise page title

    description: Concise summary for SEO and navigation

    ---

    ```


    Custom Language Fences


    LangChain uses custom fences for language-specific content:


  • `:::python` for Python-specific content
  • `:::js` for JavaScript/TypeScript-specific content
  • Close with `:::`

  • **How it works:** If either fence exists on a page at `/concepts/foo.mdx`, the build creates two versions:

  • `/python/concepts/foo.mdx`
  • `/javascript/concepts/foo.mdx`

  • See `pipeline/preprocessors/markdown_preprocessor.py` for implementation details.


    Snippets


    Snippet files in `src/snippets/` are reusable MDX content. They undergo special link preprocessing that converts absolute `/oss/` links to relative paths.


    **Critical:** Read the docstrings in `pipeline/core/builder.py` method `_process_snippet_markdown_file` (lines 807-872) to understand snippet link preprocessing and path requirements.


    Style Guide


    Follow the [Google Developer Documentation Style Guide](https://developers.google.com/style).


    Key Conventions


  • **Voice:** Second-person ("you")
  • **Spelling:** American English
  • **Headings:** Sentence case
  • **Code blocks:** Always include language tags
  • **Images:** Include alt text on all images
  • **Links:** Use root-relative paths for internal links (no `/python/` or `/javascript/` prefixes - the build pipeline resolves these)

  • Content Structure


  • List prerequisites at the start of procedural content
  • Include both basic and advanced use cases
  • Test all code examples before publishing
  • Match style and formatting of existing pages

  • Grammar and Mechanics


  • Use correct spelling and grammar
  • Write clear, concise sentences
  • Avoid jargon unless necessary

  • Do Not


  • Skip frontmatter on any MDX file
  • Use absolute URLs for internal links
  • Review code blocks (denoted by ` ``` `) as they are often incomplete snippets
  • Include untested code examples
  • Make assumptions - always ask for clarification
  • Include localization prefixes in relative links (`/python/` or `/javascript/`) - these are auto-resolved

  • Resources


  • [Mintlify documentation](https://docs.mintlify.com/docs/introduction)
  • [Google Developer Documentation Style Guide](https://developers.google.com/style)
  • [Vale-compatible Google style guide](https://github.com/errata-ai/Google)

  • Example Usage


    When adding a new documentation page:


    1. Check existing content for similar topics

    2. Add required frontmatter (title, description)

    3. Use custom language fences if content is language-specific

    4. Write in second-person voice with sentence-case headings

    5. Test all code examples

    6. Use root-relative paths for internal links

    7. Update `docs.json` if adding new navigation groups


    When editing existing pages:


    1. Preserve existing structure and style

    2. Make minimal changes to achieve your goal

    3. Verify all code examples still work

    4. Check that links resolve correctly

    5. Maintain consistency with surrounding content

    Reviews (0)

    Leave a review

    No reviews yet. Be the first to review this skill!

    Install
    # Download SKILL.md from killerskills.ai/api/skills/langchain-documentation-standards/raw
    Save to Collection
    Details
    PriceFree
    Downloads0
    RatingNo ratings yet
    Runtimes
    copilot
    SourceGitHub
    Published2/3/2026