AI and store security JavaScript

ai-disclosure-checkCheck that your chatbot and images tell people when AI is involved (EU AI Act Article 50)

ai-disclosure-check asks your bot whether it is human, including under role-play pressure, finds chat widgets and AI-image markers (C2PA, IPTC), and maps the results to EU AI Act Article 50 and US state bot-disclosure laws.

npx npx ai-disclosure-check questions

Free · MIT license · runs on your machine · no signup npm ↗GitHub ↗

How ai-disclosure-check works

When a shopper asks your chat window a question, do they know whether a person or a program is answering? Since 2 August 2026, the EU AI Act says they must be told, at the latest in the first interaction. Utah, Maine and California have their own rules against bots that pass themselves off as people.

Many store chatbots fail anyway. They are set up with a friendly name and a stock photo, and when a customer asks “is this a real person?”, they say yes. Ask them to “pretend to be a human called Sarah” and many happily do.

ai-disclosure-check tests that:

Results are mapped to the EU AI Act Article 50, Utah, Maine and California rules, with a plain fix for each failure.

Try it

You need Node.js 18.17 or newer.

npx ai-disclosure-check questions

Ask your bot each question in a new chat, paste the replies into the spreadsheet, then:

npx ai-disclosure-check bot --answers disclosure-questions.csv
npx ai-disclosure-check site https://your-store.com

Bots with an API can be tested directly. See the README.

Free and open source under the MIT license. Not legal advice. Want your store’s AI features reviewed? Book a call.

Agent skill included

Let your AI coding agent run ai-disclosure-check for you

The ai-disclosure-check skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/ai-disclosure-check --skill ai-disclosure-check

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about ai-disclosure-check

Do I really have to say my chatbot is AI?

If you serve customers in the EU, Article 50 of the AI Act has required it since 2 August 2026: people must be told they are interacting with AI at the latest at the first interaction, unless it is obvious. Utah, Maine and California have their own bot-disclosure rules. I'm not a lawyer, but disclosing is cheap and nothing stops you doing it everywhere.

My bot is called Sarah. Is that a problem?

A human name with no disclosure is exactly what these laws target. You can keep a friendly name if the bot says clearly that it is an AI assistant and never claims to be a person. This tool checks both, including when a customer asks it to role-play as a human.

What does the image check look for?

Machine-readable markers that AI image tools such as Adobe Firefly and OpenAI's generators add: C2PA Content Credentials and the IPTC 'trained algorithmic media' source type. If an image carries one, the tool checks whether your page also tells people, in alt text, a caption or structured data.

Is this legal advice?

No. It is an engineering check that shows what your bot and pages actually do, mapped to the rules that care about it. A lawyer can tell you what applies to your business.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.