check-factoring

Analyze module structures for dependency direction and code duplication.

5|3|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/leifericf/agentic-sdk --skill check-factoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-factoring
Source: https://github.com/leifericf/agentic-sdk/tree/main/skills/check-factoring
Command: npx skills add https://github.com/leifericf/agentic-sdk --skill check-factoring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

The check-factoring skill streamlines code reviews by automatically analyzing module boundaries and dependencies, helping identify issues like incorrect placements, code duplication, and mixed concerns.

Core Features & Use Cases

  • Dependency-direction analysis: Ensures proper flow between modules and functions.
  • Leakage and purity checking: Detects violations of the functional core/imperative shell architecture.
  • Duplicate and oversized unit identification: Helps maintain modular, maintainable codebases.
  • Use Case: Utilize check-factoring during code reviews to validate the structure and maintainability of your project's modules.

Quick Start

Run 'check-factoring' to analyze module dependencies in your project.

Frequently Asked Questions about check-factoring

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

FAQPage Schema
How do I check module dependencies and prevent leakage during code review?

Module dependency checking analyzes your codebase statically to validate dependency directions and prevent leakage, ensuring adherence to architectural best practices. It identifies mixed concerns and structural violations automatically during code reviews.

What is static module analysis and when do I need it?

Static module analysis examines codebase structures without execution to detect duplicated logic, oversized units, and mixed concerns. You need it during code reviews to validate module boundaries and maintain architectural integrity.

Can I use static analysis to enforce functional core and imperative shell architecture?

Yes, static analysis detects violations of the functional core and imperative shell architecture by checking module purity and leakage. It ensures proper separation between functional logic and imperative side effects across module boundaries.

How do I identify duplicated logic and oversized modules in my codebase?

Identify duplicated logic and oversized modules by running static analysis on your codebase structure. The analysis flags redundant code patterns and module size constraint violations, helping maintain modular and maintainable codebases.

Does module analysis work without language-specific code analysis libraries?

No, module analysis requires code analysis libraries and tools specific to the programming language in use. The static analysis depends on these language-specific tools to parse and evaluate module structures accurately.

What are the limitations of static dependency checking for code review?

Static dependency checking cannot evaluate runtime behavior or dynamic imports, limiting its scope to structural analysis. It requires language-specific code analysis libraries and cannot detect architectural issues that only manifest during execution.