rule-extractor

Extract bug-class findings from merged PR reviews into structured coding rules.

12|1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/RyderFreeman4Logos/cli-sub-agent --skill rule-extractor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rule-extractor
Source: https://github.com/RyderFreeman4Logos/cli-sub-agent/tree/main/patterns/rule-extractor/skills/rule-extractor
Command: npx skills add https://github.com/RyderFreeman4Logos/cli-sub-agent --skill rule-extractor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transform verified HIGH/CRITICAL review findings into reusable coding rules. When pr-bot identifies a structural bug class, this skill extracts the lesson into a rule file so the bug class goes extinct — agents see the rule at write-time and avoid the anti-pattern entirely.

Core Features & Use Cases

  • Automated triage of high-severity findings into actionable coding rules.
  • Deduplicates against project rules and drafts structured rule proposals for review.
  • Provides traceability with frontmatter and workflow integration for PR-driven rule propagation.

Quick Start

Run the plan to extract a bug-class rule from the merged PR findings and draft a reusable coding rule.

Frequently Asked Questions about rule-extractor

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

FAQPage Schema
How do I extract coding rules from merged PR review findings?

To extract coding rules from merged PR review findings, you identify HIGH or CRITICAL bug-class findings and transform them into structured, reusable rule files with frontmatter. The skill automates classification, deduplication, and drafting for human-reviewed PR proposals.

What is closed-loop learning for coding rules in a PR workflow?

Closed-loop learning for coding rules converts verified post-merge bug-class findings into formal rules. Agents reference these rules at write-time to avoid repeating anti-patterns, ensuring structural bug classes go extinct across repositories.

How do I deduplicate new bug-class rules against existing project rules?

Deduplicate new bug-class rules against existing project rules by checking extracted findings against the current rules ecosystem. The skill automatically compares structural patterns to prevent duplicate entries before generating a draft rule proposal.

Can I automate rule proposals for post-merge PR workflows across multiple repositories?

Yes, you can automate rule proposals for post-merge PR workflows across multiple repositories. The skill processes merged PR artifacts, applies automated classification, and drafts structured rule proposals with traceability frontmatter for human review.

What is the best way to convert structural bug patterns into formal coding rules?

The best way to convert structural bug patterns into formal coding rules is to extract verified findings into a structured draft with frontmatter. This ensures traceability and requires human review before merging into the rules ecosystem.

Do I need human review before merging automated rule proposals?

Yes, human review is required before merging automated rule proposals. The skill generates structured drafts with frontmatter from bug-class findings, but a human must review the PR proposal before it merges into the project rules.