Dependabot Remediation Skill
When to Use This Skill
Use this skill when a repository has open Dependabot security alerts and you need a deterministic remediation flow with clear evidence and rollback paths.
Use it for:
- Python backend remediation waves (for example
uv+pyproject.tomlrepos). - JavaScript/TypeScript frontend remediation waves (
npm,yarn, orpnpm). - Mixed remediation periods where backend and frontend flows must stay explicit and separate.
Modes
backend <triage|execute-wave <N>|release>:triage: Review/createdependabot.yml, then build backend alert inventory and wave plan.execute-wave <N>: Execute one backend wave with strict gates.release: Validate closure and prepare backend remediation release summary.
frontend <triage|execute|release>:triage: Review/createdependabot.yml, then build frontend PR/alert triage matrix.execute: Execute frontend close/recreate/merge/manual flow.release: Create frontend release summary for remediation changes.
Shared Invariants
- Query live GitHub Dependabot alerts before proposing changes.
- Do not claim remediation success until post-merge alert re-check passes.
- Keep wave boundaries atomic and reversible.
- Report blockers explicitly with severity tags.
- If checks were not run, state that explicitly.
Severity tags:
[BLOCKING]cannot proceed safely[SHOULD_FIX]high-value correction before merge[NIT]optional improvement
Shared Baseline
Before backend or frontend execution:
git status -sb
git branch --show-current
gh auth status
If GitHub auth is missing or token lacks alert permissions, stop with [BLOCKING].
Dependabot Config Gate (runs during triage)
Before backend/frontend alert triage, validate repository configuration:
- Detect repo + default branch via
gh repo view. - Check
.github/dependabot.yml:- If missing: propose minimal config using
references/dependabot-yml-minimal-template.md. - If
--write-configis set: create.github/dependabot.yml.
- If missing: propose minimal config using
- If present: review with
references/dependabot-yml-review-checklist.md. - Surface
[BLOCKING]config gaps that invalidate remediation claims.
If --config-only is set, stop after config create/review + CI policy advice.
Backend Workflow
1. Triage (backend triage)
Goal: produce deduplicated advisory inventory plus executable waves.
Required workflow:
- Run Dependabot config gate (review existing config or scaffold minimal config).
- Fetch all open Dependabot alerts with pagination.
- Filter to backend scope (backend ecosystems and/or backend manifest paths).
- Deduplicate by
package + GHSA + first_patched_version. - Classify each advisory as direct vs transitive.
- Trace transitive root constraints before proposing targets.
- Validate proposed upgrades via resolver checks before finalizing waves.
Primary references:
references/backend-github-dependabot-cli.mdreferences/backend-wave-plan-template.mdreferences/dependabot-yml-minimal-template.mdreferences/dependabot-yml-review-checklist.mdreferences/dependency-review-ci-policy-template.md
2. Execute One Wave (backend execute-wave <N>)
Execution rules:
- Only execute the requested wave.
- Do not silently include packages from other waves.
- Keep lock/export artifacts consistent with repository policy.
Backend validation gates must include:
- Lock consistency (
uv lock --checkor repo equivalent) - Lint gates (repo wrappers if present)
- Active Python type gate with precedence:
tyfirstpyrightsecondmypythird
- Targeted tests for touched dependency surfaces
If ty is configured ([tool.ty], ty.toml, .bin/ty, or CI usage), treat it
as mandatory and blocking.
3. Release / Closeout (backend release)
After waves merge:
- Re-query open Dependabot alerts and re-apply backend scope filter.
- Report residual backend advisories by severity/package.
- Summarize merged wave PRs and validation status.
- Provide additional-wave plan for any residual backend alerts.
Frontend Workflow
1. Triage (frontend triage)
Goal: classify open bot PRs and alerts into actionable lanes.
Always scope PR inventory to the frontend base branch (auto-detect from
gh repo view ... defaultBranchRef unless overridden) so backend Dependabot
PRs are not mixed into the matrix.
Required workflow:
- Run Dependabot config gate (review existing config or scaffold minimal config).
- Build PR and alert inventory scoped to frontend base branch.
- Classify each PR as
actionable,obsolete, orstale-but-recreate. - Identify alert gaps with no PR coverage and mark manual remediation candidates.
Classification classes:
actionableobsoletestale-but-recreate
References:
references/frontend-triage-matrix.mdreferences/dependabot-yml-minimal-template.mdreferences/dependabot-yml-review-checklist.mdreferences/dependency-review-ci-policy-template.md
2. Execute (frontend execute)
Execution policy:
- Close obsolete PRs with explicit rationale comments.
- Recreate stale-but-relevant PRs using
@dependabot recreate. - Merge actionable PRs in security-first order once checks pass.
- If alerts remain without bot PR coverage, run manual remediation branch flow.
- Re-check open alerts and report residual risk.
References:
references/frontend-triage-matrix.mdreferences/frontend-manual-remediation-playbook.md
3. Release (frontend release)
Generate remediation release summary for integration branch -> production branch:
- Included remediation PRs
- Diff scope and validation context
- Alert status at release-cut time
Reference:
references/frontend-release-pr-template.md
Output Shape
Backend Modes Output
Always return:
Current StateDependabot Config Status(existing/reviewed or created/proposed)Backend Scope Filter(ecosystem/path rules used)Deduplicated Alert InventoryRoot-Cause Dependency PathsProposed WavesorWave Execution SummaryValidation GatesRisks and RollbackNext Actions
Frontend Modes Output
Always return:
InventoryDependabot Config Status(existing/reviewed or created/proposed)Triage MatrixExecution SummaryRisk SnapshotNext Actions
Guardrails
- Never merge backend and frontend remediation into the same wave branch unless explicitly requested.
- Never force push remediation branches unless explicitly requested.
- Never include unrelated file changes in manual remediation PRs.
- Never close high/medium alert PR coverage without replacement path.
- Never claim sustainable remediation unless
dependabot.ymlis reviewed or created.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.