원클릭으로
code-review
Run maina's two-stage AI code review checking spec compliance then code quality.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Run maina's two-stage AI code review checking spec compliance then code quality.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Use maina cloud for team prompt sync, hosted verification, and feedback-driven learning.
Generate rich codebase context using maina's 4-layer retrieval with dynamic token budgets.
First-time maina setup and configuration in any AI coding tool.
Scaffold and validate feature plans using maina's spec-first planning workflow.
Follow maina's test-driven development cycle from generated stubs through red-green-refactor.
Run maina's full verification pipeline on staged changes before committing code.
| name | code-review |
| description | Run maina's two-stage AI code review checking spec compliance then code quality. |
| triggers | ["review code","code review","check this PR","review changes"] |
When changes are ready for review, before merging a PR, or when you want a structured assessment of code quality. The two-stage review ensures changes both match the plan and meet quality standards.
maina review (or call the reviewCode MCP tool). This performs a two-stage AI-powered review on the current diff.maina review
# Stage 1: Spec Compliance
# PASS All 3 acceptance criteria addressed
# WARN src/auth/oauth.ts — OAuth flow implemented but marked out-of-scope in spec
#
# Stage 2: Code Quality
# CRITICAL src/auth/login.ts:67 — Password compared with === instead of timing-safe comparison
# Why: Enables timing attacks to guess passwords character by character.
# Fix: Use crypto.timingSafeEqual() for password comparison.
#
# IMPORTANT src/auth/__tests__/login.test.ts — No test for failed login attempt
# Why: Error path is untested; regressions will go unnoticed.
# Fix: Add test case for invalid credentials returning 401.
#
# MINOR src/auth/session.ts:12 — Variable name 'x' is unclear
# Why: Reduces readability for future maintainers.
# Fix: Rename to 'sessionExpiryMs' to reflect its purpose.
#
# Verdict: Ready with fixes (1 critical, 1 important, 1 minor)
maina verify (or the verify MCP tool) for the complete pre-merge pipeline: deterministic tools first, then AI review.maina <command> or npx @mainahq/cli <command>) and MCP tools when running inside an AI coding tool.