new-python-project

new-python-project is a skill for Claude Code, Codex from zhengbingquant/frontier-skills. It costs 131 tokens per session (1,783 once invoked), scanned A, original, MIT.

A scaffold-based setup process for a brand-new Python project, such as a tool, library, command-line program, service, or experiment. It starts from a prepared template instead of inventing the project layout each time.

In plain words
What is it for?
Use it when starting a new Python repository. It helps choose valid project and package names and create the initial structure for a maintainable Python codebase.
Why use it?
It avoids inconsistent project structures and catches basic setup problems before feature code is added. A new project is expected to install cleanly, pass its tests, and show command-line help immediately.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/zhengbingquant/frontier-skills/new-python-project
Any agent
npx skills add zhengbingquant/frontier-skills --skill new-python-project
Clone the repo
git clone --depth 1 https://github.com/zhengbingquant/frontier-skills

Made for: Claude Code, Codex.

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 new-python-project

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhengbingquant/frontier-skills/new-python-project.svg)](https://agentmods.dev/skills/zhengbingquant/frontier-skills/new-python-project)
Your own site
<a href="https://agentmods.dev/skills/zhengbingquant/frontier-skills/new-python-project"><img src="https://agentmods.dev/badge/skills/zhengbingquant/frontier-skills/new-python-project.svg" alt="Measured on agentmods" height="20"></a>
Per session 131 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,783 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00131 $0.01783
Opus 5 $0.00066 $0.00892
Sonnet 5 $0.00026 $0.00357
Haiku 4.5 $0.00013 $0.00178

Measured 4d ago against content hash c0376d8c0705, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

new-python-project 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 4d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (assets/template/src/package_name/__init__.py, assets/template/src/package_name/__main__.py, assets/template/src/package_name/cli.py, …), 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/new-python-project/SKILL.md · 140 lines

How it starts

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

New Python Project

This skill instantiates the scaffold stored in assets/template/. The scaffold's guarantees: a fresh generation installs cleanly, passes make test, and answers --help before any feature code is written. Do not improvise a different layout when this skill applies.

1. When to use / when not

  • Use: any brand-new Python repo — tool, library, CLI, service skeleton, experiment that may outlive the week.
  • Do not use: adding code to an existing project (respect its existing layout instead), or a non-Python project (you may still copy the conventions in assets/OPERATING_MANUAL.md, which are language-agnostic; only the template itself is Python).

2. Gather the three inputs

Derive these without asking, unless the rules below force a question:

  1. project_name — kebab-case, from the user's own words for the thing (e.g. "a log deduplicator" → log-deduplicator). Strip filler words. Rules: lowercase letters, digits, hyphens only; must not collide with an existing directory at the target location.
  2. package_nameproject_name with hyphens replaced by underscores. Must be a valid Python identifier: if it starts with a digit or clashes with a stdlib module name you know (e.g. json, test), prefix or reword it, and note the choice.
  3. description — one sentence, taken from the user's request. If the request contains no describable purpose, use a neutral one-liner and flag in your report that the description is a placeholder.

Only ask the user if the project's purpose is genuinely unknowable from the request — never ask about naming mechanics.

3. Choose the target directory

Situation Target
User named a path that path
Current directory is empty or clearly meant to become the project current directory
Otherwise a new sibling directory named <project_name> under the user's usual projects location (default: home or current directory)

Never generate inside another project's source tree.

Read the full file on GitHub · 140 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. 4d ago First seen · 140 lines · 131 tokens per session scan A c0376d8c0705

Subscribe to this mod's changes

new-python-project is a skill published in the GitHub repository zhengbingquant/frontier-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 131 tokens to every session and 1,783 once invoked, about $0.0007 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.