Skip to content

secondsky/claude-skills / plugins/dependency-upgrade/skills/dependency-upgrade

dependency-upgrade

Unverified

Secure dependency upgrades with supply chain protection, cooldowns, and staged rollout. Use when upgrading deps, configuring security policies, or preventing supply chain attacks.

templates/pnpm-workspace-security.tmpl

View on GitHub
# pnpm-workspace.yaml — Security-Hardened Configuration
# Copy to project root as pnpm-workspace.yaml
# Requires pnpm 10.0+ (most features) / 10.16+ (cooldown) / 10.21+ (trust policy) / 10.26+ (allowBuilds, blockExoticSubdeps)
# Customize values marked with [CONFIGURE]

# === COOLDOWN PERIOD ===
# Only install package versions published at least 7 days ago (value in minutes)
# 3 days = 4320, 7 days = 10080, 14 days = 20160, 21 days = 30240
minimumReleaseAge: 10080

# Packages that bypass the cooldown
# [CONFIGURE] Add packages that need same-day updates
minimumReleaseAgeExclude:
  - "@types/react"
  - "@types/node"
  - typescript
  - esbuild

# === POST-INSTALL SCRIPTS ===
# Preferred (pnpm 10.26+): map of package → true/false
# [CONFIGURE] Add packages that genuinely need build scripts
allowBuilds:
  esbuild: true
  fsevents: true
#  sharp: true
#  core-js: false

# Make unreviewed build scripts a hard error (pnpm 10.3+)
strictDepBuilds: true

# === TRUST POLICY (pnpm 10.21+) ===
# Fail if a package's trust level has decreased vs a previous version
trustPolicy: no-downgrade

# [CONFIGURE] Exclude specific packages from trust checks
# trustPolicyExclude:
#   - "chokidar@4.0.3"

# Ignore trust checks for packages published >30 days ago (pnpm 10.27+)
trustPolicyIgnoreAfter: 43200  # minutes (30 days)

# === EXOTIC DEPENDENCY BLOCKING (pnpm 10.26+) ===
# Prevent transitive deps from using git repos or tarball URLs
blockExoticSubdeps: true

# === WORKSPACES (if using monorepo) ===
# [CONFIGURE] Uncomment and adjust for monorepo
# packages:
#   - "apps/*"
#   - "packages/*"
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall