Source profileQuality 86/100Review permissions

lightdash/lightdash/.claude/skills/fix-vulnerability/SKILL.md

fix-vulnerability

Fix a Snyk vulnerability PR by regenerating the pnpm lockfile, checking changelogs for breaking changes, and posting findings as a PR comment. Use when asked to fix a vulnerability PR or handle a Snyk dependency upgrade.

Source repository stars
6,010
Declared platforms
0
Static risk flags
2
Last source update
2026-08-04
Source checked
2026-08-04

Decision brief

What it does—and where it fits

Process a Snyk (or similar) dependency upgrade PR: rename the PR, regenerate the lockfile, analyze changelogs for breaking changes, and post a summary comment.

Best for

  • Use when asked to fix a vulnerability PR or handle a Snyk dependency upgrade.

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/lightdash/lightdash --skill ".claude/skills/fix-vulnerability"
Safe inspection promptEditorial

Inspect the Agent Skill "fix-vulnerability" from https://github.com/lightdash/lightdash/blob/086e216d65653d5fb1898d2c4cafff4ec15e3ad4/.claude/skills/fix-vulnerability/SKILL.md at commit 086e216d65653d5fb1898d2c4cafff4ec15e3ad4. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    Step 1: Fetch PR details

    Extract the PR number from the argument and fetch the PR diff to understand what changed:

    Extract the PR number from the argument and fetch the PR diff to understand what changed:
  2. 02

    Step 2: Rename the PR

    Replace the Snyk-generated title with a descriptive one following conventional commit format:

    Replace the Snyk-generated title with a descriptive one following conventional commit format:Also update the PR description to append test trigger keywords so all test suites run on the next push:
  3. 03

    Step 3: Checkout the PR branch and regenerate lockfile

    Review the “Step 3: Checkout the PR branch and regenerate lockfile” section in the pinned source before continuing.

    Review and apply the “Step 3: Checkout the PR branch and regenerate lockfile” source section.
  4. 04

    Step 4: Analyze changelogs for breaking changes

    For each upgraded dependency identified in Step 1:

    Fetch the changelog or release notes — try these sources in order:Identify the package's GitHub repo from the PR body (Snyk usually includes repo links) or from npm registry metadata:Review changes between the old and new versions. Focus on:
  5. 05

    Step 5: Post PR comment with findings

    Post a comment on the PR summarizing your analysis using gh pr comment:

    Post a comment on the PR summarizing your analysis using gh pr comment:bash gh pr comment --body "$(cat <<'EOF'

Permission review

Static risk signals and limitations

Runs scripts

medium · line 62

The documentation asks the agent to run terminal commands or scripts.

git status pnpm-lock.yaml

Runs scripts

medium · line 68

The documentation asks the agent to run terminal commands or scripts.

git add pnpm-lock.yaml

Network access

medium · line 144

The documentation includes network, browsing, or remote request actions.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score86/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars6,010SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
lightdash/lightdash
Skill path
.claude/skills/fix-vulnerability/SKILL.md
Commit
086e216d65653d5fb1898d2c4cafff4ec15e3ad4
License
NOASSERTION
Collected
2026-08-04
Default branch
main
View the original SKILL.md

Fix Vulnerability PR

Process a Snyk (or similar) dependency upgrade PR: rename the PR, regenerate the lockfile, analyze changelogs for breaking changes, and post a summary comment.

The user must provide a PR URL or number as $ARGUMENTS. If not provided, ask for it.

Step 1: Fetch PR details

Extract the PR number from the argument and fetch the PR diff to understand what changed:

# Get PR metadata
gh pr view <PR_NUMBER> --json number,title,body,headRefName,baseRefName

# Get the diff to see which dependencies changed
gh pr diff <PR_NUMBER>

Parse the diff to identify:

  • Which packages were upgraded (package name, old version, new version)
  • Which package.json files were modified
  • Whether the lockfile (pnpm-lock.yaml) is included or missing

Report the list of dependency changes to the user before proceeding.

Step 2: Rename the PR

Replace the Snyk-generated title with a descriptive one following conventional commit format:

gh pr edit <PR_NUMBER> --title "fix: upgrade <package1> <oldVersion>→<newVersion> and <package2> <oldVersion>→<newVersion>"

Also update the PR description to append test trigger keywords so all test suites run on the next push:

# Get current body, append test keywords
CURRENT_BODY=$(gh pr view <PR_NUMBER> --json body -q '.body')
gh pr edit <PR_NUMBER> --body "${CURRENT_BODY}

test-frontend test-backend test-cli"

Rules for the title:

  • Use fix: prefix (these are vulnerability fixes)
  • List all upgraded packages with their version ranges
  • If there are more than 3 packages, summarize: fix: upgrade 5 dependencies (security)
  • Keep it under 72 characters when possible

Step 3: Checkout the PR branch and regenerate lockfile

