用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/tomevault-io/skills-registry --skill python-init命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | python-init |
| description | > Use when this capability is needed. |
Scaffold a new Python project using modern conventions. The output is a ready-to-use
repository with a pyproject.toml-based build, src layout, dev tooling, and
pre-configured instructions for coding agents.
<project-name>/
src/
<package_name>/
__init__.py
py.typed
tests/
__init__.py
test_placeholder.py
.github/
workflows/
ci.yaml
pyproject.toml
README.md
LICENSE
.gitignore
.python-version
CLAUDE.md
AGENTS.md
You need at minimum:
3.11; prefer 3.11+ for modern typing syntax)Optional:
[project.scripts] entry)Read the templates in templates/ and references in references/ for content.
Adapt templates based on user answers from step 1.
Key files and their purposes:
Refer to references/pyproject-guide.md for the full annotated example. Key points:
[build-system] with hatchling (simple, standards-compliant, no setup.py needed)requires-python[project.optional-dependencies] for dev/test/docs extrasThis file gives Claude Code project-specific context. Start with the template in
templates/CLAUDE.md.template, which includes:
The user should update this as the project evolves.
This file gives broader agent instructions (not Claude-specific). Start with the
template in templates/AGENTS.md.template, which includes:
By default, we want two GitHub workflows at package initialization: ci.yaml and
python-publish.yaml. Use the templates in templates/ as a starting point, and
modify as needed.
cd <project-name>
git init
git add -A
git commit -m "Initial project scaffold"
# Create a virtual environment and install in editable mode
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
If the lab notebook is set up at ~/codebox/notebook/, create a project entry:
mkdir -p ~/codebox/notebook/projects/<project-name>/sessions
Write an initial STATUS.md and add the project to PROJECTS.md.
Run the following to confirm everything works:
python -c "import <package_name>; print(<package_name>.__version__)"
pytest
ruff check src/
py.typed. Signals PEP 561 compliance for downstream type checkers.pyproject.toml.Source: briney/codebox — distributed by TomeVault.