Automated summary
A systematic verification pass that checks the IA, BE and FE specification layers against each other using coverage matrices and data-contract checks.
Strengths
- Defines five distinct checks: IA→BE coverage, BE→FE field mapping, error-code propagation, access-control rules, and data-contract drift.
- Prescribes explicit output formats (COVERAGE GAP, MAPPING GAP, CONSISTENCY ISSUE) with layer attribution and a suggested remediation.
- Designed to slot into existing pipelines as a mandatory pass after audits, remediation, decision propagation, or feature evolution.
- The required mapping tables leave a reviewable trace, which is easier to audit than a free-form list of concerns.
Limitations
- Assumes a fixed `.memory/wiki/specs/{ia,be,fe}` layout and specific companion skills, so it does not transfer directly to other documentation structures.
- Every check is a manual read-through, which scales poorly across a large body of specs.
- It only reports labeled findings; it neither edits the specs nor the code, and the data-contract drift section is the least detailed of the five.
Run it once all three specification layers have at least one document, and before advancing any pipeline stage.
Skip it while IA, BE or FE specs are still missing, or on projects that do not keep specs in this wiki structure.
Security analysis
SafeThe skill defines a documentation and specification consistency review methodology. It only reads local markdown spec files under .memory/wiki/specs/ and produces structured textual findings. No command execution, network access, file modification, or data exfiltration is instructed. No destructive or obfuscated actions are present.
No concerns found
How this analysis is madeExamples
Read my IA shards under .memory/wiki/specs/ia/ and the BE specs, then build the coverage matrix and list every IA entity, state transition, or user action that has no matching BE section.Cross-reference the error codes defined in the BE specs against the FE specs and tell me which HTTP status codes and application error types have no FE handler, with the remediation for each.We renamed the field `accountId` to `workspaceId` in the BE contract. Scan all specs under .memory/wiki/specs/ for stale references to the old name and report each file and section.name: cross-layer-consistency description: Systematic methodology for verifying that IA, BE, and FE specification layers are mutually consistent. Covers coverage matrices, field mapping checks, error code propagation, access control consistency, and data contract drift detection.
Cross-Layer Consistency
This skill provides the systematic consistency verification pass run by audit-ambiguity-execute, remediate-pipeline-execute, propagate-decision-scan, and evolve-feature-cascade, and its output is a set of labeled consistency issues with layer attribution.
When to Use
- After all three spec layers (IA, BE, FE) have at least one document written
- As part of every audit, every remediation, every decision propagation, and every feature evolution cascade
- As a standalone pre-gate check before advancing any pipeline stage
Instructions
1. IA → BE Coverage Matrix
Open .memory/wiki/specs/ia/index.md to enumerate all IA shards. For each shard, read its data model and state transition sections. Then open .memory/wiki/specs/be/ and verify:
- Every IA data model entity has a corresponding BE spec section describing its schema, storage contract, and CRUD operations.
- Every IA state transition has a corresponding BE endpoint that drives it.
- Every IA user action (described in the interactions section) has a corresponding API contract in the BE spec.
Build a coverage table:
| IA Shard | IA Section | BE Spec Section | Status | |----------|-----------|-----------------|--------| | [name] | [section] | [BE section] | ✅ / ❌ |
Document each gap as:
COVERAGE GAP: IA shard [name] § [section] → no corresponding BE spec section found.
2. BE → FE Field Mapping Check
For every BE endpoint documented in .memory/wiki/specs/be/, enumerate all response fields. For each field, verify it appears in .memory/wiki/specs/fe/ — in a component prop definition, a display element, a table column, or an explicit "field not rendered" exclusion.
Then for each FE component, verify every input prop maps to a BE request field.
Build a mapping table:
| BE Endpoint | Field | FE Spec Location | Status | |-------------|-------|-------------------|--------| | [endpoint] | [field] | [FE location] | ✅ / ❌ |
Document each gap as:
MAPPING GAP: BE endpoint [name] field [field] → not referenced in FE spec.
3. Error Code Consistency Cross-Reference
Build an error code table across layers: for every HTTP status code and application error type defined in BE specs, create a row. Then for each row, identify the FE spec location that handles it (error boundary, toast handler, inline error state, retry logic).
| BE Endpoint | Error Code | FE Handler | FE Spec Location | Status | |-------------|-----------|------------|-------------------|--------| | [endpoint] | [code] | [handler] | [location] | ✅ / ❌ |
Any BE error code with no corresponding FE entry is a gap. Document as:
CONSISTENCY ISSUE: BE § [endpoint] error [code] ↔ FE — no handling found — remediation: add [code] handler to [FE spec section].
4. Access Control Propagation Check
For every access control rule defined in IA shards (role-resource-operation triplets), verify the rule appears in both:
- BE: as a middleware guard, route-level permission check, or explicit authorization step in the endpoint contract.
- FE: as a conditional render, route guard, or disabled state on the triggering UI element.
A rule missing from either layer is a gap. Document as:
CONSISTENCY ISSUE: IA § [access control section] permission [role→resource:operation] ↔ [BE or FE] — not found — remediation: add guard to [target layer § section].
5. Data Contract Drift Detection
When invoked in the context of a schema change (e.g., after evolve-contract or a propagate-decision run), scan all files under .memory/wiki/specs/ for references to the changed type, field name, or validation rule. Check for:
- Field name string matches
- Type annotation references
- Validation rule references
For each file that references the old definition and has not been updated, document as:
CONSISTENCY ISSUE: [source layer] § [section] ↔ [target file] § [section] — [field/type] changed in source but not reflected in target — remediation: update [target] to match [source].
6. Documenting Inconsistencies
All consistency issues must be written using this exact format:
CONSISTENCY ISSUE: [source layer] § [section] ↔ [target layer] § [section] — [what is inconsistent] — [remediation: update [target] to match [source] OR raise for user decision]
- Source layer is the authoritative layer (the one that should not change).
- Target layer is the one that needs updating.
- When it is unclear which layer is authoritative, write
raise for user decisionas the remediation and present both versions to the user. Never silently pick one.
Anti-Patterns
- One-direction-only checking — Checking only one direction of the matrix (IA→BE but not BE→IA). Coverage gaps exist in both directions.
- Skipping the error code table — Skipping the error code table because "the FE will just show a generic error." Every BE error code must have an explicit FE handling specification.
- Treating access control propagation as optional — Treating access control propagation as optional when the spec "looks simple." Missing FE route guards are a security gap, not a style preference.
Related Skills
resolve-ambiguity— Hand off toresolve-ambiguitywhen a consistency issue cannot be resolved by simply updating the target layer to match the source. Specifically: when both layers present plausible but conflicting definitions and it is unclear which is authoritative, or when the inconsistency reveals a gap that requires new information from the user. This skill detects what is inconsistent;resolve-ambiguitydetermines what the correct answer should be through its tiered information-gathering methodology.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/cross-layer-consistency-mrx3xz1x' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/cross-layer-consistency-mrx3xz1x/download' --output '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md.part' && mv '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md.part' '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md' && test -s '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/cross-layer-consistency' && cp -R '.skill-downloads/cross-layer-consistency-mrx3xz1x' '.claude/skills/cross-layer-consistency'Cursor
test -f '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md' && test -s '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/cross-layer-consistency' && cp -R '.skill-downloads/cross-layer-consistency-mrx3xz1x' '.cursor/skills/cross-layer-consistency'Codex
test -f '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md' && test -s '.skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/cross-layer-consistency' && cp -R '.skill-downloads/cross-layer-consistency-mrx3xz1x' '.agents/skills/cross-layer-consistency'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/cross-layer-consistency-mrx3xz1x'openskills read 'cross-layer-consistency-mrx3xz1x'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/cross-layer-consistency-mrx3xz1x/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.