recently-viewed-products

recently-viewed-products is a skill for Claude Code, Codex from finsilabs/awesome-ecommerce-skills. It costs 30 tokens per session (2,389 once invoked), scanned A, original, MIT.

A storefront widget that remembers products a shopper has viewed and shows them again on product pages, in the cart, or on the homepage. It uses browser storage and refreshes product data before displaying it.

In plain words
What is it for?
Use it to add a recently viewed section to a storefront, cart drawer, or product page, including headless stores without a separate browsing-history backend.
Why use it?
It helps returning shoppers continue browsing without searching for the same products again. Refreshing the data helps avoid showing old prices or unavailable items.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions Gemini CLI; mentions OpenCode.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { recordView } from '../lib/recentlyViewed';.

Good fit Use it to add a recently viewed section to a storefront, cart drawer, or product page, including headless stores without a separate browsing-history backend.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/finsilabs/awesome-ecommerce-skills
agentmods
npx agentmods add skills/finsilabs/awesome-ecommerce-skills/recently-viewed-products

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 recently-viewed-products

README.md
[![agentmods](https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/recently-viewed-products/github.svg)](https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/recently-viewed-products)
Your own site
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/recently-viewed-products"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/recently-viewed-products/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 recently-viewed-products

Your own site · 80×15
<a href="https://agentmods.dev/skills/finsilabs/awesome-ecommerce-skills/recently-viewed-products"><img src="https://agentmods.dev/badge/skills/finsilabs/awesome-ecommerce-skills/recently-viewed-products.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,389 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.00030 $0.02389
Opus 5 $0.00015 $0.01195
Sonnet 5 $0.00006 $0.00478
Haiku 4.5 $0.00003 $0.00239

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

Security

Grade A, and why

recently-viewed-products 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.

skills/storefront-ui/recently-viewed-products/SKILL.md · 235 lines

How it starts

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

Recently Viewed Products

Overview

Track which products a shopper views and display them in a "Recently Viewed" widget on product pages, the cart, and the homepage. Uses browser storage for within-session and cross-session history. Product data is always re-fetched from the server to avoid showing stale prices or out-of-stock items.

When to Use This Skill

  • When implementing a "Continue where you left off" experience for returning visitors
  • When adding a "Recently Viewed" widget to product detail pages or the cart drawer
  • When integrating with a personalization engine that requires client-side behavioral data
  • When building a headless storefront and need lightweight browsing history without a backend dependency

Core Instructions

Step 1: Determine the merchant's platform and choose the right approach

Platform Recommended Approach Why
Shopify Enable the built-in Recently Viewed section in your OS2.0 theme, or install Also Bought • Related products / LimeSpot Personalizer Dawn and most OS2.0 themes include a native Recently Viewed section; LimeSpot ($15/mo) adds AI-powered personalization including recently viewed across sessions
WooCommerce Use WooCommerce's built-in Recently Viewed Products widget or shortcode, or install YITH WooCommerce Frequently Bought Together WooCommerce includes a recently viewed widget out of the box; place it via Appearance → Widgets or with the [recent_products] shortcode
BigCommerce Use the Recently Viewed widget in the BigCommerce Page Builder or enable it in the Cornerstone theme settings Cornerstone and BigCommerce Page Builder both include a native Recently Viewed widget that uses browser cookies automatically
Custom / Headless Implement localStorage-based view tracking with a server-side batch endpoint to fetch fresh product data Client-side storage means no server state needed; re-fetching data on display ensures prices and stock are current

Read the full file on GitHub · 235 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 · 235 lines · 30 tokens per session scan A 224d0393a12a

Subscribe to this mod's changes

recently-viewed-products is a skill published in the GitHub repository finsilabs/awesome-ecommerce-skills (52 stars, last pushed 6mo ago), licensed MIT. It adds 30 tokens to every session and 2,389 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-09-03.

Related

Other skills, from other repositories

algolia-search-implementation

Execution checklist for net-new Algolia search, browse, autocomplete, ecommerce search, recommendations, personalization, Dynamic Re-Ranking, or search UI builds. Use during a greenfield build to keep data contract, event taxonomy, index configuration, UI, and release QA visible as explicit checkpoints with completion…

algolia/skills · 119 tokens

digital-storefront-requirements

Use when gathering or evaluating requirements for a Salesforce Commerce Cloud digital storefront — including branding strategy, content management approach, personalization, mobile experience, and accessibility compliance. Trigger keywords: SFRA branding, PWA Kit storefront, composable storefront, storefront…

BanibrataChatterjee/AwesomeSalesforceSkills · 95 tokens

analyzing-browser-forensics-with-hindsight

Parse Chromium-based browser databases with Hindsight to extract and correlate browsing history, downloads, cookies, cached content, autofill data, saved passwords, and extensions from Chrome, Edge, Brave, Opera, and Vivaldi into a unified timeline (XLSX, JSON, or SQLite output). Use during incident response…

mukul975/Anthropic-Cybersecurity-Skills · 95 tokens

shopify-expert

Builds and debugs Shopify themes (.liquid files, theme.json, sections), develops custom Shopify apps (shopify.app.toml, OAuth, webhooks), and implements Storefront API integrations for headless storefronts. Use when building or customizing Shopify themes, creating Hydrogen or custom React storefronts, developing…

Jeffallan/claude-skills · 117 tokens

analyzing-browser-forensics-with-hindsight

Analyze Chromium-based browser artifacts using Hindsight to extract browsing history, downloads, cookies, cached content, autofill data, saved passwords, and browser extensions from Chrome, Edge, Brave, and Opera for forensic investigation.

xalgorix/xalgorix · 53 tokens

shopify-theme-optimization

Theme speed and UX optimization — Core Web Vitals, Liquid code, image loading, mobile responsiveness.

nexscope-ai/eCommerce-Skills · 25 tokens