ai-ml-integration

ai-ml-integration is a skill for Claude Code, Codex from miles990/claude-software-skills. It costs 19 tokens per session (3,383 once invoked), scanned A, original, MIT.

Guidance for adding artificial intelligence and machine-learning features to applications, including language-model APIs, embeddings, and retrieval-augmented generation (RAG), which combines search with generated answers.

In plain words
What is it for?
Use it when adding chat responses, streamed output, tool or function calls, embeddings, or RAG-based features.
Why use it?
It helps developers connect these services to an application without having to work out common integration patterns from scratch.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when adding chat responses, streamed output, tool or function calls, embeddings, or RAG-based features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miles990/claude-software-skills/ai-ml-integration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add miles990/claude-software-skills --skill ai-ml-integration
Clone the repo
git clone --depth 1 https://github.com/miles990/claude-software-skills

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin ai-ml-integration — /plugin install ai-ml-integration after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-ml-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/miles990/claude-software-skills/ai-ml-integration/github.svg)](https://agentmods.dev/skills/miles990/claude-software-skills/ai-ml-integration)
Your own site
<a href="https://agentmods.dev/skills/miles990/claude-software-skills/ai-ml-integration"><img src="https://agentmods.dev/badge/skills/miles990/claude-software-skills/ai-ml-integration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-ml-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/miles990/claude-software-skills/ai-ml-integration"><img src="https://agentmods.dev/badge/skills/miles990/claude-software-skills/ai-ml-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,383 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.03383
Opus 5.5 $0.00008 $0.01353
Sonnet 5.5 $0.00004 $0.00677
Haiku 4.5 $0.00002 $0.00338

Measured 3mo ago against content hash c582f75869fa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-ml-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/embedding-utils.py, templates/llm-config.ts), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

development-stacks/ai-ml-integration/SKILL.md · 572 lines

How it starts

The opening of the file, as written. The whole thing — 572 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI/ML Integration

Overview

Integrating AI and machine learning capabilities into applications, including LLM APIs, embeddings, and RAG patterns.


LLM Integration

OpenAI API

import OpenAI from 'openai';

const openai = new OpenAI({
  apiKey: process.env.OPENAI_API_KEY,
});

// Chat completion
async function chat(messages: Array<{ role: string; content: string }>) {
  const response = await openai.chat.completions.create({
    model: 'gpt-4o',
    messages,
    temperature: 0.7,
    max_tokens: 1000,
  });

  return response.choices[0].message.content;
}

// Streaming response
async function* streamChat(prompt: string) {
  const stream = await openai.chat.completions.create({
    model: 'gpt-4o',
    messages: [{ role: 'user', content: prompt }],
    stream: true,
  });

  for await (const chunk of stream) {
    const content = chunk.choices[0]?.delta?.content;
    if (content) {
      yield content;
    }
  }
}

// Function calling
async function chatWithTools(message: string) {
  const tools = [
    {
      type: 'function' as const,
      function: {
        name: 'get_weather',
        description: 'Get current weather for a location',
        parameters: {
          type: 'object',
          properties: {
            location: { type: 'string', description: 'City name' },
            unit: { type: 'string', enum: ['celsius', 'fahrenheit'] },
          },
          required: ['location'],
        },
      },
    },
  ];

  const response = await openai.chat.completions.create({
    model: 'gpt-4o',
    messages: [{ role: 'user', content: message }],
    tools,
    tool_choice: 'auto',
  });

  const toolCall = response.choices[0].message.tool_calls?.[0];
  if (toolCall) {
    const args = JSON.parse(toolCall.function.arguments);
    // Execute the function
    const result = await executeFunction(toolCall.function.name, args);

    // Continue conversation with function result
    return openai.chat.completions.create({
      model: 'gpt-4o',
      messages: [
        { role: 'user', content: message },
        response.choices[0].message,
        {
          role: 'tool',
          tool_call_id: toolCall.id,
          content: JSON.stringify(result),
        },
      ],
    });
  }

  return response;
}

Read the full file on GitHub · 572 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 572 lines · 19 tokens per session scan A c582f75869fa

Subscribe to this mod's changes

ai-ml-integration is a skill published in the GitHub repository miles990/claude-software-skills (26 stars, last pushed 10mo ago), licensed MIT. It adds 19 tokens to every session and 3,383 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ai-ml-integration compared with skills from other repositories

ai-ml-integration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-ml-integrationmiles990/claude-software-skillsSkill2610mo agoMITA19Claude Code, Codex
rag-qdrantdavila7/claude-code-templatesSkill34ktodayMITA45Claude Code, Codex
rag-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0A97Claude Code
nodetool-rag-indexingnodetool-ai/nodetoolSkill670todayAGPL-3.0A78Claude Code, Codex
api-collectionsnodetool-ai/nodetoolSkill670todayAGPL-3.0A59Claude Code, Codex
vector-databasesfurkangonel/cowranglerSkill12mo agoMITB21Claude Code, Codex
ai-native-developmentArieGoldkin/ai-agent-hubSkill1212mo agoMITA48Claude Code, Codex