원클릭으로
ocm-prereqs-drift-check
[Workflow] Check OCM prerequisites stack drift (v2.3)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
[Workflow] Check OCM prerequisites stack drift (v2.3)
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | ocm-prereqs-drift-check |
| description | [Workflow] Check OCM prerequisites stack drift (v2.3) |
| source_type | workflow |
| metadata | {"last_updated":"2026-02-23T00:00:00.000Z","owner":"ocm"} |
You must use this workflow to check prerequisites stack drift (version alignment, IAM/policy drift, and RMS/Terraform health) without duplicating the versioned prerequisites documentation.
Required:
v2.3Evidence path (relative): where you will write local-only evidence (example: .generated/evidence/prereqs-drift/<YYYY-MM-DD>/)
Optional (recommended):
<start>..<end> for “last apply”/job history reviewYou must follow:
skills/ocm-dev/execution-baselines-detail.mdskills/ocm-dev/access-warmups-detail.mdIf you will use the OCI CLI, you must run the OCI CLI warmup first:
skills/ocm-dev/access-warmups-detail.md (OCI CLI section)Verify MCP access for each tool surface used in this workflow. Make one read-only call per surface. If any auth check fails, stop and report before proceeding.
Declare execution mode and create an evidence folder (local-only).
Example (portable):
DATE="$(date -u +%Y-%m-%d)"
EVIDENCE_DIR=".generated/evidence/prereqs-drift/${DATE}"
mkdir -p "${EVIDENCE_DIR}" "${EVIDENCE_DIR}/rms" "${EVIDENCE_DIR}/iam" "${EVIDENCE_DIR}/diffs"
Pin the expected prerequisites spec (do not copy it).
${EVIDENCE_DIR}/expected.md, record:
v2.3)Locate the RMS stack and capture stack metadata (sanitized).
If using OCI CLI, store raw JSON locally, and sanitize before copying snippets into any report:
# Set STACK_ID from a list/search step (do not paste IDs into committed files).
oci resource-manager stack get \
--stack-id "${STACK_ID}" \
--output json > "${EVIDENCE_DIR}/rms/stack.get.json"
Version alignment check (v2.3).
${EVIDENCE_DIR}/diffs/version.md.Notes:
IAM drift check: policies, dynamic groups, and groups (read-only).
${EVIDENCE_DIR}/expected.md.Minimum checks (you must record pass/fail for each):
Example export shape (adjust scope to your tenancy conventions):
# Store raw JSON locally.
oci iam policy list --all \
--compartment-id "${ROOT_COMPARTMENT_ID}" \
--output json > "${EVIDENCE_DIR}/iam/policies.list.json"
# Create diff-friendly extracts.
jq -r '.data[] | .name' "${EVIDENCE_DIR}/iam/policies.list.json" | sort \
> "${EVIDENCE_DIR}/diffs/policy.names.txt"
Sanitization requirement:
RMS validation (read-only): last job health and state sanity.
Example:
oci resource-manager job list --all \
--stack-id "${STACK_ID}" \
--output json > "${EVIDENCE_DIR}/rms/jobs.list.json"
MUTATION GATE: optional drift detection / plan job (stop + confirm). Running a Terraform plan via RMS does not apply changes, but it does create a new RMS job and may write artifacts.
skills/ocm-dev/execution-baselines-detail.mdYour confirmation request must include:
If approved, run the plan via the Resource Manager Console (preferred) or OCI CLI, then store the plan artifacts under ${EVIDENCE_DIR}/rms/.
Write a drift report (single artifact).
${EVIDENCE_DIR}/prereqs-drift-report.md with:
You must produce these local-only artifacts under your evidence path:
expected.mddiffs/version.mdprereqs-drift-report.mdPass criteria:
skills/ocm-dev/execution-baselines-detail.md.${EVIDENCE_DIR}/prereqs-drift-report.md.Cannot locate the RMS stack unambiguously.
OCI CLI returns 401/403 or prompts for auth repeatedly.
skills/ocm-dev/access-warmups-detail.md (OCI CLI section) again and confirm you are using the intended profile/region.Evidence contains sensitive identifiers.
Governance (read-only by default; mutation gate):
skills/ocm-dev/execution-baselines-detail.mdskills/ocm-dev/access-warmups-detail.mdWarmup (OCI CLI):
skills/ocm-dev/access-warmups-detail.md (OCI CLI section)Versioned prerequisites docs (do not duplicate; compare against these):
Read, create, update, inspect, and reply to Bitbucket pull requests or commit diffs using Bitbucket URLs plus environment-backed auth. Use when Codex needs Bitbucket API operations for PR metadata, compare or commit evidence, PR discussion threads, PR creation/update, reviewer preservation, or prefixed replies. This skill does not perform full code-change review or own code remediation.
Review change-management tickets such as Jira CHANGE or CM requests for deployment readiness, scope drift, documentation quality, and runbook adherence. Use when Codex needs to assess implementation steps, validation evidence, rollback clarity, Shepherd release scope and plan diffs, regional outliers, manual data-fix or host-maintenance procedures, team-specific runbook alignment, and commit or artifact-version alignment, and optionally write findings back to the ticket.
Bootstrap a local Codex setup from this shared starter repo. Use when an engineer needs an interactive onboarding flow that asks for local paths, required MCP settings, and only the overrides that differ from the shared Enterprise ChatGPT defaults, then generates or repairs a real local Codex config and verifies that shared path placeholders were resolved.
Use when onboarding OCI users to available packs, registry entries, PromptLib spaces, ORA skills, Skills Hub / AI Skills Registry, Codex Enterprise apps/connectors, or non-pack content sources after installing OCI starter packs.
Inspect DevOps MFO or region-build flock dependency status for a specific region, project, flock, and phonebookId. Use when Codex needs to determine which region-build phases are satisfied, unsatisfied, or optional; identify whether a flock has published the required capabilities; recursively trace missing capability producers; discover related infrastructure or application flocks from the dependency graph; or explain which upstream project or flock is blocking publication.
Preflights local ossh and oci-ops access, reads a Jira ticket to identify a target hostname and region, validates OCI authentication, resolves the tenancy OCID, and returns the appropriate oci-ops SSH connection command. Use when a user asks to SSH to an OCI host from a Jira ticket, set up ossh or oci-ops access, resolve a host region or tenancy, or needs an oci-ops SSH command.