axiom-audit-foundation-models

Analyze Swift codebases for Foundation Models integration issues and architectural anti-patterns.

34|2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/DengNaichen/Stet --skill axiom-audit-foundation-models
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-audit-foundation-models
Source: https://github.com/DengNaichen/Stet/tree/main/.agents/skills/axiom-audit-foundation-models
Command: npx skills add https://github.com/DengNaichen/Stet --skill axiom-audit-foundation-models

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill identifies critical anti-patterns, missing availability checks, and lifecycle management issues in projects utilizing Apple's Foundation Models framework, preventing runtime crashes and poor user experiences.

Core Features & Use Cases

  • Architecture Mapping: Automatically maps session ownership, @Generable types, and tool surface area.
  • Anti-Pattern Detection: Scans for 14 known issues including main-thread blocking, missing guardrail handling, and improper session lifecycle management.
  • Hardening Assessment: Provides a production-readiness score based on evaluation coverage, error handling, and availability discipline.

Quick Start

Run the axiom-audit-foundation-models skill to perform a full audit of the current repository and generate a hardening report.

Frequently Asked Questions about axiom-audit-foundation-models

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

FAQPage Schema
How do I audit Swift codebases for Apple Foundation Models integration issues?

To audit Swift codebases for Apple Foundation Models integration issues, analyze the repository for session lifecycle management, error handling, and availability checks to prevent runtime crashes and poor user experiences.

What are common anti-patterns when implementing Apple Intelligence in Swift?

Common Apple Intelligence anti-patterns include main-thread blocking, missing guardrail handling, improper session lifecycle management, and missing availability checks across complex Foundation Models implementations.

How do I validate structured output patterns in Foundation Models implementations?

Validate structured output patterns by evaluating @Generable types, mapping session ownership, and checking adherence to safety guardrails to ensure production-grade stability in Foundation Models implementations.

Can I assess production readiness for Swift apps using the Foundation Models framework?

You can assess production readiness for Swift apps by generating a hardening report that scores evaluation coverage, error handling discipline, and availability checks across Foundation Models implementations.

Why does my Apple Intelligence implementation crash at runtime?

Apple Intelligence implementations crash at runtime due to critical anti-patterns like missing availability checks and improper session lifecycle management within the Foundation Models framework integration.

What is the best way to map tool surface area in Foundation Models code?

The best way to map tool surface area in Foundation Models code is through automated architecture mapping, which identifies session ownership, @Generable types, and tool boundaries across the Swift codebase.