agentleFS
AnthropicKnown publisheranthropics/claude-for-legal/CLAUDE.md

claude-for-legal

CLAUDE.md9.6k starsChanged 7 months agoApache-2.0View on GitHub

Guidance for working on this repo. claude-for-legal is a Claude Code plugin marketplace — twelve first-party legal plugins, one vendor plugin, and five managed-agent cookbooks. Most work here is editing prompt content (skills, agents, hooks), plugin metadata, or cookbook config — not application code. This repo follows the same conventions anthropics/claude-plugins-official enforces in CI. Run the equivalent checks locally: claude-plugins-official layers these on top of the schema check. They apply here too — the ones most likely to trip a…

Trending

Less talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 14 mentionsJun 2026: 5 mentionsJul 2026: 20 mentionsAug 2026: 8 mentionsSep 2026: 8 mentionsOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the anthropics/claude-for-legal repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about anthropics/claude-for-legal

The biggest 5 of 58 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 58

Talked about on GitHub, Bluesky and Hacker News (58 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 7

2 more on Bluesky

On Hacker News · 1

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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
  1. Very specific:

    Every agents/*.md needs name and description.

    line 65
  2. Very specific:

    When a SKILL.md (especially customize or cold-start-interview) tells the user "run /foo," foo must be the actual skills/<foo>/ directory …

    line 81

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

Guidance for working on this repo. claude-for-legal is a Claude Code plugin marketplace — twelve first-party legal plugins, one vendor plugin, and five managed-agent cookbooks. Most work here is editing prompt content (skills, agents, hooks), plugin metadata, or cookbook config — not application code.

Layout

.claude-plugin/marketplace.json   # the marketplace manifest — one entry per plugin
<plugin>/                         # 12 first-party plugins (commercial-legal, privacy-legal, ...)
  .claude-plugin/plugin.json      # plugin manifest (name, version, description, author)
  .mcp.json                       # MCP servers the plugin connects to
  CLAUDE.md                       # practice-profile TEMPLATE (see "Plugin CLAUDE.md" below)
  README.md                       # per-plugin docs
  skills/<name>/SKILL.md          # one skill per directory
  agents/<name>.md                # subagent definitions
  hooks/hooks.json                # hook config (most plugins ship an empty stub)
  .gitignore
external_plugins/<vendor>/        # vendor-maintained plugins (CoCounsel)
managed-agent-cookbooks/<name>/   # CMA agent.yaml + subagents/ + steering-examples.json
scripts/                          # validate.py, lint-tool-scope.py, orchestrate.py,
                                  # deploy-managed-agent.sh, test-cookbooks.sh
references/                       # shared templates (company-profile, dashboard)

Validation — run before opening a PR

This repo follows the same conventions anthropics/claude-plugins-official enforces in CI. Run the equivalent checks locally:

# 1. Marketplace + per-plugin schema validation (source of truth)
claude plugin validate .claude-plugin/marketplace.json
for d in */; do [ -f "$d/.claude-plugin/plugin.json" ] && claude plugin validate "$d"; done
claude plugin validate external_plugins/cocounsel-legal

# 2. Cookbook tool-scope lint (orchestrators must not over-grant tools)
python3 scripts/lint-tool-scope.py

# 3. JSON/YAML sanity
python3 -c "import json,glob; [json.load(open(f)) for f in glob.glob('**/*.json', recursive=True)]"

Marketplace invariants (I1–I11)

claude-plugins-official layers these on top of the schema check. They apply here too — the ones most likely to trip a contributor:

  • I1 — plugins[] should be alpha-sorted by name (case-insensitive). Currently a known warning: the array is in a curated display order. If you add a plugin, ask before re-sorting the whole array.
  • I2 — no duplicate plugin names.
  • I3 — description 10–2000 chars, no leading/trailing whitespace.
  • I8 — every vendored source ("./<dir>") must point at a directory that contains .claude-plugin/plugin.json.
  • I9 — source paths/URLs must contain no shell metacharacters or ...
  • I10 — no hidden Unicode (zero-width chars, bidi controls) in name/description.
  • I11 — name must match ^[a-z0-9][a-z0-9-]{1,63}$.

Frontmatter requirements

Every agents/*.md needs name and description. Every skills/<name>/SKILL.md needs description. Every commands/*.md needs description. Multi-line descriptions use > block scalars and that's fine — claude plugin validate parses them correctly.

Conventions

Keep marketplace.json in sync with plugin.json

For first-party plugins, marketplace.json's name, description, and author should match the plugin's own .claude-plugin/plugin.json field for field. If you change a plugin's description in one place, change it in the other.

Skill names in prose must be canonical

When a SKILL.md (especially customize or cold-start-interview) tells the user "run /foo," foo must be the actual skills/<foo>/ directory name. Short forms like /triage for /use-case-triage look right in prose but are dead commands — the user types them and nothing happens. Refs to Claude Code built-ins (/mcp, /plugin) and to other plugins (/<other-plugin>:<skill>) are fine.

Plugin CLAUDE.md is a template, not project context

Each <plugin>/CLAUDE.md is a practice-profile template that the cold-start-interview skill copies to ~/.claude/plugins/config/claude-for-legal/<plugin>/CLAUDE.md on the user's machine. It is not loaded as project context when the plugin is installed — claude plugin validate warns about this and the warning is expected. Don't "fix" it by moving the content into a skill.

external_plugins/ is vendor-maintained

Plugins under external_plugins/ are built and maintained by the vendor (README.md has the policy). Don't change vendor-authored content without checking with them first; whitespace normalization and formatting are usually fine since the vendor lands changes via PR rather than mirroring a fork.

Formatting

  • 2-space indent in all JSON and .mcp.json files.
  • Final newline at end of every text file.
  • No trailing whitespace.
  • Markdown tables: pipe-aligned columns are nice but not required; just keep the column count consistent.

Cookbooks

Each managed-agent-cookbooks/<name>/ has agent.yaml (the orchestrator), subagents/*.yaml (the leaves), steering-examples.json, and README.md. Two rules that scripts/lint-tool-scope.py enforces:

  1. The orchestrator gets local-only tools (read, grep, glob, agent_toolset); MCP and write tools belong to specific subagent leaves.
  2. The README's security table and the agent.yaml comments must match what the YAML actually grants. Don't claim a tool a subagent doesn't have.

Things to leave alone

  • Per-plugin .gitignore files differ slightly across plugins. Probably intentional; ask before unifying.
  • hooks/hooks.json is missing in two plugins. Hooks are optional; the missing files are not a bug.
  • references/ lives only at repo root and is not shipped inside any plugin directory. Several plugin CLAUDE.md templates reference it as if it were — that's a known gap, not a thing to silently move.

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.