All skills
mblode avatar

/dx-audit

@b690e67
by Matthew Blodemblode/agent-skills136 stars
12

Audits libraries, CLIs, and SDKs using 38 rules for public contracts, package exports, piped output, errors, and configuration. Use when asked to "audit my CLI", "review my SDK", or diagnose package type resolution. For public site or docs agent scores use agent-ready; for agentic product trust use ax-audit; for docs prose use ghostwriter.

Use this Skill: https://skilld.dev/gh/mblode/agent-skills/dx-audit

This session only. Nothing lands on disk.

rulesonboard-tree-shakeable.md

≈339 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Ship Tree-Shakeable ESM with an Accurate sideEffects Flag

A CommonJS-only bundle, or a package with sideEffects unset (bundlers then assume true), makes every consumer ship the whole library for one import. Ship ESM, set "sideEffects": false or the exact list of files that do run code on import (a polyfill, a CSS import), and put heavy optional features behind subpath exports so import "pkg/charts" costs nothing to the consumer who never uses it. Whether each entry then resolves and is typed is onboard-exports-resolve-typed.

Incorrect (CJS-only, no exports map, sideEffects unset so it defaults to true):

{
  "main": "dist/index.js"
  // no "type", no "exports", no "sideEffects": importing one helper
  // pulls the entire bundle into the consumer's build
}

Correct (ESM, tree-shaking enabled, heavy feature behind a subpath):

{
  "type": "module",
  "sideEffects": false,
  "exports": {
    ".": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
    "./charts": { "types": "./dist/charts.d.ts", "default": "./dist/charts.js" }
  }
}

Source: SKILL.md on GitHub

No alerts9d3 checks · Risk SAFE
  • Gen Agent Trust Hub9d

    The dx-audit skill is a developer experience auditing tool designed to review public APIs, CLIs, and SDKs. It demonstrates a strong security posture by including explicit instructions to validate inputs against path traversal and shell injection, and by warning the agent to inspect potentially malicious lifecycle scripts in audited repositories before running packaging probes. All external tools mentioned are industry-standard utilities.

  • Socket9d

    No alerts

  • Snyk9d

    Risk: LOW · No issues

Signed by skilld at b690e67. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 32 minutes ago.

Activeupdated last week

README badge

README badge for mblode/agent-skills/dx-audit