运维生成
- 作者仓库星标 0
- 作者更新于 实时读取
- 作者仓库 skills-registry
- 领域
- 工程开发
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 83 / 100 · 社区维护
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需手动接入
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- macOS · Linux · Windows · Docker
- 底层运行要求
- Python >=3.14 · Docker
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 允许外网请求
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。;检出高风险片段:pipe_curl_to_shell
---
name: create-python-project
description: Use this skill whenever the user wants to create, scaffold, set up, initialize, or bootstrap a n…
category: 工程开发
runtime: Python / Docker
---
# create-python-project 输出预览
## PART A: 任务判断
- 适用问题:代码实现、重构、调试或代码审查。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Why this skill exists / Pre-flight check / Workflow”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于代码实现、重构、调试或代码审查,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Why this skill exists / Pre-flight check / Workflow”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、会按任务需要访问外部网络、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;会按任务需要访问外部网络;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Why this skill exists / Pre-flight check / Workflow”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: create-python-project
description: Use this skill whenever the user wants to create, scaffold, set up, initialize, or bootstrap a n…
category: 工程开发
source: tomevault-io/skills-registry
---
# create-python-project
## 什么时候使用
- 用于组织测试、定位失败并形成修复闭环 适合处理工程开发场景下的代码实现、调试、重构、测试或代码审查,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常不需…
- 面向代码实现、重构、调试或代码审查,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Why this skill exists / Pre-flight check / Workflow」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;会按任务需要访问外部网络;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "create-python-project" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Why this skill exists / Pre-flight check / Workflow
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> Python / Docker | 读取文件、写入/修改文件、执行终端命令 | 会按任务需要访问外部网络
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Create Python Project
Scaffold a new Python project using uv, with sensible tooling defaults (ruff, mypy, pytest), and a CLAUDE.md that primes future Claude sessions on the project's conventions. The skill is interactive: it briefly elicits the user's choices, then produces a working project that can be cd'd into and run immediately.
Why this skill exists
Starting a Python project well is mostly mechanical (init, deps, lint config, gitignore) but easy to do inconsistently. This skill removes that friction and — crucially — drops a CLAUDE.md into the root so every future Claude session in the repo knows the conventions without being re-told. The CLAUDE.md is the most valuable artifact here: a small upfront investment that pays back every interaction afterward.
Pre-flight check
Before scaffolding anything, verify uv is available:
uv --version
If it isn't, tell the user how to install it (curl -LsSf https://astral.sh/uv/install.sh | sh on Linux/macOS, or powershell -c "irm https://astral.sh/uv/install.ps1 | iex" on Windows) and stop. Don't fall back to pip/poetry/pdm — this skill is uv-specific by design, because uv is faster, has built-in Python version management, and the user prefers it.
Workflow
The flow is: elicit → init → add deps → configure → write CLAUDE.md → sync → report. Each step is described below. Match the user's language (Portuguese, English, etc.) throughout.
1. Elicit the project info
Detect what the user already told you in the request (project name, type, dependencies they mentioned) and skip those questions. Ask only what's missing. Use ask_user_input_v0 if available — it's tappable and much faster than typing on mobile. Otherwise, ask in plain text in a single grouped message.
The questions, in order:
- Project name — directory name. If user gave one, confirm rather than re-ask.
- Project type — one of:
library— importable Python package (uv init --lib, src/ layout)cli— command-line tool with entry point (uv init --package)app— generic application: dashboard, data pipeline, web API, script, notebook (uv init, flat layout)
- App flavor (only if type = app) — drives dependency suggestions:
dashboard(Streamlit, Plotly/Altair)pipeline(Polars or Pandas, loguru, pydantic)web-api(FastAPI, uvicorn, pydantic)script(minimal, no suggested deps)notebook(Jupyter or Marimo)
- Runtime dependencies — show suggestions based on type/flavor (see "Dependency suggestions" below). Always let the user override or add their own. "None" is a valid answer.
- Dev dependencies — propose
ruff,mypy,pytestas defaults; ask if the user wants to keep all three, drop any, or add more (e.g.,pytest-cov,hypothesis,mkdocs). Don't force them. - Python version — default to the latest stable (currently 3.14 unless the user has constraints). Confirm if you're unsure.
Keep elicitation tight. Don't ask for license, author, or git remote — those aren't needed for a working scaffold and the user can fill them in later.
Dependency suggestions
Use these as starting points for the runtime deps prompt. They are suggestions — the user picks.
| Type / flavor | Suggested runtime deps |
|---|---|
| library | (often none — leave empty unless user names some) |
| cli | typer, rich, loguru |
| app + dashboard | streamlit, plotly, loguru |
| app + pipeline | polars, loguru, pydantic |
| app + web-api | fastapi, uvicorn[standard], pydantic, loguru |
| app + script | loguru (suggest; user may opt out) |
| app + notebook | jupyter |
loguru shows up in most rows because the user uses it as the default logging library across personal and work projects — it's nearly always wanted when there's any kind of structured output. Don't force it on libraries (where users should use logging and let the consumer configure it) or notebooks (where logging usually isn't the point).
2. Initialize the project with uv
Map the project type to the right uv init flag:
# library
uv init --lib --python 3.14 <name>
# cli
uv init --package --python 3.14 <name>
# app (any flavor)
uv init --python 3.14 <name>
cd into the new directory before adding dependencies.
3. Add dependencies
Add runtime deps and dev deps separately so they land in the right pyproject.toml groups:
uv add <runtime-deps>
uv add --dev <dev-deps>
If the user said "no runtime deps", skip the first line. Always make sure the dev deps step runs (assuming the user kept any) — having lint/type/test tools available is more important than people often realize when starting out.
4. Configure tooling
Append the ruff and mypy sections to pyproject.toml. The exact snippets are in references/pyproject_config.md — read that file and copy the sections, adjusting target-version / python_version to match the user's choice. The defaults reflect the user's preferences: NumPy-style docstrings, line length 100, type hints required, strict mypy.
Then create .gitignore with the standard Python entries (also in references/pyproject_config.md). If uv init already created one, append the missing entries rather than overwriting.
5. Write CLAUDE.md
This is the most important artifact. Read references/claude_md_template.md and fill it in. The template has placeholders like {{PROJECT_NAME}}, {{PROJECT_DESCRIPTION}}, {{LAYOUT_NOTES}}, {{KEY_DEPS}} — replace each with project-specific content. Do not paste the template verbatim; the placeholders need real values.
If the user gave you a 1–2 sentence project description in step 1, use it. If not, ask one short question now: "Em uma frase, do que se trata o projeto?" (or English equivalent).
Place CLAUDE.md at the project root (next to pyproject.toml).
6. Sync and verify
Run uv sync to install everything and verify the lockfile resolves:
uv sync
If it fails, debug it (usually a typo in a package name or a Python version mismatch) before declaring success. Then run a quick sanity check:
uv run ruff check .
uv run mypy .
These should both pass on a fresh project. If they don't, fix the config — don't ship a broken scaffold.
7. Report to the user
Summarize concisely what was created. Keep it to ~5 lines:
- Project name and path
- Layout type (library / CLI / app)
- Runtime + dev deps installed
- Where the entry point is (e.g.,
src/<name>/__init__.py,main.py, or the CLI command) - The 2–3 most likely next commands (e.g.,
cd <name> && uv run <name>, oruv run streamlit run main.py)
Mention CLAUDE.md was created and that it'll guide future Claude sessions in the repo.
Notes and edge cases
- Don't over-scaffold. No CI configs, Docker, GitHub Actions, pre-commit hooks, or documentation site unless the user explicitly asks. Each of those is a separate decision and adding them by default creates more friction (broken CI on a fresh repo, etc.) than value.
- If the user wants pip / poetry / pdm, gently note that this skill is uv-specific and ask if they want to proceed with uv anyway, or skip the skill and set up the alternative manually. Don't silently switch.
- Existing directories: if the project name matches an existing non-empty directory, stop and ask before overwriting.
uv initwill refuse to clobber a non-empty dir but it's nicer to catch this with a clear message. - Multiple uv init runs: if something goes wrong mid-flow and the user wants to retry,
rm -rf <name>first; don't try to repair a half-initialized directory. - Language: respond and elicit in the user's language. If they wrote in Portuguese, the questions, the CLAUDE.md description prompt, and the final summary should all be in Portuguese. The CLAUDE.md template itself is in English (since it's instructions to Claude) but project-specific filled-in parts can be in the user's language.
Reference files
references/claude_md_template.md— template for the CLAUDE.md, with placeholders. Read and fill in for each project.references/pyproject_config.md— ruff, mypy, and gitignore snippets. Copy and adjust as needed.
Source: DaviMacielCavalcante/skills-claude — distributed by TomeVault.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核