acedergren/oci-agent-skills
Overview
This skill is an expert guide for managing Oracle Cloud Infrastructure (OCI) compute instances. It helps with launching instances, resolving out-of-capacity or boot failures, optimizing compute costs, and handling instance lifecycle and security best practices. Use it when you need practical, OCI-specific operational guidance and decision flows.
How this skill works
The skill codifies anti-patterns, a capacity error decision tree, shape selection guidance, cost calculations, instance principal setup, and OCI-specific gotchas. It directs operators to check service limits first, choose appropriate shapes (Flex vs fixed), and use secure access patterns like instance principals and bastions. For CLI/API actions, it advises loading exact command references rather than guessing syntax.
When to use it
- When launching production or test instances and selecting shapes
- When you encounter “out of host capacity” or quota-related failures
- To optimize compute cost and right-size instances
- During boot failure or access troubleshooting (serial console use rules)
- When implementing instance-to-OCI authentication (instance principals)
Best practices
- Always check OCI service limits before attempting launches; many capacity errors are quota issues
- Prefer AD-agnostic templates and use fault domains instead of hardcoding Availability Domains
- Use flexible shapes (Flex) for cost/performance tuning; compare Flex pricing versus fixed shapes
- Never enable public IPs for production instances; use bastion or private endpoints
- Use instance principals for API access instead of embedding user credentials; employ dynamic groups and least-privilege policies
Example use cases
- Troubleshoot an out-of-capacity error: run the limits resource-availability check, try different ADs, then switch shape family or create a capacity reservation
- Right-size an application: start small (e.g., 2 OCPUs) and scale based on metrics; compute monthly cost via (OCPUs×$/OCPU + GB×$/GB)×730
- Recover a failed boot: use serial console only as a temporary troubleshooting tool and remove connections immediately after
- Migrate cost-sensitive workloads to ARM (A1.Flex) after compatibility testing to reduce OCPU costs
- Implement secure service calls from instances using dynamic groups and instance principal signers
FAQ
Check service limits for the shape in that compartment and AD with oci limits resource-availability get; 87% of cases are quota-related, not physical capacity.
When is it safe to use the serial console?
Use the console only for short-term boot troubleshooting when SSH fails; it creates audit and security risks and must be deleted immediately after use.
9 skills
This skill helps you manage OCI compute lifecycles, optimize costs, and troubleshoot capacity with anti-patterns and CLI guidance.
This skill helps you manage OCI Terraform IaC effectively by enforcing landing zone usage, state management, and error troubleshooting.
This skill helps you manage Oracle Autonomous Database on OCI, diagnose performance, control costs, and enforce HA/DR best practices.
This skill helps you optimize Autonomous Databases on OCI by troubleshooting connections, managing PDBs, cloning, and cost-aware operations.
This skill helps you optimize OCI costs by identifying hidden traps, calculating exact savings, and maximizing Universal Credits and free tier usage.
This skill helps you implement OCI Events-driven automation safely by guiding CloudEvents patterns, filters, DLQ, and anti-patterns.
This skill provides expert OCI networking guidance, helping design VCNs, optimize routing, and enforce security with best-practice patterns.
This skill helps you design OCI IAM policies, troubleshoot access issues, and configure dynamic groups with landing zone guidance for secure, scalable access.
This skill helps you implement OCI GenAI inference, manage tokens and rate limits, and ensure PHI/PII safety with compliant validation.