Skip to content
Back to skills

Cross Layer Check

ASecurity

Verify that a symbol (field, enum, status code) exists across all layers of a monorepo. Use after adding new fields, enums, or codes to catch cross-layer gaps.

  • 11 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 7, 2026
ai-agentsbashapidatabasefrontendbackenddocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add brain-bootstrap/claude-code-brain-bootstrap --skill cross-layer-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cross Layer Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cross Layer Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/brain-bootstrap-cross-layer-check/badge)](https://www.skillsdirectory.com/skills/brain-bootstrap-cross-layer-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cross-layer-check
description: Verify that a symbol (field, enum, status code) exists across all layers of a monorepo. Use after adding new fields, enums, or codes to catch cross-layer gaps.
allowed-tools: Bash(bash *) Bash(grep *) Bash(find *)
argument-hint: "<symbol> [--exact]"
---

# Cross-Layer Consistency Check

Verify that a symbol (field name, enum value, status code) exists across all layers of the monorepo.

## Usage

Run the bundled script:

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/cross-layer-check.sh $ARGUMENTS
```

### Examples

```bash
# Check a field name (substring match)
bash ${CLAUDE_SKILL_DIR}/scripts/cross-layer-check.sh invoiceNumber

# Check an enum value (exact word match)
bash ${CLAUDE_SKILL_DIR}/scripts/cross-layer-check.sh PAYMENT_SENT --exact

# Check a new DTO field
bash ${CLAUDE_SKILL_DIR}/scripts/cross-layer-check.sh paymentDueDate
```

## What It Checks

The script searches across all source directories in order, reporting hits per layer:
- Backend / API source code
- Frontend source code
- Shared packages / libraries
- Test files
- Migrations / database schemas
- Configuration and documentation

## Interpreting Results

- **✅ Layer: N hits** — Symbol found in this layer
- **❌ Layer: no hits** — Symbol NOT found — possible gap
- **⚠️ WARNING** (< 3 layers) — Likely incomplete implementation

## When to Use

- After adding a new field to a DTO
- After adding a new status code or enum value
- During MR review (Review Protocol point #2: cross-layer consistency)
- When the `/review` command flags potential cross-layer gaps

Files in this skill

  • SKILL.md1.6 KB
  • scripts/cross-layer-check.sh2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.