AGENT SKILL

fix-security-issues

Audit and remediate dependency security advisories while respecting package age policy, removing unused vulnerable capabilities, deduplicating Yarn resolutions, and validating affected tooling.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 1.4k
Forks
179

01 前言 Front Matter

name
fix-security-issues
license
MIT
description
Audit and remediate dependency security advisories while respecting package age policy, removing unused vulnerable capabilities, deduplicating Yarn resolutions, and validating affected tooling.

03 SKILL.md 正文

Fix security issues

Use this skill for dependency vulnerability remediation, Dependabot alerts, Yarn audit findings, or security-driven package upgrades. Detailed commands and procedures are in the dependency security reference; read each linked section when you reach that step.

Safeguards

  • R-SEC-001: Do not disable or reduce the age gate to obtain a security fix.
  • R-SEC-002: Do not add a broad catch, audit exclusion, or warning suppression in place of a runtime fix.
  • Do not edit yarn.lock manually. Change the owning manifest, catalog, resolution, preset, or extension and let Yarn regenerate the graph.
  • Treat critical and high findings as required fixes. Address moderate and low findings whenever a compatible, policy-eligible remediation exists.
  • Use ignore: only for a capability proven unused that fails closed; never ignore a package merely to make the audit output clean.

Workflow

  1. Read the repository AGENTS.md and the owning workspaces' instructions. Inspect package.json, .yarnrc.yml, yarn.lock, package catalogs, resolutions, package extensions, dynamic package extensions, .github/dependabot.yml, any repository-specific package age, cooldown, registry, or release policy, and the declared scripts for every affected workspace before choosing validation commands.
  2. Inventory the complete problem with the full recursive audit, yarn why, and runtime-use analysis.
  3. Enforce the package age policy with an exact cutoff for every newly selected version.
  4. Choose the least risky complete remediation: direct dependency, transitive parent, narrow root resolution, ignore:, then a local Yarn patch.
  5. Resolve, audit, and deduplicate iteratively.
  6. Validate the affected behavior, add a normal or empty changeset as required by repository policy, and finish with yarn clean-lage-cache and then yarn lage buildci (R-VALID-003).

Finish by confirming:

  • the recursive audit has no unexplained findings;
  • every critical/high advisory is fixed, removed, or blocked fail-closed;
  • newly selected npm versions satisfy the exact package age cutoff;
  • yarn dedupe --check reports no candidates;
  • immutable install succeeds;
  • the diff contains no unrelated manifest or generated-file changes.

Failure behavior

If a required package has no eligible patched release, cannot be safely ignored, and cannot be patched with a focused regression test, report the remaining advisory and its exposure plainly. Do not claim completion, weaken the age policy, force an unvalidated incompatible major, or suppress the warning.

04 同仓库更多 Skills

microsoft
microsoft/fluentui-react-native

review-component

Review component code or changes of any generation (v0, v1, agentic, primitive, or native-backed) without editing files. Classifies each changed surface, applies the matching checklists and native overlay, and reports evidence-backed findings with validation status.

★ 1.4k
microsoft
microsoft/fluentui-react-native

maintain-v0-v1-component

Fix or maintain existing v0 (foundation-compose) or v1 (framework compose/compressible) components, including their platform variants. Classifies the generation first and loads only its recipe. Not for new components, agentic components, read-only reviews, or native-only changes.

★ 1.4k
microsoft
microsoft/fluentui-react-native

maintain-desktop-testing

Change, review, or plan source changes to desktop-driver, desktop-test, storybook-desktop, or storybook-desktop-runtime, including native helpers. Applies package invariants, documentation, native and consumer validation, and changesets.

测试与质量
★ 1.4k
microsoft
microsoft/fluentui-react-native

implement-native-component

Implement or change native components, TurboModules, native services, codegen specs, or native-backed platform wrappers (Swift, Objective-C, C++/WinRT, podspecs, Windows projects). Also supplies the native overlay checklist for v0, v1, and agentic work. Not for Storybook toolchain failures.

★ 1.4k
microsoft
microsoft/fluentui-react-native

desktop-testing

Configure, run, or troubleshoot native desktop tests using desktop-test, desktop-driver, and storybook-desktop, including app targets and suites, helpers, permissions, WDIO suites, Storybook story tests and smoke runs, reports, and CI. Not for package source changes or the Storybook app build toolchain.

测试与质量
★ 1.4k
microsoft
microsoft/fluentui-react-native

agentic-storybook-development

Develop, bundle, build, or troubleshoot the agentic-components Storybook app in apps/storybook on macOS, Windows, or Win32, including app catalog configuration, Metro, CocoaPods, native projects, and renderer builds. Not for configuring or running desktop tests or changing desktop package source.

★ 1.4k