technical-writing

โดย mastra-ai

Guidelines for creating clear, well-structured technical documentation

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 แบบ Smoke ทดสอบในเครื่องหรือ deploy ไปยัง staging/production ทดสอบ Studio UI, agents, tools, workflows, traces, memory และอื่นๆ รองรับทั้ง local…
official
security-review
mastra-ai
Security-focused code review checklist for identifying vulnerabilities
official
builder-smoke-test
mastra-ai
Smoke test the Agent Builder feature branch end-to-end against a hermetic project scaffolded by the skill (linked to the current worktree). Covers workspace…
official
debugging-difficult-bugs
mastra-ai
ใช้ตั้งแต่เนิ่นๆ เมื่อกำลังดีบักบั๊กที่มีความซับซ้อนปานกลางหรือยาก โดยเฉพาะเมื่อการทดสอบเพียงอย่างเดียวอาจไม่สามารถเปิดเผยความล้มเหลวขณะรันไทม์จริงได้ เรียกใช้สิ่งนี้ก่อนการวนซ้ำ TDD ที่ยาวนาน...
official
docs-audit
mastra-ai
Interactive documentation quality review for Mastra docs. Use when auditing, reviewing, or critiquing Mastra documentation; checking docs against source code;…
official
e2e-frontend-validation
mastra-ai
เวิร์กโฟลว์การตรวจสอบ E2E สำหรับการเปลี่ยนแปลงฟรอนต์เอนด์ในแพ็กเกจ playground โดยใช้ Playwright MCP
official
e2e-tests-studio
mastra-ai
สำคัญ : การทดสอบต้องยืนยันว่าฟีเจอร์ของผลิตภัณฑ์ทำงานได้อย่างถูกต้อง ไม่ใช่แค่ว่าองค์ประกอบ UI แสดงผลเท่านั้น
official