rules-distill

Scan installed skills and rule files to extract reusable rule candidates.

1|Updated Apr 7, 2026
One-click install
npx skills add https://github.com/riftzen-bit/gemini-setup --skill rules-distill-riftzen-bit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rules-distill
Source: https://github.com/riftzen-bit/gemini-setup/tree/main/skills/rules-distill
Command: npx skills add https://github.com/riftzen-bit/gemini-setup --skill rules-distill-riftzen-bit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires bash, jq, and includes scripts (resource) components.

What problem does it solve?

Projects accumulate many skills and scattered guidance, making it hard to identify recurring, actionable principles that should be promoted to global rules. This Skill automates discovery and analysis so teams can maintain a concise, consistent rule corpus that reflects actual practice across skills.

Core Features & Use Cases

  • Deterministic Inventory: Run scripts to enumerate installed skills and existing rule files and produce a complete text corpus for analysis.
  • LLM Cross-Reading & Verdicts: Cluster related skills, have an LLM extract candidate principles, evaluate evidence and violation risk, and assign verdicts such as Append, Revise, New Section, or New File.
  • Human-in-the-Loop Execution: Present structured candidates with draft text and require explicit user approval before any rules are changed; save outcomes to results.json for traceability.
  • Use Case: After onboarding a new set of skills or during monthly maintenance, run the workflow to surface repeatable best practices and keep rule documentation current.

Quick Start

Run the rules-distill workflow to scan skills and generate candidate rule changes for user review.

Frequently Asked Questions about rules-distill

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

FAQPage Schema
How do I extract reusable rules from scattered project skills and documentation?

To extract reusable rules, run deterministic inventory scripts to collect installed skills and existing rule files into a complete text corpus, then use LLM cross-reading to cluster related skills and generate candidate principles for explicit user approval.

What is the best way to automate governance rule distillation from accumulated project guidance?

Automating governance rule distillation involves scanning installed skills and rule files to identify cross-cutting principles, assigning verdicts like Append or Revise, and saving structured candidate output with draft text and violation risks to results.json.

Do I need bash and jq to run cross-cutting principle distillation workflows?

Yes, bash and jq are required dependencies because the deterministic inventory uses POSIX shell scripts emitting JSON to enumerate installed skills, collect full texts, and produce the structured results.json file.

How does LLM cross-reading evaluate evidence and violation risk when generating rule changes?

LLM cross-reading evaluates evidence and violation risk by clustering related skills to extract candidate principles, then assigning verdicts such as Append, Revise, New Section, or New File to produce structured candidate output with draft text.

Can I automatically apply rule changes after distilling principles from installed skills?

No, you cannot automatically apply rule changes because the workflow uses a human-in-the-loop execution model that presents structured candidates with draft text and requires explicit user approval before modifying any rules.

When should I run a rule distillation workflow to maintain my governance corpus?

You should run a rule distillation workflow during monthly maintenance or after onboarding a new set of skills to surface repeatable best practices and keep your global rule documentation current and consistent.