Files
pbakaus_impeccable/skill/reference/region-map.md
T
Paul Bakaus 59bad18d54 Make region mapping discoverable and validate repeated review groups
AI-assisted implementation by Codex under maintainer direction. Preserve map relationships through measurement and share structural review-group validation between inspection and component review.
2026-09-18 11:09:18 -07:00

2.1 KiB
Raw Blame History

Region map

A region map names what is actually visible in the approved comp before asset production. It is not a page build or an asset approval.

  1. Run {{scripts_path}}/impeccable comp-spec --comp <comp.png> --grid and open the original and gridded images.
  2. Run {{scripts_path}}/impeccable comp-spec --schema for the JSON fields. Write regions.json with a regions array. Each region needs a stable id, kind, note, and exactly one of pixelBox, normalized box, or grid. Use the original comps dimensions.
  3. Run {{scripts_path}}/impeccable comp-spec --comp <comp.png> --regions regions.json --inspect-map. The output points to a report, overlay and exact crops. The default prints findings; --json prints the entire report.
  4. Open the crops and compare their bounds with the original. Inspect excluded foreground pixels as well as geometry errors. Correct the map and inspect again; use a new output directory each time. Coverage warnings are hints, not proof of completeness.

If the request ends at mapping, stop with the map, inspection report and unresolved findings. To continue a build, measure the inspected map with comp-spec --comp <comp.png> --regions regions.json and follow new-work.md.

--auto produces horizontal band scaffolding, not element identification. It is optional and does not replace authoring a map.

Containment and repetition

parentId identifies an enclosing container: true region. Parent and children keep separate IDs and crops. Containment never transfers approval.

reviewGroup identifies repeated instances of the same code component and role. Members must have the same kind and container status and be peers, not ancestors and children. Sharing a card or section is not a reason to group its different parts. Keep every instance in the map and component kit. Raster assets remain individually reviewable. Grouping does not waive crop checks or approve anything; applying a decision to peers remains the users choice.

Comp crops are reference evidence only, never production assets. The map inspector marks its PNGs as comp-derived.