Index of every page on this site: llms.txt
All skills
jeremylongshore avatar

/oraclecloud-sdk-patterns

@0d57af8
Run it yourself

Production-grade OCI SDK patterns for client lifecycle, retry logic, and memory leak avoidance. Use when building long-running OCI services, fixing memory leaks with Instance Principal auth, or implementing retry/backoff. Trigger with "oci sdk patterns", "oci retry", "oci memory leak", "oraclecloud client lifecycle".

Use this Skill: https://skilld.dev/gh/jeremylongshore/tons-of-skills-marketplace/oraclecloud-sdk-patterns

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesone-pager.md

≈497 tokens on demand. Your agent reads this file only when SKILL.md points to it.

oraclecloud-sdk-patterns — One-Pager

Production-grade OCI SDK patterns for client lifecycle, retry logic, and memory leak avoidance.

The Problem

OCI has SDKs in 6 languages, each with different exception types, timeout behavior, and a known memory leak in Instance Principal authentication (~10 MiB/hour if clients are recreated per request). The Python SDK has no connection timeout by default — a hung connection blocks forever. The built-in retry strategy is opt-in, and 429 rate limit errors do not include a Retry-After header, so you must implement your own backoff. Pagination is manual unless you know about the underdocumented oci.pagination helpers.

The Solution

This skill provides correct client lifecycle patterns that avoid the Instance Principal memory leak: a thread-safe singleton that creates clients once and reuses them. It covers explicit timeout configuration per service (Compute: 60s, Object Storage: 300s), exponential backoff with decorrelated jitter for rate limits, automatic and lazy pagination helpers, and composite operations that wait for resource state transitions.

Who / What / When

Aspect Details
Who Backend developers building long-running services or automation on OCI
What Thread-safe singleton client, retry strategies, timeout config, pagination, and composite operations
When Moving from prototype to production, debugging memory leaks, or handling intermittent 429/500 errors

Key Features

  1. Singleton pattern — Thread-safe client reuse that prevents the Instance Principal memory leak
  2. Timeout configuration — Explicit connect + read timeouts per service client
  3. Retry strategies — Built-in DEFAULT_RETRY_STRATEGY and custom exponential backoff with jitter
  4. Pagination helpers — list_call_get_all_results and lazy generator for memory-efficient iteration

Quick Start

See SKILL.md for full instructions.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill provides production-grade Python patterns for the Oracle Cloud Infrastructure (OCI) SDK, covering singleton client lifecycle management to prevent memory leaks, custom retry logic, and explicit timeout configurations. The skill is safe for use and follows OCI development best practices.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 0d57af8. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 months ago
What it can do
Reads files Edits files Runs commands
version
1.8.0
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
[
  "saas",
  "oraclecloud",
  "oci"
]
All 5 allowed tools
ReadWriteEditBash(pip:*)Grep
Other metadata
compatibility
Designed for Claude Code

README badge

README badge for jeremylongshore/tons-of-skills-marketplace/oraclecloud-sdk-patterns