code-standards

द्वारा mastra-ai

कोड गुणवत्ता मानक और पुल रिक्वेस्ट की समीक्षा के लिए शैली मार्गदर्शिका

npx skills add https://github.com/mastra-ai/mastra --skill code-standards

Code Standards Review

When reviewing code, follow this structured process:

Step 1: Critical Issues

Check for issues that MUST be fixed before merging:

  • Logic bugs and incorrect behavior
  • Missing error handling for failure cases
  • Race conditions or concurrency issues
  • Unhandled edge cases (null, undefined, empty arrays, boundary values)
  • Breaking API changes without migration path

Step 2: Code Quality

Evaluate overall code quality:

  • Functions should do one thing and be reasonably sized (< 50 lines preferred)
  • Avoid code duplication — look for repeated patterns that should be abstracted
  • Use descriptive, meaningful names for variables, functions, and types
  • Prefer explicit types over any in TypeScript
  • Ensure proper use of async/await (no floating promises, proper error propagation)

Step 3: Style Guide Conformance

Check against the style guide in references/style-guide.md:

  • Naming conventions
  • Code organization and import ordering
  • Comment quality (explain "why", not "what")

Step 4: Linting Flags

Flag these patterns:

  • var usage (should be const or let)
  • Leftover console.log or debugger statements
  • Commented-out code blocks
  • Magic numbers without named constants
  • TODO or FIXME comments without issue references

Output Format

Structure your feedback as:

  1. Summary: 1-2 sentence overview of the changes and overall quality
  2. Critical Issues: Must-fix problems with file path and line numbers
  3. Suggestions: Improvements that would make the code better
  4. Positive Notes: Good patterns and decisions worth acknowledging

mastra-ai की और Skills

testing-mastracode-tui
mastra-ai
कोन्सोल में मास्ट्राकोड TUI सुविधाओं का इंटरैक्टिव परीक्षण। मॉडल कॉन्फ़िगरेशन, थ्रेड जीवनचक्र, कार्य स्थिति पृथक्करण और सामान्य अवरोधकों को शामिल करता है।
official
mastra-smoke-test
mastra-ai
मास्ट्रा प्रोजेक्ट्स का स्थानीय रूप से स्मोक टेस्ट करें या स्टेजिंग/प्रोडक्शन पर डिप्लॉय करें। स्टूडियो UI, एजेंट, टूल्स, वर्कफ़्लो, ट्रेस, मेमोरी और अधिक का परीक्षण करता है। स्थानीय और दोनों का समर्थन करता है…
official
security-review
mastra-ai
सुरक्षा-केंद्रित कोड समीक्षा जाँचसूची जो कमजोरियों की पहचान करने के लिए है
official
technical-writing
mastra-ai
स्पष्ट, सुव्यवस्थित तकनीकी दस्तावेज़ीकरण बनाने के लिए दिशानिर्देश
official
debugging-difficult-bugs
mastra-ai
मध्यम या कठिन बग को डीबग करते समय शुरुआत में ही उपयोग करें, विशेषकर जब अकेले परीक्षण वास्तविक रनटाइम विफलता को उजागर नहीं कर सकते। विस्तारित TDD पुनरावृत्ति से पहले इसे सक्रिय करें…
official
e2e-frontend-validation
mastra-ai
प्ले Playwright MCP का उपयोग करके प्लेग्राउंड पैकेजों में फ्रंटएंड बदलावों के लिए E2E सत्यापन वर्कफ़्लो
official
e2e-tests-studio
mastra-ai
आवश्यक जब packages/playground-ui या packages/playground में किसी भी फ़ाइल को संशोधित किया जाए। ट्रिगर होता है: React कंपोनेंट निर्माण/संशोधन/रीफैक्टरिंग, UI परिवर्तन,…
official
general-tasks
mastra-ai
खुली-समाप्ति वाले कार्यों को संभालने की डिफ़ॉल्ट प्रक्रिया जो फ़ाइलों, शेल या वेब से संबंधित हैं।
official