tool-discovery
87为每项任务选择合适的 AI 工具
在众多技能和代理之间进行选择可能会延误技术工作。此技能通过简明的目录和选择规则,将每项任务匹配到专门的工具。
构建 Python CLI 应用程序
团队需要在选项、输出、配置和测试方面保持一致的 Python 命令行接口。此技能提供 Typer 和 Rich 模式,用于实用且可投入生产的 CLI 设计。
安装前请停下并请求确认。
请审查安装计划,并在更改文件前获得用户明确同意。
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "python-cli-patterns" from https://skillstore.io/skills/0xdarkmatter-python-cli-patterns.md and its manifest at https://skillstore.io/api/skills/0xdarkmatter-python-cli-patterns/manifest. Verify the artifact. Stop and obtain explicit user consent before installing or changing files.你的智能体仍应展示其计划,并按安全策略请求必要确认。
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
正在使用“python-cli-patterns”。 构建一个导入文件并显示进度的 CLI。
预期结果:
一个包含路径验证、进度报告、成功消息、错误处理和测试场景的命令结构。
正在使用“python-cli-patterns”。 为现有 Python 脚本添加配置支持。
预期结果:
一个包含文件默认值、环境覆盖、命令行优先级和可见配置路径的配置方案。
正在使用“python-cli-patterns”。 让终端输出更易于浏览。
预期结果:
一个 Rich 输出方案,使用表格展示记录、面板展示摘要,并提供清晰的 stderr 错误。
Most static findings are false positives caused by Markdown examples that mention environment variables, hidden XDG paths, database URLs, and code fences. No prompt injection or credential exfiltration intent was found in the reviewed source files. One semantic issue remains: a Typer query example executes raw SQL supplied as a CLI argument.
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
https://skillstore.io/skills/0xdarkmatter-python-cli-patterns/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report[](https://skillstore.io/skills/0xdarkmatter-python-cli-patterns?utm_source=security_passport_badge)<a href="https://skillstore.io/skills/0xdarkmatter-python-cli-patterns?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/0xdarkmatter-python-cli-patterns/security.svg" alt="Skillstore security assessment" loading="lazy"></a><iframe src="https://skillstore.io/embed/skills/0xdarkmatter-python-cli-patterns.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>0xDarkMatter. (2026). python-cli-patterns security audit report (audit version 6) [Author version unspecified]. Skillstore. https://skillstore.io/skills/0xdarkmatter-python-cli-patterns/audits/6@techreport{0xdarkmatter-0xdarkmatter-python-cli-patterns-2026,
author = {0xDarkMatter},
title = {python-cli-patterns security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/0xdarkmatter-python-cli-patterns/audits/6},
note = {Author version unspecified}
}cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "python-cli-patterns security audit report (audit version 6)"
version: "unspecified"
type: report
authors:
- name: "0xDarkMatter"
date-released: "2026-07-04"
url: "https://skillstore.io/skills/0xdarkmatter-python-cli-patterns/audits/6"
identifiers:
- type: other
value: "skillstore:0xdarkmatter-python-cli-patterns:audit:6"
description: "Skillstore immutable audit report identifier"
使用命令组、类型化选项、Rich 表格和本地配置,构建行为可预测的管理工具。
用经过测试的 Typer 命令、进度指示器和明确的配置路径替代临时脚本。
通过带有验证、帮助文本和 CliRunner 测试的精致 CLI 暴露常见项目任务。
为名为 <name> 的项目创建一个基础 Typer CLI,包含一个命令、类型化选项、清晰的帮助文本和简单错误处理。
更新此 CLI 方案,以使用 Rich 表格、进度反馈、面板和易读的错误消息,同时不改变命令行为。
为此 CLI 设计配置处理方式,使用 TOML、环境变量、显式路径,并为配置优先级编写测试。
审查此 CLI 设计,并提出一种 Typer 架构,包含子命令、分层配置、Rich 输出、async 处理和 CliRunner 测试。
作者
0xDarkMatter许可证
MIT
Skillstore 修订
r1
版本提示
作者未声明版本。
引用
b94843b1014e2052f8a7cd64f580a4023b48fd5f
维护新鲜度
2026/7/28
使用量
16 次下载 · 206 次浏览
文件结构
为每项任务选择合适的 AI 工具
在众多技能和代理之间进行选择可能会延误技术工作。此技能通过简明的目录和选择规则,将每项任务匹配到专门的工具。
构建可靠的异步 Python
异步 Python 代码常因阻塞调用、无界任务和薄弱的清理机制而失败。此技能提供可复用的 asyncio 模式、示例和参考资料,用于构建稳健的并发服务。
使用可复用模式构建 FastAPI API
FastAPI 项目需要在验证、依赖项、中间件和后台工作方面保持一致选择。此 skill 为 Claude、Codex 和 Claude Code 提供可复用模式,用于实用的 Python API 开发。
添加 Python 类型安全模式
在真实项目中,Python 类型注解可能很难保持一致应用。此技能为 Claude、Codex 和 Claude Code 提供实用模式,用于编写更安全的带类型 Python 代码。
按 AST 结构搜索代码
文本搜索会遗漏语义关系并产生大量噪声匹配。此技能使用 ast-grep 模式定位代码结构,并为针对性重构做好准备。
处理 JSON、YAML 和 TOML 数据
结构化配置数据在 JSON、YAML 和 TOML 文件之间可能难以检查。此技能指导使用 jq 和 yq 查询进行提取、过滤、转换和更新。
运行 Python 问候示例
由 EnactProtocol
新的 Enact 用户需要一个小示例来证明工具执行正常工作。此技能会运行一个 Python 问候命令,并返回简单的运行时输出。
使用 pytest TDD 构建 Python 测试
由 89jobrien
Python 团队通常需要一致的测试、覆盖率和报告,同时不丢失 TDD 纪律。此技能为 Claude、Codex 和 Claude Code 提供以 pytest 为核心的工作流、示例和报告指南。
创建 Rust 问候工具
由 EnactProtocol
开发者需要一个小型、可预测的示例,用于将输入传递给 Rust 命令行技能。此技能会根据 name 参数编译并运行一个问候工具。
安全移除死代码
由 89jobrien
未使用的导入、函数和类会增加维护成本和部署体积。此技能引导 Claude、Codex 和 Claude Code 通过保守分析、备份、删除和验证来完成处理。
构建 FastAPI 后端
由 sickn33
FastAPI 项目需要在设置、数据模型、路由、身份验证、测试和部署方面保持一致的选择。此技能提供分阶段工作流,并为每个后端步骤提供聚焦提示。
自动化 Opentrons 实验室协议
由 davila7
编写可靠的 Opentrons 协议需要准确选择台面、实验器具、移液器和模块。此技能可帮助 Claude、Codex 和 Claude Code 起草结构化的 Protocol API v2 工作流。