MAF Cross-Framework Migration Agent

MAF Cross-Framework Migration Agent is an agent for Claude Code from joslat/maf-doctor. It costs 116 tokens per session (1,419 once invoked), scanned A, original, MIT.

A migration agent for porting C# applications from Semantic Kernel (an AI application framework) to Microsoft Agent Framework (MAF). It creates a separate MAF project beside the original.

In plain words
What is it for?
Use it to inventory Semantic Kernel usage, classify what can be reused or rewritten, map components to MAF equivalents, and build a non-destructive side-by-side port.
Why use it?
It separates a framework change from a version upgrade and avoids modifying the existing Semantic Kernel application while the new version is being built.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to inventory Semantic Kernel usage, classify what can be reused or rewritten, map components to MAF equivalents, and build a non-destructive side-by-side port.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/joslat/maf-doctor/maf-cross-migration
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/joslat/maf-doctor

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 MAF Cross-Framework Migration Agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/joslat/maf-doctor/maf-cross-migration/github.svg)](https://agentmods.dev/agents/joslat/maf-doctor/maf-cross-migration)
Your own site
<a href="https://agentmods.dev/agents/joslat/maf-doctor/maf-cross-migration"><img src="https://agentmods.dev/badge/agents/joslat/maf-doctor/maf-cross-migration/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 MAF Cross-Framework Migration Agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/joslat/maf-doctor/maf-cross-migration"><img src="https://agentmods.dev/badge/agents/joslat/maf-doctor/maf-cross-migration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,419 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.00116 $0.01419
Opus 5 $0.00058 $0.00709
Sonnet 5 $0.00023 $0.00284
Haiku 4.5 $0.00012 $0.00142

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

Security

Grade A, and why

MAF Cross-Framework Migration Agent 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 10d 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.

.github/agents/maf-cross-migration.agent.md · 54 lines

How it starts

The opening of the file, as written. The whole thing — 54 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a specialist agent for cross-framework migration: Semantic Kernel (C#) → Microsoft Agent Framework (MAF). Your job is to port an SK app to MAF correctly, side-by-side and non-destructively — you build a new MAF project beside the original SK project and never edit the SK code until the user switches over.

This is NOT a version upgrade. If the user wants "MAF 1.x → 1.y", hand back to @maf-migration. You only handle changing frameworks (SK → MAF).

Authoritative references (READ FIRST)

  1. maf://constraints (or .github/instructions/maf-constraints.instructions.md) — hard rules; never violate them (e.g. no DefaultAzureCredential in prod, no EnableSensitiveData = true outside dev).
  2. The SK→MAF mapping — load the maf-from-semantic-kernel skill (.github/skills/maf-from-semantic-kernel/SKILL.md), or read maf://migrate-from?source=semantic-kernel. This is the source of truth for every construct's MAF target and strategy.

The strategy model — every construct carries one

  • 🌉 bridgeable — reuse the SK code as-is via an interop shim (KernelFunction.AsAIFunction(), IChatCompletionService.AsChatClient()). Prefer this; it's the least risky and enables gradual / side-by-side migration.
  • 🔁 rewrite — a mechanical SK→MAF API swap (agent creation, threads→sessions, invocation, options, DI, filters→middleware).
  • 🏗 re-architect — no 1:1 mapping; redesign onto MAF workflows / Context Providers (group chat, planners, prompt templates, vector stores). These need your judgment — propose, confirm, then build.

MCP tool shortcuts (prefer these when the server is running)

When you need to… Call
Inventory SK usage + scope the port (🌉/🔁/🏗 + EASY/MEDIUM/HARD) MafDetectSourceFramework(repoPath) (CLI: maf-doctor migrate-scan)
Scaffold a clean MAF agent / executor in the new project MafNewAgent / MafNewExecutor
Confirm the migrated project is anti-pattern clean MafDoctor(newProjectPath), MafValidateFanOut

Read the full file on GitHub · 54 lines

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. 10d ago First seen · 54 lines · 116 tokens per session scan A 42165fcb6dc5

Subscribe to this mod's changes

MAF Cross-Framework Migration Agent is an agent published in the GitHub repository joslat/maf-doctor (14 stars, last pushed 23d ago), licensed MIT. It adds 116 tokens to every session and 1,419 once invoked, about $0.0006 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-30.

Related

Other agents, from other repositories

winui-dev

Builds WinUI 3 desktop applications using Windows App SDK, XAML, and C#. Use for creating new apps, adding features, converting from WPF/Electron/web, fixing bugs, or any WinUI 3 / WinAppSDK / XAML task.

microsoft/win-dev-skills · 58 tokens

cli

Use as the primary implementation agent for this .NET repository. It defines project structure, engineering conventions, ownership boundaries, localization, testing policy, and when to use the cli, blazor, dotnet, codegen, docs, and test skills.

AterDev/Perigon.CLI · 52 tokens

dotnet-explore

Locates the C# symbols, references, and files a task touches, and reports the blast radius — before any code is written. Use when about to modify code, when assessing how a new feature lands in the existing codebase, or when navigating dependencies to find what a change would break. Returns symbolIds and file:line…

Attemainio/dotnet-toolkit · 105 tokens

dotnet-perf-full-probe

Benchmark-only instrument for dotnet-performance. Answers a stated C#-navigation question with BOTH tool families available at once — this repo's dotnet-toolkit MCP tools AND Read/Grep/Glob/Bash — under the plugin's shipped default guard state (advisory, not suspended, not forced-block). Plays a real, unrestricted…

Attemainio/dotnet-toolkit · 232 tokens

fluent-validation

Cria validators FluentValidation consistentes para DTOs do — regras, mensagens em português e integração com ASP.NET Core.

JAXTech-Labs/claude-code-template · 33 tokens

razor-frontend

Constrói Views Razor, ViewModels, layouts e partial views para o .Web — consumindo a API REST sem lógica de negócio.

JAXTech-Labs/claude-code-template · 37 tokens