deeplaw-query

deeplaw-query is a skill for Claude Code, Codex from Eysn0130/DeepLaw. It costs 49 tokens per session (248 once invoked), scanned A, original, Apache-2.0.

Instructions for querying a configured local DeepLaw knowledge system, a governed collection of legal or policy information.

In plain words
What is it for?
Use them only when explicitly asked to query DeepLaw, compile task context, or verify a selected knowledge revision.
Why use it?
They require bounded searches, clear source boundaries, and preserved provenance so answers do not treat unverified summaries as authoritative.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the deeplaw-knowledge-os plugin — 8 skills, 5 hooks, 1 MCP server shipped together

Good fit Use them only when explicitly asked to query DeepLaw, compile task context…

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eysn0130/deeplaw/deeplaw-query
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Eysn0130/DeepLaw --skill deeplaw-query
Clone the repo
git clone --depth 1 https://github.com/Eysn0130/DeepLaw

Made for: Claude Code, Codex.

Or install deeplaw-knowledge-os, the plugin that ships this one along with the rest of its 8 skills, 5 hooks, 1 MCP server.

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 deeplaw-query

README.md
[![agentmods](https://agentmods.dev/badge/skills/eysn0130/deeplaw/deeplaw-query.svg)](https://agentmods.dev/skills/eysn0130/deeplaw/deeplaw-query)
Your own site
<a href="https://agentmods.dev/skills/eysn0130/deeplaw/deeplaw-query"><img src="https://agentmods.dev/badge/skills/eysn0130/deeplaw/deeplaw-query.svg" alt="Measured on agentmods" height="20"></a>
Per session 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 248 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.00049 $0.00248
Opus 5 $0.00024 $0.00124
Sonnet 5 $0.00010 $0.00050
Haiku 4.5 $0.00005 $0.00025

Measured 6d ago against content hash 4a78cfef962a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

deeplaw-query 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 6d 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.

plugins/deeplaw-knowledge-os/skills/deeplaw-query/SKILL.md · 20 lines

What it actually says

Query DeepLaw Knowledge

Use only after explicit user invocation. Keep every read bounded and preserve provenance.

  1. Call knowledge_support with operation=query, purpose=answer, and a concrete bounded query for compiled-first reuse.
  2. Use operation=context only when the user asks for a task capsule; require confirm_no_case_data=true and provide a short task and goal.
  3. Select one explicit read plane and scope when using search or context. Do not mix source-derived and autonomous partitions by default.
  4. Set limit, max_chars, max_tokens, max_sources, and graph_hops deliberately. Preserve gaps, conflicts, receipts, revision IDs, and authority partitions in the answer.
  5. Use operation=verify before materially relying on a selected revision. Never write, promote, or treat rank, synthesis, or Wiki navigation as authority.
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 6d ago First seen · 20 lines · 49 tokens per session scan A 4a78cfef962a

Subscribe to this mod's changes

deeplaw-query is a skill published in the GitHub repository Eysn0130/DeepLaw (3 stars, last pushed 5d ago), licensed Apache-2.0. It adds 49 tokens to every session and 248 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.

Related

Other skills, from other repositories

legal-citation-comprehensive

A Chinese and foreign legal-citation tool for checking, completing, explaining, and formatting footnotes under the second edition of a legal citation manual. It handles laws, cases, legal documents, and academic sources when the relevant source material is provided.

lawyerllsx-dotcom/Legal-Workflow-Chain · 119 tokens

legal-fact-checker

A Chinese-language fact-checking guide for legal documents such as contracts, case analyses, legal opinions, and legal assignments. It checks provided drafts against factual and legal support without inventing laws, cases, or facts.

lawyerllsx-dotcom/Legal-Workflow-Chain · 143 tokens

legal-research

A Chinese-language legal research workflow for finding laws, regulations, court cases, compensation standards, and legal grounds.

lawyerllsx-dotcom/Legal-Workflow-Chain · 87 tokens

workflow-overview

A workflow guide for handling complex legal matters through assessment, issue identification, source research, reasoning, fact checking, and document output.

lawyerllsx-dotcom/Legal-Workflow-Chain · 63 tokens

legal-research

A legal research skill for finding and analysing laws and court cases, including similar cases. It requires access to a reliable legal research database before producing a formal report.

code-lawyer/Legal-Agent-Skills · 144 tokens

document-fill

A document-filling assistant that uses a supplied template and case files to fill in forms, contracts, or legal documents. It also reports where each filled value came from and which details are missing.

code-lawyer/Legal-Agent-Skills · 61 tokens