mjha-arya

DOC Foundry — Documentation skill for Claude Code

Documentation community

Adversarial multi-agent detection engineering: Blue authors Sigma rules, Red attacks them, a deterministic referee proves coverage, and a stakeholder review chain ships the rule with its review trail.

How to install DOC Foundry

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mjha-arya/DOC-foundry and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What DOC Foundry does

Adversarial multi-agent detection engineering: Blue authors Sigma rules, Red attacks them, a deterministic referee proves coverage, and a stakeholder review chain ships the rule with its review trail.

Alternatives in Documentation

  • HitCC — Complete reverse-engineering documentation of the full logic of Claude Code CLI Node.js version v2.1.84 670 ★
  • Apply Self Review — Apply the approved improvements from the latest memory-self-review PROPOSAL 297 ★
  • Context Forge — CLI tool that scaffolds context engineering documentation for Claude Code projects 137 ★

README

Detection-as-Code Foundry

An adversarial multi-agent detection-engineering workflow — LangGraph · Pydantic · FastMCP · Claude

Turn a threat (a CVE, a CISA KEV entry, an incident writeup, an ATT&CK technique) into a **validated first-version detection** — a proven starting point a detection team hardens further, not a claim of finished, forever-bulletproof coverage — plus **three artifacts that ship together**:

  1. a Sigma detection rule that has survived a Blue-vs-Red adversarial loop,
  2. a threat report with the round-by-round convergence history, and
  3. a proof bundle — a positive corpus the rule fires on, a benign baseline it stays silent on, an adversarial mutation set, and a computed coverage label (real-coverage / brittle / broken) with FP/FN numbers and a reproducibility hash.

The thing nobody else produces is #3. A model can write you a Sigma rule; it cannot hand you a *proof* that the rule works, an adversary that *provably* evades the weak version, and an honest record of how the rule was hardened until it held.

**A bounded, fixed adversary.** Red commits to **two real, documented attacks** in round one and re-throws *those same two* against the hardened rule each round — the same "built once, can't move its goalposts" discipline as the fixed test corpus. `real-coverage` therefore means something concrete and honest: the first-version rule fires on every attack in the corpus, stays silent on benign look-alikes, and caught **both** of Red's real attacks. It is a validated baseline, not a promise of coverage against every future evasion — that is the detection team's job to extend.

**Agents propose; the engine proves.** Four role-specialized LLM agents (Threat Analyst, Blue Detection Engineer, Telemetry, Red-Team Adversary) do the creative work. Everything that decides truth — FP/FN evaluation, adversarial evasion, the coverage verdict, red-team verification, and the deployment gate — is a det