{
  "markdown": "<p align=\"center\">\n  <img src=\"https://img.shields.io/badge/claude--code-plugin-8A2BE2\" alt=\"Claude Code Plugin\" />\n  <img src=\"https://img.shields.io/badge/skills-5-blue\" alt=\"5 Skills\" />\n  <img src=\"https://img.shields.io/badge/agents-2-green\" alt=\"2 Agents\" />\n  <img src=\"https://img.shields.io/badge/license-MIT-green\" alt=\"MIT License\" />\n</p>\n\n# Memoriant Governance Compiler Skill\n\nA Claude Code plugin that transforms natural-language policy documents into executable governance graphs. Compile Markdown policies into typed DAGs, detect policy conflicts, trace compliance paths for specific scenarios, and generate audit evidence packages.\n\n**No servers. No Docker. Just install and use.**\n\n## Install\n\n```bash\n/install NathanMaine/memoriant-governance-compiler-skill\n```\n\n## Cross-Platform Support\n\nThis plugin works with multiple AI coding assistants:\n\n### Claude Code (Primary)\n```bash\n/install NathanMaine/memoriant-governance-compiler-skill\n```\n\n### OpenAI Codex CLI\n```bash\ngit clone https://github.com/NathanMaine/memoriant-governance-compiler-skill.git ~/.codex/skills/governance-compiler\ncodex --enable skills\n```\n\n### Gemini CLI\n```bash\ngemini extensions install https://github.com/NathanMaine/memoriant-governance-compiler-skill.git --consent\n```\n\n## Skills\n\n| Skill | Command | What It Does |\n|-------|---------|-------------|\n| **Compile Policy** | `/compile-policy` | Parse Markdown policy → typed DAG (JSON + DOT format) |\n| **Analyze Graph** | `/analyze-graph` | Structural analysis: density, depth, orphaned nodes, coverage gaps |\n| **Detect Conflicts** | `/detect-conflicts` | Find contradictory rules, duplicate mandates, frequency conflicts |\n| **Trace Compliance** | `/trace-compliance` | Evaluate a scenario — PERMITTED / PROHIBITED / CONDITIONAL / AMBIGUOUS |\n| **Generate Audit** | `/generate-audit` | Full audit evidence package: inventory, coverage matrix, conflict register |\n\n## Agents\n\n| Agent | Best Model | Specialty |\n|-------|-----------|-----------|\n| **Policy Compiler** | Opus 4.6 + extended thinking | Deterministic Markdown → DAG compilation |\n| **Compliance Evaluator** | Opus 4.6 + extended thinking | Scenario evaluation, evidence-backed verdicts |\n\n## Quick Start\n\n```bash\n# Compile a policy document\n/compile-policy\n\n# Find conflicts in the compiled graph\n/detect-conflicts\n\n# Evaluate a specific action\n/trace-compliance \"a service account reads production data without logging\"\n\n# Generate a compliance audit package\n/generate-audit\n```\n\n## Example: Policy Compilation\n\n**Input:** Markdown policy document with sections and bullet rules\n\n**Output:**\n```json\n{\n  \"nodes\": [\n    {\"id\": \"section-1\", \"label\": \"Data Handling\", \"type\": \"section\", \"level\": 1},\n    {\"id\": \"rule-1\", \"label\": \"Encrypt data in transit\", \"type\": \"rule\", \"parent\": \"section-1\"}\n  ],\n  \"edges\": [\n    {\"from\": \"section-1\", \"to\": \"rule-1\", \"label\": \"contains\"}\n  ]\n}\n```\n\nVisualize the DOT output at [GraphvizOnline](https://dreampuf.github.io/GraphvizOnline/).\n\n## Example: Compliance Trace\n\n```\nScenario: \"Agent spawns a sub-agent to execute a financial transaction\"\n\nVerdict: CONDITIONAL\n\nRules applied:\n  [REQUIRES] rule-34: \"Level 3: Irreversible actions require human supervisor approval\"\n  [REQUIRES] rule-4:  \"Preserve audit trail for all decisions\"\n  [PERMITS]  rule-20: \"Orchestrator agent holds delegation authority\"\n\nConditions for PERMITTED:\n  1. Human supervisor approves the transaction\n  2. Audit trail entry is created\n```\n\n## Use Cases\n\n- AI agent governance: compile agent constitutions into enforceable graphs\n- Compliance workflows: trace CMMC, HIPAA, or SOC 2 control applicability\n- Policy management: detect conflicting rules before deployment\n- Audit preparation: generate structured evidence for compliance reviews\n- Multi-agent coordination: define and enforce agent behavior policies\n\n## Source Repository\n\nBuilt from [NathanMaine/governance-graph-compiler](https://github.com/NathanMaine/governance-graph-compiler).\n\n## License\n\nMIT — see [LICENSE](LICENSE) for details.\n",
  "bytes": 4026,
  "sha": "c64ddb6300a753b8dbf7d44ca193f0145e81a4e6f0c3e1435736b5a8222118f1",
  "repo_slug": "nathanmaine/memoriant-governance-compiler-skill",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/plg_nathanmaine_memoriant_governance_compile_972de03e/readme"
}