law-local-retrieval

Search local policy regulations from an Elasticsearch index using Python scripts.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/bettercallfan/deerflow --skill law-local-retrieval
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: law-local-retrieval
Source: https://github.com/bettercallfan/deerflow/tree/main/skills/custom/policies-regulations/law-local-retrieval
Command: npx skills add https://github.com/bettercallfan/deerflow --skill law-local-retrieval

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires elasticsearch, requests, python3, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a streamlined way to retrieve local policy regulations from an Elasticsearch index, eliminating the need for manual searching and reducing time spent on legal research.

Core Features & Use Cases

  • Policy Regulation Retrieval: Access and retrieve policy regulations, laws, and legal documents from an established Elasticsearch index.
  • Filtering Options: Apply filters based on law name, article number, category, validity status, publication date, and implementation date.
  • Use Case: When needing to find specific legal provisions related to a particular issue, such as zoning laws or environmental regulations, this Skill can quickly provide the necessary information.

Quick Start

Run the 'law-local-retrieval' skill to search for regulations related to "fire safety" and retrieve the most relevant results.

Frequently Asked Questions about law-local-retrieval

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

FAQPage Schema
How do I retrieve local policy regulations from an Elasticsearch index?

To retrieve local policy regulations from Elasticsearch, you execute Python scripts that run search queries against your index and return matching legal documents. This eliminates manual searching and streamlines legal research.

What filtering options are available for legal research in Elasticsearch?

Legal research filtering options include law name, article number, category, validity status, publication date, and implementation date. Applying these filters to your Elasticsearch queries narrows results to specific legal provisions.

Do I need Python and Elasticsearch to search for compliance documents?

Yes, you need both Python and Elasticsearch to search for compliance documents. The Skill relies on Python scripts to execute search queries and handle responses from an established Elasticsearch index containing policy regulations.

What's the best way to find specific zoning laws or environmental regulations?

The best way to find specific zoning laws or environmental regulations is querying your Elasticsearch index with targeted keywords and applying relevant filters like category or validity status to retrieve necessary legal provisions quickly.

Can I check the validity status of policy regulations during retrieval?

Yes, you can check the validity status of policy regulations during retrieval. The Skill supports filtering by validity status alongside publication and implementation dates to ensure you retrieve current applicable laws.