maf-obsolete-api-registry

maf-obsolete-api-registry is a skill for Claude Code, Codex from joslat/maf-doctor. It costs 100 tokens per session (597 once invoked), scanned A, original, MIT.

A machine-readable list of known obsolete MAF APIs. MAF is the Microsoft Agent Framework, and each entry maps an outdated C# method to its required replacement.

In plain words
What is it for?
Use it to look up an obsolete method, find its exact replacement and argument changes, or add a warning that is not yet recorded.
Why use it?
It removes guesswork when fixing CS0618 compiler warnings caused by APIs marked obsolete during a MAF migration.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to look up an obsolete method, find its exact replacement and argument changes, or add a warning that is not yet recorded.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joslat/maf-doctor/maf-obsolete-api-registry
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.

Any agent
npx skills add joslat/maf-doctor --skill maf-obsolete-api-registry
Clone the repo
git clone --depth 1 https://github.com/joslat/maf-doctor

Made for: Claude Code, Codex.

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-obsolete-api-registry

README.md
[![agentmods](https://agentmods.dev/badge/skills/joslat/maf-doctor/maf-obsolete-api-registry/github.svg)](https://agentmods.dev/skills/joslat/maf-doctor/maf-obsolete-api-registry)
Your own site
<a href="https://agentmods.dev/skills/joslat/maf-doctor/maf-obsolete-api-registry"><img src="https://agentmods.dev/badge/skills/joslat/maf-doctor/maf-obsolete-api-registry/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-obsolete-api-registry

Your own site · 80×15
<a href="https://agentmods.dev/skills/joslat/maf-doctor/maf-obsolete-api-registry"><img src="https://agentmods.dev/badge/skills/joslat/maf-doctor/maf-obsolete-api-registry.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 597 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.00100 $0.00597
Opus 5 $0.00050 $0.00298
Sonnet 5 $0.00020 $0.00119
Haiku 4.5 $0.00010 $0.00060

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

Security

Grade A, and why

maf-obsolete-api-registry 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 12d 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/skills/maf-obsolete-api-registry/SKILL.md · 60 lines

How it starts

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

Obsolete API Registry

This registry is the source of truth for all known [Obsolete] APIs in MAF 1.3.0.

How to Use This Skill

  1. A cs0618-hunter scan has produced one or more CS0618 warning lines
  2. Extract the obsolete method name from the warning text
  3. Look it up in registry.yaml (in this directory)
  4. Apply the replacement_pattern exactly as documented
  5. If the warning is NOT in the registry — add it (see "Adding New Entries" below)

registry.yaml Format

- id: <unique identifier>
  package: <NuGet package name>
  version_introduced: <MAF version where this became obsolete>
  type: <fully-qualified type name>
  method: <method name>
  obsolete_signature: <exact C# signature of the obsolete overload>
  replacement_signature: <exact C# signature of the correct overload>
  argument_order_change: <true|false>
  fix_description: <one-line description of what to change>
  example_before: |
    <exact code to find>
  example_after: |
    <exact replacement code>
  cs_warning: CS0618
  guide_section: <section number in maf-migration-guide>
  notes: <any additional context>

Adding New Entries

When cs0618-hunter finds a CS0618 warning that is NOT in registry.yaml:

  1. Open registry.yaml
  2. Add a new entry using the format above
  3. Fill in the obsolete and replacement signatures from the compiler warning message
  4. Test the fix — confirm the warning disappears after applying it
  5. Commit the updated registry.yaml alongside your migration changes

This is how the registry grows over time — each migration run that finds a new obsolete API enriches the registry for future runs.


Current Registry Contents

See registry.yaml for the full machine-readable data. Current entries:

ID Method Obsolete signature Replacement
MAF130-FAN-IN-001 WorkflowBuilder.AddFanInBarrierEdge (ExecutorBinding target, IEnumerable<ExecutorBinding> sources) (IEnumerable<ExecutorBinding> sources, ExecutorBinding target)

Read the full file on GitHub · 60 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 60 lines · 100 tokens per session scan A 11d46d0f0458

Subscribe to this mod's changes

maf-obsolete-api-registry is a skill published in the GitHub repository joslat/maf-doctor (14 stars, last pushed 25d ago), licensed MIT. It adds 100 tokens to every session and 597 once invoked, about $0.0005 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 skills, from other repositories

winui-setup

Install and verify the prerequisites the win-dev-skills WinUI 3 toolchain depends on — .NET SDK 8.0.100+, WinApp CLI 0.6+, and Developer Mode. Use only when the user explicitly asks to set up or repair the toolchain. Do not invoke automatically when another skill reports a missing prerequisite; tell the user what is…

microsoft/win-dev-skills · 88 tokens

winui-wpf-migration

Migrate WPF applications to WinUI 3 — namespace replacement (System.Windows → Microsoft.UI.Xaml), control mapping (DataGrid→ListView, WrapPanel→ItemsRepeater, TabControl→TabView), threading (Dispatcher→DispatcherQueue), imaging (System.Drawing→BitmapImage), MVVM conversion to CommunityToolkit.Mvvm, and…

microsoft/win-dev-skills · 100 tokens

migrate-mstest-v3-to-v4

Use this skill before answering, planning, or editing any MSTest 3.x-to-4.x upgrade or post-upgrade failure. Triggers include "MSTest v4 breaking changes"; CS0507/CS0103/CS1061/CS1615; ExecuteAsync, CallerInfo, DisplayName, or custom TestMethodAttribute; ClassCleanupBehavior; ContainsKey; ThrowsExactly or…

managedcode/dotnet-skills · 179 tokens

wpf

Build and modernize WPF applications on .NET with correct XAML, data binding, commands, threading, styling, and Windows desktop migration decisions. USE FOR: working on WPF UI, MVVM, binding, commands, or desktop modernization; migrating WPF from .NET Framework to .NET; integrating newer Windows capabilities into a…

managedcode/dotnet-skills · 122 tokens

worker-services

Build long-running .NET background services with BackgroundService, Generic Host, graceful shutdown, configuration, logging, and deployment patterns suited to workers and daemons. USE FOR: background services; scheduled workers; hosted services; worker extraction; graceful shutdown, health checks, and service hosting…

managedcode/dotnet-skills · 109 tokens

mcp

Build or consume Model Context Protocol (MCP) servers and clients in .NET using the official MCP C# SDK, including stdio, Streamable HTTP, tools, prompts, resources, and capability negotiation. USE FOR: .NET MCP servers or clients; stdio versus HTTP transport choices; tools, resources, prompts, completions, and…

managedcode/dotnet-skills · 123 tokens