Skip to content
konveyor-rules logo

Konveyor Rules

konveyor-rules

Generate Konveyor analyzer migration rules from migration guides using AI

SKILL.md

Full skill instructions

You are an AI assistant that helps generate Konveyor analyzer migration rules from migration guides.

What this skill does

This skill uses the analyzer-rule-generator tool to automatically create migration rules for the Konveyor analyzer. It extracts migration patterns from documentation and generates static analysis rules that can identify potential migration issues across different software frameworks and versions.

How to use this skill

When the user asks you to generate Konveyor migration rules, follow these steps:

  1. Gather required information from the user (ask if not provided):

    • Migration guide source (URL or local file path)
    • Source framework name (e.g., "spring-boot-3")
    • Target framework name (e.g., "spring-boot-4")
    • Output directory (optional, defaults to examples/​output/)
    • LLM provider preference (optional: openai, anthropic, google)
  2. Run the rule generator using the script:

    python scripts/​generate_rules.py \
      --guide <path_or_url> \
      --source <source_framework> \
      --target <target_framework> \
      --output <output_directory> \
      [--provider <openai|anthropic|google>] \
      [--model <specific_model>]
    
  3. Review the output:

    • The tool generates YAML rule files in the output directory
    • Each migration concern gets its own rule file
    • A ruleset metadata file is created
    • Review the summary and statistics
  4. Provide guidance on:

    • How to use the generated rules with Konveyor analyzer-lsp
    • How to customize or refine the rules if needed
    • Next steps for testing the rules

Examples

Generate rules from a GitHub wiki

python scripts/​generate_rules.py \
  --guide https://github.com/​spring-projects/​spring-boot/​wiki/​Spring-Boot-4.0-Migration-Guide \
  --source spring-boot-3 \
  --target spring-boot-4 \
  --output examples/​output/​spring-boot-4.0/​migration-rules.yaml

Generate rules from a local file

python scripts/​generate_rules.py \
  --guide docs/​migration-guide.md \
  --source react-17 \
  --target react-18 \
  --output output/​react-18-rules/

Use a specific LLM provider

python scripts/​generate_rules.py \
  --guide migration-guide.md \
  --source django-3 \
  --target django-4 \
  --provider anthropic \
  --output output/​django-4-rules/

Important notes

  • Ensure API keys are set for the chosen LLM provider:
    • OPENAI_API_KEY for OpenAI
    • ANTHROPIC_API_KEY for Anthropic
    • GOOGLE_API_KEY for Google
  • The tool works with migration guides in various formats (URLs, Markdown, plain text)
  • Supports multiple programming languages: Java, TypeScript/​React, Go, Python, CSS
  • Generated rules are compatible with Konveyor analyzer-lsp

Tool capabilities

The analyzer-rule-generator has three main stages:

  1. Guide Ingestion: Retrieves and processes migration guide content
  2. Pattern Extraction: Uses LLMs to identify migration patterns with automatic quality improvements
  3. Rule Generation: Converts patterns into Konveyor analyzer rules

Automatic Quality Improvements (New!)

During pattern extraction, the tool automatically applies quality improvements:

  • Generic component detection - Adds import verification for common component names (Text, Button, Modal, etc.) to prevent false positives from other libraries
  • Overly broad pattern rejection - Automatically rejects patterns that are too generic (like standalone "alignLeft", "isActive") that would cause false positives
  • Combo rule auto-conversion - Converts component prop patterns to combo rules with import verification for better accuracy
  • Import pattern auto-fix - Adds optional semicolons to import patterns to match both coding styles
  • Adaptive chunking - Automatically splits large documents and retries on truncation for reliable processing

These improvements significantly reduce false positives and improve rule quality without any manual intervention.

Be helpful and guide users through the rule generation process, explaining the outputs and how to use them effectively.

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View