Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/YousefNabil-SOC/claude-apexWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/yousefnabil-soc/claude-apex/legal-doc)<a href="https://agentmods.dev/commands/yousefnabil-soc/claude-apex/legal-doc"><img src="https://agentmods.dev/badge/commands/yousefnabil-soc/claude-apex/legal-doc/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/yousefnabil-soc/claude-apex/legal-doc"><img src="https://agentmods.dev/badge/commands/yousefnabil-soc/claude-apex/legal-doc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00230 |
| Opus 5.5 | $0.00000 | $0.00092 |
| Sonnet 5.5 | $0.00000 | $0.00046 |
| Haiku 4.5 | $0.00000 | $0.00023 |
Grade A, and why
legal-doc scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Create a professional legal document for enterprise use.
The user will specify the document type. Supported types:
- NDA (Non-Disclosure Agreement) — mutual or one-way
- Service Agreement / MSA (Master Services Agreement)
- SLA (Service Level Agreement)
- Privacy Policy
- Terms of Service
- Statement of Work (SOW)
- Consulting Agreement
- Website Accessibility Statement
Steps:
- Ask for: document type, Party A name, Party B name, jurisdiction/governing law, effective date, any specific clauses
- Generate the full legal document using python-docx with proper clause numbering
- Include standard sections appropriate to the document type
- Add signature block with date lines
- Save as .docx AND .pdf (two outputs)
- Add a disclaimer: "This is a template — review with a licensed attorney before use"
Important:
- Use clear, precise legal language
- Number all clauses (1.1, 1.2, 2.1, etc.)
- Include definitions section for all defined terms
- Governing law defaults to user's jurisdiction if known
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 26 lines · 0 tokens per session scan A 6400a69d83f3
legal-doc is a command published in the GitHub repository YousefNabil-SOC/claude-apex (4 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 230 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
legal-doc compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| legal-docYousefNabil-SOC/claude-apex | Command | 4 | 5mo ago | MIT | A | 0 | Claude Code |
| create-ui-componentqdhenry/Claude-Command-Suite | Command | 1.4k | 9mo ago | none | A | 12 | Claude Code |
| cloJFK/claude-c-suite-plugin | Command | 2 | 5mo ago | none | A | 16 | Claude Code |
| watchMarcel-Bich/marcel-bich-claude-marketplace | Command | 12 | yesterday | MIT | A | 11 | Claude Code |
| gws-peoplefakoli/fakoli-plugins | Command | 4 | 2d ago | MIT | A | 9 | Claude Code |
| firebase-publishPierry/harness-kit | Command | 4 | 1mo ago | MIT | A | 20 | Claude Code |
| checkHelloRuru/claude-memory-engine | Command | 133 | 6mo ago | MIT | A | 0 | Claude Code |