/skills:ai-stackfrom skills
Selects or reviews AI-specific components across models, runtimes, training/inference, retrieval, evals, safety, and operations. Use when designing or auditing an AI architecture.
Ships in skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For $ai-stack --help or $ai-stack -h (including native Claude forms), return concise help and stop before
any workflow step. State the purpose and invocation policy. Show exact usage
for every public action. Describe each public action, positional
argument, and flag in one concise line, including -h, --help; say "No
additional public flags" when there are no others. Use only the documented
public interface. For internal or coordinator-only skills, state that boundary
and that no standalone public workflow action exists. After the selected
SKILL.md is loaded, help is report-only: do not call any additional tools,
inspect project state, or modify files, private state, Git, or external systems.
Never expose private helper actions or flags or treat help as workflow
authorization.
Use $ai-stack in Codex, /ai-stack in Claude Code, or
/skills:ai-stack in the Claude plugin. Dollar-prefixed skill examples
refer to the same named skill on either host; use the native invocation syntax.
Preserve the declared invocation policy, approvals and workflow ownership.
Use available native tools; an unavailable required capability is a blocker,
never permission to bypass a guard or claim unobserved behavior.
Select an effective, efficient AI-specific architecture and technology set for a concrete workload. Effective means it passes the workload's acceptance gates. Efficient means it minimizes complexity, operational burden, latency, and cost per accepted outcome among candidates that pass. Treat every recommendation as workload-dependent, dated, and replaceable. Prefer no new component, a direct API, or an existing platform until evidence justifies another layer.
This skill owns AI component and technology selection. It does not own agent- subsystem behavior, topology, policy, or contracts; the complete product architecture; repository topology; project scaffolding; or implementation.
app-stack for the surrounding frontend, API, backend, ordinary data,
deployment, and product stack. When both are undecided, each skill owns its
layer and returns the scoped decision to design or the user.ai-agent-design for agent-subsystem behavior classification, topology,
authority, contracts, context, memory, failure policy, evaluation, and
governance. Consume its frozen handoff without calling it back recursively.research for deep due diligence on one technology, protocol, model,
paper, or disputed claim. Bring the findings back here for selection.design when the user needs cross-layer interfaces, flows, failure
handling, alternatives, rollout, and a /plan handoff. Return this skill's
decision to the active design workflow without recursively re-entering it.system-design-rules for checklist review of an existing design or ADR.Do not invent missing values. State assumptions, use ranges, and identify the unknowns that could change the recommendation.
For every non-trivial decision, read:
references/workload-contracts.md to freeze each materially different
workload.references/selection-framework.md for hard gates, evidence states,
comparison, and the decision-record format.Read only the references that match the request:
references/current-technology-baseline.md for a dated greenfield default
or current-stack review.references/architecture-patterns.md for plane and escalation boundaries.references/pytorch-training-stack.md for training, post-training,
distribution, checkpoints, lineage, and promotion.references/inference-serving.md for deployment mode, serving engines, and
workload-controlled benchmarks.references/agent-application-stack.md for agent frameworks, state,
durability, tools, and UI.references/provider-agnostic-agent-platform.md for a Pydantic AI-first
portable runtime, application-owned facade, routing, state, tools,
specialists, and provider-native escape decisions.references/model-provider-contract.md when multiple providers, routing,
evaluated fallback, self-hosting, regional policy, or a shared model platform
is in scope.references/mcp-core-conformance.md for MCP core, SDK, transport,
authorization, and conformance decisions.references/mcp-apps-tasks-gateway.md for MCP Apps, Tasks, and shared gateway
decisions.references/open-agentic-standards.md for MCP, A2A, AG-UI, ACP, Agent Skills,
AGENTS.md, AAIF, and agentgateway boundaries.references/retrieval-data.md for retrieval, RAG, vector, graph, ingestion,
and tenant authorization decisions.references/compatibility-contracts.md when a model, adapter, runtime,
checkpoint, embedding, index, tool schema, or deployment edge must be proven.references/evaluation-safety-operations.md for acceptance, threat, release,
recovery, observability, and cost gates.references/official-source-map.md before asserting a volatile vendor,
framework, protocol, SDK, or lifecycle fact.references/implementation-routing.md only when the user asks for a logical
handoff to implementation.Consume the four-class capability map frozen by ai-agent-design before
selecting products:
Deterministic code: no model judgment is needed.Direct model call: one model request can solve the task.Deterministic workflow: application code knows the steps and owns the
transitions and continuation conditions; model calls occur only at explicit
steps.Agent: the model must choose tools or actions, decide continuation or the
next step from prior results, control an unknown number of steps, or run a
model-driven observe-act-observe loop.Use the principle deterministic where possible, agentic where necessary. Multiple calls, tool availability, delegation, or persistent sessions do not alone justify agentic control flow. Neither does an unknown-count loop when application code owns its continuation condition. When latency or cost predictability is a hard requirement, prefer a direct call or deterministic workflow unless it fails a representative acceptance gate. One application may contain all four behavior classes.
For a direct stack-only request without a frozen handoff, perform only the
minimum provisional classification needed to avoid unnecessary agent
components. Mark it Provisional, and route disputed behavior, topology,
policy, or contract decisions to ai-agent-design. The originating workflow
waits for the frozen contract and then performs component selection exactly
once; ai-agent-design skips its nested stack-selection phase for this caller.
During an active ai-agent-design handoff, accept its classification as fixed
and never call it back.
Map the selected level to the smallest supported runtime. Control-flow classification and framework primitive are separate decisions:
ModelResponse control and no agent services. Use a
no-tools, single-request Pydantic AI Agent when typed output parsing,
validation retries, typed dependencies, or other agent request services are
required. The latter remains direct-call behavior because the model does not
own continuation. An intentionally provider-specific workload may instead
use the provider's official task API when portability is not a requirement.Agent by default.Verify these volatile mappings through references/official-source-map.md.
Assign exactly one status to every evaluated component:
Required: a current requirement cannot be met without it.Conditional: add it only when a named observable trigger occurs.Deferred: plausible later, but unjustified now.Rejected: fails a hard gate or is dominated by a simpler choice.Assign every material claim one evidence state:
Measured: reproduced on the target or a representative controlled setup.Officially documented: supported by a current primary source.Assumed: unverified; it cannot close a hard gate.Vendor documentation is not target measurement. A smoke test is not evidence of quality, scale, recovery, or production readiness.
Determine whether the request is a selection, review, simplification, migration,
or logical implementation handoff. Identify fixed decisions, any frozen
ai-agent-design contract, and the surrounding layers owned by app-stack or
design.
Stay read-only for advisory work. Do not treat a recommendation as authority to install packages, provision infrastructure, contact paid services, deploy, publish, or mutate production.
Create a separate contract for each materially different workload: training, online inference, batch inference, embeddings, agent execution, retrieval, synthetic data, or evaluation. Preserve supplied behavior, topology, authority, and policy decisions. Record baseline, acceptance thresholds, data, model, environment, scale, economics, lifecycle, ownership, and unknowns.
Do not combine workloads merely because they use the same model.
Map only the required planes: experience, agent application, durability, capability/interoperability, model access, model execution, data/state, and trust/operations. Start with the current system or no-new-component baseline. Apply the frozen or explicitly provisional AI behavior classification and the escalation ladders, and name the trigger for every added layer. Do not select an agent framework until direct and deterministic paths have been rejected by the workload contract.
Apply hard gates before scoring: functional fit, license and data policy,
trusted authorization, compatibility, representative quality and safety,
recovery, rollback, ownership, performance, and cost. Use current official
sources for volatile claims. Use research when a disputed or unfamiliar fact
can change the decision.
Compare candidates under equivalent models, data, prompts, hardware, concurrency, software versions, and acceptance criteria when measurement is required. Optimize cost per accepted outcome, not a vendor headline metric.
Define the narrow interface and owner for each required layer. For the portable
Python path, use Pydantic AI Model, Provider, resolved profiles, settings,
messages, and tools instead of creating a parallel framework-neutral protocol.
Add an application-owned logical runtime facade over run, stream, resume,
cancel, and normalized events. Keep it in-process until shared ownership, load
isolation, or policy centralization justifies a service.
Supplement resolved model profiles with versioned application metadata for
operational health and governance eligibility. Use a custom cross-runtime
ModelProvider contract only when non-Pydantic runtimes or shared direct-call
consumers create a proven semantic boundary that Pydantic AI cannot own.
Treat automatic fallback as an evaluated deployment route, not a retry. Verify the exact provider, endpoint, model, revision, region, adapter, protocol, and capability combination.
Choose one primary agent kernel only for capabilities already classified as
agents. Start portable Python agent workloads on Pydantic AI regardless of the
selected supported provider. Keep provider-specific model settings explicit.
Use Pydantic AI capabilities or Harness conditionally for portable specialists.
Select OpenAI Agents SDK, Anthropic-managed or native harnesses, or another
provider runtime only when a documented unique harness feature is required and
the portable path fails that gate. Never stack that native runtime inside
Pydantic AI. Only switch to selected LangChain integrations or create_agent
when maintained integrations measurably reduce total complexity. Use LangGraph
directly only for explicit graph semantics.
Select one qualified durable workflow owner around the direct, deterministic,
agentic, or mixed control flow when durable timers, long approvals, external
side effects, compensation, or cross-service recovery are required. Compare
Temporal, DBOS, Prefect, Restate, and any existing qualified owner against the
workload instead of mandating one engine.
Route coding-focused engineering work to Codex instead of treating it as a general service agent. Use the Codex SDK for coding threads and programmatic automation. Add Codex app-server only for a deep embedded client; if Codex is one specialist inside a broader agent workflow, define one explicit tool or MCP boundary rather than sharing all application tools and authority.
Use MCP for independently deployed reusable capabilities, not every function. Record MCP core revision, exact SDK and framework versions, transport, extensions, host, and gateway. Never call an MCP date-based revision "V2". Keep MCP Tasks conditional while the selected revision is Draft. Use A2A only for an independently owned remote-agent boundary.
Keep canonical conversation, run, approval, artifact, and side-effect state in application-owned stores. Treat provider sessions, caches, and compaction as optional optimizations. Put meaningful tools behind typed domain APIs or a policy gateway; Pydantic AI decorators and authenticated MCP connections are not authorization boundaries. Separate pre-execution routing from classified, replay-safe fallback and assign one retry owner per failure class.
Define quality, safety, compatibility, latency, throughput, recovery, rollback, privacy, retention, observability, and cost gates. Bind evidence to immutable model, prompt, tool, data, index, runtime, and configuration identity. Assign owners for application, model, data, security, platform, and operations.
Block the recommendation when a required gate lacks evidence and no bounded validation can close it.
Return the effective, efficient stack that satisfies the requirements, rejected
alternatives, switch conditions, unknowns, and validation plan. For an active
design or app-stack workflow, return only the scoped AI-layer decision. When
implementation is requested, emit a logical component handoff and route each
approved component to its specialist owner without assigning files or executing
the work.
For a completed decision, verify that:
ai-agent-design decisions were preserved, or a direct stack-only
classification is explicitly marked provisional;When using this skill, capture durable, reusable, public-safe learnings in the narrowest appropriate surface only when the task contract allows source edits. For read-only/report-only work, or when a learning is not public-safe, evidence-backed, in scope, or free of unverified/vendor-specific claims, do not edit skill sources; report that it was skipped. Do not capture secrets, private URLs, customer data, raw logs, or one-off local state.
Return:
Frozen or
Provisional;README.md (opens in a new tab)agents/openai.yaml (opens in a new tab)evals/quality-cases.md (opens in a new tab)evals/trigger-prompts.csv (opens in a new tab)references/agent-application-stack.md (opens in a new tab)references/architecture-patterns.md (opens in a new tab)references/compatibility-contracts.md (opens in a new tab)references/current-technology-baseline.md (opens in a new tab)references/evaluation-safety-operations.md (opens in a new tab)references/implementation-routing.md (opens in a new tab)references/inference-serving.md (opens in a new tab)references/mcp-apps-tasks-gateway.md (opens in a new tab)references/mcp-core-conformance.md (opens in a new tab)references/model-provider-contract.md (opens in a new tab)references/official-source-map.md (opens in a new tab)references/open-agentic-standards.md (opens in a new tab)references/provider-agnostic-agent-platform.md (opens in a new tab)references/pytorch-training-stack.md (opens in a new tab)references/retrieval-data.md (opens in a new tab)references/selection-framework.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
OpenAI, Anthropic, Langchain, LlamaIndex, Hugging Face, Ollama, PyTorch, TensorFlow
ai-architecture, model-selection, inference, retrieval, evals, ai-safety, agent-runtime
Other plugins' skills for the same job
npx claudepluginhub nebius/nebius-ps-services --plugin skills75 skills in this plugin
/agent-nebius-auth-diagnoseRead-only diagnosis for current-session Nebius project discovery, agent authentication, quota reads, profiles, selectors, or auth-hook failures. Use when auth is missing/blocked; never mutate auth or IAM./agent-nebius-auth-setupUse only when explicitly invoked to bootstrap or repair current-project Codex Agent Nebius auth: account/tenant access, credentials/profile, repair lease, or separately requested auth hooks./ai-agent-designDesign provider-neutral production AI agent subsystems: behavior and topology, contracts, tools, context, memory, authority, durability, security, evals, and operations. Use ai-stack when AI technology selection remains, design/app-stack for whole products, and implementation skills for code./alignAlign a project after changes across code, wiring, tests, CI, CLI/help, config, docs, workflows, and skills, with focused quality gates. Use align-skill for skill-folder-only work./align-skillAlign existing/scaffolded skills for Agent Skills, Codex, Claude Code, and npx skills installation while preserving functionality, native controls, resources, and evals. Accept local or report-only GitHub sources; use skill-creator for new scaffolds and align for projects./apply-securityReview software, infrastructure, CI/CD, containers, IaC, or design for security risks involving secrets, IAM/auth, exposure, inputs, dependencies, or supply chain. Advise implicitly; patch only when authorized.