shopify-admin-vendor-consolidation
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "shopify-admin-vendor-consolidation" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-e8d80a841165fa11cb96a5cebe8459062f24c9944c1740b91a3922eab9f496e4. Verify the upstream source and version against https://github.com/40RTY-ai/shopify-admin-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Read-only mode: detect duplicates in the vendor field caused by misspellings, case variants, and trailing spaces, and suggest a standard consolidation option for each cluster.
Introduction source: third_party · 40RTY-ai · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Read-only: detects vendor field typos, casing variants, and trailing-whitespace duplicates across the catalog and proposes a canonical merge per cluster.
- Inputs and outputs
- CSV file `vendor_consolidation_<YYYY-MM-DD>.csv` with columns: `cluster_id`, `canonical_vendor`, `variant_vendor`, `is_canonical`, `product_count`, `sample_product_id`, `sample_product_title`, `status`
- Software, accounts and paid services
- Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_products` API scopes: `read_products`
- Testing
- Not tested
Browse files
Frontmatter
name: shopify-admin-vendor-consolidation
role: merchandising
description: "Read-only: detects vendor field typos, casing variants, and trailing-whitespace duplicates across the catalog and proposes a canonical merge per cluster."
toolkit: shopify-admin, shopify-admin-execution
api_version: "2025-01"
graphql_operations:
- products:query
status: stable
compatibility: Claude Code, Cursor, Codex, Gemini CLIPurpose
Walks every product in the catalog, normalizes the vendor field, and clusters near-duplicates such as Acme, ACME, Acme Inc, and Acme (trailing whitespace). Surfaces a recommended canonical form per cluster and the count of products that would migrate. Vendor sprawl breaks vendor-based reports, navigation, and supplier reconciliation. Read-only — no mutations; output is the worklist for a follow-up consolidation.
Prerequisites
- Authenticated Shopify CLI session:
shopify store auth --store <domain> --scopes read_products - API scopes:
read_products
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| store | string | yes | — | Store domain (e.g., mystore.myshopify.com) |
| similarity_threshold | float | no | 0.88 | Levenshtein-ratio threshold for clustering (0.0–1.0) |
| min_cluster_size | integer | no | 2 | Only emit clusters with at least this many distinct vendor strings |
| ignore_suffixes | string | no | "Inc,LLC,Ltd,Co,Corp" | Comma-separated company suffixes stripped before comparison |
| status_filter | string | no | ALL | Product status to include: ACTIVE, DRAFT, ARCHIVED, or ALL |
| format | string | no | human | Output format: human or json |
Safety
ℹ️ Read-only skill — no mutations are executed. Safe to run at any time. The skill produces a recommendation worklist; consolidation must be applied through a separate, reviewed workflow.
Workflow Steps
-
OPERATION:
products— query Inputs:first: 250,query: <built from status_filter>, selectvendor,id,title,status, pagination cursor Expected output: Every product with its vendor string; paginate untilhasNextPage: false -
Build a frequency map of distinct vendor strings → product count. Normalize each vendor with: trim whitespace, collapse multiple spaces, strip configured suffixes, lowercase for comparison.
-
Cluster vendor strings whose normalized form has a Levenshtein ratio above
similarity_threshold. Pick canonical per cluster as the most-used variant; tie-break on shortest, then alphabetical. -
Filter clusters with fewer than
min_cluster_sizedistinct strings. Compute migration impact: number of products that would move to the canonical form. -
Sort clusters by migration impact descending so the highest-leverage merges surface first.
GraphQL Operations
# products:query — validated against api_version 2025-01
query AllVendors($query: String, $after: String) {
products(first: 250, after: $after, query: $query) {
edges {
node {
id
title
vendor
status
productType
updatedAt
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
Session Tracking
Claude MUST emit the following output at each stage. This is mandatory.
On start, emit:
╔══════════════════════════════════════════════╗
║ SKILL: Vendor Consolidation ║
║ Store: <store domain> ║
║ Started: <YYYY-MM-DD HH:MM UTC> ║
╚══════════════════════════════════════════════╝
After each step, emit:
[N/TOTAL] <QUERY|MUTATION> <OperationName>
→ Params: <brief summary of key inputs>
→ Result: <count or outcome>
On completion, emit:
For format: human (default):
══════════════════════════════════════════════
VENDOR CONSOLIDATION REPORT
Products scanned: <n>
Distinct vendors: <n>
Clusters detected: <n>
Products to migrate: <n>
Top clusters by impact:
Canonical: "<name>" Variants: <n> Products: <n>
"<variant 1>" (<count>)
"<variant 2>" (<count>)
Output: vendor_consolidation_<date>.csv
══════════════════════════════════════════════
For format: json, emit:
{
"skill": "vendor-consolidation",
"store": "<domain>",
"products_scanned": 0,
"distinct_vendors": 0,
"clusters": [
{
"canonical": "Acme",
"variants": [
{ "value": "Acme", "products": 0 },
{ "value": "ACME", "products": 0 },
{ "value": "Acme Inc", "products": 0 }
],
"products_to_migrate": 0
}
],
"output_file": "vendor_consolidation_<date>.csv"
}
Output Format
CSV file vendor_consolidation_<YYYY-MM-DD>.csv with columns:
cluster_id, canonical_vendor, variant_vendor, is_canonical, product_count, sample_product_id, sample_product_title, status
Error Handling
| Error | Cause | Recovery |
|---|---|---|
THROTTLED |
API rate limit exceeded | Wait 2 seconds, retry up to 3 times |
Empty vendor field on product |
Vendor never set | Bucket as cluster (unset), surface count separately |
| Two valid distinct vendors collide on similarity | False positive (e.g., Apple vs Appel) |
Lower similarity_threshold is unsafe; review cluster manually before applying |
| Unicode-different but visually identical vendors | Smart-quote or non-breaking space | Normalization step strips these before comparison |
Best Practices
- Start with the default
similarity_threshold: 0.88. Below 0.85, false positives multiply quickly. - Manually review every cluster before applying —
ABC CorpandABC Co.may or may not be the same supplier in your books. - Use
ignore_suffixesto absorb legal-entity noise (Inc,LLC) which rarely changes the actual vendor identity. - After review, drive consolidation via a separate update workflow (for example, an internal product-update script) and re-run this audit until clusters drop below
min_cluster_size. - Pair with
product-data-completeness-scoreto track vendor-field cleanliness over time alongside other catalog quality metrics.
Version history
-
v1.1.0
GitHub ↗
Original release notes
## 🤖 New category: Agentic Commerce Readiness The fix-it side of the [**agentiq.report**](https://agentiq.report) audit. The audit tells operators *where* AI shopping agents (ChatGPT, Gemini, Perplexity, agentic checkout) can't find, read, or recommend their store. This release adds **10 skills that remediate those findings** via the native Shopify Admin GraphQL toolkit — closing the loop: **audit finds the gap → run the matching skill → re-audit confirms.** Every skill declares the audit **signals** it fixes (`audit_signals` frontmatter), so a finding in the report maps directly to the skill that resolves it. ### Skills - **`agentic-readiness-audit`** — flagship, read-only store-side scorecard that routes each gap to its fix skill - **`agentic-product-jsonld-backfill`** — barcode/GTIN, vendor, product type for complete Product JSON-LD - **`agentic-image-alt-text`** — descriptive alt text on product media - **`agentic-description-enrichment`** — fact-rich descriptions for AI quoting - **`agentic-metafields-setup`** — define + populate agentic metafields for filtering - **`agentic-product-taxonomy`** — Shopify Standard Product Taxonomy categories - **`agentic-crawler-access`** — allow GPTBot/ClaudeBot/PerplexityBot… in `robots.txt.liquid` - **`agentic-llms-txt`** — publish a curated `/llms.txt` for AI assistants - **`agentic-organization-schema`** — Organization JSON-LD (sameAs, contactPoint) into the theme - **`agentic-policy-readability`** — machine-readable shipping/returns policies Plus a weekly **`agentic-readiness-monitor`** routine that re-audits and alerts on regressions. ### Stats **116 skills across 11 categories** (was 106/10), **21 routines** (was 20). All GraphQL validated against the live Admin 2025-01 schema; `pnpm validate:index` passes (116 skills, 64 operations). ### Notes Theme-editing and policy skills default to `dry_run`/`audit` mode, write inside managed `# BEGIN/END` blocks, and recommend duplicating the theme first.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- Solve a high-frequency e-commerce operational pain point: vendor field inconsistencies break reports and reconciliation.
- Read-only design ensures safety while providing actionable consolidation recommendations.
Highlights
- Precise description with clear boundaries (typos, casing, trailing whitespace).
- Comprehensive parameter table with defaults and valid enum values (e.g., status_filter, format).
Areas to improve
-
Missing dedicated 'When to Use' section Reported severity: Minor
While the Purpose section covers usage intent, a standalone 'When to Use' header is missing.
Recommendation: Add a concise 'When to Use' section after Prerequisites for better scannability.
Highlights
- Clear five-step workflow with explicit exit conditions.
- Mandatory session tracking output templates ensure consistent user experience.
- Frontmatter is complete and file length is well within limits.
Highlights
- GraphQL operation pinned to specific API version (2025-01) for stability.
- Comprehensive error handling covers rate limits, empty fields, false positives, and Unicode edge cases.
- No mutations performed; fully safe read-only execution as declared.
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_products` API scopes: `read_products`
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.