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/