Index of every page on this site: llms.txt
All skills
santoshyadavdev avatar

/monorepo-doctor

@3cb32ea
Run it yourself

Use when a user asks for a JS/TS monorepo audit, or Bazel target visibility or testonly issues in a JS or Java workspace. Also covers Nx/Turborepo caching, affected tests, cycles and production test leakage. Read-only; writes Markdown and JSON reports.

Use this Skill: https://skilld.dev/gh/santoshyadavdev/monorepo-doctor/monorepo-doctor

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈67 tokens for metadata: the name and description. ≈882 when used: this file. ≈24k more on demand in 9 files.

Description uses 3.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈270 characters, or 3.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Monorepo Doctor

Audit a JS/TS monorepo for five classes of problems that teams routinely miss, or run the limited Bazel target checks in a standalone Bazel workspace, and produce an evidence-backed report. Bazel-only support does not analyze Java source, cycles, caching, or CI test coverage.

Prerequisites: Node ≥ 22.5. The work dir is $W = $(node -p 'require("os").tmpdir()')/monorepo-doctor (see detection.md).

Rules

  • Read-only. Never install dependencies, build, run tests, or edit project files. Allowed writes: monorepo-doctor-report.md, monorepo-doctor-report.json (default <tmpdir>/monorepo-doctor-reports, or a user-given dir) and $W.
  • Allowed commands: the snippets in the reference files, npm pack --dry-run --json --ignore-scripts, read-only git log, and the repo's own ./node_modules/.bin/{knip,publint,nx,turbo} only if detection reports them installed (nx/turbo: graph / --dry=json / boundaries only — never real task runs, with read-only env vars from the references).
  • No runtime downloads by default. Don't fetch packages (npx, npm exec, pnpm dlx, yarn dlx, bunx). If a tool isn't installed, skip that sub-step and mark the check partial. Only if the user explicitly allows downloads in this request may you run the pinned knip@6.41.0 / publint@0.3.25 shown in the references — never other versions, other packages, or nx/turbo.
  • Never abort a check. If a tool fails, mark the check partial or skipped with a reason and continue.
  • Every finding needs evidence (config snippet, file:line, or command output). No evidence → no finding.
  • Actionable only. Do not emit a finding when the honest fix is "keep it as-is" — a deliberate, idiomatic or correct pattern (e.g. cache: false on a migration task, lazy ORM references). Mention it in the check's reason instead.
  • One root cause, one finding. If two findings share the same fix, merge them.
  • Use only the finding ids defined in the reference files.

Workflow

  1. Detect — follow references/detection.md. Stop if NO_WORKSPACE.
  2. Scan — follow references/scan.md. If Bazel is detected, also run the static inspection in references/bazel.md before the checks.
  3. Check — run all five unless the user asked for a subset (write {"status":"not-run","reason":"not requested","findings":[]} to $W/findings/<check>.json for the others):
  4. Report — follow references/report-format.md: validate each findings/<check>.json, render, then show the user where the reports were written, the summary line and the top 5 findings.
  5. CI mode (only if asked, or when invoked non-interactively with a threshold) — run the exit-code snippet from report-format.md.

Tracking

Create a todo per phase/check and mark each done as its findings file is written.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    This skill audits JavaScript/TypeScript monorepos for health and configuration issues. It prioritizes safety by operating in a read-only mode, using a temporary directory for its operations, and strictly controlling external tool execution by pinning versions, disabling lifecycle scripts, and disabling telemetry. The primary security concern is the risk of indirect prompt injection, as the skill processes untrusted repository files that could potentially contain malicious instructions.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

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

Last checked against GitHub 2 days ago.

Activeupdated 4 days ago

README badge

README badge for santoshyadavdev/monorepo-doctor