amal66 gives Mike a plug-in path into Danish law

The fork adds a structured way to connect jurisdiction-specific legal sources to the chat experience.

integrationknowledge-management

amal66 is turning regional legal content into a configurable part of the product rather than a one-off customization. The first example connects Danish-law material to the tools available in chat, showing how a user could draw on a jurisdiction's own legal library during a conversation.

The move matters because it creates a clearer route for expanding beyond a single legal context. It also raises practical questions before third-party packs should be trusted broadly: who verifies the source, how updates are managed, and what the assistant may safely do with each integration.

So what Legal-product teams working across jurisdictions should watch this if they want regional legal knowledge without rebuilding the whole platform each time.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

1 commit from amal66/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
c0dfd7ec feat(law-libraries): plugin registry for jurisdiction-specific law integrations Amal 2026-05-24 ↗ GitHub
commit body
Adds a self-contained plugin system so teams can wire in Danish law,
EU law, Australian law - or any jurisdiction - without touching chatTools.ts
or any route file. One file + one registerLawLibrary() call activates the
plugin; its system prompt fragment and tools are picked up automatically.

- lib/lawLibraries/registry.ts: LawLibraryPlugin interface, registerLawLibrary(),
  buildLawLibrarySystemPrompt(), getAllLawLibraryTools()
- lib/lawLibraries/index.ts: clean public re-export surface
- lib/lawLibraries/examples/danishLaw.ts: full working example (Retsinformation.dk
  citation conventions, danish_law_search tool schema)
- chatTools.ts: two-line integration - system prompt and tool list now include
  all registered law library plugins automatically

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-2016.md from inside the repo you want the changes in.

⬇ Download capture-thread-2016.md