Ecommerce Catalog Agent — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Ecommerce Catalog Agent (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A conversational AI agent that answers product questions over an online store's catalog. It understands natural-language queries, finds matching products via hybrid search, and always reports live price and availability validated against the database.
Built as a tool-calling (ReAct) agent with a strict trust boundary: the model decides what to say and which products to show, but code owns the customer-facing numbers — so a hallucinated or injected price can never reach the user.
Rank Fusion + cross-encoder reranking. Catches word forms and synonyms that exact matching misses (e.g. "взуття для бігу" → running shoes).
candidate set before semantic ranking, avoiding the classic "top-k then filter → zero results" trap.
(price/stock); the vector index is a search cache only. Price and stock are re-fetched live before every answer.
present_resultswith product SKUs + prose; price/stock are filled by code from live SQL. The model has no field to write a number into → containment against hallucination and prompt injection ("attacker needs capability, not just instruction").
latency) plus deterministic, score-based escalation to a human operator (on the reranker confidence, never the model's self-report).
Protocol, so one contract serves the agent, an internal copilot, and Claude Desktop.
/chat service, a Telegram bot via n8n (webhook),and a standalone aiogram bot (long-polling).
regressions with numbers, not vibes.
Customer channels (Telegram / web / Claude Desktop)
│
[n8n] webhook intake + routing ── low confidence ──► human operator
│
[FastAPI /chat] models warmed at startup
│
[ReAct agent loop] bounded: max_iter / budget / latency
│ parse → retrieve → validate → respond
▼
[catalog tools] (also exposed as a custom MCP server)
search_products → hybrid BM25 + vector + rerank, filter-first
get_live_price / check_stock → live SQL
│
PostgreSQL (price/stock = truth) + Chroma (search cache)
▲
n8n schedule: XML feed → parse → upsert → re-embedPython · FastAPI · OpenAI (LiteLLM-swappable) · PostgreSQL · Chroma · BM25 · sentence-transformers · cross-encoder reranker · custom MCP server · n8n · aiogram
pip install -r requirements.txt
cp .env.example .env # fill OPENAI_API_KEY + PG_*
# create the schema, load the sample feed (builds the hybrid index)
psql -d catalog -f schema.sql
python ingest.py
# ask from the CLI
python agent.py "червоні кросівки до 2000 в наявності"
# or run the HTTP service
uvicorn api:app --port 8000 # → http://localhost:8000/docs
# or the Telegram bot (set TELEGRAM_BOT_TOKEN in .env)
python bot.py| File | What |
|---|---|
agent.py | ReAct agent loop, bounded stoppers, structured-output contract |
retrieval.py | hybrid retrieval (BM25 + vector + RRF + cross-encoder) + confidence scores |
catalog_tools.py | read-only catalog tools + structured get_facts for live validation |
server.py | the catalog tools exposed as a custom MCP server |
api.py | FastAPI /chat service (per-session memory, warmup at startup) |
bot.py | standalone Telegram bot (aiogram, long-polling) |
ingest.py | XML feed → PostgreSQL + rebuild the hybrid index |
eval.py | retrieval eval on a golden set (Recall@K / MRR) |
n8n/workflow.json | Telegram → /chat → reply + escalation routing |
(price/stock) or exact tokens (SKUs, model codes); BM25 + structured SQL cover what embeddings miss.
schedule, so its copy of volatile fields is stale by design; the answer always re-validates against SQL.
copilot, Claude Desktop): one contract, many clients.
The sample catalog and prompts are in Ukrainian; the agent replies in the customer's language.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.