一键导入
verification-workflow
Run maina's full verification pipeline on staged changes before committing code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run maina's full verification pipeline on staged changes before committing code.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use maina cloud for team prompt sync, hosted verification, and feedback-driven learning.
Run maina's two-stage AI code review checking spec compliance then code quality.
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.
| name | verification-workflow |
| description | Run maina's full verification pipeline on staged changes before committing code. |
| triggers | ["verify code","check code quality","run verification","before committing"] |
Before committing any code change. The verification pipeline catches syntax errors, security issues, secrets, and code smells on only the lines you changed, so you fix problems before they reach the repository.
git add as usual.maina verify (or call the verify MCP tool). This runs the full verification sequence on staged files only.tsc --noEmit for TypeScript projectsmaina verify again until clean.maina commit instead of git commit. This ensures the verification pipeline ran and attaches verification metadata to the commit.verify, checkSlop, reviewCode) when running inside an AI coding tool. Use npx @mainahq/cli if maina is not installed globally.# Stage changes
git add src/auth/login.ts src/auth/__tests__/login.test.ts
# Run verification
maina verify
# Output:
# [syntax] PASS Biome check (320ms)
# [semgrep] WARN src/auth/login.ts:42 — Potential SQL injection in query builder
# [trivy] PASS No vulnerabilities found
# [secret] PASS No secrets detected
# [slop] PASS No filler text detected
#
# 1 finding on changed lines. Fix before committing.
# Fix the issue, re-stage, verify again
maina verify
# All checks passed.
# Commit with verification metadata
maina commit
maina verify --focused for a narrower context budget (40%) on small, targeted changes.maina verify --explore for a wider budget (80%) when making broad refactors.maina verify --deep to add AI semantic review (spec compliance + code quality).maina verify --cloud to run the pipeline on Maina Cloud (no local tools needed).maina verify --visual to add Playwright screenshot regression testing.