一键导入
plan-writing
Scaffold and validate feature plans using maina's spec-first planning workflow.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold and validate feature plans using maina's spec-first planning workflow.
用 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.
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 | plan-writing |
| description | Scaffold and validate feature plans using maina's spec-first planning workflow. |
| triggers | ["plan feature","create plan","scaffold feature","start new feature"] |
When starting a new feature, refactor, or significant change. The planning workflow ensures you define WHAT and WHY before deciding HOW, and validates that your implementation plan actually covers every acceptance criterion.
maina brainstorm to explore the idea, surface edge cases, and generate a structured GitHub issue. This is the recommended starting point before planning.maina plan <name>. This creates a numbered feature directory under .maina/features/ containing spec.md and plan.md templates.[NEEDS CLARIFICATION] -- never guess.maina analyze (or call the analyzeFeature MCP tool). This verifies:
[NEEDS CLARIFICATION]).maina spec. This reads the plan and creates failing test files for each task, ready for the TDD red-green-refactor cycle.# Scaffold a new feature
maina plan user-auth
# Creates:
# .maina/features/003-user-auth/
# spec.md (template with sections to fill)
# plan.md (template with sections to fill)
# After filling in both files:
maina analyze
# [spec-coverage] PASS All 4 criteria covered by tasks
# [no-placeholders] PASS No placeholder markers found
# [name-consistency] PASS All identifiers used consistently
# [test-first] PASS Test tasks precede implementation tasks
#
# Plan is ready for implementation.
# Generate test stubs
maina spec
# Created 5 test files from plan tasks.
maina analyze check is also run automatically during maina verify.maina <command> or npx @mainahq/cli <command>) and MCP tools when running inside an AI coding tool.