Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

remediation-planning

БесплатноБез исполняемых скриптовНе проверен

Generate comprehensive remediation guidance including dependency updates, code changes, workarounds, and verification steps

openshift-engот openshift-eng★ 123 звезды на GitHub

Об этом скилле

Remediation Planning

Creates actionable remediation plans for vulnerable Go codebases based on analysis results from previous phases.

Supported Remediation Types

  1. Dependency Update - Update Go package to fixed version
  2. Go Runtime Update - Update Go itself (for stdlib vulnerabilities)
  3. Configuration Change - Disable features, change settings, adjust security controls
  4. Code Refactoring - Replace vulnerable patterns, add validation, refactor code
  5. Security Patch - Apply vendor-provided patch files
  6. Workarounds - Temporary mitigations (timeouts, rate limiting, input validation)
  7. Infrastructure - Network policies, firewall rules, WAF configuration
  8. Combination - Multiple remediation types together

The skill automatically determines the appropriate remediation strategy based on CVE details and impact analysis.

When to Use This Skill

Use this skill when:

  • Codebase is confirmed or likely affected by a CVE
  • Need specific remediation steps beyond "update the package"
  • Fixed version exists but need to assess compatibility
  • No fixed version available and need workarounds
  • Project uses custom build/test commands via Makefile

Implementation Steps

Step 1: Analyze Inputs and Determine Strategy

Required Inputs from Previous Phases:

From Phase 1 (cve-intelligence-gathering):

  • CVE ID, severity, CVSS score
  • Affected package/module and vulnerable version range
  • Fixed version (if available)
  • Vulnerability type and remediation guidance

From Phase 2 (codebase-impact-analysis):

  • Risk level (HIGH / MEDIUM / LOW / NEEDS REVIEW)
  • Current package version and dependency type
  • Usage locations and functions being called

From Call Graph Analysis (optional):

  • Reachability risk level and call chain
  • Entry points

From govulncheck (optional):

  • Detection result and vulnerable symbols

Decision Tree:

IF risk_level = "LOW":
  → Document findings, recommend monitoring and manual review
  
IF risk_level = "HIGH" or "MEDIUM":
  IF fixed_version EXISTS:
    IF affected_package is in go.mod → Dependency Update (Step 2)
    ELSE IF affected_package is Go stdlib → Go Runtime Update (Step 2A)
      
  IF fixed_version = null:
    IF remediation_guidance has "configuration" → Configuration Change (Step 2B)
    IF remediation_guidance has "code change" OR pattern vulnerability → Code Refactoring (Step 2C)
    IF remediation_guidance has "patch" → Apply Patch (Step 2D)
    ELSE → Workarounds (Step 3)
      
IF risk_level = "NEEDS_REVIEW":
  → Manual review + defensive workarounds (Step 3)

Step 2: Plan Dependency Update (If Applicable)

Analyze the dependency situation:

  1. Understand the dependency relationship:

    • Is this a direct or indirect (transitive) dependency?
    • If indirect, which direct dependency pulls it in?
    • Are there multiple dependency paths to this package?
    • What version is currently in use?
  2. Assess the update strategy:

    For direct dependencies:

    • Can we directly update to the fixed version?
    • What's the version jump? (major/minor/patch)
    • Are there intermediate versions we should consider?

    For indirect dependencies:

    • Should we update the parent package instead?
    • Will updating the parent also fix this issue?
    • Is the parent package actively maintained?
    • Do we need to explicitly override the version?
    • Is a replace directive necessary (avoid unless no other update path exists)?
  3. Research breaking changes:

    • Search for changelog and release notes
    • Look for BREAKING CHANGE markers
    • Check GitHub issues for migration problems
    • Assess semantic versioning signals:
      • Major version bump → Expect breaking changes
      • v0.x minor bump → May have breaking changes
      • Patch version → Should be safe
    • Identify specific API changes that affect your code
  4. Evaluate compatibility risks:

    • Does the fixed version require a newer Go version?
    • Are there conflicts with other dependencies?
    • What's the blast radius if something breaks?
    • Is there test coverage for affected code paths?
  5. Plan the update approach:

    • Decide on exact version to target
    • Determine the update commands to use
    • Plan for testing and validation
    • Consider gradual rollout strategy
    • Prepare rollback plan

Document the chosen approach with specific commands and rationale for the decision.


Step 2A: Plan Go Runtime Update (If Applicable)

Analyze Go runtime update requirements:

  1. Determine version requirements:

    • What Go version fixes the vulnerability?
    • What's the current Go version in use?
    • What's the minimum version bump needed?
    • Are there multiple affected Go versions with different fixes?
  2. Assess project constraints:

    • What's the project's minimum supported Go version (from go.mod)?
    • Are there compatibility requirements (OS distributions, cloud provide
Полный SKILL.md на GitHub

Установить remediation-planning в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл remediation-planning?

Generate comprehensive remediation guidance including dependency updates, code changes, workarounds, and verification steps

Как установить скилл remediation-planning?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл remediation-planning запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить remediation-planning с