ratios

Official

Analyze codebase composition ratios

AuthorThe-Interdependency
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The ratios Skill helps developers ensure code quality and composition ratios are in check by analyzing and measuring specific attributes such as lines of code, comments, imports, and public symbols in code files.

Core Features & Use Cases

  • Ratio Measurement: Automatically measures loc_comments, imports_exports, and calls_definitions in code files.
  • Drift Detection: Identifies any discrepancies between declared and actual ratios.
  • Integration with CI/CD: Can be integrated into the CI/CD pipeline to enforce codebase standards.
  • Use Case: Before merging a feature branch, ensure all ratios within your Python modules meet the required benchmarks for code density and structure.

Quick Start

To compute the ratios for all Python files in the current directory, use: 'ratios check --root .'

Dependency Matrix

Required Modules

ratios_check.py

Components

scriptsreferences

💻 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: ratios
Download link: https://github.com/The-Interdependency/skill-lib/archive/main.zip#ratios

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 620,000+ vetted skills library on demand.