AGENT SKILL

dependency-rules

MUST NOT / SHOULD NOT rules for dependencies and packages: package.json, lockfiles, workspaces, npm publishing, and Dependabot. Use when adding or upgrading a dependency, editing a manifest, configuring Dependabot, or publishing a package.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 11
Forks
1

01 前言 Front Matter

name
dependency-rules
description
MUST NOT / SHOULD NOT rules for dependencies and packages: package.json, lockfiles, workspaces, npm publishing, and Dependabot. Use when adding or upgrading a dependency, editing a manifest, configuring Dependabot, or publishing a package.

03 SKILL.md 正文

Dependency and package rules

MUST NOT is a defect. SHOULD NOT needs a stated reason.

Manifests and lockfiles

  • MUST NOT import an undeclared dependency.
  • MUST NOT depend on git URLs, local paths, or unapproved registries.
  • MUST NOT hand-edit lockfiles, or let normal builds update them; change them with the package manager on purpose.
  • MUST NOT ship a package whose exports, types, files, and bin disagree with how it is installed and imported.
  • SHOULD NOT add a dependency when an existing utility fits, or one with install scripts without vetting it.
  • SHOULD NOT add a dependency at anything but its latest (or LTS) version.
  • SHOULD NOT use package-manager version overrides; fix metadata with packageExtensions.
  • SHOULD NOT commit more than one lockfile format, or mix dependency sections.

Publishing

  • MUST NOT publish from a laptop or with a long-lived token; use CI trusted publishing (OIDC).
  • MUST NOT publish without a dry run that shows no secrets, env files, or stray files.
  • MUST NOT republish an existing version or replace a module with a stub.
  • MUST NOT retry auth or registry failures blindly, or pass OTPs on the command line.

Dependabot

  • MUST NOT put security updates behind a cooldown.
  • MUST NOT auto-merge majors, pre-1.0 minors, prereleases, or downgrades.
  • MUST NOT auto-approve bot PRs; let required checks gate auto-merge.
  • MUST NOT run PR code in the privileged auto-merge workflow.
  • SHOULD NOT group updates with a catch-all pattern or by version type; group by compatibility family.
  • SHOULD NOT leave a manifest, Dockerfile, or workflow directory without an update entry.

04 同仓库更多 Skills

jonathanong
jonathanong/no-mistakes

rollout-rules

MUST NOT / SHOULD NOT rules for shipping changes safely: feature flags, deploy order across services, API and message compatibility, irreversible actions, and string-referenced config. Use when adding a flag, changing an API or message contract, deploying a change that spans services, or touching money-moving or irreversible actions.

★ 11
jonathanong
jonathanong/no-mistakes

observability-rules

MUST NOT / SHOULD NOT rules for logs, metrics, and alerts: static messages and structured fields, personal data, metric cardinality, fields monitors depend on, absence alerts, and context binding. Use when adding or reviewing logging, metrics, or monitors.

★ 11
jonathanong
jonathanong/no-mistakes

integrations-rules

MUST NOT / SHOULD NOT rules for third-party APIs and inbound webhooks: response classification, retries and idempotency, delivery records, payload mapping, timestamps and units, batch failure policy, and signature verification. Use when calling, parsing, or receiving a partner or vendor API.

★ 11
jonathanong
jonathanong/no-mistakes

typescript-rules

MUST NOT / SHOULD NOT rules for TypeScript, JavaScript, and Node.js: async and promises, errors, mutation, aliases and dead paths, static analysis, process lifecycle, HTTP clients, caches like Redis or Valkey, and package boundaries. Use when writing or reviewing TS/JS or Node code.

★ 11
jonathanong
jonathanong/no-mistakes

security-rules

MUST NOT / SHOULD NOT rules for application security and HTTP APIs: secrets, auth and sessions, SSRF, injection, CSRF, CSP, LLM prompts, response exposure, and API shape. Use when writing or reviewing an endpoint, auth code, secret handling, outbound fetches, or LLM calls.

★ 11
jonathanong
jonathanong/no-mistakes

rust-rules

MUST NOT / SHOULD NOT rules for Rust: lints, test layout, file size, parallelism, hot loops, caching, build hygiene, and performance claims. Use when writing or reviewing Rust code or running heavy cargo builds.

★ 11