Skip to content

[Community Submission] Add skill: variant-option-normalizer#70

Open
raqibdev wants to merge 25 commits intotimctfl:mainfrom
raqibdev:variant-option-normalizer
Open

[Community Submission] Add skill: variant-option-normalizer#70
raqibdev wants to merge 25 commits intotimctfl:mainfrom
raqibdev:variant-option-normalizer

Conversation

@raqibdev
Copy link
Copy Markdown
Contributor

@raqibdev raqibdev commented Apr 4, 2026

Description

Detects inconsistent Shopify variant option data and produces a corrected CSV plus a change log. Covers 8 detection categories across a 3-turn merchant conversation: audit, confirm plan,
produce output.

What's in this PR:

  • Core skill (SKILL.md) with full detection logic, conversation flow, edge cases, and error handling
  • Python audit script (normalize_audit.py) for deterministic checks (whitespace, case, duplicates, missing images, size ordering, incomplete variant matrix detection)
  • Alias asset files (size_aliases.json, option_name_aliases.json) with expanded synonym maps and size system classifications
  • JSON output schema reference (references/json-schema.md) documenting every field the script emits
  • Example output (references/example-output.md) showing a full 3-turn run with audit report, normalization plan, corrected CSV, and change log
  • Fixture: fixtures/greatoutdoorsco/shopify-products-messy-variants.csv covering all 8 issue types across 5 products

Key decisions made during development:

  • Confidence framing applied to all 8 detection categories, not just aliases, to guide how findings are presented to the merchant
  • Post-normalization collision check added to Turn 2 to catch cases where two distinct values would merge into the same canonical form
  • Fill-by-color image proposal added to Turn 2, sourcing sibling variant URLs rather than leaving gaps
  • approved_mapping.json export offered at Turn 3 so future runs on the same store can skip re-analysis for already-resolved values
  • LLM semantic checks scoped to within the same option_name group only, to prevent cross-slot false positives
  • Error handling section added for malformed CSV, missing required columns, wrong delimiters, and unrecoverable ambiguity
  • Detection Categories section trimmed and pointed to json-schema.md to avoid duplication
997e5c2c171bcfd2f84e37461e309d2ba91fb9bcf30c5be3b27481a06ff7ae1f 7ba6128061e345616da68aa05c35d753e2f3ddc560ca5acdfdf622ab90b2bd29 f9c5d9cd05a0b024a565eb7105781c9b8d489649f7d0421e7761f8422673c00a 127e2f18da2edc10f50923844de0ab8b1b8234113093c66a52d9df574e8ea859 646ab871d366e8b10d850ef47a08dc350ad4c241f2e4232bc31e260bd14b0694

Contributor Attestation

  • I agree to the Terms of Service and Privacy Policy, and I understand that if my submission is accepted it will be published under the Apache 2.0 license. I confirm I have the rights to submit this content and it does not include confidential information or personal data.

raqibdev added 25 commits April 5, 2026 01:32
- Introduced a new skill for normalizing and repairing variant options in Shopify product CSVs.
- Added detailed documentation outlining the skill's functionality, input requirements, and output format.
- Included an example output to demonstrate the skill's capabilities and expected results.
…data during row reordering in variant option normalizer
…tespace trimming, clarifying missing image checks, and adding reminders for Shopify import processes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant