rule-compliance-gate

Verifies repository hygiene and coding-standard compliance before allowing edits.

Updated May 17, 2026
One-click install
npx skills add https://github.com/cheetah-alo/NegritaOS --skill rule-compliance-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rule-compliance-gate
Source: https://github.com/cheetah-alo/NegritaOS/tree/main/.codex/skills/rule-compliance-gate
Command: npx skills add https://github.com/cheetah-alo/NegritaOS --skill rule-compliance-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents repository rule violations by enforcing the correct pre-flight checks and profile-specific governance before any coding, refactoring, analysis execution, or output generation.

Core Features & Use Cases

  • Pre-flight compliance enforcement: Ensures repository hygiene, logging/error-handling standards, and consistent output locations and naming conventions before writing or modifying code.
  • Profile-aware rule activation: Automatically selects an execution profile (analysis-run, review, or refactor) when none is provided, aligning rule sets with the user’s intent.
  • Python, SQL, data, plotting, and testing gates: Verifies type hints/docstrings, SQL parameterization and cost awareness, dataframe contracts, chart labeling rules, and unittest standards when applicable.
  • Safe fallback behavior: Stops implementation and explains what is blocking when any checklist item cannot be satisfied.

Quick Start

Use the rule-compliance-gate skill before starting your coding task to verify repository hygiene, active profile rules, and required governance for any Python/SQL/data/plot/testing changes.

Frequently Asked Questions about rule-compliance-gate

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

FAQPage Schema
How do I enforce governance checks before modifying Python modules or SQL queries?

To enforce governance checks before modifying Python modules or SQL queries, use a pre-flight compliance gate that validates repository hygiene, type hints, docstrings, and SQL parameterization, blocking execution if constraints fail.

What is a pre-flight checklist for code quality and data validation?

A pre-flight checklist for code quality and data validation is a governance mechanism that verifies Python and SQL standards, dataframe contracts, structured logging, and unit testing rules before allowing code changes to proceed.

How do I validate logging standards and error handling before an analysis run?

You validate logging standards and error handling before an analysis run by applying an intent-driven profile selection that checks repository hygiene and structured error handling requirements before generating outputs.

Does the compliance gate support notebook-to-script conversion and plot generation?

Yes, the compliance gate supports notebook-to-script conversion and plot generation by applying chart labeling rules, output naming conventions, and testing standards during these specific code modification tasks.

What happens when a governance checklist item cannot be satisfied during refactoring?

When a governance checklist item cannot be satisfied during refactoring, the compliance gate stops implementation immediately and explains exactly which blocking constraint is preventing execution.

How do I align rule sets for analysis-run, review, and refactor profiles?

You align rule sets for analysis-run, review, and refactor profiles by using intent-driven active profile selection, which automatically determines the correct governance rules when no profile is explicitly provided.