mercari-gui-embedded-js

mercari-gui-embedded-js is a skill for Claude Code, Codex from rafayqazi/mercari-jp-mcp. It costs 100 tokens per session (3,437 once invoked), scanned A, original, MIT.

A set of rules for editing JavaScript written inside a Python triple-quoted HTML string in mercari_gui.py. It explains how to escape characters so the browser can read the script correctly.

In plain words
What is it for?
Use it when changing the Mercari GUI, including its tabs, search controls, bulk streaming, CSV downloads, or other embedded JavaScript.
Why use it?
JavaScript syntax errors can stop the entire page script, disabling tabs, buttons, searches, and downloads without an obvious server error. These rules help prevent errors caused by Python changing the JavaScript text.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when changing the Mercari GUI, including its tabs, search controls, bulk streaming, CSV downloads, or other embedded JavaScript.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rafayqazi/mercari-jp-mcp/mercari-gui-embedded-js
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rafayqazi/mercari-jp-mcp --skill mercari-gui-embedded-js
Clone the repo
git clone --depth 1 https://github.com/rafayqazi/mercari-jp-mcp

Made for: Claude Code, Codex.

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 mercari-gui-embedded-js

README.md
[![agentmods](https://agentmods.dev/badge/skills/rafayqazi/mercari-jp-mcp/mercari-gui-embedded-js/github.svg)](https://agentmods.dev/skills/rafayqazi/mercari-jp-mcp/mercari-gui-embedded-js)
Your own site
<a href="https://agentmods.dev/skills/rafayqazi/mercari-jp-mcp/mercari-gui-embedded-js"><img src="https://agentmods.dev/badge/skills/rafayqazi/mercari-jp-mcp/mercari-gui-embedded-js/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 mercari-gui-embedded-js

Your own site · 80×15
<a href="https://agentmods.dev/skills/rafayqazi/mercari-jp-mcp/mercari-gui-embedded-js"><img src="https://agentmods.dev/badge/skills/rafayqazi/mercari-jp-mcp/mercari-gui-embedded-js.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,437 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.00100 $0.03437
Opus 5.5 $0.00040 $0.01375
Sonnet 5.5 $0.00020 $0.00687
Haiku 4.5 $0.00010 $0.00344

Measured 1mo ago against content hash 972a40d43868, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mercari-gui-embedded-js 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_embedded_js.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/mercari-gui-embedded-js/SKILL.md · 313 lines

How it starts

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

Mercari GUI — Full Project Reference

Project Layout

mercari-jp-mcp/
├── mercari_gui.py                  # Main file: Flask app + entire HTML/JS UI
├── server.py                       # MCP server (separate from GUI)
├── start_gui.bat                   # Launcher: starts Flask on port 5000
├── yahoo_auctions/                 # Yahoo Auctions search library
├── ebay_search/                    # eBay search + OAuth library
├── temp_download/
│   └── mercari-2.2.1/
│       └── mercari/
│           ├── mercari.py          # Core library: Item class, search(), getItemInfo()
│           ├── MercariItemFull.py  # Full item detail model (used by getItemInfo)
│           └── DpopUtils.py        # DPOP auth header generator
└── skills/
    └── mercari-gui-embedded-js/
        └── SKILL.md                # This file

mercari_gui.py — Structure

mercari_gui.py is a single file Flask app (~3600 lines). It contains:

  1. Python imports + Flask setup (top ~20 lines)
  2. HTML_PAGE = u'''...''' — the entire HTML + CSS + JavaScript UI as a Python triple-quoted string
  3. Flask API route handlers — all @app.route('/api/...') functions below HTML_PAGE

UI Tabs (in order)

Tab name switchTab() id Description
Mercari Search mercari Single keyword Mercari search
Yahoo Auctions yahoo Single keyword Yahoo search
Mercari Bulk mercariBulk Bulk Mercari by keywords
Yahoo Bulk yahooBulk Bulk Yahoo by keywords
Mercari+Yahoo combinedBulk Combined Mercari+Yahoo+eBay ref
Stock Check stockCheck Check status of pasted links
eBay Search ebay Single eBay search
eBay Bulk ebayBulk Bulk eBay by keywords

Tab panel IDs = tab + PascalCase name, e.g. tabMercariBulk, tabCombinedBulk.


Flask API Routes

Route Method Stream? Description
/ GET No Serves HTML_PAGE
/api/search POST No Single Mercari search
/api/yahoo-search POST No Single Yahoo search
/api/bulk-search POST SSE Mercari bulk (per keyword)
/api/yahoo-bulk-search POST SSE Yahoo bulk (per keyword)
/api/combined-bulk-search POST SSE Mercari+Yahoo+eBay combined
/api/check-stock POST SSE Stock check for pasted links
/api/item-description POST No Fetch Mercari item description
/api/yahoo-item-detail POST No Fetch Yahoo item detail
/api/ebay-search POST No Single eBay search
/api/ebay-bulk-search POST SSE eBay bulk search
/api/upload-keywords POST No Parse uploaded XLSX/CSV file

Read the full file on GitHub · 313 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +224 lines · +29 tokens per session 972a40d43868
  2. 2mo ago First seen · 89 lines · 71 tokens per session scan A fdb6341f4e04

Subscribe to this mod's changes

mercari-gui-embedded-js is a skill published in the GitHub repository rafayqazi/mercari-jp-mcp (0 stars, last pushed 8d ago), licensed MIT. It adds 100 tokens to every session and 3,437 once invoked, about $0.0004 per session on Opus 5.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-31.

Related

mercari-gui-embedded-js compared with skills from other repositories

mercari-gui-embedded-js next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mercari-gui-embedded-jsrafayqazi/mercari-jp-mcpSkill08d agoMITA100Claude Code, Codex
systematic-debuggingopen-metadata/OpenMetadataSkill16ktodayApache-2.0A37Claude Code
log-error-digestzebbern/claude-code-guideSkill4.7kyesterdayMITA71Claude Code, Codex
cwv-optimizeradobe/skillsSkill320todayApache-2.0A112Claude Code
ci-fixersipyourdrink-ltd/bernsteinSkill1.2kyesterdayApache-2.0A15Claude Code, Codex
incident-response-incident-responsermyndharis/antigravity-skillsSkill2.0k24d agoMITA36Claude Code
diagnosing-missing-recordingsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex