Dependabot
Triage and resolve Dependabot security alerts across Scientist.com repos. Covers full lifecycle — inventory, changelog review, spec hardening, batched upgrades, CI fix patterns, and PR hygiene.From its SKILL.md
npx -y skills add scientist-hq/skills --skill dependabotAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.4 KB, as published. Nobody here has run it
Dependabot Security Alert Remediation
Load this file first, then load workflows and references as needed.
When to Use
- Dependabot alerts need triaging or fixing
- Security PRs from Dependabot need review/merge
- Dependency upgrades need planning across repos
- CI is failing on security upgrade PRs
Workflow
| ID | Step | File |
|---|---|---|
| W-01 | Full inventory of open alerts | workflows/W-01-inventory.md |
| W-02 | Review existing Dependabot PRs | workflows/W-02-review-existing-prs.md |
| W-03 | Batch upgrades by risk and coupling | workflows/W-03-batch-strategy.md |
| W-04 | Per-batch execution (changelog → specs → upgrade → verify) | workflows/W-04-batch-execution.md |
| W-05 | Fix common CI failures | workflows/W-05-ci-fix-patterns.md |
References
| File | Content |
|---|---|
| references/api-patterns.md | gh API queries, jq filters, pagination |
| references/bootboot.md | Dual-lockfile upgrades with bootboot (rx-specific) |
| references/linked-issue-exemption.md | Fix linked-issue CI checks for Dependabot branches |
| references/rails-72-upgrade.md | Rails 7.1→7.2 specific CI failures and fixes |
| references/major-version-blockers.md | Companion gem ceiling detection and resolution |
| references/viewcomponent-4.md | ViewComponent 3→4 breaking changes and audit checklist |
Key Principles
- Read the changelog BEFORE upgrading. Compare breaking changes against actual codebase usage. A "minor" bump can break everything if you use a deprecated API.
- Harden specs BEFORE upgrading. Write tests on the CURRENT version that exercise the dependency's behavior. These are your canary — if they pass before and after, the upgrade is safe.
- ⚠️ One concern per PR — strict isolation. Each PR addresses exactly ONE dependency or tightly-coupled group. A Rails PR must not also bump Devise. If a major bump is forced by another upgrade, split into two PRs or flag it loudly. Use
bundle update --conservativereligiously. See W-03 for full rules. - Batch by coupling, not by severity. Rails gems go together. Nokogiri + rexml go together. Don't mix framework upgrades with unrelated patches.
- Low-risk first. Merge existing Dependabot PRs (free wins) → dismiss already-patched → patch bumps → minor bumps → major bumps.
Scientist-Specific Context
- rx is a monorepo — git root ≠ Rails app root. The Rails app is at
rx/within the repo. Run git commands from repo root, bundle commands fromrx/. - rx is on Rails 8.0.x. benchmate is on Rails 7.1→7.2 upgrade path.
- rx uses bootboot for dual-lockfile builds. Every gem upgrade must update BOTH
Gemfile.lockANDGemfile_next.lock. See references/bootboot.md. - Both repos use
hattan/[email protected]for linked-issue checks — Dependabot branches need exemption (see references/linked-issue-exemption.md). - Both repos use
brakemanwith--ensure-no-obsolete-ignore-entries— stale ignores fail CI. - Private gems are hosted on
rubygems.pkg.github.com/scientist-hq— bundle needs GitHub auth. .tool-versionsspecifies Ruby via mise. On machines with system Ruby 2.6, runeval "$(mise env)"before any bundle commands.