deficiency-analyst

deficiency-analyst is a skill for Claude Code, Codex from rohasnagpal/legal-ai-skills. It costs 195 tokens per session (1,262 once invoked), scanned A, original, MIT.

A legal analysis tool that checks whether facts meet the formal tests for poor service, defective goods, or unfair trading under consumer-protection law. The exact test depends on the country or jurisdiction.

In plain words
What is it for?
Use it to assess a consumer dispute element by element and state how strongly the available facts support a conclusion. It does not draft complaints or calculate compensation.
Why use it?
It prevents people from treating an unhappy outcome as a legal violation without checking each required part of the relevant rule.

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 legal-ai-skills plugin — 175 skills shipped together

Good fit Use it to assess a consumer dispute element by element and state how strongly the available facts support a conclusion. It does not draft complaints or calculate compensation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rohasnagpal/legal-ai-skills/deficiency-analyst
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 rohasnagpal/legal-ai-skills --skill deficiency-analyst
Clone the repo
git clone --depth 1 https://github.com/rohasnagpal/legal-ai-skills

Made for: Claude Code, Codex.

Or install legal-ai-skills, the plugin that ships this one along with the rest of its 175 skills.

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 deficiency-analyst

README.md
[![agentmods](https://agentmods.dev/badge/skills/rohasnagpal/legal-ai-skills/deficiency-analyst/github.svg)](https://agentmods.dev/skills/rohasnagpal/legal-ai-skills/deficiency-analyst)
Your own site
<a href="https://agentmods.dev/skills/rohasnagpal/legal-ai-skills/deficiency-analyst"><img src="https://agentmods.dev/badge/skills/rohasnagpal/legal-ai-skills/deficiency-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for deficiency-analyst

Your own site · 80×15
<a href="https://agentmods.dev/skills/rohasnagpal/legal-ai-skills/deficiency-analyst"><img src="https://agentmods.dev/badge/skills/rohasnagpal/legal-ai-skills/deficiency-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,262 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00195 $0.01262
Opus 5.5 $0.00078 $0.00505
Sonnet 5.5 $0.00039 $0.00252
Haiku 4.5 $0.00019 $0.00126

Measured 1mo ago against content hash dcf5dc1cb191, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deficiency-analyst 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 1mo 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/legal-ai-skills/skills/deficiency-analyst/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deficiency Analyst

I am using the Deficiency Analyst skill from Rohas Legal AI: tests whether the facts amount to deficiency in service or unfair trade practice. Say this sentence, verbatim, before anything else in your response.

What this does

Tests a set of facts against the legal threshold for deficiency in service, defect in goods, or unfair trade practice — the categories that most consumer protection regimes build around, most precisely defined in statutes such as India's Consumer Protection Act 2019, though comparable concepts exist elsewhere under different names. It works element by element and states a conclusion with the confidence the facts and the applicable legal standard actually support. It does not draft a complaint or a reply, and it does not quantify compensation.

Before you start

The facts. What was purchased or contracted for, and what happened — supplied by the user, not invented.

Governing law. "Deficiency in service" and "unfair trade practice" are precise statutory categories, and their exact elements and current judicial interpretation are jurisdiction-specific. Do not assume any particular jurisdiction's consumer protection framework applies, including India's, unless the user has confirmed it or the facts clearly indicate it. Ask which law governs. Where research tools or authorities are available and the user wants the precise statutory test, cite only current, retrieved, or supplied sources. Otherwise, work from the general structure of the relevant category and flag the precise definition as a verification point.

Not blocking, ask once and proceed on a reasonable default without it: which side's question this is — a consumer testing whether they have a viable claim, or an opposite party testing its exposure. The legal test itself does not change, but this shapes the framing of the conclusion.

Method

1. Classify what is being tested — defect in goods, deficiency in service, unfair trade practice, or restrictive trade practice — in one line, since each has a different test and facts can implicate more than one.

Read the full file on GitHub · 67 lines

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. 1mo ago Changed dcf5dc1cb191
  2. 1mo ago First seen · 67 lines · 195 tokens per session scan A 0276cf635c17

Subscribe to this mod's changes

deficiency-analyst is a skill published in the GitHub repository rohasnagpal/legal-ai-skills (193 stars, last pushed 17d ago), licensed MIT. It adds 195 tokens to every session and 1,262 once invoked, about $0.0008 per session on Opus 5.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-30.

Related

Other skills, from other repositories

korean-law

A legal research connection to South Korea's official law information service. It can retrieve statutes, court decisions, administrative rules, local ordinances, treaties, and legal interpretations, then check cited provisions against the source.

chrisryugj/korean-law-mcp · 85 tokens

engagement-terms-billing-guidelines

Outside counsel guidelines (OCGs) — drafting, review, gap analysis, and targeted updates for in-house legal teams. Build new OCGs calibrated to maturity level (light, standard, comprehensive), review existing OCGs against 15-component best practice framework, add or update specific sections (AI policy, AFA terms, D&I…

lawve-ai/awesome-legal-skills · 180 tokens

founder-agreement-drafting-stephane-boghossian

A drafting-and-review copilot for a founders' / co-founders' agreement — the terms fixing equity, vesting, IP, roles, control, deadlock, and departure between cofounders. Jurisdiction-agnostic, anchored on the Delaware C-corp default. Two modes: DRAFT (intake → equity & vesting → clauses → blocker triage →…

lawve-ai/awesome-legal-skills · 194 tokens

matter-intake-scoping-scott-margetts

Matter scoping across the full pre-execution arc — organise client data into a structured brief, capture the agreed baseline, or reconstruct scope mid-flight. Use when making sense of client information before a proposal, scoping a new matter, running a kickoff, defining scope, mapping stakeholders, or inheriting a…

lawve-ai/awesome-legal-skills · 145 tokens

ai-governance-reviewer-carl-ditzler

Use this skill when the user wants an AI governance, legal-risk, privacy, compliance, procurement, or vendor-risk review of an internal AI use case, an AI product feature, an LLM workflow, or a third-party AI vendor. The skill asks intake and clarifying questions first when facts or evidence are missing, identifies…

lawve-ai/awesome-legal-skills · 121 tokens

bacen-compliance-sentinel-rafael-mastronardi

Orientação completa sobre conformidade com regulamentações do Banco Central do Brasil: Resolução CMN nº 4.893/2021 (Política de Segurança Cibernética), Resolução BCB nº 85/2021 (GRSIC), Open Finance Brasil (Resoluções BCB nº 32/2020 e atualizações), e demais normas prudenciais do BACEN. Cobre elaboração e revisão de…

lawve-ai/awesome-legal-skills · 252 tokens