llamero: Skill for Claude Code

.claude/skills/cloud-providers/SKILL.md

cloud-providers is a skill for Claude Code from crimson-knight/llamero. It costs 79 tokens per session (1,301 once invoked), scanned A, original, MIT.

A Crystal programming skill for calling cloud AI services through llamero, including OpenAI, Anthropic, Groq, and OpenRouter. It supports chat, streaming responses, structured JSON, embeddings, and provider failover.

In plain words
What is it for?
Use it to add AI chat, streamed output, typed JSON responses, embeddings, and automatic fallback between supported services in Crystal applications.
Why use it?
It lets one application interface handle several AI providers and retry or switch providers when one is unavailable.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is crimson-knight/llamero's own configuration. It tells Claude Code how to work on llamero 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 llamero configures →

Reuse

Borrowing it

Nothing to install: this file belongs to crimson-knight/llamero. 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/crimson-knight/llamero/main/.claude/skills/cloud-providers/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/crimson-knight/llamero

Made for: Claude Code.

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 cloud-providers

README.md
[![agentmods](https://agentmods.dev/badge/skills/crimson-knight/llamero/cloud-providers/github.svg)](https://agentmods.dev/skills/crimson-knight/llamero/cloud-providers)
Your own site
<a href="https://agentmods.dev/skills/crimson-knight/llamero/cloud-providers"><img src="https://agentmods.dev/badge/skills/crimson-knight/llamero/cloud-providers/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 cloud-providers

Your own site · 80×15
<a href="https://agentmods.dev/skills/crimson-knight/llamero/cloud-providers"><img src="https://agentmods.dev/badge/skills/crimson-knight/llamero/cloud-providers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,301 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00079 $0.01301
Opus 5.5 $0.00032 $0.00520
Sonnet 5.5 $0.00016 $0.00260
Haiku 4.5 $0.00008 $0.00130

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

Security

Grade A, and why

cloud-providers 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 2mo 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.

.claude/skills/cloud-providers/SKILL.md · 158 lines

How it starts

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

Cloud provider clients with llamero

llamero gives Crystal apps one client API over OpenAI, Anthropic, Groq, and OpenRouter, with automatic retry and failover. Define one subclass of Llamero::Client per app and use it everywhere.

Llamero::Client is abstract — you cannot Llamero::Client.new. Subclass it, or use a concrete provider client directly (Llamero::OpenAIClient.new).

Setup

API keys come from environment variables (or the project config file):

export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-ant-..."
export GROQ_API_KEY="gsk_..."
export OPENROUTER_API_KEY="sk-or-..."

Only the providers you actually list need keys.

Storage root

If the same app also uses llamero native models/adapters/audio, set the app-owned storage root at boot before creating runtimes:

Llamero.storage_root = Path.home.join(".scribe")

LLAMERO_HOME=/path/to/root is the env alternative; programmatic wins.

Recipe: chat with failover (complete program)

require "llamero"

class MyAIClient < Llamero::Client
  def initialize
    super(primary: :openai, fallbacks: [:anthropic, :groq])
  end
end

client = MyAIClient.new

response = client.chat([
  Llamero::Message.user("What is the capital of France?"),
])
puts response.content       # "The capital of France is Paris."
puts response.provider_used # :openai (or a fallback if openai failed)

Provider symbols: :openai, :anthropic, :groq, :openrouter. Optional named args on chat: model : String?, temperature : Float32?, max_tokens : Int32?.

Recipe: structured JSON output into a Crystal object

class PersonInfo < Llamero::BaseGrammar
  property name : String = ""
  property age : Int32 = 0
  property occupation : String = ""
end

response = client.chat_structured(
  [Llamero::Message.user("Generate a random person's info")],
  PersonInfo
)
person = response.parsed.not_nil!
puts "#{person.name}, #{person.age}, #{person.occupation}"

Schema classes inherit Llamero::BaseGrammar and every property needs a default value. Failover automatically skips providers that lack structured output support.

Read the full file on GitHub · 158 lines

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. 2mo ago First seen · 158 lines · 79 tokens per session scan A fc6a05fe8611

Subscribe to this mod's changes

cloud-providers is a skill published in the GitHub repository crimson-knight/llamero (23 stars, last pushed 27d ago), licensed MIT. It adds 79 tokens to every session and 1,301 once invoked, about $0.0003 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

cloud-providers compared with skills from other repositories

cloud-providers next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-providerscrimson-knight/llameroSkill2327d agoMITA79Claude Code
agent-platform-model-registrygoogle/skillsSkill22kyesterdayApache-2.0A60Claude Code, Codex
foundry-config-setupmicrosoft/agent-frameworkSkill15kyesterdayMITA65Claude Code, Codex
google-cloud-solution-agentic-analytics-spark-knowledge-cataloggoogle/skillsSkill22kyesterdayApache-2.0A132Claude Code, Codex
training-checkwanshuiyin/Auto-claude-code-research-in-sleepSkill19k3d agoMITA35Claude Code
nemo-automodel-launcher-configNVIDIA/skillsSkill3.9kyesterdayApache-2.0A30Claude Code
finetuningmicrosoft/skillsSkill3.2kyesterdayMITA132Claude Code