Skip to content
Back to skills

Z Architecture

ASecurity

Deep-module design principles and seam analysis. Use when designing new modules, reviewing interfaces, deciding plugin contracts, or eliminating shallow layers.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 12, 2026
ai-agents

Security analysis

A100/100

Scanned November 12, 2026

npx -y skills add kzxl/z-plugin --skill z-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Z Architecture?

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

Security grade badge for Z Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/kzxl-z-architecture/badge)](https://www.skillsdirectory.com/skills/kzxl-z-architecture)

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: z-architecture
description: Deep-module design principles and seam analysis. Use when designing new modules, reviewing interfaces, deciding plugin contracts, or eliminating shallow layers.
---

# Z-Architecture Design Protocol

## Deep Modules vs Shallow Modules

- **Deep Module**: Has a small, simple interface that conceals extensive internal complexity (e.g. Unix file I/O: `open`, `read`, `write`, `close`). High leverage, low cognitive cost.
- **Shallow Module**: Has an interface almost as complex as its implementation, offering little value while creating an extra indirection layer.

## Invariant Design Rules

1. **Design It Twice**: For any critical component or boundary seam, sketch 2 distinct interface designs and compare trade-offs before writing implementation code.
2. **Information Hiding**: Details that change together must live together behind the module boundary.
3. **Data Sovereignty**: A module owns its internal data structures. External access occurs strictly through explicit domain contracts or event messages.
4. **Single Direction Dependencies**: High-level policies depend on abstractions, not concrete low-level details. Circular dependencies are forbidden.

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.