layer-testing

Generate layer-focused tests with coverage analysis and isolated git worktrees.

3|Updated Oct 9, 2025
One-click install
npx skills add https://github.com/bengous/claude-code-plugins --skill layer-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: layer-testing
Source: https://github.com/bengous/claude-code-plugins/tree/main/orchestration/skills/layer-testing
Command: npx skills add https://github.com/bengous/claude-code-plugins --skill layer-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Layered architectures require deliberate testing across multiple architectural boundaries. This Skill orchestrates layer-focused tests with coverage-first analysis and isolated worktrees to prevent accidental changes to your main branches.

Core Features & Use Cases

  • Coverage-first analysis: Determine existing test coverage before writing new tests, focusing on gaps.
  • Isolated worktrees: Run changes in a separate git worktree to keep your working branch clean.
  • Strategy-driven testing: Load a testing strategy from a playbook or guide the user through an interactive template to select a layer-focused approach.
  • Workflow automation: Guides through steps from parameter gathering to test creation and verification.

Quick Start

Provide Module, Layer, and optional Playbook path (or let the Skill select a strategy). The Skill will create an isolated worktree, run a coverage pass, and guide you through generating and validating tests for the specified layer.

Frequently Asked Questions about layer-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate comprehensive tests for architectural layers?

Layer testing automates test creation across core, domain, application, infrastructure, and boundary layers in Hexagonal, Clean, and Layered architectures. It uses coverage-first analysis to identify gaps, then guides you through generating focused tests for your specified layer without modifying production code.

What's the best way to measure test coverage before writing new tests?

Coverage-first analysis runs an initial coverage pass on your target layer to determine existing test gaps before writing anything. This approach prioritizes which tests to create based on actual coverage data rather than guessing.

How do I test a specific architectural layer without affecting my main branch?

Layer testing uses isolated git worktrees to run all changes in a separate environment. This keeps your working branch clean while you develop and validate tests for a specific layer, then merge only verified changes back.

Can I use a testing strategy playbook, or do I need to create one from scratch?

You can provide an optional playbook to drive your testing strategy, or the Skill guides you through an interactive template to select a layer-focused approach. Either path leads to consistent, coverage-driven test generation.

What happens after I generate tests for my layer?

Layer testing performs stepwise verification through coverage checks and quality gates to validate that your new tests meet coverage targets and maintain code quality before you integrate changes back into your main branch.

Do I need to know the module and layer names upfront?

Yes—provide your Module and Layer names to start. The Skill uses these parameters along with an optional Playbook path to create the isolated worktree and begin coverage analysis for your specified architectural layer.