shop-orphan-products

shop-orphan-products is a skill for Claude Code from goodbarber/goodbarber-skills. It costs 102 tokens per session (1,280 once invoked), scanned A, original, Unlicense.

A read-only catalog check that finds products not assigned to any collection. It suggests suitable existing collections, or recommends creating one when no good match is found, with links to the products.

In plain words
What is it for?
Use it to audit catalog organisation, review collection suggestions, and optionally apply approved assignments.
Why use it?
It makes products that are difficult to find or poorly organised visible without checking every product manually.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the goodbarber plugin — 44 skills, 2 MCP servers shipped together

Good fit Use it to audit catalog organisation, review collection suggestions, and optionally apply approved assignments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goodbarber/goodbarber-skills/shop-orphan-products
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 goodbarber/goodbarber-skills --skill shop-orphan-products
Clone the repo
git clone --depth 1 https://github.com/goodbarber/goodbarber-skills

Made for: Claude Code.

Or install goodbarber, the plugin that ships this one along with the rest of its 44 skills, 2 MCP servers.

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 shop-orphan-products

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/goodbarber/goodbarber-skills/shop-orphan-products"><img src="https://agentmods.dev/badge/skills/goodbarber/goodbarber-skills/shop-orphan-products.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,280 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.00102 $0.01280
Opus 5 $0.00051 $0.00640
Sonnet 5 $0.00020 $0.00256
Haiku 4.5 $0.00010 $0.00128

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

Security

Grade A, and why

shop-orphan-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 4d 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/ecommerce/shop-orphan-products/SKILL.md · 140 lines

How it starts

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

You are an assistant that executes this skill workflow for the user.

You MUST execute the required tool workflow and return the output in the required format sections. Do not skip required steps and do not replace the required report/template with a short summary.

Goal

Detect every product not attached to a collection and provide actionable assignment suggestions so the user can clean catalog structure quickly.

Access contract

  • READ_ONLY.
  • READ_WRITE only if the user asks to apply collection assignments.

Input contract

  • Optional status filter:
    • default: PUBLISHED only
    • supported overrides: INVISIBLE, DRAFT, DEMO, or any explicit status combination requested by the user
  • Optional top_n to limit displayed rows (default: all orphan products)
  • Optional "strict mode":
    • suggest only existing collections with strong similarity
    • otherwise allow "create a new collection" recommendations
  • Optional apply mode after report:
    • high_only: apply only High confidence recommendations
    • medium_and_above: apply Medium + High
    • all: apply every recommendation
    • manual: user provides specific product + one or more collection targets

Required Tool Workflow (strict order)

Follow the sequence below exactly when those tools are available for the request context.

  1. Load catalog:
    • shop_list_products with requested status scope.
  2. Load collection reference:
    • shop_list_collections to build candidate targets and known themes.
  3. Detect orphan products:
    • Product is orphan if collections is empty or missing.
  4. Find assignment candidates for each orphan:
    • Use title, tags, description keywords, and nearby product naming patterns.
    • If obvious match to an existing collection exists, recommend that one.
    • If no reliable match, recommend a new collection theme.
  5. Build direct back-office links:
    • Resolve the shop root domain through the internal runtime domain resolver (repository-level guidance).
    • Extract the domain label from the resolved shop root URL.
    • Build each product edit link via the internal runtime URL resolver.
    • Render a short localized clickable label in the conversation language (examples: link, lien, enlace).
  6. Render fixed-format report:
    • orphan table + assignment plan table.
    • If no explicit status filter was requested, add a short note that this run only includes PUBLISHED products and mention that non-published statuses can be included on request.
  7. Prompt for assignment action:
    • Ask the user whether to apply:
      • assignment plan as high_only, medium_and_above, or all
      • manual mapping (product -> one or more collections)
    • If user confirms an apply mode, switch to apply flow:
      1. Resolve collection names to IDs via shop_list_collections.
      2. Resolve product names to IDs from the orphan table.
      3. Show dry-run change list (product, current collections, target collections).
      4. Require explicit confirmation.
      5. Apply product updates with shop_update_product one product at a time.
      6. Verify each updated product with shop_get_product.

Read the full file on GitHub · 140 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. 4d ago First seen · 140 lines · 102 tokens per session scan A d357b16a23f4

Subscribe to this mod's changes

shop-orphan-products is a skill published in the GitHub repository goodbarber/goodbarber-skills (2 stars, last pushed 2d ago), licensed Unlicense. It adds 102 tokens to every session and 1,280 once invoked, about $0.0005 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-08.