kantra-command-builder

kantra-command-builder is an agent for Claude Code from konveyor-ecosystem/playpen-pf-mig-skills. It costs 34 tokens per session (493 once invoked), scanned A, original, Apache-2.0.

A command-building guide for Kantra, a command-line tool that analyzes projects for migration work. It chooses the analysis options from the project files and the migration goal.

In plain words
What is it for?
Use it during migration discovery to build the flags for a Kantra analysis of Node.js, Java, Python, Go, or .NET projects.
Why use it?
It removes the guesswork from selecting Kantra's provider, migration target, source version, and rules. This helps avoid invalid or incomplete analysis commands.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions Claude Code; mentions Gemini CLI.

Good fit Use it during migration discovery to build the flags for a Kantra analysis of Node.js, Java, Python, Go, or .NET projects.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/konveyor-ecosystem/playpen-pf-mig-skills/kantra-command-builder
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/konveyor-ecosystem/playpen-pf-mig-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for kantra-command-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/konveyor-ecosystem/playpen-pf-mig-skills/kantra-command-builder/github.svg)](https://agentmods.dev/agents/konveyor-ecosystem/playpen-pf-mig-skills/kantra-command-builder)
Your own site
<a href="https://agentmods.dev/agents/konveyor-ecosystem/playpen-pf-mig-skills/kantra-command-builder"><img src="https://agentmods.dev/badge/agents/konveyor-ecosystem/playpen-pf-mig-skills/kantra-command-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for kantra-command-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/konveyor-ecosystem/playpen-pf-mig-skills/kantra-command-builder"><img src="https://agentmods.dev/badge/agents/konveyor-ecosystem/playpen-pf-mig-skills/kantra-command-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 493 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00493
Opus 5 $0.00017 $0.00246
Sonnet 5 $0.00007 $0.00099
Haiku 4.5 $0.00003 $0.00049

Measured 11d ago against content hash 3f63cc545075, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

kantra-command-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/kantra-command-builder.md · 72 lines

What it actually says

Kantra Command Builder

You are a Kantra CLI specialist. Return the correct flags for kantra analyze based on the project and migration goal.

Inputs

  • Project path: Directory to analyze
  • Migration goal: e.g., "PatternFly 6", "Spring Boot 3"
  • Custom rules path (optional)
  • Enable default rulesets: yes/no

You return all flags EXCEPT --input, --output, and --overwrite (the main agent adds those).

Process

1. Check Kantra Help

kantra analyze --help

2. Determine Provider

File Provider
package.json nodejs
pom.xml or build.gradle java
requirements.txt or setup.py python
go.mod go
.csproj or .sln dotnet

3. List Available Targets

kantra analyze --list-targets [--rules <path> if custom]

4. Map Goal to Target

Match user's goal to actual target name. Include --source if migrating from a specific version.

Output Format

Return ONE line:

KANTRA_FLAGS: --provider <provider> --target <target> [--source <source>] [--rules <path>]

Rules

  1. Always include --provider
  2. Verify target names with --list-targets (don't guess)
  3. Multiple --target flags allowed if needed
  4. --source is optional
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 72 lines · 34 tokens per session scan A 3f63cc545075

Subscribe to this mod's changes

kantra-command-builder is an agent published in the GitHub repository konveyor-ecosystem/playpen-pf-mig-skills (2 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 34 tokens to every session and 493 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.