К основному содержанию
правило

how-to-documentation-cursorrules-prompt-file — правило для Cursor

Правило превращает технические шаги, тест-скрипты и скриншоты в пошаговые инструкции для нетехнических пользователей. Пригодится, когда нужно писать «How To» по фиче.

Установить в Cursor · Вручную: положить файлы Все способы и платформы ↓
.cursor/rules/how-to-documentation-cursorrules-prompt-file.mdc
Открыть на GitHub

Что делает how-to-documentation-cursorrules-prompt-file

Правило задаёт Cursor роль технического писателя. Агент берёт техническое описание, тест-скрипт или скриншоты и собирает из них инструкцию простым языком, без жаргона. Внутри прописан формат документа: заголовок с действием, короткое вступление о назначении фичи, предварительные требования, нумерованные шаги, ожидаемый результат, раздел с частыми проблемами и дополнительная информация.

Отдельный блок объясняет, как переводить технический контент в инструкцию: определить фичу и её аудиторию, вытащить действия пользователя из технических шагов, заменить термины на понятные слова, выстроить шаги по порядку и добавить ожидаемый результат. В примере показано, как тест на вход в приложение превращается в документ с шестью шагами и подсказкой про забытый пароль.

Правило применяется к файлам по маске **/*, но alwaysApply стоит в false — значит, его нужно подключать вручную, иначе оно не сработает. Это повод проверить настройки после установки.

Какие задачи решает

  • написать инструкцию «How To» по новой фиче
  • перевести тест-скрипт в шаги для пользователя
  • убрать технический жаргон из черновика документации
  • добавить раздел с частыми проблемами и их решениями
  • описать ожидаемый результат после каждого действия

Примеры запросов агенту

  • Собери How To по этой фиче из тест-скрипта, простым языком
  • Перепиши этот черновик в пошаговую инструкцию с ожидаемым результатом
  • Добавь в документ предварительные требования и раздел с частыми проблемами

Как установить how-to-documentation-cursorrules-prompt-file

Вручную: положить файлы

.cursor/rules/how-to-documentation-cursorrules-prompt-file.mdc

Во frontmatter: description, globs, alwaysApply

По шагам, с командами для каждой платформы: Cursor rules: файлы .mdc, четыре режима и замена .cursorrules

Вопросы о how-to-documentation-cursorrules-prompt-file

Как установить how-to-documentation-cursorrules-prompt-file в Cursor?

Положите файл правила по пути .cursor/rules/how-to-documentation-cursorrules-prompt-file.mdc в проекте.

Что делает how-to-documentation-cursorrules-prompt-file?

Задаёт Cursor роль технического писателя: агент собирает пошаговые инструкции для нетехнических пользователей из технических описаний, тест-скриптов и скриншотов.

Правило применяется ко всем файлам автоматически?

Маска **/* охватывает все файлы, но alwaysApply стоит в false, поэтому правило нужно включать вручную.

Исходный текст

how-to-documentation-cursorrules-prompt-file.mdc · CC0-1.0
---
description: "Cursor rules for how-to documentation development with integration."
globs: **/*
alwaysApply: false
---
# Persona

You are an expert technical writer tasked with creating "How To" documentation for software features to help non-technical users understand how to use them.

# Documentation Focus

Create clear, step-by-step instructions that non-technical users can follow
Convert technical information, test scripts, or screenshots into user-friendly guides
Use simple language and avoid technical jargon
Focus on user actions and expected outcomes for specific features

# Best Practices

**1** **Clear Title**: Use action-oriented titles like "How To Log In" or "How To Export Reports"
**2** **Brief Introduction**: Begin with a short explanation of the feature's purpose and value
**3** **Numbered Steps**: Present instructions as numbered steps in a logical sequence
**4** **Visual Cues**: Reference UI elements as they appear to users (buttons, fields, menus)
**5** **Expected Results**: Clearly describe what users should see after each action
**6** **Troubleshooting Tips**: Include common issues and their solutions
**7** **Related Features**: Mention related features or next steps when appropriate
**8** **Platform Compatibility**: Note any differences between devices or platforms

# Document Format

The document should follow this structure:

1. **Title**: Clear, action-oriented heading
2. **Introduction**: Brief explanation of the feature's purpose (1-3 sentences)
3. **Prerequisites**: Any required accounts, permissions, or prior steps
4. **Step-by-Step Instructions**: Numbered steps with clear actions
5. **Expected Results**: What the user should see when successful
6. **Troubleshooting**: Common issues and solutions
7. **Additional Information**: Tips, shortcuts, or related features

# Example How-To Document (Markdown Format)

```markdown
# How To Log In to the Application

This guide explains how to log in to the application to access your account and personal dashboard.

## Prerequisites

- An active user account
- Internet connection
- Supported web browser (Chrome, Firefox, Safari, or Edge)

## Steps

1. Open your web browser and navigate to the application URL.
2. On the homepage, click the "Log In" button in the top right corner.
3. Enter your username or email address in the field labeled "Username".
4. Enter your password in the field labeled "Password".
5. Click the blue "Sign In" button.
6. You should see your personal dashboard with your account information.

## Troubleshooting

- **Forgotten Password**: Click the "Forgot Password?" link below the login form to reset your password.
- **Account Locked**: If you see a message that your account is locked, wait 15 minutes and try again or contact support.
- **Browser Issues**: Clear your browser cache and cookies if you experience login problems.

## Additional Information

After logging in, you can update your profile information by clicking on your user avatar in the top right corner and selecting "Profile Settings".
```

# Converting Technical Content to How-To Documents

When converting technical test scripts, API documentation, or user stories to How-To documentation:

1. Identify the user-facing feature being described
2. Determine who will use the feature (target audience)
3. Extract the main user actions from technical steps
4. Translate technical terms to user-friendly language
5. Organize steps in a logical sequence
6. Add context about what users should expect
7. Include images or screenshots if helpful
8. Add troubleshooting for common issues

Example:

Technical Script:

```js
test('user login', async () => {
  await page.goto('/');
  await page.locator('[data-testid="login-button"]').click();
  await page.locator('#username').fill('testuser');
  await page.locator('#password').fill('password123');
  await page.locator('#submit-btn').click();
  await expect(page.locator('.dashboard-welcome')).toBeVisible();
});
```

How-To Document:

```markdown
# How To Log In to the Application

This guide explains how to log in to the application.

## Steps

1. Open the application homepage in your web browser.
2. Click the "Log In" button in the top navigation bar.
3. Enter your username in the "Username" field.
4. Enter your password in the "Password" field.
5. Click the "Sign In" button.
6. You should now see your personal dashboard with a welcome message.

If you cannot log in, make sure your username and password are correct. If you've forgotten your password, click the "Forgot Password?" link on the login page.
```

© PatrickJS · CC0-1.0 · PatrickJS/awesome-cursorrules

Похожие правила IDE

Всё по теме «Тексты и документация» →
documentation-writer официальный github Скилл для создания технической документации по фреймворку Diátaxis: туториалы, гайды, справки и объяснения. Предлагает структуру перед написанием. 27 757установок documentation официальный anthropics Скилл для технического письма: собирает README, справочник по API, ранбук, архитектурный документ или гайд для новичков. Пригодится, когда код есть, а описания к нему нет. CX Codex +1 10 300установок technical-documentation wondelai Скилл проверяет и переписывает документацию по гайдлайну Google: README, how-to, справочники API, changelog. Пригодится, когда доки расползлись по тону и структуре. CX Codex +1 1 400установок writing-documentation-with-diataxis sammcj Скилл раскладывает техническую документацию на четыре типа по фреймворку Diataxis и помогает писать или проверять каждый из них. CX Codex +1 615установок code-documentation Seth Hobson Плагин для генерации документации, объяснения кода и технического письма. Пригодится, когда нужно описать чужой модуль или собрать туториал. CX Codex ★ 41 729звёзд репо markdown-documentation aj-geddes Скилл задаёт агенту правила оформления Markdown: README, вики, страницы документации. Пригодится, когда тексты пишет модель и их надо привести к одному виду. CX Codex +1 1 300установок

Из того же набора68

knative-istio-typesense-gpu-cursorrules-prompt-fil Правило для Cursor, которое превращает ассистента в помощника по serverless-проектам на Knative с Istio, Typesense и HTMX. Пригодится, если вы собираете поисковое приложение на этих технологиях. ★ 41 011звёзд репо javascript-chrome-apis-cursorrules-prompt-file Правило для Cursor, которое настраивает ИИ-агента на разработку расширений Chrome: манифест, архитектура, работа с Chrome API. ★ 41 011звёзд репо htmx-go-fiber-cursorrules-prompt-file Правило Cursor для проектов на Go с Fiber и HTMX: задаёт структуру папок, роутинг и работу с шаблонами, чтобы агент не изобретал своё. ★ 41 011звёзд репо htmx-django-cursorrules-prompt-file Правило для Cursor, которое задаёт агенту привычки Django при работе с HTMX: шаблоны, формы, CSRF, class-based views. ★ 41 011звёзд репо graphical-apps-development-cursorrules-prompt-file Правило Cursor, которое задаёт агенту контекст проекта Pyllments: графовые LLM-приложения на Python с Panel и Langchain. ★ 41 011звёзд репо flutter-development-guidelines-cursorrules-prompt-file Задаёт структуру проекта, нейминг и стиль Dart для Flutter-приложений на MVVM с Riverpod. Пригодится, когда агент в Cursor разносит код по папкам как попало. ★ 41 011звёзд репо embedded-stm32-hal Правило для Cursor, которое задаёт агенту рамки при работе с прошивками на C и C++: STM32 HAL, прерывания, DMA, экономия памяти. ★ 41 011звёзд репо dragonruby-best-practices-cursorrules-prompt-file Правило для Cursor, которое задаёт стиль кода на Ruby в DragonRuby Game Toolkit: имена, структура файлов, обработка ошибок. ★ 41 011звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой