module-no-new-exports-all

module-no-new-exports-all is a skill for Claude Code from cuzfrog/module-gates. It costs 25 tokens per session (310 once invoked), scanned A, original, MIT.

A code-maintenance workflow that records every direct source file in each module’s descriptor as a “no-new-exports” entry. A module is a self-contained part of a codebase.

In plain words
What is it for?
Use it across a source tree to update module descriptors, preview changes with a dry run, or create missing descriptor files.
Why use it?
It helps prevent a module’s public surface—the code other modules can use—from growing unintentionally.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the module-gates plugin — 1 skill shipped together

Good fit Use it across a source tree to update module descriptors, preview changes with a dry run, or create missing descriptor files.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cuzfrog/module-gates/module-no-new-exports-all
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cuzfrog/module-gates --skill module-no-new-exports-all
Clone the repo
git clone --depth 1 https://github.com/cuzfrog/module-gates

Made for: Claude Code.

Or install module-gates, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for module-no-new-exports-all

README.md
[![agentmods](https://agentmods.dev/badge/skills/cuzfrog/module-gates/module-no-new-exports-all/github.svg)](https://agentmods.dev/skills/cuzfrog/module-gates/module-no-new-exports-all)
Your own site
<a href="https://agentmods.dev/skills/cuzfrog/module-gates/module-no-new-exports-all"><img src="https://agentmods.dev/badge/skills/cuzfrog/module-gates/module-no-new-exports-all/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for module-no-new-exports-all

Your own site · 80×15
<a href="https://agentmods.dev/skills/cuzfrog/module-gates/module-no-new-exports-all"><img src="https://agentmods.dev/badge/skills/cuzfrog/module-gates/module-no-new-exports-all.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 310 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00025 $0.00310
Opus 5 $0.00013 $0.00155
Sonnet 5 $0.00005 $0.00062
Haiku 4.5 $0.00003 $0.00031

Measured 9d ago against content hash 36cef27ae7e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

module-no-new-exports-all scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/no-new-exports-all.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/module-no-new-exports-all/SKILL.md · 34 lines

What it actually says

What you do

  • Find out module descriptor filename in the context.
  • Find out source root in the context or from configurations.
  • Derive scripts args from user instructions.
  • Call the script to scans the source tree for module descriptors and auto-populates their no-new-exports entries with code files in each module directory.

Script Usage

node skills/module-no-new-exports-all/scripts/no-new-exports-all.mjs [options]

Options:

  • --root <dir> - Source root directory (default: src)
  • --dry-run - Show what would change without writing files
  • --create - Create module descriptor files for directories without one (adds no-new-exports only)
  • --descriptor-name <name> - Module descriptor filename (default: module.md)

Behavior

  1. Finds all module descriptor files under the source root.
  2. For each module directory, lists all direct files (not subdirectories, not module descriptor file itself)
  3. Adds those files to the no-new-exports frontmatter field
  4. Preserves existing no-new-exports entries, other fields in the frontmatter, and body prose

Extra user instructions:

"$ARGUMENTS"

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 34 lines · 25 tokens per session scan A 36cef27ae7e0

Subscribe to this mod's changes

module-no-new-exports-all is a skill published in the GitHub repository cuzfrog/module-gates (21 stars, last pushed 17d ago), licensed MIT. It adds 25 tokens to every session and 310 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

open-code-review-delegate

Delegation mode for open-code-review (OCR). Instead of OCR calling an LLM endpoint, this skill instructs the host agent to perform the code review itself, using OCR only for deterministic engineering: file selection and rule resolution. Use when the host agent should drive the review with its own LLM capabilities.

alibaba/open-code-review · 68 tokens

open-code-review

Performs AI-powered code review on Git changes using the ocr CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, review staged/unstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply…

alibaba/open-code-review · 98 tokens

code-review

Paranoid architect review of code changes for bugs, security, missing tests, and undocumented assumptions. Works on local git diffs OR a GitHub pull request (e.g. owner/repo N). For PRs, can post findings as line-level review comments.

suyoumo/ClawProBench · 57 tokens

parallel-pr-review

Use when asked to "review the open PRs", review a batch or stack of pull requests, or run a recurring PR-review pass on a repo — especially with many PRs, stacked branches, conflicts, or security-sensitive changes. Covers grouping, fan-out to review subagents, verdict synthesis, and posting.

suyoumo/ClawProBench · 67 tokens

qa-review

QA review for code changes — test coverage analysis, edge case identification, test plan generation, regression detection, test health tracking over time.

suyoumo/ClawProBench · 30 tokens

security-review

Security audit for code changes and PRs — OWASP top 10, auth flows, data handling, secrets exposure, supply chain risks. Writes findings as actionable items.

suyoumo/ClawProBench · 37 tokens