with one click
check-cross-layer
Cross-Layer Check
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Cross-Layer Check
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | check-cross-layer |
| description | Cross-Layer Check |
Check if your changes considered all dimensions. Most bugs come from "didn't think of it", not lack of technical skill.
Note: This is a post-implementation safety net. Ideally, read the Pre-Implementation Checklist before writing code.
| Document | Purpose | Timing |
|---|---|---|
| Pre-Implementation Checklist | Questions before coding | Before writing code |
| Code Reuse Thinking Guide | Pattern recognition | During implementation |
$check-cross-layer (this skill) | Verification check | After implementation |
git status
git diff --name-only
Based on your change type, execute relevant checks below:
Trigger: Changes involve 3 or more layers
| Layer | Common Locations |
|---|---|
| API/Routes | routes/, api/, handlers/, controllers/ |
| Service/Business Logic | services/, lib/, core/, domain/ |
| Database/Storage | db/, models/, repositories/, schema/ |
| UI/Presentation | components/, views/, templates/, pages/ |
| Utility | utils/, helpers/, common/ |
Checklist:
Detailed Guide: .trellis/spec/guides/cross-layer-thinking-guide.md
Trigger:
Checklist:
# Search in source files (adjust extensions for your project)
grep -r "value-to-change" src/
Detailed Guide: .trellis/spec/guides/code-reuse-thinking-guide.md
Trigger: About to create a new utility/helper function
Checklist:
grep -r "functionNamePattern" src/
Trigger: Just modified similar patterns in multiple files
Checklist:
grep -r "patternYouChanged" src/
Trigger: Creating new source files
Checklist:
Trigger:
Checklist:
grep -r "ConceptName" src/
| Issue | Root Cause | Prevention |
|---|---|---|
| Changed one place, missed others | Didn't search impact scope | grep before changing |
| Data lost at some layer | Didn't check data flow | Trace data source to destination |
| Type/schema mismatch | Cross-layer types inconsistent | Use shared type definitions |
| UI/output inconsistent | Same concept in multiple places | Extract shared constants |
| Similar utility exists | Didn't search first | Search before creating |
| Batch fix incomplete | Didn't verify all occurrences | grep after fixing |
Report:
Read the backend development guidelines before starting your development task.
Read the frontend development guidelines before starting your development task.
Deep requirements and design discovery workflow that keeps Trellis task-first PRD capture but adds stronger design confirmation, explicit technical design notes, and a clean handoff to task plan generation. Use when you want a richer brainstorming experience than $brainstorm, when trade-offs need deliberate review, or when you want Superpowers-style design validation inside Trellis tasks.
Check if the code you just wrote follows the backend development guidelines.
Check if the code you just wrote follows the frontend development guidelines.
指导 agent 何时以及如何更新任务的 .fusion/ 执行态文件