基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/xoai/sage --skill architect命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
When --quality-locked is active, loop review/revise at each Quality Gate until findings reach a clean bar (no Critical, no Major, only cosmetic Minor) or the iteration cap (10) is reached. Uses a deterministic Python checker for classification and decision logic; agent runs the actual review and revision steps.
Use after implementation passes the quality gates, when a change needs an independent pass over the code before it ships, or when the user asks to "QA this", "check the implementation", or "verify it matches the spec". Applies to Standard and Comprehensive scopes with the Task tool available; Lightweight tasks skip.
Configure Sage preset and project settings. Switch between base, startup, enterprise, or opensource constitution presets. Use when the user says "configure sage", "change preset", or "sage settings".
| name | architect |
| description | Architecture Decision Records, System spec, Milestone plan |
| disable-model-invocation | true |
System design for new projects or major redesigns. Elicit, then design, then plan. Never skip steps.
Scan .sage/work/ for architect initiatives.
This scan is MANDATORY — check the DISK.
Manifest-first path: If .sage/work/*/manifest.md exists with
workflow: architect, run
python3 "${CLAUDE_PLUGIN_ROOT}/tools/manifest.py" resume (no python3 →
read the manifest by hand). Resume at the phase the brief indicates, with
the manifest body as judgment context, not orders — the live user
outranks recorded decisions, recorded decisions outrank manifest prose,
and evidence outranks all of it.
Multi-session architect cycles benefit most from the manifest —
it preserves the reasoning behind architecture decisions across sessions.
Fallback path: If no manifest.md but artifacts exist, use file-scan:
You MUST follow this routing. Do not override it.
Scan .sage/docs/ for existing research, ADRs, or decisions.
Read .sage/decisions.md for context. Read handoff field in
the most recent artifact if present.
Create manifest.md when brief.md is saved (after elicitation), gate_state: pre-spec.
Update at every checkpoint: elicitation gate, design checkpoint,
plan checkpoint, each milestone completion — advance gate_state with each.
Session end ([N]): Manifest update is MANDATORY — architect cycles
span sessions, so handoff guidance is critical.
Completion: Set status: complete and gate_state: complete after final
milestone — the completion guard requires gate_state to have reached
gates-passed first.
gate_state at each checkpoint (machine field — the spec-gate hook reads it):
pre-spec[A] (spec.md status: completed) → spec-approved[A] → plan-approvedbuildinggates-passedcompleteUntil gate_state reaches spec-approved, edits to source files are blocked —
this is Rule 3 (design before implementation) made mechanical.
Anti-lazy-manifest: Same contract as build workflow — summary must contain judgment, not spec titles.
This is the most important step. Understand the full picture before designing anything.
For comprehensive elicitation process, read
sage/core/capabilities/elicitation/deep-elicit/SKILL.md.
Three rounds — each produces a VISIBLE ARTIFACT:
Round 1 — Vision: What are you building and why? Who is it for? What does success look like? → Produce: vision summary (saved inline in brief or presented)
Round 2 — Constraints: Technical constraints, timeline, team size, existing systems to integrate with, non-negotiables. → Produce: constraints list (saved inline in brief or presented)
Round 3 — Gaps: What's still unclear? What assumptions are we making? → Produce: gaps analysis (saved inline in brief or presented)
Save combined elicitation to .sage/work/YYYYMMDD-slug/brief.md.
Do NOT proceed to design until all three rounds are complete. Do NOT compress three rounds into one response. Do NOT skip rounds because "the user already explained everything." Each round asks different questions — answers to Round 1 don't satisfy Round 2 or 3.
If Sage has relevant UNDERSTAND skills (research, analysis), recommend them here:
Sage recommends understanding the context before designing:
[1] Start with research — understand user needs first [2] Continue with elicitation round [N] [3] Something else
🔒 ELICITATION GATE:
File check: Does .sage/work/*/brief.md exist with content
from all three rounds (vision, constraints, gaps)?
If no → complete the missing rounds. Do NOT proceed to design.
Do NOT rationalize skipping:
Sage: Elicitation complete. Brief saved.
[A] Approve — continue to architecture design [R] Revise — I want to add or change something [N] New session — type /architect to continue with design
Pick A/R/N, or tell me what to change.
File check: .sage/work/*/brief.md MUST exist before designing.
If it doesn't exist, go back to Step 2. No exceptions.
Define: system components, data model, API boundaries, technology choices, deployment architecture, security model. Document key trade-offs and the reasoning behind each decision.
Save architecture decisions to .sage/docs/decision-*.md.
Save the full design to .sage/work/YYYYMMDD-slug/spec.md with frontmatter.
🔒 DESIGN CHECKPOINT:
Self-check (observable conditions):
Sage: Architecture design saved. ADRs in .sage/docs/decision-*.md Decision: [key architecture decisions]. (append to .sage/decisions.md)
[A] Approve — continue to planning in this session [R] Revise — here's what needs changing [Q] Question — I want to understand [specific decision] better [N] New session — type /architect to continue with milestone plan
Pick A/R/Q/N, or tell me what to change.
On approval: update spec frontmatter to status: completed.
Write handoff field in frontmatter:
handoff: |
Key decisions: [architecture choices and trade-offs]
Open questions: [what needs resolution during build]
Risks: [cross-cutting concerns, performance, migration]
Next agent should: [specific guidance for milestone planning]
Append architecture decisions to decisions.md (Rule 7).
File check: .sage/work/*/spec.md MUST exist with status: completed
before creating a milestone plan. If it doesn't → go back to Step 3.
Break the build into milestones (not tasks — milestones). Each milestone should be deployable and testable independently. Within each milestone, create a task plan.
Save to .sage/work/YYYYMMDD-slug/plan.md with frontmatter.
🔒 PLAN CHECKPOINT: Sage: Milestone plan saved to .sage/work/YYYYMMDD-slug/plan.md
[A] Approve — start building milestone 1 in this session [R] Revise — adjust the breakdown [N] New session — type /build to start milestone 1
Pick A/R/N, or tell me what to change.
On approval: append plan approach to decisions.md (Rule 7).
Next steps (Zone 3):
Next steps: /build — spec → plan → implement → verify (start milestone 1) /review — independent evaluation of the architecture /reflect — review design decisions before building
Type a command, or describe what you want to do next.
Execute milestone by milestone. Each milestone MUST follow the build workflow gates independently:
For each milestone:
Do NOT batch-implement multiple milestones without checkpoints. Do NOT skip per-milestone verification because "I'll test everything at the end."
At each milestone completion checkpoint: Sage: Milestone [N] complete — [summary] Decision: [what was learned during implementation]. (append to decisions.md)
[C] Continue to milestone [N+1] [R] Revise — adjust before continuing [P] Pause — type /build to continue next session
Re-validate after each milestone: Check architecture assumptions against what implementation revealed. If the architecture needs adjustment, note it in decisions.md and update ADRs before proceeding.
Communication style: Systems thinking. Name trade-offs explicitly, discuss failure modes, and explain decisions in terms of constraints and alternatives considered.
Good architecture output: