An agent skill that keeps products built for Indian users out of legal trouble. It catches the laws that ordinary code trips: a pre-ticked donation box, an OTP template, a seven-day log retention setting, a ₹49 quiz with cash prizes.
When Claude Code writes a checkout, a signup, an SMS flow or an AI image feature, the skill makes it write the compliant version and tell you why in three lines, with the real fine someone paid. Ask it to audit a repo and you get a ranked table of problems, each with the file, the law, the provision and the fix.
It covers India only, and only the parts that turn into code. The law files live in skills/legal-radar/laws/:
| File | Law |
|---|---|
laws/dpdp.md |
Digital Personal Data Protection Act 2023 and Rules 2025 |
laws/cert-in.md |
CERT-In Directions 2022 (6-hour reporting, 180-day logs) |
laws/it-rules.md |
IT Intermediary Rules 2021, including the Feb 2026 AI-content labelling rules |
laws/dark-patterns.md |
CCPA Dark Patterns Guidelines 2023 and the fines so far |
laws/ecommerce.md |
Consumer Protection (E-Commerce) Rules 2020 |
laws/payments.md |
RBI rules on card storage, payment aggregators, e-mandates, wallets |
laws/sms-dlt.md |
TRAI DLT rules for SMS and OTP |
laws/gaming.md |
Online Gaming Act 2025 and Rules 2026 |
laws/get-a-lawyer.md |
SEBI, crypto, lending, health and insurance: where a checklist isn't enough |
Every claim links to its source, primary sources first. Every file has a last_verified date, and the checker fails once a file goes six months without a re-check.
This is not legal advice. It tells you where to look and what usually goes wrong. Check the linked sources or a lawyer before you rely on it.
Claude Code, as a plugin:
/plugin marketplace add shwetankg07/legal-radar
/plugin install legal-radar@legal-radar
On Claude Code 2.1.275 or later this works in one step:
/plugin install legal-radar --marketplace shwetankg07/legal-radar
Claude Code, Cursor, Codex and other agents, with the skills CLI:
npx skills add shwetankg07/legal-radar # this project npx skills add shwetankg07/legal-radar -g # all projects
By hand:
git clone https://github.com/shwetankg07/legal-radar ~/Work/legal-radar ln -s ~/Work/legal-radar/skills/legal-radar ~/.claude/skills/legal-radar
Then build something for Indian users, or ask "is this repo safe to launch in India?". The skill loads on its own.
The first time it reads a law file, Claude Code may ask for permission to read the skill's folder, because the folder sits outside your project. Allow it. If you don't, the skill still flags problems but can't cite the provisions or real cases, and it will tell you so.
skills/legal-radar/SKILL.md: the rules, the table that maps code to laws, and audit modeskills/legal-radar/laws/: one file per lawcheck.py: lints the law files, standard library only. Runpython3 check.py, or--selftest.tests/: the scenarios used to test the skill, with and without itdocs/BUILD-LOG.md: how it was built, what was verified, and every test resultresearch/: the raw research behind the law files, unedited.claude-plugin/: the Claude Code plugin and marketplace manifests
MIT