agentsclimarketplace

Supply chain security

Skill sairam0424/MindForge/.mindforge/skills/supply-chain-security

MindForge: The Enterprise Agentic Framework for Claude Code & Antigravity. High-performance autonomous execution, wave-parallelism, and multi-tier governance for production-grade AI engineering.

Install
npx -y skills add sairam0424/MindForge --skill supply-chain-security

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.1 KB, as published. Nobody here has run it

Skill — Supply Chain Security

When this skill activates

Any task involving dependency management, package auditing, build integrity, software bill of materials, or defending against supply chain attacks.

Mandatory actions when this skill is active

Before making changes

  1. Verify lockfile is committed and checksums match.
  2. Run dependency audit (npm audit, pip audit, or equivalent).
  3. Check for known malicious packages in the dependency tree.

During implementation

  • Pin all dependencies to exact versions in lockfiles.
  • Pin CI actions to full SHA (not tags): actions/checkout@abc123def.
  • Generate SBOM on every release build.
  • Verify package provenance when available.
  • Use minimal base images for containers (distroless/alpine).

After implementation

  • Confirm no new critical/high vulnerabilities introduced.
  • Verify the build is reproducible (same source → same artifact).
  • Ensure SBOM is attached to release artifacts.

Core practices

Lockfile Integrity

# Verify lockfile hasn't been tampered with
npm ci  # Uses lockfile exactly (fails if lockfile/package.json mismatch)

# Alert on unexpected lockfile changes in CI
git diff --name-only | grep -q "package-lock.json" && echo "LOCKFILE CHANGED"
  • Always commit lockfiles (package-lock.json, yarn.lock, pnpm-lock.yaml).
  • Use npm ci (not npm install) in CI — it respects the lockfile exactly.
  • Review lockfile diffs in PRs (look for unexpected new packages or registry changes).

Dependency Auditing

# Node.js
npm audit --audit-level=high
npx socket-security/cli scan

# Python
pip-audit
safety check

# Go
govulncheck ./...
  • Run in CI on every PR (block on critical/high).
  • Schedule weekly full audits for transitive dependency updates.
  • Use Socket.dev or Snyk for behavioral analysis (detect install scripts, network access).

SBOM Generation

# CycloneDX format (preferred for security)
npx @cyclonedx/cyclonedx-npm --output-file sbom.json

# SPDX format (preferred for compliance)
syft . -o spdx-json > sbom.spdx.json
  • Generate on every release (attach to GitHub release, container image).
  • Include direct AND transitive dependencies.
  • Choose format: CycloneDX for security analysis, SPDX for license compliance.

Provenance Verification

# npm provenance (verify publisher identity)
npm publish --provenance
npm audit signatures  # Verify all installed packages

# Container image provenance
cosign verify --certificate-identity=... --certificate-oidc-issuer=... image:tag
  • Enable npm provenance on all published packages.
  • Verify signatures of consumed packages in CI.
  • Use Sigstore for keyless signing of artifacts.

Reproducible Builds

  • Pin ALL dependencies (including transitive) via lockfile.
  • Pin build tool versions (Node.js via .nvmrc, Go via go.mod).
  • Use deterministic build flags (no timestamps in artifacts).
  • Verify: build twice from same source → compare artifact hashes.

CI/CD Hardening

# Pin actions to SHA, not tag
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608  # v4.1.0

# Minimal permissions
permissions:
  contents: read
  packages: write

# Restrict network in build steps
# Use dependency caching to reduce fetch surface

Threat vectors to defend against

AttackDefense
TyposquattingVerify package name carefully, use scoped packages
Dependency confusionConfigure .npmrc with registry scoping
Compromised maintainerPin versions, verify provenance, review changelogs
Malicious install scriptsUse --ignore-scripts where possible, audit scripts
Hijacked CI actionPin to SHA, fork critical actions
Registry compromiseVerify signatures, use multiple registries

Dependency confusion prevention

# .npmrc — scope internal packages to private registry
@mycompany:registry=https://npm.internal.company.com/
# Everything else falls through to public npm

Anti-patterns to avoid

  • Using latest or ^ in production lockfiles without CI audit gates.
  • Pinning CI actions to tags (v4) instead of SHAs (tags can be force-pushed).
  • Running npm install instead of npm ci in CI.
  • Ignoring audit warnings because "it's a dev dependency" (devDeps run in CI).
  • No SBOM generation (you can't defend what you can't inventory).
  • Allowing arbitrary install scripts without review.

Self-check before task completion

Before marking a task done when this skill was active:

  • Lockfile committed and CI uses npm ci (or equivalent)?
  • Dependency audit passes with no critical/high findings?
  • CI actions pinned to full SHA?
  • SBOM generated and attached to release?
  • No new dependencies added without justification?
  • Provenance verification enabled for published packages?

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.