Skip to main content

python-coding

(💛) Opinionated Python coding practices and standards.

来源信息

仓库
palladius/gemini-cli-palladius-public-goodies
最近来源活动
2026年4月12日 05:49
检测到的 SKILL.md 语言
英语
星标
5
分支
1

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
python-coding
description
(💛) Opinionated Python coding practices and standards.
compatibility
Gemini CLI
metadata
{"version":0.2}
## Python Best Practices - **UV for dependency management:** Always prefer `uv` for script management and dependencies. - **PEP 723:** Use PEP 723 inline script metadata for standalone scripts. - **Type Hinting:** Use standard Python type hints for all public functions. - **Documentation:** Use Google-style docstrings. ## Riccardo opinionated ideas Code needs to be readable an maintainable. Therefore: - Be minimalistic. - Break down code in multiple files which serve different purposes. - I like the base folder to just contain main/cli and usually everything else to go under lib/ or similar. Don't shy out of folders, like lib/genai/... and lib/music/... and so on. - I like a big multiline """file descritpion """ at the beginning of every file, after the imports. This will help me - i like a single big constants.py containing all the constants as i dont want to go dig them in 20 different files. Do not hardcode a Gemini model version -> put it into constants. If we need one gemii model versions, one for images, one for summarization, create a SUMMARIZATION_GEMINI_MODEL and IMAGES_GEMINI_MODEL. - Use standard naming, understood by Terraform/Pulumi, rather than random ones, like 'GOOGLE_CLOUD_PROJECT' is better than 'MY_PROJECT' or 'PROJECT_ID'. - Riccardo likes it colorful and emoji-ful. I like `glow` outputs, and nice tables. I'm a CLI guy, but I still love beauty in a CLI. - Beauty by default, but convenience also (maybe an output supports a nice good looking text but can also be served as --json to be parsed by jq or passed to an LLM). - for CLI apps, use `dotenv` by default, as in the sample `main.py`: its easy to pick up gemini api keys and stuff! So its a life saver!
在 GitHub 查看