agentleFS
joslatjoslat/maf-doctor/.github/skills/maf-obsolete-api-registry/SKILL.md

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.

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
  1. Very specific:

    Look it up in registry.yaml (in this directory)

    line 14
  2. Distinctive:

    If the warning is NOT in the registry — add it (see "Adding New Entries" below)

    line 16
  3. Very specific:

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

    line 41
  4. Distinctive:

    Add a new entry using the format above

    line 44
  5. Distinctive:

    Test the fix — confirm the warning disappears after applying it

    line 46
  6. Very specific:

    Commit the updated registry.yaml alongside your migration changes

    line 47

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

IDMethodObsolete signatureReplacement
MAF130-FAN-IN-001WorkflowBuilder.AddFanInBarrierEdge(ExecutorBinding target, IEnumerable<ExecutorBinding> sources)(IEnumerable<ExecutorBinding> sources, ExecutorBinding target)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.