---
name: ai-visibility-tracking
description: "When the user wants to know whether ChatGPT, Gemini, Perplexity, Google AI Mode, Google AI Overviews, Copilot or Claude name or recommend their brand, which competitors AI names instead, which pages AI cites, or wants to track AI search visibility (GEO, AEO, LLM SEO) over time. Uses Marmalade, an open source alternative to Profound, Peec AI and Jam that runs on the user's machine: sets up a project, prices a first scan, runs it only with the user's yes, and reads the report. Not for server logs (use ai-bot-traffic), crawler blocks (use ai-crawler-check) or writing a page (use ai-answer-to-page)."
license: MIT
metadata:
version: 0.2.0
homepage: https://github.com/AlexjComeau/marmalade
---
# AI visibility tracking with Marmalade
Marmalade puts a buyer's questions to AI assistants, then records which brands each answer
names, in what order, and which pages it cites. Everything is stored on the user's machine.
Treg (treg.to) is the service Marmalade uses to ask each AI engine. The user signs up and pays there, per
answer, with one key. Most answers cost under a cent; Copilot is about 1.5 cents and Claude about 6.5.
A first look is a small first scan: 10 questions on ChatGPT, Google AI Overviews and Perplexity, about
5 cents. A scan asks every question on every engine once. The plan is the work the answers point to, the most
useful first. A brief is the outline and requirements for one page.
## The money rule
Only four commands cost money: `marmalade scan`, `marmalade run`, `marmalade volume`, and
`marmalade init --site` without `--no-draft`. Switching on `marmalade schedule` starts paid scans too.
Before any of them, tell the user the exact command and its
price, and wait for a yes. Get the price from that exact command with `--dry-run` (scan, volume) or from
`marmalade doctor --json`. `marmalade start` asks the user y/N in their terminal before each paid step.
When you run it, add `--no-input`: it then asks nothing, spends nothing, and prints the next command
and its price. Never answer its questions for the user. Every other command is free.
`max_cost` in `marmalade.toml` caps every scan.
Never ask the user to paste a key into the chat. The key goes in a `.env` file in the project folder, as
`TREG_TOKEN=...`, written by the user. Keys come from https://treg.to.
## Steps
1. **Check the install.** Run `marmalade --version`. If it is missing, give the user the install line,
`pipx install marmalade-ai` (Python 3.12 or newer, nothing else), and
wait. To try it with nothing installed (needs uv): `uvx --from marmalade-ai marmalade demo`.
2. **Step 1 of 3, free: check the site.** `marmalade audit THEIR-SITE` shows whether AI crawlers can read
<!-- ‹guest · 2026-11-30› -->
it (see the ai-crawler-check skill). For a look with no key, `marmalade demo` builds a made-up project
and its report.
3. **Steps 2 and 3: set up tracking and take a first look.** Pick one route.
- **A. The user runs `start`.** This is the quickest. The user runs `marmalade start THEIR-SITE` in
their own terminal. It asks for the Treg key with the typing hidden and saves it in the project's
`.env`. After a yes it drafts competitors and about 25 questions (under a cent), then offers a first
look and opens the report. Run again, it picks up where it stopped. If you can open a terminal on
their machine, open one there with that command, in the project folder, so they type the key and
answer the y/N questions themselves. Do not hand the command back if you can open it for them. While
they get a key, change nothing in the folder.
- **B. You run `start --no-input`.** Run `marmalade -C ~/marmalade-NAME start THEIR-SITE --no-input`
yourself, in a folder outside their website's code, and tell the user that folder's full path: their
questions and answers live there. It makes no paid call. It does what is free and prints the next
command and its price. Show the user both, run that command only after a yes, then run the same
`start` again for the next step.
- **C. By hand,** for free, with steps 4 to 7.
On every route, show the user the drafted competitors and questions (`marmalade.toml`) and the exact
questions the scan asks (the `start` output and `scan --dry-run` list them) before the first look, and
let them change any. Do this even when they told you to go ahead. A first look with the wrong
competitors or questions costs the same and says less.
4. **Set up by hand.** In a new, empty folder: `marmalade init --site THEIR-DOMAIN --no-draft`. It reads the home
page, makes no paid call, and writes `marmalade.toml`, `facts.md` and the agent settings. With a key,
`marmalade init --site THEIR-DOMAIN` also drafts competitors and 25 questions for under a cent: ask first.
Run later in a project set up this way, the same command drafts only what is still missing (competitors
when there are none, questions in place of the placeholder) and changes nothing else. `marmalade start`
offers it too.
5. **Agree the questions and competitors with the user.** Propose five competitors and five topics, with
five wordings per topic in this order: names their niche (the platform, ecosystem, place or kind of customer
they serve) and asks which product to use; a specific case of the same need; a "best" or comparison
wording; a chat-style wording of 12 to 20 words; a how-to question with no product in mind. A first look
asks the first two wordings of each topic, so they come first. Most wordings name the niche, because a
bare category question is won by the biggest brands. Give each a topic and an intent: `problem`,
`shortlist`, `choosing`, `versus` or `checking_you`. No question may name their brand or a competitor.
Delete the placeholder question `best tool for the job you do` from `marmalade.toml` (its whole
`[[prompt]]` block). Each question is a `[[prompt]]` entry. Deleting that block by hand is fine, but
do not add questions with a script. Add what they approve:
- `marmalade add-competitor "NAME" --domain competitor.com`
- `marmalade add-prompt "QUESTION" --topic "TOPIC" --intent shortlist`
<!-- ‹guest · 2026-11-30› -->
- a list they already have: `marmalade add-prompt --from questions.csv`
- sales call notes or support tickets: `marmalade suggest --from notes.txt` prints a brief for you to
pull the questions out. Show them the list, then add it with `marmalade add-prompt --from`
- questions you wrote yourself: put them in a file, one per line, and add them with
`marmalade add-prompt --from FILE --topic "TOPIC"`. The commands check each question and keep the file
whole.
Then help them write three to five true facts in `facts.md`: what the product is, its plans and prices,
what it does not do.
6. **Price it.** `marmalade doctor --json` prices a full scan and a first look, and lists anything
missing. Its `first_look.command` is `marmalade scan --sample 10 --engines chatgpt,overview,perplexity`.
Run the exact command you will propose with `--dry-run` and tell the user that price.
7. **Scan, only with a yes.** A first look: `marmalade scan --sample 10 --engines chatgpt,overview,perplexity`.
Everything: `marmalade scan`. Every scan grades its answers with Jev, a model made by TypeSafe and
reached through Treg, for about $0.0001 an answer. Jev decides which brand each answer really means,
how it describes each one, which one it recommends, and whether it gets the facts in `facts.md` right.
The `--dry-run` price includes it; `--no-judge` leaves it out. Every scan saves its answers in the project's `marmalade.db`, writes
the plan and `marmalade-report.html`, and prints the full paths: tell the user where they are.
8. **Read the results.** `marmalade audit` runs the free site check, and `marmalade report --open` rewrites
the report with it and opens it (`marmalade start`, run again after a scan, does both).
`marmalade status --json` and `marmalade next --json` give the numbers and the next step, and
`marmalade discover` lists brands the answers keep naming that are not tracked yet, with the command to
track each. While a scan runs, `status --json` says `"partial": true`: wait for it to end before you
quote a number.
9. **Share and repeat.** `marmalade card` draws a "who AI names" image to post. `marmalade schedule`
writes a daily or weekly run. Switching it on starts paid scans: tell the user the monthly price it
prints, and let them switch it on, or wait for their yes.
## Reading the numbers
- **Visibility:** the share of answers that name the brand.
- **Citation share:** the share of answers that cite the brand's own site.
- **Average position:** where the brand comes among the tracked brands an answer names.
- Answers vary from run to run. The report shows a noise band; a move inside it is not a change.
## When something goes wrong
`marmalade doctor` names what is missing: the key, competitors, questions or facts. Every command takes
`--help`. A failed engine call is stored, and most cost nothing; running the scan again later today asks
only what failed.
<!-- ‹guest · 2026-11-30› -->
Next steps after a scan: the ai-answer-to-page skill turns the results into pages to write.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.