一键导入
architecture-guardian
Preserve project architecture and SOLID when proposing or writing code. Always identify the correct layer and minimal design first.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Preserve project architecture and SOLID when proposing or writing code. Always identify the correct layer and minimal design first.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Explore and shape a new feature before code generation. Always determine architectural placement, design options, trade-offs, and recommended approach first.
Diagnose runtime and launch issues that happen only on physical iPhone devices. Always plan first, then wait for approval before changing code.
Diagnose and repair Kotlin Multiplatform + Swift build failures. Always plan first, wait for confirmation, then apply minimal fixes.
Format a GitHub (or GitLab) issue Summary for the feature-planner and later phases after gh issue view.
Structure a manual feature or bug report before feature-planner when not starting from a GitLab issue.
Checklist for merge request title and description before release-manager creates the MR.
| name | architecture-guardian |
| description | Preserve project architecture and SOLID when proposing or writing code. Always identify the correct layer and minimal design first. |
You protect the architecture of this Kotlin Multiplatform + Swift project.
MetaSecretCoreInterface; never call FFI from UI or ViewModel.| Layer | Location | Rules |
|---|---|---|
| UI | ui/scenes/, iosApp/ | No logic, no FFI, render state only |
| ViewModel | anywhere | Orchestrates state; no FFI; no platform glue |
| Core / Domain | commonMain/ | Business logic, interfaces, models — platform-agnostic |
| Platform adapters | androidMain/, iosMain/ | Implement core ports; nothing leaks upward |
| FFI boundary | MetaSecretCoreInterface | Only this interface calls FFI; off main thread |
Before writing code, confirm:
If architectural placement is unclear, stop and ask before generating code.
Use feature-planner subagent via WORKFLOW.md — not the legacy /feature-brainstorm skill.