一键导入
surface-alignment-reviewer
Reviews cross-layer connectivity to ensure frontend, backend, database, and API surfaces are properly wired together
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reviews cross-layer connectivity to ensure frontend, backend, database, and API surfaces are properly wired together
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Decompose a large system specification into cook-it-ready epic beads via DDD bounded contexts
Reference for configuring, launching, and monitoring infinity loops and polish loops
Decompose a large system specification into cook-it-ready epic beads via DDD bounded contexts
Reflect on the cycle and capture high-quality lessons for future sessions
Full-cycle orchestrator chaining all five phases with gates and controls
Decompose work into small testable tasks with clear dependencies
| name | Surface Alignment Reviewer |
| description | Reviews cross-layer connectivity to ensure frontend, backend, database, and API surfaces are properly wired together |
Verify that system layers are actually connected — not just individually functional. The most common agent failure mode is building features that work in isolation but never wire through from UI to persistence, or that generate types/clients/migrations that drift from their source of truth. This reviewer catches disconnected layers before they ship.
AgentTeam member in the review phase. Spawned for medium (100-500 lines) and large (500+) diffs, or any diff touching cross-layer surfaces (API routes, DB models, type definitions, generated code).
Verify that derived artifacts are in sync with their source of truth:
package-lock.json / yarn.lock / Cargo.lock match the manifest?alembic check, makemigrations --check, prisma migrate diff)Detection: Look for *-generated.*, *.gen.*, *_generated_* files, lockfiles, migration directories. Check if source-of-truth files were modified without corresponding artifact updates.
Finding if stale: DRIFT — "Generated artifact X is stale relative to source Y. Run <regeneration command> and commit."
Verify that the project enforces layer isolation through executable tests:
arch-go config (arch-go.yml), or import restriction testsimport-linter config (.importlinter), pytestarch, or pytest-archon usagedependency-cruiser config (.dependency-cruiser.cjs), ESLint import boundaries*ArchTest*, *ArchitectureTest*)Finding if absent: DISCONNECTED — "No architecture test infrastructure detected. Layer violations cannot be caught automatically."
Finding if partial: WEAK — "Architecture rules exist but don't cover the layers touched by this diff."
Verify that database-touching tests use real database connections:
unittest.mock.patch on query functions, vi.mock on data access layerspytest-alembic, real connection strings in test config, factory patterns with create() (not just build())alembic upgrade head in CI)Finding if mocked: WEAK — "Database tests use mocks/SQLite instead of real database. Semantic divergence risk."
Finding if no DB tests: DISCONNECTED — "Changes touch database models but no integration tests verify the persistence layer."
Verify that API/database schema changes are backwards-compatible:
buf breaking configured? Are deleted fields reserved?oasdiff or similar configured? Are required fields being removed?graphql-inspector configured? Are deprecated fields handled?Finding if no guard: WEAK — "Schema changes detected without breaking-change detection tooling."
Finding if breaking change: DRIFT — "Schema change breaks backwards compatibility: ."
Verify that all API routes/endpoints have appropriate auth protection:
Finding if uncovered: DISCONNECTED — "New route <path> has no authentication requirement."
Finding if no scanning: WEAK — "No dynamic auth route scanning test exists. New unprotected routes can be added silently."
docs/compound/research/tdd/regenerate-and-diff-testing.md for the SSOT derivation pattern and CI integration strategiesdocs/compound/research/tdd/architecture-tests-archunit.md for layer isolation enforcement per languagedocs/compound/research/tdd/database-testing-patterns.md for DB testing anti-patterns and fidelity checksdocs/compound/research/tdd/test-infrastructure-as-code.md for test infrastructure patternsdocs/compound/research/spec_design/protobuf-schema-evolution.md for schema compatibility rulesreferences/surface-alignment-guide.md for stack-specific detection patterns and tool recommendationsca knowledge "surface alignment layer connectivity" for indexed knowledgeShare cross-cutting findings via SendMessage: DB fidelity issues to test-coverage-reviewer; architecture violations to architecture-reviewer; schema compatibility issues to security-reviewer; generated code drift to drift-detector.
AgentTeam member in the review phase. Spawned via TeamCreate. Communicate with teammates via SendMessage.