cross-layer-check

cross-layer-check is a skill for Claude Code from brain-bootstrap/claude-code-brain-bootstrap. It costs 42 tokens per session (394 once invoked), scanned A, original, MIT.

A consistency checker for symbols such as field names, enum values, and status codes in a monorepo. A monorepo is one repository that contains several related applications or packages.

In plain words
What is it for?
Checking whether a field, enum value, or code appears across backend, frontend, shared libraries, tests, database schemas, configuration, and documentation.
Why use it?
It finds cases where a new value was added in one part of a system but forgotten in another, such as the frontend, API, database, or tests.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Checking whether a field, enum value, or code appears across backend, frontend, shared libraries, tests, database schemas, configuration, and documentation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/brain-bootstrap/claude-code-brain-bootstrap/cross-layer-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add brain-bootstrap/claude-code-brain-bootstrap --skill cross-layer-check
Clone the repo
git clone --depth 1 https://github.com/brain-bootstrap/claude-code-brain-bootstrap

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cross-layer-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/brain-bootstrap/claude-code-brain-bootstrap/cross-layer-check/github.svg)](https://agentmods.dev/skills/brain-bootstrap/claude-code-brain-bootstrap/cross-layer-check)
Your own site
<a href="https://agentmods.dev/skills/brain-bootstrap/claude-code-brain-bootstrap/cross-layer-check"><img src="https://agentmods.dev/badge/skills/brain-bootstrap/claude-code-brain-bootstrap/cross-layer-check/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cross-layer-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/brain-bootstrap/claude-code-brain-bootstrap/cross-layer-check"><img src="https://agentmods.dev/badge/skills/brain-bootstrap/claude-code-brain-bootstrap/cross-layer-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 394 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00394
Opus 5.5 $0.00017 $0.00158
Sonnet 5.5 $0.00008 $0.00079
Haiku 4.5 $0.00004 $0.00039

Measured 3mo ago against content hash 2b7c8c84a11c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cross-layer-check scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/cross-layer-check.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/cross-layer-check/SKILL.md · 56 lines

What it actually says

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 ${CLAUDE_SKILL_DIR}/scripts/cross-layer-check.sh $ARGUMENTS

Examples

# 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

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 56 lines · 42 tokens per session scan A 2b7c8c84a11c

Subscribe to this mod's changes

cross-layer-check is a skill published in the GitHub repository brain-bootstrap/claude-code-brain-bootstrap (11 stars, last pushed 7mo ago), licensed MIT. It adds 42 tokens to every session and 394 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cross-layer-check compared with skills from other repositories

cross-layer-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cross-layer-checkbrain-bootstrap/claude-code-brain-bootstrapSkill117mo agoMITA42Claude Code
implementserpro69/claude-toolboxSkill15510d agoApache-2.0A81Claude Code
documentserpro69/claude-toolboxSkill15510d agoApache-2.0A38Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7ktodayMITA71Claude Code, Codex
observability-audit-sessionsIBM/mcp-context-forgeSkill4.9kyesterdayApache-2.0A64Claude Code, Codex
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex