design-compliance

design-compliance is a command for Claude Code from Adityaraj0421/naksha-studio. It costs 36 tokens per session (7,537 once invoked), scanned A, original, MIT.

A command that audits an interface or creates interface patterns for one selected standard: HIPAA, PCI DSS, or ADA/Section 508. HIPAA covers health information, PCI DSS covers payment-card data, and ADA/Section 508 covers accessibility.

In plain words
What is it for?
Use it to scan a file for regulation-related issues or generate a compliant UI specification from a written brief.
Why use it?
It helps identify or plan interface requirements tied to a specific legal or industry standard. The target standard must be selected with the --regulation option.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the naksha-studio plugin — 47 commands, 7 agents shipped together

Good fit Use it to scan a file for regulation-related issues or generate a compliant UI specification from a written brief.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Adityaraj0421/naksha-studio
Claude Code
/plugin install naksha-studio

Made for: Claude Code.

Or install naksha-studio, the plugin that ships this one along with the rest of its 47 commands, 7 agents.

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 design-compliance

README.md
[![agentmods](https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/design-compliance/github.svg)](https://agentmods.dev/commands/adityaraj0421/naksha-studio/design-compliance)
Your own site
<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/design-compliance"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/design-compliance/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 design-compliance

Your own site · 80×15
<a href="https://agentmods.dev/commands/adityaraj0421/naksha-studio/design-compliance"><img src="https://agentmods.dev/badge/commands/adityaraj0421/naksha-studio/design-compliance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,537 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.00036 $0.07537
Opus 5 $0.00018 $0.03769
Sonnet 5 $0.00007 $0.01507
Haiku 4.5 $0.00004 $0.00754

Measured 9d ago against content hash 72318c20129b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

design-compliance 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 9d 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.

commands/design-compliance.md · 625 lines

How it starts

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

/design-compliance

You are performing a targeted compliance audit or generating regulation-specific UI patterns. Your output is scoped to a single regulation — HIPAA, PCI DSS, or ADA/Section 508 — based on the --regulation flag. You do not output all three branches; you output only the branch matching the requested regulation.

Input

Arguments: $ARGUMENTS

Parse the following from $ARGUMENTS:

  • Required flag: --regulation <hipaa|pci|ada>
  • Mode: if a file path is provided after the flag, run in audit mode (read and scan that file). If a text brief is provided, run in generate mode (produce a compliant UI spec from the brief).

If --regulation is missing or the value is not one of hipaa, pci, or ada:

Output the following error and stop:

Error: --regulation flag is required.

Usage: /design-compliance --regulation <hipaa|pci|ada> [file path or brief]

Valid values:
  --regulation hipaa   Audit or generate HIPAA-compliant PHI UI patterns
  --regulation pci     Audit or generate PCI DSS-compliant payment form patterns
  --regulation ada     Audit or generate ADA/Section 508 accessible component patterns

Examples:
  /design-compliance --regulation hipaa src/components/PatientRecord.tsx
  /design-compliance --regulation pci "Design a checkout form for a SaaS subscription product"
  /design-compliance --regulation ada src/pages/onboarding.html

Step 1: Load Knowledge Base

Read ${CLAUDE_PLUGIN_ROOT}/skills/design/references/compliance-designer.md to apply the full Compliance Designer knowledge base to the active regulation branch.

MCP Fallback: If the file cannot be read, proceed using inline knowledge. Inline knowledge for this command covers:

  • HIPAA: PHI field ★ indicator (gold #B8860B, tooltip "This is Protected Health Information (PHI). Access is logged."), session timeout (warning at T−2 min, forced logout at T=0, no "remember me" bypass), audit log required columns (user ID, timestamp, resource type, action, outcome, IP), role badges (Attending/Resident/Nurse/Admin/Auditor/BTG), break-the-glass flow (6 steps, free-text justification min 20 chars, supervisor alert within 15 min, persistent red banner), 45 CFR §164.312.
  • PCI: card fields must be in processor iframe (never merchant DOM), SAQ-A scope reduction, masked PAN display (first 6 / last 4 shown as •••• •••• •••• XXXX), CVV never stored or masked for saved cards (field absent until re-entry), 3DS v2 challenge modal spec, error message standards (never expose internal codes, processor error categories, always include user-actionable next step), PCI DSS v4.0 Req 3.3.1 and 4.2.1.
  • ADA / Section 508: skip-nav link (visually hidden, visible on focus, href="#main-content"), form inputs need programmatic label + hint text + error state (all announced by screen reader), modal focus trap + return focus on close, data table scope attributes, WCAG 2.1 AA (4.5:1 text contrast, 3:1 UI component contrast), aria-live regions, keyboard trap audit protocol (Tab, Shift+Tab, Esc, Arrow keys), outline: none prohibition.

Read the full file on GitHub · 625 lines

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. 9d ago First seen · 625 lines · 36 tokens per session scan A 72318c20129b

Subscribe to this mod's changes

design-compliance is a command published in the GitHub repository Adityaraj0421/naksha-studio (317 stars, last pushed 2mo ago), licensed MIT. It adds 36 tokens to every session and 7,537 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-30.