agentleFS
vinayaklatthevinayaklatthe/microsoft-security-agent-toolkit/CLAUDE.md

microsoft-security-agent-toolkit

CLAUDE.md2 starsChanged 5 months agoMITView on GitHub

Always read HANDOFF.md at the repo root before making any change. It is the source of truth for design decisions, conventions, tool surface, and open work prioritization. sentinel.run_kql, sentinel.list_incidents, sentinel.get_incident, sentinel.update_incident (write) · defender_xdr.list_alerts, defender_xdr.get_incident, defender_xdr.run_advanced_hunting, defender_xdr.update_incident (write), defender_xdr.isolate_device (write) · graph.signins, graph.risky_users, graph.directory_audit, graph.revoke_sessions (write), graph.disable_user (write) · purview_audit.search, purview_audit.export Pick the topmost unchecked item from "Open work" in HANDOFF.md. Phase 1 (sentinel-mcp end-to-end implementation) is the current priority.

  • Reads credentials

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  • could be automatic: a setting could enforce it
  1. Very specific:

    Never log or commit a tenant secret.

    line 13
  2. Very specific:

    Every write tool (mutates tenant state) must take confirm: true and use the separate write-app registration.

    line 14
  3. Distinctive:

    No offensive (red-team) tooling — defensive and governance only.

    line 16
  4. Distinctive:

    No live-tenant calls in tests, demos, or samples — synthetic data only.

    line 17

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

Claude Code instructions for microsoft-security-agent-toolkit

Always read HANDOFF.md at the repo root before making any change. It is the source of truth for design decisions, conventions, tool surface, and open work prioritization.

Quick context

  • Repo role: action layer (MCP servers, KQL snippets, Logic Apps templates, demos) for AI agents working on Microsoft Security.
  • Pairs with: microsoft-security-skills (the knowledge layer, 88 skills, v0.2.0).
  • Status: preview — scaffold complete, MCP implementations pending.

Hard rules (do not violate)

  1. Never log or commit a tenant secret. .env stays gitignored.
  2. Every write tool (mutates tenant state) must take confirm: true and use the separate write-app registration. See docs/permissions-required.md.
  3. Skills only declare tools_required — they never bundle this toolkit. The host routes.
  4. No offensive (red-team) tooling — defensive and governance only.
  5. No live-tenant calls in tests, demos, or samples — synthetic data only.

Conventions

  • Conventional-commit-ish (scaffold:, feat(sentinel-mcp):, docs:, kql:). Always add Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> when AI-assisted.
  • Branch off main. PR into main. One server / one snippet pack / one demo per PR.
  • KQL files use the header documented in kql-snippets/README.md.

Tool IDs (do not rename without cross-repo update)

sentinel.run_kql, sentinel.list_incidents, sentinel.get_incident, sentinel.update_incident (write) · defender_xdr.list_alerts, defender_xdr.get_incident, defender_xdr.run_advanced_hunting, defender_xdr.update_incident (write), defender_xdr.isolate_device (write) · graph.signins, graph.risky_users, graph.directory_audit, graph.revoke_sessions (write), graph.disable_user (write) · purview_audit.search, purview_audit.export

When stuck

Pick the topmost unchecked item from "Open work" in HANDOFF.md. Phase 1 (sentinel-mcp end-to-end implementation) is the current priority.

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.