Post-implementation verification across multiple code dimensions: cross-layer data flow, code reuse analysis, import path validation, and same-layer consistency checks. Identifies missed update sites, type mismatches, and duplicated constants. Use when changes span 3+ architectural layers, after modifying shared constants or configs, after batch file modifications, or when creating new utility functions.
63
75%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./.agents/skills/check-cross-layer/SKILL.mdCheck 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. Before writing code, read the Cross-Layer Thinking Guide.
| Document | Purpose | Timing |
|---|---|---|
| Cross-Layer Thinking Guide | End-to-end contract questions | 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-onlyBased 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: Cross-Layer Thinking Guide
Trigger:
Checklist:
# Search in source files (adjust extensions for your project)
rg "value-to-change" src/Detailed Guide: Code Reuse Thinking Guide
Trigger: About to create a new utility/helper function
Checklist:
rg "functionNamePattern" src/Trigger: Just modified similar patterns in multiple files
Checklist:
rg "patternYouChanged" src/Trigger: Creating new source files
Checklist:
Trigger:
Checklist:
rg "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:
5347fbb
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.