Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

genai-services

БесплатноБез исполняемых скриптовНе проверен

Use when implementing OCI GenAI inference APIs, troubleshooting rate limits or token errors, optimizing GenAI costs, or handling sensitive data (PHI/PII) in…

acedergrenот acedergren★ 22 звезды на GitHub

Об этом скилле

OCI Generative AI Services - Expert Knowledge

🏗️ Use OCI Landing Zone Terraform Modules

Don't reinvent the wheel. Use oracle-terraform-modules/landing-zone for GenAI infrastructure.

Landing Zone solves:

  • ❌ Bad Practice #1: Generic compartments (Landing Zone creates AI/ML workload compartments)
  • ❌ Bad Practice #4: Poor segmentation (Landing Zone isolates GenAI endpoints in private subnets)
  • ❌ Bad Practice #10: No monitoring (Landing Zone configures GenAI usage alarms)

This skill provides: GenAI cost optimization, rate limits, PHI/PII security, and troubleshooting for GenAI deployed WITHIN a Landing Zone.


⚠️ OCI CLI/API Knowledge Gap

You don't know OCI CLI commands or OCI API structure.

Your training data has limited and outdated knowledge of:

  • OCI CLI syntax and parameters (updates monthly)
  • OCI GenAI API endpoints and request/response formats
  • GenAI service CLI operations (oci generative-ai)
  • Available models, token limits, and pricing (changes frequently)
  • Latest GenAI features (Agents, RAG) and API changes

When OCI operations are needed:

  1. Use exact CLI commands from this skill's references
  2. Do NOT guess OCI CLI syntax or parameters
  3. Do NOT assume model availability or pricing
  4. Load reference files for detailed GenAI API documentation

What you DO know:

  • General LLM concepts and prompting patterns
  • Token estimation and context management
  • API integration patterns

This skill bridges the gap by providing current OCI GenAI-specific patterns and gotchas.


You are an OCI GenAI expert. This skill provides knowledge Claude lacks: cost optimization specifics, token management, rate limit handling, PHI/PII security, response validation, and model selection trade-offs.

NEVER Do This

❌ NEVER send PHI/PII identifiers to GenAI APIs (HIPAA/GDPR violation)

# WRONG - patient identifiers sent to external service
prompt = f"Transcribe note for patient {patient_name}, MRN {mrn}, SSN {ssn}: {note}"

# RIGHT - redact identifiers
prompt = f"Transcribe this medical note: {redacted_note}"
# Keep mapping: temp_id → real_id in secure database, not in prompts

Why critical: GenAI service logs may retain data, violates healthcare regulations

❌ NEVER trust GenAI output without validation (hallucination risk)

# WRONG - use response directly in critical systems
diagnosis = genai_response.text
db.execute("UPDATE patients SET diagnosis = ?", diagnosis)

# RIGHT - validate structure and flag for human review
response = genai_response.text
if validate_medical_format(response):
    db.execute("UPDATE patients SET ai_suggested_diagnosis = ?, status = 'PENDING_REVIEW'", response)

Hallucination rate: 5-15% for factual queries, higher for medical/legal domains

❌ NEVER ignore token limits

  • command-r-plus: 128k context window (input + output)
  • command-r: 4k context (much cheaper but limited)
  • Exceeding limit: Request truncated silently or fails with 400 error

❌ NEVER call GenAI without rate limit handling

# WRONG - no retry logic, fails on rate limit
response = genai_client.chat(request)

# RIGHT - exponential backoff
def call_with_retry(func, max_retries=5):
    for attempt in range(max_retries):
        try:
            return func()
        except oci.exceptions.ServiceError as e:
            if e.status == 429 and attempt < max_retries - 1:
                wait = (2 ** attempt) + random.uniform(0, 1)
                logger.warning(f"Rate limited, retry in {wait:.2f}s")
                time.sleep(wait)
            else:
                raise

❌ NEVER cache responses without consent (data privacy)

  • Caching saves costs BUT may violate privacy policies
  • Get explicit user consent before caching medical/personal data
  • Cache anonymized data only

❌ NEVER use GenAI for deterministic tasks

  • Wrong: "Extract invoice total from OCR text" (use regex/structured parsing)
  • Wrong: "Validate email format" (use validation library)
  • Right: "Summarize patient history", "Generate report narrative" (creative tasks)

Model Selection: Cost vs Performance

Model Context Cost (per 1M tokens) Best For Avoid For
command-r-plus 128k ~$15 input, $75 output Complex reasoning, long documents Simple tasks (expensive)
command-r 4k ~$1.50 input, $7.50 output Chat, short prompts, high volume Long documents, RAG
embed-english-v3 N/A ~$0.10 per 1M Semantic search, clustering Text generation
llama-2-70b 4k ~$2 input, $10 output Open weights, cost-effective Production (limited support)

Cost optimization strategy:

  1. Use embeddings for search first (1000x cheaper than generation)
  2. Cache responses for repeated queries (with consent)
  3. Use command-r for simple tasks, command-r-plus only when nee
Полный SKILL.md на GitHub

Установить genai-services в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.jsonreferences/oci-genai-reference.md

FAQ

Что делает скилл genai-services?

Use when implementing OCI GenAI inference APIs, troubleshooting rate limits or token errors, optimizing GenAI costs, or handling sensitive data (PHI/PII) in prompts. Covers model selection, cost calculations, token management, response validation, and healthcare/compliance considerations.

Как установить скилл genai-services?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл genai-services запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить genai-services с