decompose-law

Transform ambiguous laws into specific checks with types, configurations, severities, and messages.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/code-highway-patrol/chp --skill decompose-law
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: decompose-law
Source: https://github.com/code-highway-patrol/chp/tree/main/skills/decompose-law
Command: npx skills add https://github.com/code-highway-patrol/chp --skill decompose-law

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps users break down ambiguous enforcement concepts into clear, actionable checks, making it easier to implement and enforce laws.

Core Features & Use Cases

  • Concept Decomposition: Transforms broad enforcement ideas into specific checks.
  • Check Types: Supports various check types like pattern matching, measurable limits, structural checks, and subjective judgment.
  • Output: Generates a list of checks with types, configurations, severities, and messages for developers.

Quick Start

Use the decompose-law skill to decompose the "no secrets in code" concept.

Frequently Asked Questions about decompose-law

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

FAQPage Schema
How do I break down vague security compliance laws into specific code checks?

To break down vague security compliance laws, you decompose ambiguous enforcement concepts into a list of specific checks with types, configurations, severities, and messages for practical implementation.

What is the best way to enforce ambiguous laws in a codebase?

The best way to enforce ambiguous laws in a codebase is transforming them into specific checks with types, configurations, severities, and messages to make complex rules actionable for developers.

How do I translate a broad code enforcement concept into a rules engine configuration?

You translate a broad code enforcement concept into a rules engine configuration by decomposing it into specific checks using pattern matching, measurable limits, structural checks, and subjective judgment types.

Can I use law decomposition for security compliance concepts like no secrets in code?

Yes, you can use law decomposition for security compliance by breaking down concepts like no secrets in code into specific pattern matching checks with configured severities and developer messages.

What types of checks can I generate when decomposing complex laws?

When decomposing complex laws, you can generate checks using pattern matching, measurable limits, structural checks, and subjective judgment, each configured with specific severities and messages.

Do I need to manually define severities and messages for decomposed code quality rules?

No, you do not need to manually define severities and messages; the law decomposition process automatically generates these configurations alongside the specific check types for your code quality rules.