Croft Fix Sentry Bug PR
Turn a production bug report into a reviewed draft PR by composing focused skills instead of reimplementing their workflows.
Read bug PR workflow for detailed investigation, implementation, PR, and review rules.
Skills To Compose
$read-sentry-bug-reportsfor issue evidence, impact, and likely cause.$read-croft-prod-dbonly when production data is needed to validate or narrow the diagnosis.$implement-in-logical-commitsfor intentional commit slices.$draft-pr-for-branchto open or refresh the draft PR.$review-branch-until-cleanafter the draft PR exists.
Preconditions
- Default to the current branch unless the user asks otherwise.
- Require a clear branch scope before commit-producing work.
- Stop for mixed unrelated changes, missing Sentry access, unavailable required replica access, or materially uncertain root cause.
Workflow
- Read the Sentry issue and separate facts from inference.
- Inspect implicated code, relevant models, and
db/schema.rbbefore changing data-sensitive code. - Use production read-only data only for focused confirmation questions, and redact sensitive data in the final explanation.
- Form a short diagnosis: what fails, why, the minimal fix, and what verification proves it.
- Share a concise implementation plan before substantial edits.
- Implement through
$implement-in-logical-commits, adding targeted regression coverage when testable. - Open a draft PR through
$draft-pr-for-branch. - Run
$review-branch-until-clean; if it changes the branch materially, refresh PR metadata through$draft-pr-for-branch.
Output
Return the bug summary, root cause, commit list, checks run, PR URL, and residual risk. Do not claim the issue is fully fixed while review findings or unverified risk remain.