codescene-health-rules

Generate or update .codescene/code-health-rules.json to customize CodeScene health scoring.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/leynos/dev-env-rocky --skill codescene-health-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codescene-health-rules
Source: https://github.com/leynos/dev-env-rocky/tree/main/agent-skills/codescene-health-rules
Command: npx skills add https://github.com/leynos/dev-env-rocky --skill codescene-health-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

CodeScene health-rule management enables teams to generate, modify, or audit the .codescene/code-health-rules.json configuration to steer how health is scored, including weights, thresholds, and suppression directives.

Core Features & Use Cases

  • Generate and adjust repo-scoped overrides for health rules in .codescene/code-health-rules.json.
  • Apply language-specific overrides and in-source @codescene directives to fine-tune smells.
  • Use for audits: selectively disable or down-weight rules to reduce noise while preserving critical warnings.

Quick Start

Create or update .codescene/code-health-rules.json at the repository root to apply your desired weights and thresholds to CodeScene's health scoring.

Frequently Asked Questions about codescene-health-rules

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

FAQPage Schema
How do I customize CodeScene code health rules for my repository?

You customize CodeScene code health rules by generating or updating the .codescene/code-health-rules.json configuration file at your repository root. This file allows you to set repo-wide overrides, adjust rule weights, and define health scoring thresholds.

What is the code-health-rules.json file used for in CodeScene?

The code-health-rules.json file is used to steer how CodeScene calculates code health scores. It enables teams to apply repo-wide overrides, configure language-specific tweaks, and manage in-source @codescene directives to fine-tune detected smells.

Can I apply different code health thresholds to specific subdirectories?

Yes, you can apply per-subdirectory rules and thresholds by configuring the .codescene/code-health-rules.json file. This allows targeted overrides so different parts of your repository can have customized health scoring criteria.

How do I disable or down-weight CodeScene health rules to reduce noise?

To reduce noise during audits while preserving critical warnings, you selectively disable or down-weight specific rules by adjusting their weights and thresholds within the .codescene/code-health-rules.json configuration file.

Does CodeScene support in-source directives for suppressing code health smells?

Yes, CodeScene supports in-source @codescene directives that allow you to fine-tune and suppress specific code smells directly within your source files, working alongside the centralized .codescene/code-health-rules.json overrides.

What are the limitations of using .codescene/code-health-rules.json for health scoring?

The configuration requires placing overrides strictly in the .codescene/code-health-rules.json file at the repository root. It operates within the bounds of the provided schema for setting rule weights and thresholds, meaning schema limitations apply to custom scoring.