Communitygithub.com

YepAPI/skills

Dependency security — npm audit, lockfile verification, supply chain attack prevention.

What is skills?

skills is a Claude Code agent skill that dependency security — npm audit, lockfile verification, supply chain attack prevention.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/YepAPI/skills/tree/HEAD/skills/dependency-security

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Dependency Security

Rules

  • Run npm audit in CI — fail the build on high/critical vulnerabilities
  • Use lockfile-lint to verify all packages resolve to the official npm registry
  • Pin major versions in package.json: use ^ for minor updates, never * or latest
  • Review new dependencies before installing: check npm download counts, last publish date, maintainer count
  • Use npm ls --all to audit transitive dependencies — your direct deps pull in hundreds more
  • Set up Snyk, Socket.dev, or GitHub Dependabot for real-time vulnerability alerts
  • Update dependencies weekly — stale deps accumulate known vulnerabilities
# GitHub Actions — audit in CI
- name: Audit dependencies
  run: npm audit --audit-level=high

- name: Verify lockfile integrity
  run: npx lockfile-lint --path package-lock.json --type npm --allowed-hosts npm --validate-https
// package.json — pin major versions
{
  "dependencies": {
    "next": "^14.0.0",
    "react": "^18.0.0",
    "zod": "^3.0.0"
  }
}

Avoid

  • npm install random-package without checking the package first — typosquatting is real
  • Ignoring npm audit warnings — known vulnerabilities are the easiest attack vector
  • Using * or latest as version ranges — a compromised publish instantly hits your build
  • Running postinstall scripts from untrusted packages without review
  • Assuming popular packages are safe — even event-stream (millions of downloads) was compromised

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

YepAPI/skills

WCAG 2.1 AA — semantic HTML, keyboard navigation, screen readers.

YepAPI/skills

Experiment setup, variant splitting, statistical significance, and feature flag integration.

YepAPI/skills

CRUD generators, data tables, user management, role-based access, and bulk operations.

YepAPI/skills

Monitor what ChatGPT and Gemini say about your brand using YepAPI.

YepAPI/skills

Queue workers with BullMQ/Inngest/Trigger.dev, job retries, dead letter queues, concurrency.

YepAPI/skills

Commander.js, interactive prompts with Clack, spinners, colors, config files, exit codes, and npm publishing.

YepAPI/skills

cmdk integration, Cmd+K trigger, fuzzy search, grouped actions, keyboard navigation, and dynamic action registration.

YepAPI/skills

Content planning with trend and sentiment data from YepAPI.

YepAPI/skills

Content calendar, keyword-driven planning, and content briefs.

YepAPI/skills

Theme switching with CSS variables, system preference detection, next-themes, and persistence.

YepAPI/skills

Threaded comments, @mentions, reactions, moderation queue, optimistic UI, and cursor pagination.

YepAPI/skills

Competitive analysis between domains using YepAPI.

YepAPI/skills

Layout grids, KPI cards, data tables with sorting/filtering, sidebar navigation, and responsive breakpoints.

YepAPI/skills

Data encryption — TLS everywhere, AES-256-GCM for PII, bcrypt passwords, encrypted backups.

YepAPI/skills

Chart patterns with Recharts/Nivo/D3, responsive containers, color scales, and accessibility.

YepAPI/skills

Drizzle schema definition, push vs migrate, type-safe queries, relations, transactions, and prepared statements.

YepAPI/skills

Upload handling, resize/compress, CDN delivery, blur placeholders, and next/image patterns.

YepAPI/skills

Local business and Google Maps research using YepAPI.

YepAPI/skills

Cursor-based pagination, IntersectionObserver, virtualized lists with @tanstack/react-virtual, and scroll position restoration.

YepAPI/skills

Chat UI components, streaming responses with AI SDK, context window management, and RAG patterns.

Related Skills