一键导入
speckit-architecture-guard-governed-plan
Orchestrate a governed planning workflow that coordinates flash-mem, Security Review, and Architecture Guard validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Orchestrate a governed planning workflow that coordinates flash-mem, Security Review, and Architecture Guard validation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Wrap core analysis with behavior-first vertical consistency checks.
Apply approved architecture refactors by updating plan and task artifacts directly.
Perform a framework-agnostic architecture review validating implementation against spec.md, plan.md, tasks.md, and the governance and architecture constitutions.
Perform an architecture-aware verification gate validating implementation against spec.md, plan.md, tasks.md, and the Architecture Constitution.
Run a single architecture workflow that prefers memory-first context and can incorporate security review when available.
Run implementation with memory context, then review the produced implementation against security and architecture constraints.
| name | speckit-architecture-guard-governed-plan |
| description | Orchestrate a governed planning workflow that coordinates flash-mem, Security Review, and Architecture Guard validation. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"architecture-guard:commands/governed-plan.md"} |
You are orchestrating the governed-plan workflow for architecture-guard.
This command coordinates multiple extensions to ensure the technical plan respects architectural, historical, and security constraints before implementation begins.
Try Flash-Mem first: query summary and metadata context before performing architecture analysis.
If Flash-Mem is unavailable or the retrieved summaries are insufficient, continue with the repository artifacts and constitution files available in the workspace.
Provide a single command that ensures:
/speckit.plan).Check for the availability of:
flash-mem MCP serverspec-kit-security-review extensionDetection Logic:
flash-mem as an MCP-backed memory service in the current environment. Do not treat it as a Spec Kit extension or look for it in .specify/extensions.yml..specify/extensions.yml and check the installed list for spec-kit-security-review. Fall back to checking for the extension directory in .specify/extensions/ only if the YAML is missing or the list is empty.When Flash-Mem is available, use it first to gather the most relevant architectural context before plan generation. Prefer summary-first context and only expand into repository files when needed.
If Flash-Mem is unavailable or the context is insufficient, continue with the repository artifacts and constitution files available in the workspace.
[OPTIONAL SUB-AGENT DELEGATION]
You must orchestrate the /speckit.plan workflow directly.
CRITICAL INSTRUCTION: You must NOT just advise the user or stop here. You must actually generate the plan:
Execute Plan: Run /speckit.plan to generate and save specs/<feature>/plan.md.
If /speckit.plan is not available as a registered command (i.e., the AI agent does not recognize it as a slash command), fall back to inline planning:
specs/<feature>/spec.md (or the path provided by the user)..specify/memory/constitution.md, .specify/memory/architecture_constitution.md, .specify/memory/security_constitution.md).specs/<feature>/plan.md directly, incorporating all context above./speckit.plan was unavailable and planning was performed inline.The planning process must incorporate the Project Constitution documents and memory synthesis. Use Flash-Mem first when available. If Flash-Mem is unavailable or the retrieved context is insufficient, read the constitution files directly with your file-reading tools (absolute or relative paths). Do not rely solely on workspace search or semantic indexers, as these files are often in .gitignore:
.specify/memory/constitution.md, .specify/memory/architecture_constitution.md, and .specify/memory/security_constitution.md.Prefer the cached synthesis and selected index entries over reopening the full durable memory set.
IF spec-kit-security-review is available:
/speckit.security-review.plan to review the plan and save specs/<feature>/security-constraints.md.Run:
/speckit.architecture-guard.violation-detection
Inputs to consider:
plan.md..specify/memory/architecture_constitution.md.security-constraints.md (if available).Detect any Security-Architecture Conflict or architectural drift.
If the planning process or architecture validation identified new architectural patterns, critical decisions, or repeatable lessons:
Produce a final Governed Planning Summary for the user.
Without Flash-Mem MCP:
/speckit.plan directlyWithout Security Review:
Minimal Viable Workflow (only Architecture Guard + Spec Kit):
The workflow must remain functional with only architecture-guard and core Spec Kit.
The command MUST return:
# Governed Planning Summary
## Memory Context
- **Status**: [Synthesized / Skipped / Missing]
- **Key Constraints**: [Bullet points of architectural context used]
## Security Review
- **Status**: [Reviewed / Skipped]
- **Constraints Found**: [Key security-architecture boundaries]
- **Warnings**: [Any high-risk authorization or isolation issues]
## Architecture Review
- **Violations**: [Drift findings or Security-Architecture Conflicts]
- **Consistency Risks**: [How the plan aligns with the Constitution]
## Recommended Actions
- [e.g., Run /speckit.architecture-guard.refactor-generator]
- [e.g., Refine plan to address Security Conflict]
- [e.g., Continue to /speckit.tasks phase]
- **Durable Memory Preservation**: (Proactively triggered) Review the proposed memory entries below.