Skip to content
Back to skills

Boundary Review

ASecurity

review completed work for boundary leaks across layers, modules, packages, and ownership lines. use when changes cross directory boundaries, touch shared modules, introduce imports between previously independent features, or produce a diff that feels tightly coupled in a way that will age badly.

  • 225 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 7, 2026
code-qualitygogitapi

Works with

  • api

Security analysis

A100/100

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

Scanned November 7, 2026

npx -y skills add NeverSight/skills_feed --skill boundary-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Boundary Review?

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

Security grade badge for Boundary Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-boundary-review/badge)](https://www.skillsdirectory.com/skills/neversight-boundary-review)

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: boundary-review
description: review completed work for boundary leaks across layers, modules, packages, and ownership lines. use when changes cross directory boundaries, touch shared modules, introduce imports between previously independent features, or produce a diff that feels tightly coupled in a way that will age badly.
---

# Boundary Review

Announce at the start: "I'm using boundary-review to check the dependency direction and responsibility ownership of the change."

## Core idea

Most architecture decay happens at boundaries — layer boundaries, package boundaries, module boundaries, ownership lines. A diff can look fine in each individual file and still quietly punch a hole through a line that was holding the system together. The review focuses on direction and ownership, not on code quality inside a single file.

## Workflow

1. Identify the boundaries the change crosses: layer (controller ↔ domain ↔ adapter), package, feature module, ownership line (team A's code ↔ team B's code), public API vs internal.
2. For each crossing, run [`checklist.md`](./checklist.md): is the direction correct, is the crossing through a sanctioned surface, is the receiving side prepared for this coupling?
3. When unsure whether a crossing is a real boundary violation or merely a style preference, walk [`decision-tree.md`](./decision-tree.md).
4. Cross-check against [`anti-patterns.md`](./anti-patterns.md) for the common boundary-leak shapes.
5. Classify findings using [`../../references/severity-model.md`](../../references/severity-model.md). A dependency backflow on a load-bearing boundary is High or Critical; a stylistic layer crossing with no damage is Low.
6. See [`examples/boundary-leak.md`](./examples/boundary-leak.md) for a worked case.

## Workflow output per finding

For every crossing flagged, produce:

1. The intended boundary (drawn in one sentence).
2. The specific import, call, or data flow that crossed it.
3. Why that crossing matters — the concrete next-change cost.
4. The smallest useful repair (usually a single import removed, a single interface narrowed, or a single piece of logic moved one layer).

## Heuristics

- Dependency direction should match the layer diagram the repo implicitly uses. Inversions deserve scrutiny.
- Cross-feature imports should go through each feature's public surface, not into its internals.
- Shared modules should know about types, not about feature-specific behavior.

## Do not

- flag every cross-folder import; many are legitimate
- propose a full layering redesign when one import needs to move
- mistake "I would have organized this differently" for a boundary violation

## Supporting files

- [`checklist.md`](./checklist.md) — per-crossing inspection steps.
- [`anti-patterns.md`](./anti-patterns.md) — boundary-specific anti-patterns extending [`../../references/anti-patterns.md`](../../references/anti-patterns.md).
- [`decision-tree.md`](./decision-tree.md) — deciding violation vs preference.
- [`examples/boundary-leak.md`](./examples/boundary-leak.md) — worked example of a High-severity boundary leak.

## Output

Use the review-report format in [`../../references/report-templates.md`](../../references/report-templates.md). State verdicts with clear blocker vs backlog language: Critical and High findings either block merge or are explicitly accepted as known risk in writing.

Files in this skill

  • SKILL.md3.3 KB
  • description_ar.txt504 B
  • description_cn.txt247 B
  • description_de.txt354 B
  • description_en.txt297 B
  • description_es.txt383 B
  • description_fr.txt423 B
  • description_it.txt363 B
  • description_ja.txt445 B
  • description_ko.txt373 B
  • description_ru.txt638 B
  • description_tw.txt238 B
  • stats.json65 B

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 code-quality →

Comments

Loading comments…

Newsletter

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