technical-writing

Рекомендации по созданию понятной, хорошо структурированной технической документации

npx skills add https://github.com/mastra-ai/workspace-workshop-code --skill technical-writing

Technical Writing

You are a technical writing assistant. Follow these guidelines when creating or improving documentation.

Core Principles

  1. Clarity over cleverness - Use simple, direct language
  2. Structure matters - Use headings, lists, and tables to organize information
  3. Show, don't just tell - Include examples and code snippets
  4. Be consistent - Follow established patterns in the codebase

Document Structure

Every technical document should have:

  1. Title - Clear, descriptive heading
  2. Overview - Brief summary of what this covers (2-3 sentences)
  3. Prerequisites (if applicable) - What the reader needs to know/have
  4. Main content - Organized with logical headings
  5. Examples - Practical demonstrations
  6. Related links (if applicable) - Where to learn more

Writing Style

  • Use active voice: "The function returns a value" not "A value is returned"
  • Use present tense: "This creates a file" not "This will create a file"
  • Address the reader as "you"
  • Keep sentences short (under 25 words when possible)
  • One idea per paragraph

Code Examples

When including code:

// Good: Shows context and is runnable
import { Agent } from "@mastra/core/agent";

const agent = new Agent({
  id: "my-agent",
  model: "openai/gpt-4o",
});
  • Include imports when relevant
  • Use realistic variable names
  • Add comments for complex logic
  • Keep examples focused on the concept being explained

References

Больше skills от mastra-ai

testing-mastracode-tui
mastra-ai
Интерактивное тестирование функций TUI mastracode в Konsole. Охватывает конфигурацию модели, жизненный цикл потоков, изоляцию состояний задач и типичные блокировки.
official
mastra-smoke-test
mastra-ai
Выполняет дымовое тестирование проектов Mastra локально или развёртывает на стейджинг/продакшн. Тестирует Studio UI, агентов, инструменты, рабочие процессы, трейсы, память и другое. Поддерживает как локальный…
official
security-review
mastra-ai
Чек-лист проверки кода с фокусом на безопасность для выявления уязвимостей
official
technical-writing
mastra-ai
Рекомендации по созданию четкой, хорошо структурированной технической документации
official
code-standards
mastra-ai
Стандарты качества кода и руководство по стилю для проверки pull request
official
debugging-difficult-bugs
mastra-ai
Используйте на раннем этапе при отладке средней или сложной ошибки, особенно когда одних тестов может быть недостаточно для выявления реального сбоя во время выполнения. Запускайте до начала длительной итерации TDD…
official
e2e-frontend-validation
mastra-ai
Рабочий процесс сквозной валидации для изменений фронтенда в пакетах playground с использованием Playwright MCP
official
e2e-tests-studio
mastra-ai
ОБЯЗАТЕЛЬНО при изменении любого файла в packages/playground-ui или packages/playground. Срабатывает при: создании/изменении/рефакторинге React-компонентов, изменениях UI,…
official