swiss-law-sr

Retrieve Swiss federal legislation articles by SR category using ELI URLs.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mengbingrock/lawskill --skill swiss-law-sr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swiss-law-sr
Source: https://github.com/mengbingrock/lawskill/tree/main/.claude-plugin/skills/swiss-law-sr
Command: npx skills add https://github.com/mengbingrock/lawskill --skill swiss-law-sr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured way to access and understand Swiss federal legislation, organized by the Systematische Rechtssammlung (SR) categories.

Core Features & Use Cases

  • Categorized Access: Easily find laws based on the 9 main SR categories (State, Private Law, Criminal Law, etc.).
  • Detailed Information: Access specific articles and their content through provided links and extraction scripts.
  • Automated Extraction: Utilize a Playwright-based script to extract full article text from Fedlex, handling JavaScript rendering.
  • Use Case: A legal professional needs to find and verify specific articles related to Swiss contract law (Obligationenrecht). They can use this Skill to quickly navigate to the relevant category and extract the exact text of the required articles.

Quick Start

Use the swiss-law-sr skill to find information about Swiss federal law.

Frequently Asked Questions about swiss-law-sr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I retrieve full text articles from Swiss federal legislation using SR numbers?

You can retrieve full text articles of Swiss federal legislation by locating the specific law through its Systematische Rechtssammlung (SR) category and using the provided extraction script to pull content from Fedlex via ELI URLs.

What is the Systematische Rechtssammlung (SR) and how does it organize Swiss law?

The Systematische Rechtssammlung (SR) is the official systematic collection of Swiss federal legislation. It organizes federal laws into 9 main categories, including State, Private Law, and Criminal Law, to facilitate structured legal research.

How do I extract dynamic web content from Fedlex for legal citation verification?

To extract dynamic web content from Fedlex for citation verification, the Skill uses a Playwright-based extraction script. This script handles JavaScript rendering to capture the full, accurate text of specific Swiss law articles.

Can I find Swiss contract law (Obligationenrecht) articles through the SR category system?

Yes, you can find Swiss contract law (Obligationenrecht) articles by navigating to the relevant SR category. The Skill provides categorized access to all 9 main areas of Swiss federal legislation, including private law.

Does the Swiss law extraction script require a browser environment to render Fedlex pages?

Yes, the Playwright-based extraction script requires a browser environment to render Fedlex pages. It automates this browser interaction to retrieve dynamic JavaScript-rendered content from Swiss federal law articles.

What are the limitations of using Playwright for Swiss legal research on Fedlex?

Using Playwright for Swiss legal research on Fedlex requires a compatible browser environment to function. It is specifically designed for extracting federal legislation article text and may not handle non-standard legal documents or cantonal laws outside the SR system.