Core image processing workflow
Skill gaelic-ghost/socket/plugins/apple-dev-skills/skills/core-image-processing-workflow
Guide Core Image implementation and repair across CIImage processing graphs, CIContext rendering, built-in and custom filters, RAW development, color management, HDR, regions of interest, Core Video and Metal destinations, and performance diagnostics. Use when Apple-platform image work changes, generates, composites, or renders pixels rather than decoding files or recognizing image content.From its SKILL.md
npx -y skills add gaelic-ghost/socket --skill core-image-processing-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.3 KB, ~1.3k tokens by cl100k_base, as published. Nobody here has run it
Core Image Processing Workflow
Purpose
Guide Core Image processing and rendering without turning CIImage into a bitmap wrapper or mixing transformation with file decoding, visual recognition, or display-container ownership. Preserve Core Image, Core Graphics, Core Video, and Metal types until an explicit output boundary.
When To Use
- Use for Core Image filter chains, compositing, RAW development, custom kernels, color or HDR processing, render destinations, and Core Image performance or correctness repair.
- Recommend
apple-image-representation-workflowwhen decoding, encoding, metadata, or platform image-container behavior is primary. - Recommend the Vision workflow when the requested outcome is recognition or analysis rather than pixel transformation.
Single-Path Workflow
- Classify the request:
- built-in filter chain
- compositing, masking, scaling, or geometry
- RAW development
- custom kernel or processor
- color, HDR, or alpha repair
- render destination or interop
- performance or correctness diagnosis
- Apply the Apple docs gate:
- read current Core Image documentation before proposing implementation changes
- state the documented behavior relied on
- apply
../../shared/references/apple-image-type-ownership.md - use
references/core-image-processing-and-rendering.mdfor graph, context, color, render, and performance decisions - use
references/core-image-diagnostics-and-handoffs.mdfor repair probes and ownership handoffs
- Define the graph and ownership:
- identify the source image, extent, orientation state, color space, alpha semantics, and dynamic range
- build immutable
CIImagetransformations and keep mutableCIFilterinstances task-local - choose one deliberately scoped, reusable
CIContext - select the output bounds, format, color space, and destination before rendering
- Repair common failure modes:
- treating
CIImageas already-rendered pixels - creating a new
CIContextper frame or filter application - sharing mutable
CIFilterinstances across concurrent work - losing orientation, extent, alpha, color-space, HDR, or auxiliary-data meaning during conversion
- forcing CPU readback between Core Image, Core Video, and Metal without a concrete boundary
- rendering infinite or unexpectedly expanded extents without an explicit crop
- using Core Image as a recognition framework instead of handing analysis to Vision
- treating
- Return one recommendation with:
- processing class and documented behavior
- source and output type ownership
- graph, context, color, extent, and render-destination plan
- concurrency, cancellation, memory, and performance plan
- repair findings and runtime validation handoff
Inputs
request: image-processing task or code under repair.processing_goal:filter,composite,raw,kernel,color,hdr,render,interop, orrepair.platform_context:ios,ipados,macos,tvos,visionos, ormixed-apple.- Defaults:
- prefer current Xcode or Apple documentation
- preserve
CIImage,CIContext,CIFilter,CIFormat,CGColorSpace,CVPixelBuffer,IOSurface, and Metal types - preserve lazy evaluation until a real render boundary
- prefer Core Image before a custom Metal pipeline when Core Image expresses the requirement
Outputs
status:success,handoff, orblocked.path_type:primarywhen Core Image owns the operation,fallbackwhen another framework owns the next step.output: documented behavior, graph and type ownership, render plan, diagnostics, validation, and handoff.
Guards and Stop Conditions
- Do not claim a
CIImageis rendered pixel storage; it describes an image and its processing recipe until rendered. - Do not create generic image managers, filter coordinators, or custom pixel wrappers when framework types and direct composition express the requirement.
- Do not share mutable
CIFilterstate across concurrent tasks. - Do not silently discard orientation, scale, metadata, color space, alpha, dynamic range, extent, or auxiliary data.
- Do not claim GPU, Metal, HDR, RAW, real-time, or zero-copy behavior is verified without runtime or profiling evidence.
- Stop when the source representation, output destination, color requirements, or device capability needed for a correct recommendation is unavailable.
Fallbacks and Handoffs
- Recommend
apple-image-representation-workflowfor Image I/O decode/encode, metadata,CGImage,NSImage,NSImageRep,NSBitmapImageRep, orUIImageownership. - Recommend
vision-image-analysis-workflowfor recognition, detection, tracking, segmentation, or feature analysis. - Recommend
camera-capture-depth-workflowfor camera and depth capture. - Recommend
avfoundation-media-pipeline-workflowfor capture-session, reader, writer, export, or video pipeline ownership. - Recommend
video-codec-processing-workflowfor low-level codec and pixel-buffer work. - Recommend
photos-library-editing-workflowfor PhotosUI selection, PhotoKit assets/resources, library changes, and nondestructive editing. - Recommend
xcode-build-run-workflowfor project integration, Metal toolchain, build, run, device, or Instruments follow-through. - Recommend
xcode-testing-workflowfor fixtures, image comparisons, performance baselines, or regression tests. - 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/core-image-processing-and-rendering.mdreferences/core-image-diagnostics-and-handoffs.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
36.0 KB alongside SKILL.md, 1 of them executable
agents/
- openai.yaml307 B
references/
scripts/
- customization_config.pyruns4.3 KB