technical-writing

bởi mastra-ai

Hướng dẫn tạo tài liệu kỹ thuật rõ ràng, có cấu trúc tốt

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

Thêm skills từ mastra-ai

testing-mastracode-tui
mastra-ai
Kiểm thử tương tác các tính năng TUI của mastracode trong Konsole. Bao gồm cấu hình mô hình, vòng đời luồng, cách ly trạng thái tác vụ và các rào cản phổ biến.
official
mastra-smoke-test
mastra-ai
Kiểm tra nhanh các dự án Mastra cục bộ hoặc triển khai lên môi trường staging/production. Kiểm tra Studio UI, tác nhân, công cụ, quy trình làm việc, dấu vết, bộ nhớ và nhiều hơn nữa. Hỗ trợ cả cục bộ…
official
security-review
mastra-ai
Danh sách kiểm tra đánh giá mã nguồn tập trung vào bảo mật để xác định các lỗ hổng
official
builder-smoke-test
mastra-ai
Kiểm tra khói (smoke test) nhánh tính năng Agent Builder từ đầu đến cuối dựa trên một khung dự án kín (hermetic) được tạo bởi kỹ năng (liên kết với worktree hiện tại). Bao gồm không gian làm việc…
official
debugging-difficult-bugs
mastra-ai
Sử dụng sớm khi gỡ lỗi một lỗi trung bình hoặc khó, đặc biệt khi chỉ kiểm thử có thể không phát hiện ra lỗi thực tế khi chạy. Kích hoạt điều này trước khi lặp TDD kéo dài…
official
docs-audit
mastra-ai
Đánh giá chất lượng tài liệu tương tác cho tài liệu Mastra. Sử dụng khi kiểm toán, xem xét hoặc phê bình tài liệu Mastra; kiểm tra tài liệu với mã nguồn;…
official
e2e-frontend-validation
mastra-ai
Quy trình xác thực E2E cho các thay đổi frontend trong các gói playground sử dụng Playwright MCP
official
e2e-tests-studio
mastra-ai
QUAN TRỌNG: Các bài kiểm tra phải xác minh rằng các tính năng sản phẩm HOẠT ĐỘNG chính xác, không chỉ kiểm tra các phần tử giao diện hiển thị.
official