coding.make_function_private

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

A Python code check that finds which functions are used outside their file and marks unused helpers as private by adding an underscore to their names.

In plain words
What is it for?
Use it to review a Python file, rename private functions, and update their internal callers.
Why use it?
It helps distinguish a module's public interface from internal implementation details without relying only on naming conventions.

Skill for Claude Code

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

Good fit Use it to review a Python file, rename private functions, and update their internal callers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gpsaggese/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 gpsaggese/helpers --skill coding.make_function_private
Clone the repo
git clone --depth 1 https://github.com/gpsaggese/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/gpsaggese/helpers/coding.make_function_private/github.svg)](https://agentmods.dev/skills/gpsaggese/helpers/coding.make_function_private)
Your own site
<a href="https://agentmods.dev/skills/gpsaggese/helpers/coding.make_function_private"><img src="https://agentmods.dev/badge/skills/gpsaggese/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/gpsaggese/helpers/coding.make_function_private"><img src="https://agentmods.dev/badge/skills/gpsaggese/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 710 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.
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.00710
Opus 5.5 $0.00005 $0.00284
Sonnet 5.5 $0.00002 $0.00142
Haiku 4.5 $0.00001 $0.00071

Measured yesterday against content hash 02898a0f562d, 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 yesterday.

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 · 87 lines

How it starts

The opening of the file, as written. The whole thing — 87 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>, decide if it is private or public by checking whether Python files or Jupyter notebooks outside <FILE> call it.

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 of the target. A function stays private even if a test calls it
  • Note: Functions in a library module's public API are PUBLIC, even if no __main__ entry point calls them. Utilities that other scripts in the package import are PUBLIC too

Private Functions

  • If <FUNC> is not called by any external file, it is private: rename it with a _ prefix

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

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

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

Public Functions

  • If <FUNC> is called by external files, it is public: its name must not start with _

    • This includes functions in shared utility modules that sibling scripts call
  • Update all callers, external and internal, to the new name

  • Good (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 · 87 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. yesterday First seen · 87 lines · 12 tokens per session scan A 02898a0f562d

Subscribe to this mod's changes

coding.make_function_private is a skill published in the GitHub repository gpsaggese/helpers (158 stars, last pushed today), licensed Apache-2.0. It adds 12 tokens to every session and 710 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-11-06.

Related

coding.make_function_private compared with skills from other repositories

coding.make_function_private next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
coding.make_function_privategpsaggese/helpersSkill158todayApache-2.0A12Claude Code
matlabK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA44Claude Code
pennylaneK-Dense-AI/scientific-agent-skillsSkill56k5d agoMITA74Claude Code
holoscan-install-wheelNVIDIA/skillsSkill3.9ktodayApache-2.0A34Claude Code, Codex
future-self-liteTHU-MAIC/OpenMAICSkill43kyesterdayMITA20Claude Code, Codex
rocm-kernelshuggingface/kernelsSkill783yesterdayApache-2.0A93Claude Code
typing-exclusion-workergetsentry/skillsSkill1.1kyesterdayApache-2.0A57Claude Code