# Fetch and checkout the PR branch
gh pr checkout <PR_NUMBER>

# Install dependencies to regenerate the lockfile (sfw blocks known-malicious packages)
# Requires `npm i -g sfw` to be installed globally once per machine.
sfw pnpm install

# Check if the lockfile was modified
git status pnpm-lock.yaml

If pnpm-lock.yaml was modified, stage and commit it:

git add pnpm-lock.yaml
git commit -m "chore: regenerate pnpm-lock.yaml

Co-Authored-By: Claude Opus 4.6 <[email protected]>"

Then push the changes:

git push

Step 4: Analyze changelogs for breaking changes

For each upgraded dependency identified in Step 1:

  1. Fetch the changelog or release notes — try these sources in order: a. GitHub releases page: https://github.com/<owner>/<repo>/releases b. CHANGELOG.md in the repo: https://raw.githubusercontent.com/<owner>/<repo>/main/CHANGELOG.md c. npm page: https://www.npmjs.com/package/<package-name> d. Web search as a last resort: "<package-name> changelog <old-version> <new-version>"

  2. Identify the package's GitHub repo from the PR body (Snyk usually includes repo links) or from npm registry metadata:

    npm view <package-name> repository.url
    
  3. Review changes between the old and new versions. Focus on:

    • Breaking changes or deprecations
    • API changes that could affect our code
    • Major behavioral changes
    • Security advisories and CVE details
  4. Search our codebase for usage of each upgraded package to assess impact:

    # Check how we import/use the package
    

    Use Grep to search for imports and usage patterns of each package across the codebase.

  5. Assess risk for each dependency:

    • No risk: Patch version bump, no breaking changes, minimal usage in our code
    • Low risk: Minor version bump, no breaking changes in APIs we use
    • Medium risk: Breaking changes exist but don't affect our usage patterns
    • High risk: Breaking changes directly affect how we use the package

Step 5: Post PR comment with findings

Post a comment on the PR summarizing your analysis using gh pr comment:

gh pr comment <PR_NUMBER> --body "$(cat <<'EOF'
## Vulnerability Fix Analysis

### Lockfile
[✅ Regenerated and pushed / ℹ️ Already up to date]

### Dependency Changes

| Package | Old Version | New Version | Risk | Notes |
|---------|------------|-------------|------|-------|
| package-name | x.y.z | a.b.c | 🟢 No risk / 🟡 Low / 🟠 Medium / 🔴 High | Brief explanation |

### Breaking Changes Analysis

[For each dependency with notable changes, provide a brief summary]

#### `package-name` (x.y.z → a.b.c)
- **Changelog**: [link to changelog/releases]
- **Breaking changes**: [None / List of breaking changes]
- **Our usage**: [How we use this package, with file paths]
- **Impact**: [Assessment of whether breaking changes affect us]

### Recommendation
[Overall assessment: safe to merge, needs code changes, needs manual testing, etc.]

---
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"

Adapt the comment content based on your actual findings. Be concise but thorough. If there are breaking changes that affect our code, clearly list what needs to change.

Step 6: Return to original branch

After posting the comment, switch back to the original branch:

git checkout main

Notes

  • If pnpm install fails, report the error — it likely means the version bump introduced an incompatibility
  • For monorepo packages (e.g., @types/*), check if the type changes affect our code
  • Snyk PRs typically include CVE details in the PR body — reference these in your analysis
  • If a dependency has many transitive dependents, note this as it increases risk surface
  • Do NOT approve or merge the PR — only analyze and comment

Alternatives

Compare before choosing

Computed 10042,968

coreyhaines31/marketingskills

ab-testing

When the user wants to plan, design, or implement an A/B test or experiment, or build a growth experimentation program. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "should I test this," "which version is better," "test two versions," "statistical significance," "how long should I run this test," "growth experiments," "experiment velocity," "experiment backlog," "ICE score," "experimentation program

Computed 10023,781

alirezarezvani/claude-skills

app-store-optimization

App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist

Computed 100165

JasonColapietro/suede-creator-skills

suede-ab-testing

Suede-owned experimentation discipline for hypotheses, sample sizing, test duration, significance, and repeatable experiment programs. Use when comparing variants, deciding whether a result is reliable, or building an experiment backlog and cadence. NOT FOR: analytics instrumentation (use suede-analytics), post-click conversion diagnosis (use suede-site-alchemy), or writing the variant copy itself (use suede-copy).

Computed 1007

narrative-io/narrative-skills-marketplace

design-analysis

Translate a fuzzy analytical question into a rigorous investigation plan. Interrogates the ask, grounds the plan in the available data dictionary, applies analytical best practices, and produces a structured brief of query specifications for a downstream query-writing skill. Plans, does not write SQL. Use when: "why did X drop", "is there a relationship between A and B", "who are our highest-value customers", "what's driving the change in Y", "investigate this trend", "design an analysis for", "