check-backend-architecture
Verify Rust hexagonal architecture boundaries across domain and adapters
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verify Rust hexagonal architecture boundaries across domain and adapters
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Scaffold a REST API endpoint with hexagonal layers and integration tests
Scaffold a React component with Vitest tests (TDD-first)
Scaffold a new Shell extension with hexagonal layers and TDD
Add a sub-feature within an existing Shell extension
Scaffold a SQL migration with RLS policy, rollback plan, and test seed data
Scaffold a Tauri IPC command with full round-trip (Rust handler, TS types, React hook, tests)
| name | check-backend-architecture |
| description | Verify Rust hexagonal architecture boundaries across domain and adapters |
| user_invocable | true |
Evaluate the Rust codebase for adherence to Hexagonal Architecture (Ports and Adapters). Focus on separation of Domain Logic from Infrastructure and the use of Traits as architectural boundaries.
sqlx,
diesel, reqwest, or axumserde, uuid, and chrono are acceptable when used
as value-object support rather than infrastructure couplingmain.rs, lib.rs, or a dedicated
composition module at the application boundarySend + Sync requirements correctlyProvide a score from 1-5 for:
Report as a backend-only checklist plus scorecard:
✅ Dependency analysis — PASS
✅ Port definitions — PASS
❌ Adapter implementation — FAIL
crates/grove-api/src/db/persona_repo.rs:14 — returns sqlx::Error from port method
⚠️ Dependency injection & wiring — N/A
crates/grove-api/src/main.rs — composition root not implemented yet
Scores
Isolation: 4/5
Symmetry: 3/5
Testability: 5/5
RESULT: FAIL (1 violation, 1 N/A)
crates/