operate-ai-stack

operate-ai-stack is a skill for Claude Code, Codex from leynier/python-template. It costs 65 tokens per session (375 once invoked), scanned A, original, MIT.

A workflow for developing, testing, and troubleshooting AI or machine-learning applications across models, embeddings, search, interfaces, training, serving, and monitoring.

In plain words
What is it for?
Use it when changing prompts, tools, agents, retrieval-augmented generation, MCP, model serving, fine-tuning, evaluations, or provider integrations. Retrieval-augmented generation means finding relevant stored information before producing an answer.
Why use it?
It helps keep provider-specific code, tests, secrets, logs, and end-to-end checks organized as an AI system changes.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/leynier/python-template/if-ai_capabilities-none-operate-ai-stack-endif
Any agent
npx skills add leynier/python-template --skill if-ai_capabilities-none-operate-ai-stack-endif
Clone the repo
git clone --depth 1 https://github.com/leynier/python-template

Made for: Claude Code, Codex.

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 operate-ai-stack

README.md
[![agentmods](https://agentmods.dev/badge/skills/leynier/python-template/if-ai_capabilities-none-operate-ai-stack-endif.svg)](https://agentmods.dev/skills/leynier/python-template/if-ai_capabilities-none-operate-ai-stack-endif)
Your own site
<a href="https://agentmods.dev/skills/leynier/python-template/if-ai_capabilities-none-operate-ai-stack-endif"><img src="https://agentmods.dev/badge/skills/leynier/python-template/if-ai_capabilities-none-operate-ai-stack-endif.svg" alt="Measured on agentmods" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 375 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00065 $0.00375
Opus 5 $0.00032 $0.00187
Sonnet 5 $0.00013 $0.00075
Haiku 4.5 $0.00006 $0.00038

Measured 4d ago against content hash d0d52540dd9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

operate-ai-stack 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 4d 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.

template/skills/{% if ai_capabilities != 'none' %}operate-ai-stack{% endif %}/SKILL.md · 25 lines

What it actually says

Operate AI Stack

Treat .copier-answers.yml as the layer map and inspect the generated modules before assuming a framework or provider API.

Workflow

  1. Identify the workload, framework, model provider, embedding provider, data roles, interfaces, training extensions, serving engine, and quality tools that are actually enabled.
  2. Preserve the boundary between model and embedding providers. Keep provider-specific construction in the generated provider module and inject it into framework code.
  3. Use deterministic fakes for unit tests. Put real-provider checks behind explicit environment variables and never make the normal test suite spend tokens or require cloud credentials.
  4. For agents and MCP, test tool schemas and error paths. For RAG, test ingestion, retrieval, empty results, and citation metadata. For training, test a tiny local batch and artifact creation. For inference, test health plus one prediction.
  5. Record required secrets in .env.example, use the settings layer, and redact prompt, credential, and personal data from logs.
  6. Run the project quality gates from project-workflow, followed by the smallest representative end-to-end check for the enabled stack.

Operational Checks

  • Pin or bound model and API dependencies; review upstream breaking changes before updating.
  • Track latency, token or compute usage, provider errors, and evaluation quality separately.
  • Make external calls timeout and fail clearly; do not silently switch providers or models.
  • Require an explicit review before changing production prompts, tools with side effects, or model artifacts.
Files

What ships with it

1 file 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. 4d ago First seen · 25 lines · 65 tokens per session scan A d0d52540dd9e

Subscribe to this mod's changes

operate-ai-stack is a skill published in the GitHub repository leynier/python-template (37 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 375 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-30.

Related

Other skills, from other repositories

datamodel-code-generator

Use this skill when the user wants Python data models, Pydantic models, dataclasses, TypedDicts, msgspec structs, or type-safe Python classes generated from OpenAPI, AsyncAPI, JSON Schema, GraphQL, JSON/YAML/CSV sample data, MCP tool schemas, Protocol Buffers, XML Schema, Apache Avro, or existing Python model objects.…

koxudaxi/datamodel-code-generator · 147 tokens

fastapi-guard

Production-ready security middleware for FastAPI. Use when adding IP filtering, rate limiting, per-route security decorators, route-resolution strict mode, global behavior rules, passive/log-only mode, or Guard Agent SaaS telemetry to a FastAPI app. Covers SecurityMiddleware setup, SecurityConfig tuning, and the…

rennf93/fastapi-guard · 72 tokens

emil-design-eng

This skill encodes Emil Kowalski's philosophy on UI polish, component design, animation decisions, and the invisible details that make software feel great.

MODSetter/SurfSense · 35 tokens

playwright-testing

Use when writing Playwright tests, fixing flaky tests, debugging failures, implementing Page Object Model, configuring CI/CD, optimizing performance, mocking APIs, handling authentication or OAuth, testing accessibility (axe-core), file uploads/downloads, date/time mocking, WebSockets, geolocation, permissions…

MODSetter/SurfSense · 211 tokens

content-quality-auditor

Publish-readiness gate: 80-item CORE-EEAT audit with weighted scoring, veto checks, and fix plan. 内容质量/EEAT评分.

MODSetter/SurfSense · 36 tokens

content-refresher

Refresh outdated posts with current stats, new sections, freshness signals to restore rankings. 内容更新/排名恢复.

MODSetter/SurfSense · 26 tokens