Cursor rules · langflow-ai/langflow
1 Cursor rule file from langflow-ai/langflow: docs_development.
Template by langflow-ai
Install
Works with Cursor. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/langflow-ai/langflow/main/.cursor/rules -o rules
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documentation
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
Cursor project rules (.cursor/rules/*.mdc): instructions Cursor applies when it edits matching files.
- For
- Cursor
- File
.cursor/rules/docs_development.mdc
First lines (shown under the repo's MIT license)
---
description: "Guidelines for developing and maintaining Langflow documentation using Docusaurus, including content structure, style, and deployment processes."
globs:
- "docs/**/*.{md,mdx}"
- "docs/**/*.{js,jsx,ts,tsx}"
- "docs/package*.json"
- "docs/docusaurus.config.js"
- "docs/sidebars.js"
- "docs/static/**/*"
alwaysApply: false
---
# Documentation Development Guidelines
## Purpose
Guidelines for developing and maintaining Langflow documentation using Docusaurus, including content structure, style, and deployment processes.
---
## 1. Documentation Environment Setup
### Prerequisites
- **Node.js:** v22.12 LTS for runtime
- **Package Manager:** npm for dependency management
- **Documentation Framework:** Docusaurus v3
### Documentation Service
```bash
cd docs
npm install # Install dependencies
npm run start # Start dev server
```
- Auto-reloads on documentation changes
- Access at: http://localhost:3000/
- Documentation source: `docs/`
---
## 2. Documentation Structure
### Directory Layout
```
docs/
├── docs/ # Main documentation content
│ ├── agents/ # Agent and MCP guides
│ ├── get-started/ # Getting started guides
│ ├── tutorials/ # Langflow tutorials
│ ├── components/ # Component documentation
│ ├── flows/ # Guides to build, run, and test flows
│ ├── deployment/ # Guides for deploying and hosting a Langflow server
│ ├── develop/ # Guides for developing apps with Langflow
│ ├── support/ # Help and release notes
│ ├── contributing/ # Contribution guidelines
│ ├── api-reference/ # API documentation
│ └── _partial-*.mdx # Shared content partials (imported by other pages)
├── src/ # Custom React components
├── static/ # Static assets (images, etc.)
├── sidebars.js # Sidebar configuration
├── docusaurus.config.js # Main configuration
└── package.json # Dependencies
```
---
## 3. Writing Documentation
### Frontmatter
Every `.mdx` file uses only `title` and `slug`. No `description` or `sidebar_position`.
```
---
title: Page Title
slug: /page-slug
---
```
The `title` value is used as the page heading — do not add a duplicate `# h1` after the frontmatter.
### MDX Imports
Most pages import one or more of these at the top, after frontmatter:
```
import Icon from "@site/src/components/icon";
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
import SomePartial from '@site/docs/_partial-some-content.mdx';
```
- Use `<Icon name="IconName" aria-hidden="true" />` to reference Lucide icons inline. Always include `aria-hidden="true"` and bold the button name next to it for accessibility: `<Icon name="Play" aria-hidden="true" /> **Run**`.
- Use `<SomePartial />` to embed shared content partials.
### Admonitions
```
:::tip
Use for helpful tips.
:::
:::warning
Use for potential issues.
:::
:::danger
Use for critical warnings.
:::
```
### Images and Assets
```

```
Images go in `static/img/`. Use descriptive alt text.
---
## 4. Component Documentation
### Component Page Template
```
---
title: Component Name
slug: /component-name
---
import Icon from "@site/src/components/icon";
One-sentence description of what the component does.
## Use the Component Name component in a flow
Step-by-step instructions for using the component.
## Component Name parameters
| Name | Type | Description |
|------|------|-------------|
| `input_name` | MessageTextInput | Description of the input. |
| `output_name` | Message | Description of the output. |
```
### API Documentation
```
---
title: API Endpoint Name
slug: /api-endpoint-name
---
## Endpoint
`POST /api/v1/endpoint`
## Request body
| Parameter | Type | Description |
|-----------|------|-------------|
| `param` | string | Description. |
## Example
```bashSignals
- Stars
- 155,983
- Forks
- 10,240
- Open issues
- 206
- Last commit (this folder)
- Jun 9, 2026 (4 months ago)
- Last release
- Oct 22, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/langflow-ai/langflow
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from langflow-ai
Cite this page
Cursor rules · langflow-ai/langflow. Agent Mart. https://agentmart.dev/templates/langflow-ai-langflow-cursor-rules (last updated 2026-10-24)