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의 다른 스킬

testing-mastracode-tui
mastra-ai
Konsole에서 대화형으로 mastracode TUI 기능을 테스트합니다. 모델 구성, 스레드 생명주기, 작업 상태 격리 및 일반적인 차단 요소를 다룹니다.
official
mastra-smoke-test
mastra-ai
Mastra 프로젝트를 로컬에서 스모크 테스트하거나 스테이징/프로덕션에 배포합니다. Studio UI, 에이전트, 도구, 워크플로우, 트레이스, 메모리 등을 테스트합니다. 로컬 및 기타 환경을 지원합니다.
official
security-review
mastra-ai
보안 취약점 식별을 위한 코드 리뷰 체크리스트
official
technical-writing
mastra-ai
명확하고 체계적인 기술 문서 작성을 위한 가이드라인
official
debugging-difficult-bugs
mastra-ai
중간 또는 어려운 버그를 디버깅할 때 초기에 사용하세요. 특히 테스트만으로는 실제 런타임 실패를 드러내지 못할 수 있는 경우에 유용합니다. 장기간의 TDD 반복을 진행하기 전에 이 작업을 트리거하세요...
official
e2e-frontend-validation
mastra-ai
Playground 패키지의 프론트엔드 변경 사항에 대한 Playwright MCP를 사용한 E2E 검증 워크플로우
official
e2e-tests-studio
mastra-ai
packages/playground-ui 또는 packages/playground의 파일을 수정할 때 필수입니다. 트리거: React 컴포넌트 생성/수정/리팩토링, UI 변경, ...
official
general-tasks
mastra-ai
파일, 셸 또는 웹을 다루는 개방형 작업을 처리하기 위한 기본 프로세스입니다.
official