Skip to content
Back to search

coreai-models

MarketplaceWorks with Claude CodeGitHub

Model export recipes, Python primitives, and Swift runtime utilities for on-device AI

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/apple/coreai-models with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/apple/coreai-models'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/apple--coreai-models/badge.svg)](/listings/apple--coreai-models)

HTML

<a href="/listings/apple--coreai-models"><img src="/api/listings/apple--coreai-models/badge.svg" alt="findsafeskills safety rating" /></a>

Install

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Installation differs depending on your coding agent of choice.

Claude Code

Register the marketplace:

/plugin marketplace add git@github.com:apple/coreai-models.git

Alternatively, register the marketplace from a local git checkout:

/plugin marketplace add /path/to/coreai-models

Install the plugin:

/plugin install coreai-skills@coreai-models

Codex CLI

Register the marketplace:

codex plugin marketplace add https://github.com/apple/coreai-models

Alternatively, register the marketplace from a local git checkout:

codex plugin marketplace add /path/to/coreai-models

Launch Codex in your workspace:

codex

Install the plugin through the interactive browser: once the Codex session is active in your terminal, open the plugin manager by typing `/plugins`, locate the `coreai-models` marketplace tab (use your arrow keys or the built-in search), select `coreai-skills`, and choose Install.

Gemini CLI

Install the extension from a local directory:

gemini extensions install /path/to/coreai-models/skills

Once installed, the skills activate automatically based on your task context, or you can invoke them explicitly.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

.claude-plugin/marketplace.json · Manifest · 18 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. {
  2. "name": "coreai-models",
  3. "metadata": {
  4. "description": "Agent skills for authoring, exporting, compiling, and running Core AI models on Apple silicon.",
  5. "version": "0.1.0"
  6. },
  7. "owner": {
  8. "name": "Apple"
  9. },
  10. "plugins": [
  11. {
  12. "name": "coreai-skills",
  13. "description": "Skills for authoring, exporting, compiling, and running PyTorch models on Apple silicon via Core AI.",
  14. "version": "0.1.0",
  15. "source": "./skills"
  16. }
  17. ]
  18. }
README.md · README · 143 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # Core AI Models
  2. Model export recipes, Python primitives, and Swift runtime utilities for building on-device AI with [Core AI](https://developer.apple.com/documentation/coreai).
  3. The main components include:
  4. - **Model export** — Recipes to export popular open source models from Hugging Face and other sources to Core AI format.
  5. - **Reusable primitives** — Python building blocks for authoring custom Core AI models in PyTorch.
  6. - **Runtime utilities** — Swift package built on top of Core AI framework to run models on macOS and iOS.
  7. - **Skills** — Plugins to help coding agents leverage Core AI effectively.
  8. | Directory | What's inside |
  9. | --------- | -------------------------------------------------------------------------------------------- |
  10. | `models/` | Model catalog with README and export recipes. |
  11. | `python/` | Python primitives for authoring and utilities for exporting models. |
  12. | `swift/` | Swift package (`coreai-models`): runtime utilities to integrate Core AI models in your app. |
  13. | `skills/` | Pluggable skills that enable coding agents to leverage Core AI more effectively. |
  14. ## Requirements
  15. If you haven't installed `uv`, install it by
  16. ```bash
  17. brew install uv
  18. ```
  19. or
  20. ```bash
  21. curl -LsSf https://astral.sh/uv/install.sh | sh
  22. ```
  23. Once installed successfully, refer to the README.md for each model or family of models, in `models` folder for their exporting recipe.
  24. ## Requirements (running and app integration)
  25. - **macOS and iOS 27.0+**
  26. - **Xcode 27.0+**
  27. Core AI models are exported as standalone `.aimodel` files for integration into apps via the Core AI framework.
  28. Some models require additional resources. Language models require a tokenizer, for instance, and diffusion models run multiple models in sequence as part of a single pipeline. For these cases, export recipes in this repo produce a resource folder containing one or more `.aimodel` files alongside any required resources. The Swift package in this repo provides runtime utilities for integrating these into an app.
  29. Command line interface (CLI) tools are also included for running exported models directly on a Mac (requires Xcode 27.0+). See each model's README for available tools and example invocations.
  30. ## Explore supported models
  31. Find supported models by
  32. ```bash
  33. git clone https://github.com/apple/coreai-models.git && cd coreai-models
  34. uv run coreai.model.registry --list-models
  35. ```
  36. Run `uv run coreai.model.registry --help` for details.
  37. ## Agent Skills
  38. This repo includes a plugin with skills to enable coding agents to use Core AI like an expert.
  39. ### Available skills
  40. | Skill | Description |
  41. | --- | --- |
  42. | `working‑with‑coreai` | End-to-end workflow for deploying PyTorch models on Apple silicon, covering export with `coreai-torch` and running with the Core AI runtime. |
  43. | `model‑authoring` | Empirical rules for authoring PyTorch models for on-device execution on Apple platforms, covering BC1S layout, op compatibility, KV cache patterns, precision rules, MoE, and common issues. |
  44. | `model‑compression‑exploration` | Systematically explore weight compression configurations (quantization and palettization) for a PyTorch model using `coreai-opt`. |
  45. | `auditing‑helper‑reuse` | Before a large model-export change becomes a PR, find helpers it re-implements (RoPE, norms, MLPs, attention and masks, loaders, export boilerplate) and reuse them only where the exported graph stays identical. |
  46. ### Install
  47. Installation differs depending on your coding agent of choice.
  48. #### Claude Code
  49. Register the marketplace:
  50. ```
  51. /plugin marketplace add git@github.com:apple/coreai-models.git
  52. ```
  53. Alternatively, register the marketplace from a local git checkout:
  54. ```
  55. /plugin marketplace add /path/to/coreai-models
  56. ```
  57. Install the plugin:
  58. ```
  59. /plugin install coreai-skills@coreai-models
  60. ```
  61. #### Codex CLI
  62. Register the marketplace:
  63. ```
  64. codex plugin marketplace add https://github.com/apple/coreai-models
  65. ```
  66. Alternatively, register the marketplace from a local git checkout:
  67. ```
  68. codex plugin marketplace add /path/to/coreai-models
  69. ```
  70. Launch Codex in your workspace:
  71. ```
  72. codex
  73. ```
  74. Install the plugin through the interactive browser: once the Codex session is
  75. active in your terminal, open the plugin manager by typing `/plugins`, locate the
  76. `coreai-models` marketplace tab (use your arrow keys or the built-in search),
  77. select `coreai-skills`, and choose Install.
  78. #### Gemini CLI
  79. Install the extension from a local directory:
  80. ```
  81. gemini extensions install /path/to/coreai-models/skills
  82. ```
  83. Once installed, the skills activate automatically based on your task context,
  84. or you can invoke them explicitly.
  85. ## Contributing
  86. We welcome bug fixes, new models, documentation and test improvements within a
  87. defined scope. Read
  88. [CONTRIBUTING.md](https://github.com/apple/coreai-models/blob/main/CONTRIBUTING.md)
  89. before you open a pull request.
  90. Report bugs and request models through the
  91. [issue templates](https://github.com/apple/coreai-models/issues/new/choose).
  92. ## Support
  93. - [GitHub Issues](../../issues) — Feedback, bug reports, and feature requests
  94. ## License
  95. This project is licensed under the [BSD 3-Clause License](LICENSE).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.