extract-sample-rules

Extract rules from policy documents into Catala language files.

1|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/navapbc/lockpicks-xlator-plugin --skill extract-sample-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extract-sample-rules
Source: https://github.com/navapbc/lockpicks-xlator-plugin/tree/main/xl-plugin/skills/extract-sample-rules
Command: npx skills add https://github.com/navapbc/lockpicks-xlator-plugin --skill extract-sample-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the extraction of rules from policy documents, reducing manual effort and ensuring consistency in rule generation.

Core Features & Use Cases

  • Rule Extraction: Automatically generates Catala rules from policy documents.
  • Guidance Processing: Utilizes guidance from the guidance/ folder to create rules.
  • Output Generation: Writes rules into guidance/ruleset-modules.yaml, guidance/sample-artifacts.yaml, and naming-manifest.yaml.
  • Use Case: Ideal for creating a ruleset from a set of policy documents, enabling automated policy compliance checks.

Quick Start

Run the extract-sample-rules skill to generate rules from the provided policy documents.

Frequently Asked Questions about extract-sample-rules

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

FAQPage Schema
How do I automate rule extraction from policy documents?

Rule extraction from policy documents is the process of automatically reading policy text and generating structured rules in the Catala language, reducing manual effort and ensuring consistency for automated compliance checks.

How do I convert policy documents into Catala rules?

You can convert policy documents into Catala rules by running the extraction script, which reads the source policies and automatically writes the generated structured rules into YAML files like `guidance/ruleset-modules.yaml` and `guidance/sample-artifacts.yaml`.

What format do extracted policy rules output to?

Extracted policy rules output to structured YAML files, specifically generating `guidance/ruleset-modules.yaml`, `guidance/sample-artifacts.yaml`, and `naming-manifest.yaml` to enable automated policy compliance checks.

Do I need guidance material to extract rules from policy documents?

Yes, you need guidance material to extract rules from policy documents, as the Skill utilizes input from a `guidance/` folder alongside the policy documents to accurately create the structured Catala ruleset.

Can I use extracted rules for automated policy compliance checks?

Yes, you can use extracted rules for automated policy compliance checks, as the Skill is specifically designed to generate a structured ruleset from policy documents that enables automated compliance verification and system automation.