ai-sdlc-workflow: Skill for Cursor

.cursor/skills/optional/ai-llm-integration/SKILL.md

ai-llm-integration is a skill for Cursor from phuoctrung-ppt/ai-sdlc-workflow. It costs 69 tokens per session (454 once invoked), scanned A, original, MIT.

A set of rules for adding language-model features to an application, including provider selection, streaming, embeddings, vector search, cost tracking, and human review. Embeddings are numeric representations used to compare the meaning of text.

In plain words
What is it for?
Use it when adding AI-generated text, embeddings, similarity search, provider fallbacks, usage logging, or approval steps for sensitive AI decisions.
Why use it?
It helps keep AI calls consistent, track their cost and performance, handle provider failures, and avoid automatic high-stakes decisions. It also defines safeguards for user input and consequential outputs.

Skill for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions AGENTS.md.

This is phuoctrung-ppt/ai-sdlc-workflow's own configuration. It tells Cursor how to work on ai-sdlc-workflow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ai-sdlc-workflow configures →

Reuse

Borrowing it

Nothing to install: this file belongs to phuoctrung-ppt/ai-sdlc-workflow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/phuoctrung-ppt/ai-sdlc-workflow/master/.cursor/skills/optional/ai-llm-integration/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/phuoctrung-ppt/ai-sdlc-workflow

Made for: Cursor.

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-llm-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/phuoctrung-ppt/ai-sdlc-workflow/ai-llm-integration/github.svg)](https://agentmods.dev/skills/phuoctrung-ppt/ai-sdlc-workflow/ai-llm-integration)
Your own site
<a href="https://agentmods.dev/skills/phuoctrung-ppt/ai-sdlc-workflow/ai-llm-integration"><img src="https://agentmods.dev/badge/skills/phuoctrung-ppt/ai-sdlc-workflow/ai-llm-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-llm-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/phuoctrung-ppt/ai-sdlc-workflow/ai-llm-integration"><img src="https://agentmods.dev/badge/skills/phuoctrung-ppt/ai-sdlc-workflow/ai-llm-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 454 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.00069 $0.00454
Opus 5 $0.00034 $0.00227
Sonnet 5 $0.00014 $0.00091
Haiku 4.5 $0.00007 $0.00045

Measured 9d ago against content hash 27cffb16917a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ai-llm-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 9d ago.

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.

.cursor/skills/optional/ai-llm-integration/SKILL.md · 40 lines

What it actually says

AI/LLM Integration

Domain skill: project-specific AI provider names, use-cases, and patterns come from AGENTS.md §2 and §5. This skill covers the universal patterns — adapt names to match your project.

When to Use

  • Features that call external AI providers (OpenAI, Anthropic, etc.)
  • Embedding generation + vector similarity search
  • AI cost tracking and budget enforcement
  • Any AI decision requiring human-in-the-loop review (per AGENTS.md §5)

Mandatory Patterns

  1. Central router/service — all LLM calls route through a single service; budget check before each call
  2. Usage event — emit after every call with tokens, cost_usd, latency_ms (log to your project's usage table/service)
  3. Cost calculation — centralized cost utility shared across the codebase
  4. Fallback provider — on primary failure, fall back to secondary provider
  5. Prompt sanitization — sanitize user input before passing to LLM
  6. XAI — for consequential decisions: return explanation with confidence, key factors, counterfactuals
  7. Human-in-the-loop — no auto-action on high-stakes decisions without explicit user confirmation (see AGENTS.md §5)

References (load on demand)

.cursor/rules/003-ai-ethics-compliance.mdc

Agent

Use with @ai-worker and /ai-cost-check command.

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. 9d ago First seen · 40 lines · 69 tokens per session scan A 27cffb16917a

Subscribe to this mod's changes

ai-llm-integration is a skill published in the GitHub repository phuoctrung-ppt/ai-sdlc-workflow (2 stars, last pushed 2d ago), licensed MIT. It adds 69 tokens to every session and 454 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other skills, from other repositories

azure-search-documents-dotnet

Azure AI Search SDK for .NET (Azure.Search.Documents). Use for building search applications with full-text, vector, semantic, and hybrid search. Covers SearchClient (queries, document CRUD), SearchIndexClient (index management), and SearchIndexerClient (indexers, skillsets). Triggers: "Azure Search .NET"…

microsoft/skills · 102 tokens

azure-search-documents-ts

Build search applications using Azure AI Search SDK for JavaScript (@azure/search-documents). Use when creating/managing indexes, implementing vector/hybrid search, semantic ranking, or building agentic retrieval with knowledge bases.

microsoft/skills · 48 tokens

convex-agent

Add an AI agent / RAG backend (@convex-dev/agent) to the Convex app.

openclaw/clawhub · 25 tokens

wegent-knowledge

Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.

wecode-ai/Wegent · 51 tokens

azure-search-documents-py

Full-text, vector, and hybrid search with AI enrichment capabilities.

benjaminasterA/antigravity-awesome-skills · 0 tokens

spring-ai-integration

Use when integrating LLMs, chat clients, embeddings, RAG pipelines, or AI agents into Spring Boot. Covers Spring AI ChatClient, prompt templates, embeddings, vector stores, and structured output. Use when user mentions Spring AI, LLM, ChatGPT, Claude, RAG, embeddings.

rrezartprebreza/spring-boot-skills · 66 tokens