foundation-models-utilities

Manage custom skills and chat completions via the Foundation Models framework.

476|27|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/apple/foundation-models-utilities --skill foundation-models-utilities
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundation-models-utilities
Source: https://github.com/apple/foundation-models-utilities/tree/main/skills/foundation-models-utilities
Command: npx skills add https://github.com/apple/foundation-models-utilities --skill foundation-models-utilities

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires FoundationModels, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill simplifies the integration and management of large language models (LLMs) within applications, enabling seamless context management and on-demand activation of custom skills.

Core Features & Use Cases

  • Custom Skills: On-demand instructions or prompt fragments that the model can activate by issuing a tool call.
  • Chat Completions Language Model: Communicate with any server that uses the chat completions REST API for natural language processing.
  • History Management: Compress the transcript before each generation using strategies like dropping completed tool calls, rolling window, and summarization.
  • Use Case: Integrate this Skill into a chatbot application to manage conversations efficiently, with the ability to add or remove context dynamically.

Quick Start

To use the chat completions endpoint with a local LLM server, activate the chat completions skill by typing: "connect to my local LLM server".

Frequently Asked Questions about foundation-models-utilities

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a chat completions endpoint with the Foundation Models framework?

You can connect to any server using the chat completions REST API for natural language processing by activating the chat completions skill within the Foundation Models framework.

How do I manage conversation history for large language models?

Conversation history is managed by compressing the transcript before each generation using strategies like dropping completed tool calls, applying a rolling window, or summarizing prior context.

What are custom skills in the context of large language models?

Custom skills are on-demand instructions or prompt fragments that a large language model activates by issuing a tool call, enabling dynamic context management during chat completions.

Does this Skill require the Foundation Models framework to function?

Yes, the Foundation Models framework is required to manage custom skills, handle chat completions, and perform conversation history management for large language models.

How do I activate a custom skill for a local LLM server?

Activate a custom skill for a local LLM server by typing a command like "connect to my local LLM server" to trigger the chat completions skill and establish the REST API connection.