Apple image representation workflow
Skill gaelic-ghost/socket/plugins/apple-dev-skills/skills/apple-image-representation-workflow
Guide Apple image decoding, encoding, metadata, thumbnails, multi-frame sources, and representation bridging across Image I/O, Core Graphics, AppKit NSImage and NSImageRep, UIKit UIImage, Core Image, and Core Video. Use when image work involves files, data, representations, orientation, scale, color, metadata, or conversion rather than pixel effects or visual recognition.From its SKILL.md
npx -y skills add gaelic-ghost/socket --skill apple-image-representation-workflowAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.1 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
Apple Image Representation Workflow
Purpose
Guide image source, destination, representation, and conversion work without flattening distinct Apple image types into a generic wrapper. Keep file encoding, rendered pixels, processing recipes, platform display containers, metadata, and auxiliary images visibly separate.
When To Use
- Use for Image I/O sources and destinations, metadata, thumbnails, incremental loading, multi-frame images,
CGImage,NSImage,NSImageRep,NSBitmapImageRep,UIImage, and representation conversion. - Recommend
core-image-processing-workflowwhen filters, compositing, RAW development, custom kernels, or rendering are primary. - Recommend the Vision workflow when the requested outcome is recognition or analysis rather than representation ownership.
Single-Path Workflow
- Classify the request:
- source inspection or decoding
- incremental loading or thumbnailing
- metadata or auxiliary data
- destination encoding or multi-frame output
- Core Graphics raster ownership
- AppKit representation or drawing
- UIKit image display ownership
- conversion or repair
- Apply the Apple docs gate:
- read current Image I/O, Core Graphics, AppKit, or UIKit documentation first
- state the documented behavior relied on
- check API, image-format, auxiliary-data, and platform availability before promising a decode, encode, or representation path
- apply
../../shared/references/apple-image-type-ownership.md - use
references/image-io-decoding-encoding-and-metadata.mdfor source and destination work - use
references/apple-image-representations-and-bridging.mdfor type selection and conversion
- Preserve source meaning:
- inspect type, frame count, dimensions, properties, orientation, color profile, alpha, dynamic range, and auxiliary data before conversion
- choose decode-time thumbnailing or incremental loading when the workload requires it
- identify whether metadata and original encoded bytes must survive
- Choose the representation:
CGImagefor concrete raster pixels and Core Graphics drawingCIImagefor a lazy processing graphNSImageandNSImageRepfor macOS display-oriented multi-representation behaviorUIImagefor UIKit display semantics including scale and orientationCVPixelBufferfor frame-oriented media and hardware interop
- Encode deliberately:
- choose destination type, frame count, properties, metadata policy, orientation policy, color profile, compression, and auxiliary-data policy
- add every image or frame
- require successful
CGImageDestinationFinalizebefore claiming output exists
- Return one recommendation with source facts, chosen types, conversion losses, decode/encode plan, memory and cancellation policy, diagnostics, and validation.
Inputs
request: image representation, decode, encode, metadata, or conversion task.representation_goal:inspect,decode,thumbnail,incremental,metadata,encode,appkit,uikit,bridge, orrepair.platform_context:ios,ipados,macos,tvos,watchos,visionos, ormixed-apple.
Outputs
status:success,handoff, orblocked.path_type:primarywhen image representation owns the work,fallbackwhen processing, analysis, capture, or codecs own it.output: documented behavior, source inventory, selected representation, conversion-loss ledger, decode/encode plan, diagnostics, and validation.
Guards and Stop Conditions
- Do not assume
NSImagecontains one fixed bitmap; it can own multiple representations and select among them for drawing. - Do not assume
UIImage,NSImage,CGImage, andCIImagepreserve the same orientation, scale, metadata, color, or rendering semantics. - Do not fully decode large images merely to produce a small thumbnail when Image I/O thumbnailing fits the requirement.
- Do not discard source metadata, ICC profiles, animation frames, depth, disparity, gain maps, mattes, or other auxiliary data silently.
- Do not claim an encoded destination succeeded before finalization returns success.
- Do not invent image repositories, managers, or mirrored metadata models when Image I/O properties and framework values express the boundary.
- Stop when required source bytes, format support, destination policy, or preservation requirements are unavailable.
Fallbacks and Handoffs
- Recommend
core-image-processing-workflowfor filters, RAW development, compositing, color processing, custom kernels, or rendering. - Recommend
vision-image-analysis-workflowfor recognition and analysis. - Recommend
appkit-app-architecture-workflowfor broader macOS view, controller, window, or application ownership. - Recommend
avfoundation-media-pipeline-workflowfor assets, capture, video, readers, writers, or export. - Recommend
photos-library-editing-workflowfor PhotoKit and PhotosUI ownership. - Recommend
xcode-build-run-workflowfor target resources, build, run, device, or profiling follow-through. - Recommend
xcode-testing-workflowfor image fixtures, metadata round trips, comparison tests, or performance baselines. - Recommend
explore-apple-swift-docswhen documentation lookup is the real need.
Customization
Use references/customization-flow.md. This workflow defines no runtime-enforced knobs.
References
references/image-io-decoding-encoding-and-metadata.mdreferences/apple-image-representations-and-bridging.mdreferences/customization-flow.md../../shared/references/apple-image-type-ownership.md- Recommend
references/snippets/apple-xcode-project-core.mdfor reusable Xcode-project policy.
Script Inventory
scripts/customization_config.py
What ships with it: 7 files
35.8 KB alongside SKILL.md, 1 of them executable
agents/
- openai.yaml312 B
references/
scripts/
- customization_config.pyruns4.4 KB