agentleFS
joslatjoslat/maf-doctor/AGENTS.md

maf-doctor

AGENTS.md14 starsChanged 3 months agoMITView on GitHub

This is MAF Doctor (NuGet package: maf-autopilot) — an MCP server + skills plugin for Microsoft Agent Framework (MAF) lifecycle maintenance: audit, fix, migrate, and keep registry fresh. When Microsoft ships a new MAF version, the maf-release-watcher workflow detects it, resolves every package surface (.github/maf-package-surfaces.json, pinned by .github/maf-train-lock.json), diffs it with dotnet-inspect, drafts registry entries with TODOs, and opens a scaffold PR on release-watcher/maf-X.Y.Z. The agentic workflow maf-registry-fill (GitHub Agentic Workflows; source .md, compiled .lock.yml) then fills the TODOs inside…

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Registry entries: always include applies_to_codebases markers.

    line 35
  2. Very specific:

    When Microsoft ships a new MAF version, the maf-release-watcher workflow detects it, resolves every package surface …

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
AGENTS.md

AGENTS.md — maf-autopilot (MAF Doctor)

This is MAF Doctor (NuGet package: maf-autopilot) — an MCP server + skills plugin for Microsoft Agent Framework (MAF) lifecycle maintenance: audit, fix, migrate, and keep registry fresh.

When working on this codebase

AreaLocation
Production codesrc/maf-autopilot/ (MCP tools, prompts, resources)
Roslyn analyzerssrc/maf-autopilot.Analyzers/ (MAF001/002/003)
Testssrc/maf-autopilot.Tests/, src/maf-autopilot.Analyzers.Tests/
Skills (procedural).github/skills/ (load into GitHub Copilot Coding Agent)
Specialist agents.github/agents/ (.agent.md files for Copilot Coding Agent)
CI / maintenance workflows.github/workflows/ (15 YAML workflows incl. the weekly maf-freshness SLO check, auto-release and dependabot-lockfile-repair, + 1 agentic workflow, maf-registry-fill.md → compiled .lock.yml via gh aw compile)
Self-update runbookdocs/runbooks/self-update.md (one section per watcher failure class)
Obsolete-API registry.github/skills/maf-obsolete-api-registry/registry.yaml
MAF migration guideembedded in NuGet (guide.md)
Multi-version samplessamples/maf-1.0-sample/, maf-1.2-sample/, maf-1.3-sample/
Workshopsamples/workshop.md

Adding features

  • New MCP tool → see CONTRIBUTING.md §"Adding an MCP server tool". Pattern: src/maf-autopilot/Tools/<Name>Tool.cs with [McpServerToolType] + [McpServerTool] + [Description].
  • New registry entry → edit .github/skills/maf-obsolete-api-registry/registry.yaml. Include applies_to_codebases markers (pre-X.Y.Z / X.Y.Z+ / exact X.Y.Z).
  • New skill → .github/skills/<name>/SKILL.md + register in MafResources.AllowedSkillNames in src/maf-autopilot/Resources/MafResources.cs.
  • New specialist agent → .github/agents/<name>.agent.md.

Coding standards

  • Tool descriptions: verb-first opening, 80-char strong, when-to-use clarity, disambiguated from neighbors, machine-routable returns.
  • All writes: support --dry-run.
  • All outputs: support structured (JSON/SARIF) where CI integration matters.
  • Registry entries: always include applies_to_codebases markers.

Companion docs

  • CLAUDE.md — Claude Code-specific working notes (this is where Claude reads when invoked from claude-code)
  • CONTRIBUTING.md — contributor playbook (setup, conventions, PR norms, security rubric for new MCP tools)
  • SECURITY.md — vulnerability-disclosure policy + scope (GitHub Security tab landing)
  • docs/security.md — user-facing "how MAF Doctor is hardened" overview + Cisco mcp-scanner results + canonical-source references
  • docs/security/threat-model.md — full attack-surface map, closure list (§4), and documented residual gaps (§5)
  • CHANGELOG.md — release history

The self-update loop (unique to this project)

When Microsoft ships a new MAF version, the maf-release-watcher workflow detects it, resolves every package surface (.github/maf-package-surfaces.json, pinned by .github/maf-train-lock.json), diffs it with dotnet-inspect, drafts registry entries with TODOs, and opens a scaffold PR on release-watcher/maf-X.Y.Z. The agentic workflow maf-registry-fill (GitHub Agentic Workflows; source .md, compiled .lock.yml) then fills the TODOs inside Actions, runs the release verification checklist, and pushes the fill to the PR branch through safe outputs restricted to the registry, guides, compatibility matrix and CompatibilityTool.cs. The PR gates (maf-ai-fill-verify, crossfile consistency, verify-registry) decide. Watcher failures are classified into a single rolling issue that links docs/runbooks/self-update.md.

Edit an agentic workflow by changing its .md and running gh aw compile <name>; never hand-edit a .lock.yml.

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.