visibility-pattern-guardian

Community

Enforce testability, boost coverage.

Authormatthew-bram
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents significant code coverage loss (20-40%) caused by the misuse of private methods, ensuring code remains testable and maintainable by adhering to established visibility patterns.

Core Features & Use Cases

  • Detects Violations: Identifies private methods and inline lambdas that hinder unit testing.
  • References Style Guides: Points developers to authoritative documentation for pattern guidance, avoiding duplication.
  • Enforces Patterns: Blocks code reviews for non-compliance and offers auto-refactoring.
  • Use Case: Automatically refactor an actor object with multiple private methods into a private[module] scoped object with public methods, making all internal logic unit-testable and increasing coverage from 45% to over 85%.

Quick Start

Use the visibility-pattern-guardian skill to refactor private methods in GuardianActor.scala to private[core] object with public methods.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: visibility-pattern-guardian
Download link: https://github.com/matthew-bram/enterprise-confluent-test-probe/archive/main.zip#visibility-pattern-guardian

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.