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…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository17 other files it gives its agents.
- 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-obsolete-api-registrySkill
- maf-release-watcherSkill
- maf-remediation-playbookSkill
- maf-workflow-smoke-testerSkill
- nuget-diff-analyzerSkill
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
- Very specific: line 35
Registry entries: always include applies_to_codebases markers.
- Very specific: line 48
When Microsoft ships a new MAF version, the maf-release-watcher workflow detects it, resolves every package surface …
≈ “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.
Files
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
| Area | Location |
| Production code | src/maf-autopilot/ (MCP tools, prompts, resources) |
| Roslyn analyzers | src/maf-autopilot.Analyzers/ (MAF001/002/003) |
| Tests | src/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 runbook | docs/runbooks/self-update.md (one section per watcher failure class) |
| Obsolete-API registry | .github/skills/maf-obsolete-api-registry/registry.yaml |
| MAF migration guide | embedded in NuGet (guide.md) |
| Multi-version samples | samples/maf-1.0-sample/, maf-1.2-sample/, maf-1.3-sample/ |
| Workshop | samples/workshop.md |
Adding features
- New MCP tool → see
CONTRIBUTING.md§"Adding an MCP server tool". Pattern:src/maf-autopilot/Tools/<Name>Tool.cswith[McpServerToolType]+[McpServerTool]+[Description]. - New registry entry → edit
.github/skills/maf-obsolete-api-registry/registry.yaml. Includeapplies_to_codebasesmarkers (pre-X.Y.Z/X.Y.Z+/ exactX.Y.Z). - New skill →
.github/skills/<name>/SKILL.md+ register inMafResources.AllowedSkillNamesinsrc/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_codebasesmarkers.
Companion docs
CLAUDE.md— Claude Code-specific working notes (this is where Claude reads when invoked fromclaude-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 referencesdocs/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.
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.

