maf-obsolete-api-registry
Skill14 starsChanged 4 months agoMITView on GitHub
Machine-readable registry of known CS0618 obsolete API warnings for MAF migrations. Each entry maps an obsolete method signature to its replacement, with the exact fix pattern. Prefer the MCP tool MafRegistryLookup (by ID) or MafApiSafety (by symbol) for one-shot queries; this skill is for understanding the registry schema and contributing new entries. Load this skill when cs0618-hunter has identified a CS0618 warning and you need the deterministic fix.
In this repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- cs0618-hunterSkill
- dotnet-inspectSkill
- maf-anti-pattern-scannerSkill
- maf-doctor-self-evolutionSkill
- maf-fan-out-validatorSkill
- maf-from-semantic-kernelSkill
- maf-issue-reporterSkill
- maf-migration-guideSkill
- maf-migration-plan-creatorSkill
- maf-migration-retrospectiveSkill
- maf-release-watcherSkill
- maf-remediation-playbookSkill
- maf-workflow-smoke-testerSkill
- nuget-diff-analyzerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Look it up in registry.yaml (in this directory)
- Distinctive: line 16
If the warning is NOT in the registry — add it (see "Adding New Entries" below)
- Very specific: line 41
When cs0618-hunter finds a CS0618 warning that is NOT in registry.yaml:
- Distinctive: line 44
Add a new entry using the format above
- Distinctive: line 46
Test the fix — confirm the warning disappears after applying it
- Very specific: line 47
Commit the updated registry.yaml alongside your migration changes
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- A
cs0618-hunterscan has produced one or more CS0618 warning lines - Extract the obsolete method name from the warning text
- Look it up in
registry.yaml(in this directory) - Apply the
replacement_patternexactly as documented - 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:
- Open
registry.yaml - Add a new entry using the format above
- Fill in the obsolete and replacement signatures from the compiler warning message
- Test the fix — confirm the warning disappears after applying it
- Commit the updated
registry.yamlalongside 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) |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

