FounderOS: Command for Claude Code

.claude/commands/legal-add-source.md

legal-add-source is a command for Claude Code from ARCASSystems/FounderOS. It costs 33 tokens per session (1,340 once invoked), scanned A, original, MIT.

A command for registering a legal or regulatory source, such as a web page or local PDF, in a jurisdiction's reference list.

In plain words
What is it for?
Use it to add a URL or PDF to the source list and create a missing domain-file placeholder. It does not extract or write the law's text.
Why use it?
It keeps new laws, regulator pages, and other primary sources recorded in one place when the existing references are incomplete or outdated.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

This is ARCASSystems/FounderOS's own configuration. It tells Claude Code how to work on FounderOS itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything FounderOS configures →

Part of the founder-os plugin — 95 skills, 45 commands, 6 hooks shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to ARCASSystems/FounderOS. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/ARCASSystems/FounderOS/main/.claude/commands/legal-add-source.md
Clone the repo
git clone --depth 1 https://github.com/ARCASSystems/FounderOS

Made for: Claude Code.

Or install founder-os, the plugin that ships this one along with the rest of its 95 skills, 45 commands, 6 hooks.

Wrote 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.

agentmods badge for legal-add-source

README.md
[![agentmods](https://agentmods.dev/badge/commands/arcassystems/founderos/legal-add-source/github.svg)](https://agentmods.dev/commands/arcassystems/founderos/legal-add-source)
Your own site
<a href="https://agentmods.dev/commands/arcassystems/founderos/legal-add-source"><img src="https://agentmods.dev/badge/commands/arcassystems/founderos/legal-add-source/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.

agentmods 80×15 button for legal-add-source

Your own site · 80×15
<a href="https://agentmods.dev/commands/arcassystems/founderos/legal-add-source"><img src="https://agentmods.dev/badge/commands/arcassystems/founderos/legal-add-source.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,340 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.01340
Opus 5 $0.00016 $0.00670
Sonnet 5 $0.00007 $0.00268
Haiku 4.5 $0.00003 $0.00134

Measured 9d ago against content hash b3744bbc9863, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

legal-add-source 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 9d 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.

.claude/commands/legal-add-source.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Adds a new primary source to your jurisdiction's reference set. Use when:

  • The skill says "I don't have a reference for X" while answering a question
  • A new law or ministerial decision was gazetted
  • You're populating a non-UAE jurisdiction for the first time
  • A regulator publishes an updated portal you want the skill to consult

This command does NOT auto-extract law text from the source. It registers the source and (if a domain file is missing) creates a stub. The user fills the domain file as they ask questions and the skill quotes the source.

Procedure

  1. Verify install. If core/identity.md does not exist, reply: Founder OS not set up here. Say "set up Founder OS" first. and stop.

  2. Parse the argument. Expected forms:

    • https://... → URL source
    • C:\path\to\file.pdf or /path/to/file.pdf → local PDF
    • <url> -- <description> → URL with inline description

    If no argument was passed, ask: "What source do you want to add? Paste a URL, a PDF path, or both. Optionally add -- <description> for context."

  3. Resolve jurisdiction. Read core/identity.md jurisdiction: field. If missing, reply: No jurisdiction set. Say "set up legal" first. and stop.

  4. For URL sources: WebFetch the URL to confirm it resolves. If it returns 4xx/5xx or redirects to an unrelated page, warn the user: "URL returns . Add anyway? (yes / no)". If 200, capture the page title and a one-paragraph summary for the source's notes: field.

  5. For PDF sources: verify the file exists at the path given. If not, reply: "Path <path> does not exist. Check the path and re-run." and stop. If it exists, capture filename + size.

  6. Ask the user three classification questions (one at a time):

    a. "Which domain(s) does this source cover? Pick one or more: company-formation, employment, tax-vat, visas-immigration, contracts-commercial, ip-trademarks, data-protection, dispute-resolution, industry-specific, federal-law-text. Comma-separated."

Read the full file on GitHub · 98 lines

Changes

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.

  1. 9d ago First seen · 98 lines · 33 tokens per session scan A b3744bbc9863

Subscribe to this mod's changes

legal-add-source is a command published in the GitHub repository ARCASSystems/FounderOS (5 stars, last pushed 25d ago), licensed MIT. It adds 33 tokens to every session and 1,340 once invoked, about $0.0002 per session on Opus 5. 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.