What problem does it solve?
Modifying the UPC resolution system that matches products to their correct UPCs across multiple retailers carries high risk of breaking existing functionality, causing incorrect product matches, or introducing regressions that only appear with live retailer data. This skill provides a structured guardrail to ensure all changes follow Pear's engineering standards, include proper test coverage, and are verified against a live dev database before merging.
Core Features & Use Cases
- Structured Code Change Guardrails: Enforces Pear's workflow for modifications to the UPC resolution graph, resolver logic, TinEye image comparison, direct/trusted candidate scoring, retailer UPC feasibility scripts, and known item detail resolution in api.pearcommerce.com.
- Focused Test Requirements: Mandates adding targeted deterministic unit tests for exact touched behavior, including standard test classes for UPC resolution components, graph logic, and retailer resolvers.
- Local Devdb Verification: Provides a known-good sample of live retailer tests, environment configuration, and workflow steps to catch regressions from live data drift, including handling for known master-failing tests.
Use case: For example, if you are updating the UPC resolver to add support for a new grocery retailer with sparse UPC data, this skill ensures you follow required code patterns, add tests for the new resolver, run focused unit checks, and verify the change works with live retailer data via the devdb sample before marking work complete.
Quick Start
Use the upc-resolution-code-changes skill when modifying any UPC resolution logic in api.pearcommerce.com to follow the required code change workflow, run focused unit tests, and complete local devdb verification before marking the work done.