coding.make_function_private

coding.make_function_private is a skill for Claude Code from causify-ai/helpers. It costs 12 tokens per session (769 once invoked), scanned A, original, Apache-2.0.

A Python function-visibility review that decides whether each function is public or private based on calls from other project files.

In plain words
What is it for?
Use it to add an underscore to internal functions that are not used outside their file and leave externally used functions public.
Why use it?
It prevents internal helper functions from looking like part of a module's usable interface, while keeping library functions available to other code.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it to add an underscore to internal functions that are not used outside their file and leave externally used functions public.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/causify-ai/helpers/coding.make_function_private
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 causify-ai/helpers --skill coding.make_function_private
Clone the repo
git clone --depth 1 https://github.com/causify-ai/helpers

Made for: Claude Code.

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 coding.make_function_private

README.md
[![agentmods](https://agentmods.dev/badge/skills/causify-ai/helpers/coding.make_function_private/github.svg)](https://agentmods.dev/skills/causify-ai/helpers/coding.make_function_private)
Your own site
<a href="https://agentmods.dev/skills/causify-ai/helpers/coding.make_function_private"><img src="https://agentmods.dev/badge/skills/causify-ai/helpers/coding.make_function_private/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 coding.make_function_private

Your own site · 80×15
<a href="https://agentmods.dev/skills/causify-ai/helpers/coding.make_function_private"><img src="https://agentmods.dev/badge/skills/causify-ai/helpers/coding.make_function_private.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 769 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 3
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
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.00012 $0.00769
Opus 5.5 $0.00005 $0.00308
Sonnet 5.5 $0.00002 $0.00154
Haiku 4.5 $0.00001 $0.00077

Measured 1mo ago against content hash 885839c0502f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

coding.make_function_private 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 1mo ago.

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.

.claude/skills/coding.make_function_private/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Goal

For each function <FUNC> in the passed Python file <FILE>, determine if it should be private or public by checking if it's called by Python files or Jupyter notebooks outside <FILE>.

Conventions

  • Follow ## Mark Private Functions in .claude/skills/coding.rules.md

Definitions

External Files

  • External files = any Python file or Jupyter notebook outside the target file

    • Including:
      • Sibling scripts in the same package (e.g., notes_to_pdf.py calling functions from lib_notes_to_pdf.py)
      • Parent/sibling modules that import from the target
      • CLI entry point scripts
    • Excluding
      • Test files that test the target module, since a function is private even if it's called by a test files
  • Note: Functions that form the public API of a library module should be PUBLIC, even if they're not called from a __main__ entry point. If a module exports utility functions for use by other scripts in the package, those are PUBLIC functions

Private Functions

  • If the function <FUNC> is not called by any external file, then it should be a private function and should be renamed and prepended with a _

    • E.g., def function -> def _function
    • Include only internal utility functions, helpers, and implementation details
  • Modify all the callers of the function <FUNC> to use the new name

  • Good (function only called within its own file, so it is renamed private)

    # lib_helper.py
    def public_function():
        _internal_helper()  # Only called within this file, so private.
    
    def _internal_helper():
        pass
    

Public Functions

  • If the function <FUNC> is called by external files, then it should be a public function and its name must not start with _

    • This includes functions in shared utility modules called by sibling scripts
  • Modify all callers (both external and internal) of the function to use the new name

  • Good (function called by an external file, so it stays public)

    # lib_notes_to_pdf.py
    def preprocess_notes(file_name, prefix):  # Called by notes_to_pdf.py, so public.
        _internal_step_1(file_name)  # Private helper.
    
    def _internal_step_1(file_name):  # Only used within lib_notes_to_pdf.py, so private.
        pass
    

Read the full file on GitHub · 91 lines

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. 1mo ago Changed · +12 lines · -4 tokens per session 885839c0502f
  2. 1mo ago First seen · 79 lines · 16 tokens per session scan A 90871acf0e16

Subscribe to this mod's changes

coding.make_function_private is a skill published in the GitHub repository causify-ai/helpers (150 stars, last pushed yesterday), licensed Apache-2.0. It adds 12 tokens to every session and 769 once invoked, about $0.0000 per session on Opus 5.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-30.

Related

Other skills, from other repositories

mcore-linting-and-formatting

Linting and formatting for Megatron-LM. Covers running autoformat.sh, tools (ruff, black, isort, pylint, mypy), and code style rules.

NVIDIA/skills · 44 tokens

splitting-oversized-modules

Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…

PostHog/posthog-foss · 197 tokens

splitting-oversized-modules

Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…

PostHog/posthog · 197 tokens

plankton-code-quality

Write-time code quality enforcement using Plankton — auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.

loulanyue/awesome-claude-notes · 34 tokens

best-practices

Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality rules, detecting frameworks, or checking language-specific patterns for TypeScript, Python, Go, Swift, or React.

FradSer/dotclaude · 52 tokens

code-review-python

Reviews Python boundaries, typing, error handling, tests, dependencies, and supported-version idioms against the target project's contracts and active tools. Loaded by dh:code-reviewer for Python source; uses Python-engineering standards when available and retains standalone checks otherwise.

Jamie-BitFlight/claude_skills · 55 tokens