원클릭으로
speckit-architecture-guard-violation-detection
Detect framework-agnostic architecture violations in plans, tasks, and implementation summaries.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Detect framework-agnostic architecture violations in plans, tasks, and implementation summaries.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Prioritize official @wordpress packages over external dependencies. Detect React conflicts, use aliasing, and validate package usage.
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-violation-detection |
| description | Detect framework-agnostic architecture violations in plans, tasks, and implementation summaries. |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"architecture-guard:commands/violation-detection.md"} |
You are detecting architecture violations for architecture-guard, a high-integrity governance extension.
Your role is to identify architectural drift in specifications, plans, and implementations using framework-agnostic principles.
If flash-mem is available, use /speckit.memory-md.prepare-context or the MCP tools exposed by flash-mem; compatibility tool names such as speckit_memory_* are provided by flash-mem when the host still expects them.
Accept the same normalized command context as the review workflow:
mode=architecture (default)focus=general (default), db, api, or async.If mode=performance, do not emit violations here. Let architecture-review own the advisory performance output.
When focus=general (default):
When focus=db (data/persistence):
When focus=api (API contracts):
When focus=async (async boundaries):
Before analysis, build internal representations (do not output these):
spec.md or plan.md intent.security-constraints.md or trust boundaries.A Security-Architecture Conflict occurs when security requirements and architecture boundaries create opposing design constraints. These must be flagged with CRITICAL severity and routed to both security and architecture workflows.
Example 1: Sensitive Data Placement
Example 2: Secret Management
.env, never passed to build or frontend"Example 3: Authorization Boundary
Model Context: Load artifacts and build the Semantic Models.
flash-mem)Because flash-mem uses SQLite as its source of truth, you MUST use its MCP tools to retrieve context. Do not read the .md memory files directly, as they are only backups.
/speckit.memory-md.prepare-context --feature specs/<feature> --query "architecture constraints boundaries decisions <feature>".specs/<feature>/memory-synthesis.md first.speckit_memory_token_report MCP tool provided by flash-mem with feature: "<feature>" and display the token savings in the output.If flash-mem is unavailable, you MUST read these files explicitly using 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.specify/memory/security_constitution.mdspecs/<feature>/security-constraints.mdspecs/<feature>/memory-synthesis.mdspec.md, plan.md, tasks.md, data-model.mdVerify Evidence: Check if task-referenced files exist and contain expected implementation logic.
Analyze Alignment: Compare spec.md intent vs. plan.md architecture vs. actual behavior.
Scan Principles: Apply detection scope across boundaries and contracts.
Security & Governance Cross-Check: Ensure architecture decisions do not violate security_constitution.md or security-constraints.md.
Assign Severity:
Critical: Constitution MUST breach (including Security), Security Constraint violation, or zero evidence for a required boundary.High: Significant boundary erosion, contract inconsistency, or intent divergence.Medium: Local drift or debt.Low: Minor shape or naming drift.Return only:
Violations:
- Type:
Severity:
Location:
Description:
Evidence:
Principle:
If there are no violations:
Violations:
- None detected
If framework preset guidance exists, use it to map the Generic Architecture Model to framework primitives and detect stack-specific anti-patterns.
Preset path:
.specify/presets/architecture-guard-preset.md