What problem does it solve?
When a Pulumi stack shows unapplied changes or drift, it is hard to know which merged pull requests caused each pending resource change. This Skill runs a read-only preview of a Marin infra/pulumi stack and attributes every pending change to the specific PR that introduced it.
Core Features & Use Cases
- Read-Only Preview: Runs
pulumi preview --diff from a clean checkout of origin/main without ever mutating stack state.
- Deployed Baseline Detection: Reads Pulumi stack history to find the last successful update with a clean Git checkout, establishing an exact commit baseline.
- PR Attribution: Matches each previewed resource change to commits and merged pull requests via the GitHub API, flagging unmatched changes as live drift.
- Use Case: An on-call engineer sees unexpected drift on the production GKE stack and needs to know which merged PRs explain the pending NodePool replacement before approving any deployment.
Quick Start
Use the trace-pulumi-diff skill to preview the production stack and tell me which pull requests explain each pending change.